/* The clubhouse honours board sits inside the existing farm TV and leaves room for joining. */
.vt-stage[data-tv-scene='ranking'] .vt-world-art {
  background-image: linear-gradient(110deg, #112f35b8, #183f3894), url('/art/hd/farm-md.webp');
  background-position: center 60%;
}
.club-ranking-board {
  --rank-ink: #203e38;
  position: absolute;
  inset: 3.3cqh 3cqw;
  display: flex;
  flex-direction: column;
  gap: min(1.5cqh, 0.48em);
  overflow: hidden;
  padding: min(2.1cqh, 0.7em) 2cqw;
  border: min(0.28em, 5px) solid #edc26d;
  border-radius: min(3cqh, 0.95em);
  background: linear-gradient(122deg, #fff6de, #fffdf4 65%, #f3edd9);
  color: var(--rank-ink);
  box-shadow:
    0 0.22em 0 #644d2f,
    0 0.35em 0.8em #15302f6b;
  font-size: clamp(10px, min(2.65cqw, 4.45cqh), 70px);
  font-variant-numeric: tabular-nums;
}
.club-ranking-heading {
  display: flex;
  align-items: center;
  gap: 0.75em;
  min-height: 0;
  flex: none;
  padding: 0.18em 0.75em;
  border-radius: 0.62em;
  background: linear-gradient(115deg, #163b46, #216457);
  color: #fffbef;
}
.vt-cabinet .club-ranking-heading .club-ranking-trophy {
  flex: none;
  width: 2.95em;
  height: 2.95em;
  object-fit: contain;
}
.vt-cabinet .club-ranking-heading h1 {
  font-size: 1.47em;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 750;
}
.vt-cabinet .club-ranking-heading p {
  font-size: 0.67em;
  font-weight: 500;
  color: #f8df9e;
  margin-top: 0.24em;
  line-height: 1.18;
}
.club-ranking-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  line-height: 1.12;
}
.club-ranking-table .rank-col {
  width: 16%;
}
.club-ranking-table .score-col {
  width: 26%;
}
.club-ranking-table .level-col {
  width: 16%;
}
.club-ranking-table :is(th, td) {
  padding: 0.32em 0.48em;
  text-align: right;
  vertical-align: middle;
}
.club-ranking-table :is(th, td):first-child,
.club-ranking-table :is(th, td):nth-child(4) {
  text-align: center;
}
.club-ranking-table :is(th, td):nth-child(2) {
  text-align: left;
}
.club-ranking-table thead {
  color: #57605b;
  font-size: 0.72em;
}
.club-ranking-table thead th {
  border-bottom: 2px solid #d7c7a0;
  padding-block: 0.06em 0.35em;
  font-weight: 550;
}
.club-ranking-row > * {
  border-bottom: 1px solid #deceb0;
}
.club-ranking-row[data-rank='1'] {
  background-color: #ffedb7;
}
.club-ranking-row[data-current-player='true'] {
  background-color: #daf0df;
}
.club-ranking-row[data-current-player='true'] > :first-child {
  box-shadow: inset 0.16em 0 #2d7b5b;
}
.club-ranking-rank {
  display: inline-grid;
  place-items: center;
  min-width: 2.05em;
  padding: 0.13em 0.24em;
  font-weight: 700;
  border-radius: 100vw;
  color: #5b665e;
}
.club-ranking-row[data-rank='1'] .club-ranking-rank {
  color: #55360a;
  background: linear-gradient(#ffe787, #efa831);
  box-shadow: inset 0 0 0 1px #c48c2b;
}
.club-ranking-row[data-rank='2'] .club-ranking-rank {
  color: #394449;
  background: linear-gradient(#f0f5f4, #c1ced0);
  box-shadow: inset 0 0 0 1px #b1c0bf;
}
.club-ranking-row[data-rank='3'] .club-ranking-rank {
  color: #613917;
  background: linear-gradient(#ffe9c5, #daaa85);
  box-shadow: inset 0 0 0 1px #c58d69;
}
.club-ranking-member {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
}
.club-ranking-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.club-ranking-member small {
  flex: none;
  font-size: 0.59em;
  padding: 0.16em 0.45em;
  border-radius: 100vw;
  background: #27694e;
  color: white;
}
.club-ranking-score {
  color: #214e42;
  font-weight: 750;
}
.club-ranking-level {
  display: inline-block;
  min-width: 2em;
  padding: 0.1em 0.4em;
  background: #e9e9e0;
  color: #364b55;
  border-radius: 0.43em;
  font-size: 0.8em;
  font-weight: 650;
}
.club-ranking-pinned > * {
  border-top: 2px dashed #81ac91;
}
.club-ranking-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-weight: 600;
  color: #4b6358;
}
.club-ranking-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #355345;
  font-size: clamp(10px, 1.14vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}
.club-ranking-guide span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.club-ranking-page {
  color: #35496a;
}
@container (max-height: 300px) {
  .club-ranking-board {
    inset: 1.5cqh 1.7cqw;
    padding: 1.5cqh 1.6cqw;
    gap: 0.2em;
  }
  .club-ranking-table :is(th, td) {
    padding-block: 0.17em;
  }
  .club-ranking-table thead th {
    padding-block: 0.1em;
  }
}
@container (max-height: 200px) {
  .club-ranking-board {
    font-size: clamp(9px, 5cqh, 10px);
  }
  .vt-cabinet .club-ranking-heading .club-ranking-trophy {
    width: 2.25em;
    height: 2.25em;
  }
  .club-ranking-heading {
    padding: 0.12em 0.5em;
  }
  .vt-cabinet .club-ranking-heading p {
    margin-top: 0.08em;
    font-size: 0.8em;
  }
  .vt-cabinet .club-ranking-heading h1 {
    font-size: 1.18em;
  }
  .club-ranking-table :is(th, td) {
    padding-block: 0.09em;
  }
}
.phone-ranking-summary {
  display: flex;
  align-items: center;
  gap: 0.8em;
  background: linear-gradient(105deg, #163b46, #286653);
  color: white;
  border-radius: 15px;
  padding: 9px 14px;
}
.phone-ranking-summary .club-ranking-trophy {
  width: 47px;
  height: 51px;
  object-fit: contain;
}
.phone-ranking-summary strong,
.phone-ranking-summary span {
  display: block;
}
.phone-ranking-summary strong {
  font-size: 1.1em;
}
.phone-ranking-summary span {
  color: #f9e4ae;
  font-size: 0.89em;
}
.phone-ranking-standing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3em 1em;
  padding: 0.65em 0.18em 0.3em;
  color: #395749;
  font-size: 0.88rem;
}
.phone-ranking-standing b {
  font-variant-numeric: tabular-nums;
  margin-left: 0.2em;
}
.phone-ranking-details {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  min-height: 44px;
  border: 0;
  padding: 3px 0.18em;
  background: none;
  font: inherit;
  font-size: 0.93em;
  font-weight: 650;
  color: #23553d;
  cursor: pointer;
}
.phone-ranking-details:focus-visible {
  outline: 3px solid #1877ab;
}
[data-play-scene='ranking'] .play-options {
  margin-top: 0.5em;
}
[data-play-scene='ranking'] .play-choice {
  min-height: 52px;
}
[data-play-scene='ranking'] .choice-art {
  width: 30px;
  height: 34px;
}
.club-ranking-breakdown {
  margin: 0;
  color: #294b3f;
}
.club-ranking-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  border-bottom: 1px solid #ded7c2;
  padding: 0.35em 0.15em;
}
.club-ranking-breakdown dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.club-ranking-breakdown .ranking-sum {
  padding-top: 0.6em;
  font-weight: 700;
  border: 0;
}
