/* The clubroom shares the felt, brass and ink of the playing table. */
/* Browsers that don't honor the installed app's portrait orientation keep
   both hands above and below the board when a phone turns sideways. */
@media (pointer:coarse) and (orientation:landscape) {
  #game-shell:has(.bt-arena) {display:grid;height:100dvh;grid-template-rows:minmax(0,1fr)}
  #game-shell:has(.bt-arena) :is(.mast,.app-dock,.foot) {display:none}
  #game-shell #main-content:has(.bt-arena) {width:min(100%,max(350px,78dvh));margin:auto;height:100%;padding:0}
  .gx-scene:has(.bt-arena) .bt-heading {min-height:0;margin:0;padding:2px 0}
  .gx-scene:has(.bt-arena) .bt-heading h1 {font-size:18px}
  .bt-arena .bt-playmat {padding:2px 4px;gap:2px}
  .bt-arena .bt-handrail {grid-template: minmax(0,1fr) / minmax(60px,23%) minmax(0,1fr);width:100%;gap:6px}
  .bt-arena .bt-hand {--card-width:min(20cqw,12dvh);grid-template:1fr / repeat(5,minmax(0,1fr))}
  .bt-arena .bt-playername {flex-wrap:wrap;gap:3px;align-content:center}
  .bt-arena .bt-playername h2 {font-size:13px}
  .bt-arena .bt-footer {padding:2px 6px;min-height:0}
  .bt-arena .bt-footer [role=status] {font-size:12px}
  .bt-arena .bt-first-move {--opener-axis:90deg}
  .bt-arena .bt-opener-badge.rival {left:50%;top:18%}
  .bt-arena .bt-opener-badge.mine {left:50%;top:82%}
}
:root {
  --club-ink: #171c1a;
  --club-panel: #242a26;
  --club-type: #fbf3e4;
  --club-sub: #c2bdae;
  --club-brass: #edbe72;
  --club-rule: #454b41;
}
.club-menu-dialog .app-update-status {
  margin: 0 0 4px;
  padding: 4px 10px;
  color: var(--club-sub);
  font: 500 14px/1.35 var(--sans);
}
.app-update-notice {
  position: fixed;
  z-index: 95;
  bottom: max(22px, env(safe-area-inset-bottom));
  right: max(22px, env(safe-area-inset-right));
  width: min(410px, calc(100vw - 28px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px 14px;
  padding: 18px;
  border: 1px solid #786949;
  border-radius: 12px;
  background: #202b25;
  color: var(--club-type);
  box-shadow: 0 8px 30px #10191155;
  font-family: var(--sans);
}
.app-update-notice[hidden] { display: none; }
.app-update-copy strong { font-size: 19px; line-height: 1.2; }
.app-update-copy p { margin: 4px 0 0; color: #d2cbbd; font-size: 14px; line-height: 1.35; }
.app-update-actions { grid-column: 2; display: flex; align-items: center; gap: 5px; }
.app-update-actions button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #efe4cc;
  font: 650 15px/1 var(--sans);
  cursor: pointer;
}
.app-update-actions [data-apply-update] { background: #edc98f; color: #252219; }
.app-update-actions button:focus-visible { outline: 2px solid #ffe1a3; outline-offset: 2px; }
@media (max-width: 760px), (pointer: coarse) and (max-height: 550px) {
  .app-update-notice { right: max(14px, env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom)); }
  .app-update-actions button { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion-choice="reduced"]) .app-update-notice:not([hidden]) { animation: app-update-appear .22s ease-out; }
  @keyframes app-update-appear { from { opacity: 0; transform: translateY(6px); } }
}
body[data-view="lobby"],
body:not([data-view]) {
  color-scheme: dark;
  background: #171c1a;
  color: var(--club-type);
}
#game-shell .mast {
  background: #1b211f;
  color: var(--club-type);
  border: 0;
  border-bottom: 1px solid #373e38;
  box-shadow: none;
}
#game-shell .mast-inner {
  max-width: 1480px;
  padding-inline: clamp(16px, 3.4vw, 62px);
  width: 100%;
  height: 60px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.8vw, 45px);
}
#game-shell .mast .brand {
  color: #faf0df;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font: 600 23px/1 var(--sans);
  letter-spacing: -0.035em;
  white-space: nowrap;
  margin: 0;
}
#game-shell .mast .brand span,
#game-shell .mast .brand b {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
#game-shell .mast .brand img {
  width: 46px;
  height: 46px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
}
#game-shell .mast nav {
  height: 100%;
  display: flex;
  gap: clamp(14px, 1.6vw, 25px);
  align-items: center;
}
#game-shell .mast nav a {
  color: #c0c3b9;
  font: 600 15px/1 var(--sans);
  height: 100%;
  padding: 0;
  align-items: center;
}
#game-shell .mast nav a:is(:hover, .selected) {
  color: #f0c887;
}
#game-shell .mast nav a.selected:after {
  background: var(--club-brass);
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
}
#game-shell .mast .mast-account {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
#game-shell .mast :is(.account-button, .audio-shortcut, .mast-more),
.circle-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  border: 1px solid #495149;
  background: #252d28;
  color: #faefd9;
  border-radius: 9px;
  cursor: pointer;
}
#game-shell .mast #balance {
  color: #ebc481;
}
#game-shell .mast .audio-shortcut {
  display: inline-flex;
}
#game-shell .mast .mast-more {
  background: transparent;
  border-color: transparent;
}
.more-dots {
  display: inline-block;
  width: 20px;
  height: 16px;
  background:
    radial-gradient(circle at 3px center, currentColor 1.65px, transparent 2px),
    radial-gradient(circle at 10px center, currentColor 1.65px, transparent 2px),
    radial-gradient(circle at 17px center, currentColor 1.65px, transparent 2px);
}
body[data-view="lobby"] :is(.foot),
body:not([data-view]) .foot {
  display: none;
}
@media (min-width: 851px) {
  body[data-view]:not([data-view="lobby"]) #game-shell:not(:has(.bt-arena,.gx-duel-setup)) {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  body[data-view]:not([data-view="lobby"]) .main-view:not(:has(.bt-arena,.gx-duel-setup)) {
    flex: 1 0 auto;
    min-height: 0;
  }
  .main-view > :is(.gx-scene,.tc-scene):not(:has(.bt-arena,.gx-duel-setup)):not(.gx-duel-setup) {
    padding-block: clamp(14px,2.2dvh,32px);
  }
  .main-view > .gx-scene:not(:has(.bt-arena,.gx-duel-setup)) > .gx-heading {
    margin-block-end: clamp(12px,1.9dvh,24px);
  }
  #game-shell .foot { padding-block: clamp(6px,1dvh,14px); }
}
body:is([data-view="lobby"], :not([data-view])) .main-view {
  width: 100%;
  max-width: 1480px;
  min-height: 0;
  padding: 0 clamp(16px, 3.4vw, 62px);
  margin: auto;
}
.club-home {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  grid-template-areas: "table events" "shelf standings";
  gap: clamp(15px, 2.2vh, 27px) clamp(18px, 2vw, 32px);
  padding: clamp(14px, 2.2vh, 28px) 0;
  align-content: start;
  color: var(--club-type);
}
.room-switch,
.app-dock {
  display: none;
}
.club-home h1,
.club-home h2,
.club-home h3,
.display-case h2,
.club-menu-dialog h2 {
  font-family: var(--sans);
  letter-spacing: -0.035em;
  color: inherit;
  text-transform: none;
  margin: 0;
  line-height: 1.03;
}
.match-table {
  grid-area: table;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: #26332e;
  display: flex;
  align-items: center;
}
.medo-at-table {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: -1;
}
.medo-at-table img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 68% 43%;
}
.medo-at-table::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #26332e, rgba(38, 51, 46, 0.73) 10%, transparent 43%),
    linear-gradient(0deg, rgba(16, 24, 21, 0.68), transparent 30%);
}
.match-menu {
  width: 51%;
  min-width: 292px;
  padding: clamp(17px, 2.4vh, 32px) 0 clamp(17px, 2.4vh, 32px) clamp(17px, 2.25vw, 40px);
}
.match-heading,
.counter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.match-heading {
  margin-bottom: clamp(12px, 1.7vh, 19px);
}
.match-heading h1 {
  font-size: clamp(27px, 2.7vw, 45px);
  font-weight: 650;
}
.match-heading a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e9ddbe;
}
.club-home .mode-row {
  display: grid;
  margin: 0;
  gap: 6px;
  grid-template-columns: 1fr;
}
.match-choice {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid #637064;
  background: #2c3a32f2;
  color: #faf1df;
  border-radius: 10px;
  padding: 8px 13px;
  min-height: 50px;
  transition:
    background 0.18s,
    transform 0.18s;
  text-decoration: none;
}
.match-choice strong,
.match-choice small {
  display: block;
}
.match-choice strong {
  font: 600 clamp(17px, 1.42vw, 23px)/1.05 var(--sans);
  letter-spacing: -0.02em;
}
.match-choice small {
  font: 400 14px/1.16 var(--sans);
  color: #c8cebe;
  margin-top: 3px;
}
.match-choice.hunt-seat {
  background: #edbf78;
  border-color: transparent;
  color: #342619;
}
.match-choice.hunt-seat small {
  color: #574029;
}
.match-choice:hover {
  background: #40503f;
  transform: translateX(2px);
}
.match-choice.hunt-seat:hover {
  background: #f6ce8c;
}
.match-choice > .ico:last-child {
  opacity: 0.64;
}
.match-menu .resume-game {
  padding: 6px 10px;
  min-height: 32px;
  font: 600 14px var(--sans);
  background: #efe6cc;
  color: #26362d;
  border: 0;
  margin: 0;
}
.medo-signature {
  position: absolute;
  right: 4%;
  bottom: 6%;
  display: grid;
  color: #fff2da;
  line-height: 1;
  text-shadow: 0 1px 9px #111b14;
}
.medo-signature strong {
  font-size: clamp(23px,2.1vw,31px);
}
.medo-signature span {
  font: 400 12px/1.25 var(--sans);
  margin-top: 3px;
}
.club-events {
  grid-area: events;
  display: grid;
  grid-template-rows: 1.45fr 1fr;
  gap: 10px;
  min-width: 0;
}
.club-home .reward-counter,
.draw-counter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  min-height: 0;
  margin: 0;
}
.club-home .reward-counter {
  background: #563833;
  color: #fff4e2;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.club-home .reward-counter * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.club-home .reward-counter:focus-visible {
  outline: 3px solid #ffe4ad;
  outline-offset: -4px;
}
@media (hover: hover) {
  .club-home .reward-counter:hover {
    background-color: #69443b;
  }
}
.club-home .reward-counter:active {
  background-color: #442c28;
  box-shadow: inset 0 0 0 2px #d4a578;
}
.reward-counter:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 82% 64%, #866448, transparent 52%);
}
.club-home .reward-counter .daily-copy {
  width: 66%;
  max-width: 66%;
  z-index: 1;
  padding: 14px 0 14px clamp(16px, 1.8vw, 27px);
}
.counter-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f2cf9d;
  font: 600 13px/1.2 var(--sans);
}
.club-events h2 {
  font-size: clamp(22px, 2.15vw, 33px);
  font-weight: 600;
  margin: 5px 0;
}
.club-events .daily-copy p {
  font: 400 14px/1.2 var(--sans);
  margin: 0;
  color: #ead9c8;
}
.club-home .counter-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  font: 600 14px/1.15 var(--sans);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  padding: 2px 10px;
  border: 1px solid #e4bd86;
  border-radius: 4px;
  background: #f2d5aa;
  color: #432b27;
  white-space: nowrap;
}
.club-home .counter-action::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}
.club-home .reward-counter .floating-product {
  position: absolute;
  inset: 6% 4% 6% auto;
  width: 32%;
  height: 88%;
  display: grid;
  place-items: center;
  perspective: 600px;
}
.reward-counter .main-pack {
  object-fit: contain;
  height: 100%;
  width: 100%;
  filter: drop-shadow(5px 9px 5px #28171273);
  animation: club-wrapper-hover 5s ease-in-out infinite;
}
@keyframes club-wrapper-hover {
  0%,
  100% {
    transform: translateY(1px) rotate(7deg) rotateY(-9deg);
  }
  50% {
    transform: translateY(-4px) rotate(3deg) rotateY(3deg);
  }
}
.draw-counter {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fbf0de;
  background: #3b3024;
  padding: 12px clamp(16px, 1.8vw, 27px);
}
.draw-counter::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #372e22 15%, #372e22e8 34%, #372e2209 84%),
    url("/art/tournament-clock.jpg") 82% 48%/cover;
}
.draw-counter > .ico {
  opacity: 0.8;
}
.draw-copy {
  text-shadow: 0 1px 5px #241c17;
}
.draw-copy h2 {
  font-size: clamp(20px, 1.8vw, 29px);
}
#lobby-start {
  font: 500 14px/1.2 var(--sans);
  color: #f2e3cb;
}
.legends-shelf {
  grid-area: shelf;
  min-width: 0;
}
.club-standings {
  grid-area: standings;
  min-width: 0;
}
.counter-heading {
  min-height: 36px;
  margin-bottom: 10px;
  gap: 8px;
}
.counter-heading h2 {
  font-size: clamp(22px, 1.95vw, 31px);
  font-weight: 600;
}
.counter-heading a,
.case-source {
  color: #ebc78c;
  font: 600 14px/1.2 var(--sans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
}
.counter-heading a:hover,
.case-source:hover {
  text-decoration: underline;
}
.display-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.35vw, 21px);
  align-items: start;
}
.club-home .showcase-card {
  appearance: none;
  min-width: 0;
  display: grid;
  width: 100%;
  max-width: min(100%, calc((100dvh - 465px) *0.8));
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.2s ease-out;
}
.club-home .showcase-card:hover {
  transform: translateY(-3px);
}
.club-home .showcase-card .triad-card {
  width: 100%;
}
.club-home .feature-edition {
  padding: 0;
  margin: 7px 0 0;
  color: #cdbfaa;
  font: 500 13px/1.15 var(--sans);
  white-space: normal;
}
.club-standings .standing-row {
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  height: 34px;
  color: #f3ebdc;
  border-bottom: 1px solid #373f36;
  background: transparent;
  font: 600 14px/1 var(--sans);
}
.club-standings .standing-row > span:nth-last-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-standings .standing-row .rank-num {
  color: #c4b394;
  font: 500 13px var(--sans);
}
.club-standings .standing-row .rating-no {
  color: #f2d8a8;
  font: 600 14px var(--sans);
}
.club-standings #lobby-ranks:has(.standing-row:nth-child(6)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: clamp(12px, 1.5vw, 24px);
}
.club-standings .empty-standings {
  margin: 0;
  border: 1px dashed #50584c;
  background: #212722;
  border-radius: 11px;
  padding: clamp(15px, 2vh, 26px);
  color: #f6e6ce;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  align-content: center;
  min-height: 120px;
}
.club-standings .empty-standings > .ico {
  grid-row: 1/4;
  align-self: center;
  color: #ceb180;
}
.club-standings .empty-standings strong {
  color: inherit;
  font: 600 18px/1.2 var(--sans);
}
.club-standings .empty-standings p,
.club-standings .empty-standings a {
  font: 400 14px/1.25 var(--sans);
  margin: 4px 0;
  color: #cdcabb;
}
.club-standings .empty-standings a {
  font-weight: 600;
  color: #edc486;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.club-home .lobby-podium {
  padding: 4px 0 0;
  border: 0;
  color: #f8e6c7;
  margin: 5px 0 0;
}
.club-home .lobby-podium .counter-heading {
  margin: 0;
  min-height: 26px;
}
.club-home .lobby-podium h3 {
  font-size: 16px;
}
.club-home .lobby-podium .tc-podium {
  gap: 5px;
}
.club-home .lobby-podium .tc-place {
  padding: 3px;
}
.club-menu-dialog,
.display-case {
  color-scheme: dark;
  color: #fbf0e1;
  background: #242b26;
  border: 1px solid #555d50;
  margin: auto;
  border-radius: 18px;
  box-shadow: 0 25px 85px #0007;
}
.club-menu-dialog::backdrop,
.display-case::backdrop {
  background: #0c100ef0;
  backdrop-filter: blur(4px);
}
.club-menu-dialog {
  width: min(365px, calc(100vw - 30px));
  max-height: 85dvh;
  padding: 18px;
}
.club-menu-dialog[open] {
  display: grid;
}
.club-menu-dialog .counter-heading {
  margin-bottom: 8px;
}
.club-menu-dialog :is(a, button):not(.circle-close):not([hidden]) {
  display: flex;
  align-items: center;
  min-height: 45px;
  gap: 12px;
  border: 0;
  border-top: 1px solid #474d42;
  background: none;
  color: #f5e7d4;
  text-align: left;
  font: 600 16px var(--sans);
  padding: 6px 4px;
}
.circle-close {
  font: 400 26px/1 var(--sans);
  border-radius: 50%;
  width: 38px;
  height: 38px;
}
html:has(.display-case[open]) { overflow: hidden; }
.display-case {
  --case-space: max(12px, env(safe-area-inset-top), env(safe-area-inset-bottom));
  width: min(760px, calc(100% - 28px));
  max-width: 100%;
  max-height: calc(100dvh - 2 * var(--case-space));
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  translate: 0 var(--case-drag, 0px);
  transition: translate .16s ease-out;
  border-color: #7b7962;
}
.display-case.case-dragging { transition: none; }
.display-case[open] { animation: case-arrive .32s cubic-bezier(.18,.84,.24,1); }
.display-case::backdrop {
  background: #0b120fc2;
  animation: case-dim .22s ease-out;
}
.display-case.case-leaving::backdrop { opacity: 0; transition: opacity .17s ease-in; }
@keyframes case-arrive {
  from { opacity: 0; transform: translateY(38px) scale(.97); }
}
@keyframes case-dim { from { opacity: 0; } }
.case-interior {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: clamp(10px, 2dvh, 20px);
  max-height: inherit;
  padding: clamp(15px, 2.4vw, 26px);
  background: radial-gradient(ellipse at 20% 42%, #414b37 0%, transparent 60%), #242b26;
}
.case-controls, .case-paging, .case-picks {
  display: flex;
  align-items: center;
}
.case-controls, .case-stage, .case-paging, .case-info:not(.case-scrollable) { touch-action: pinch-zoom; }
.case-controls { gap: 12px; min-height: 44px; }
#case-title { font: 650 18px/1.1 var(--sans); color: #fff0d7; }
.case-index { margin-inline-start: auto; font: 600 14px/1 var(--sans); color: #d5c5a8; font-variant-numeric: tabular-nums; }
.case-controls .circle-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: #ffe8bd; background: #323b33; border: 1px solid #69715c; cursor: pointer;
}
.case-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 38px);
  align-items: center;
  min-height: 0;
}
.case-stage { display: grid; align-items: center; justify-items: center; perspective: 900px; min-height: 0; user-select: none; }
.case-face { width: min(100%, 260px, 45dvh); transform-origin: 0 0; }
.case-face .triad-card { width: 100%; box-shadow: 0 8px 22px #10181170; }
.case-stage img, .case-picks img { -webkit-user-drag: none; }
.case-info { min-height: 0; max-height: 100%; overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior: contain; scrollbar-width: thin; }
.case-scrollable { touch-action: pan-y pinch-zoom; }
.case-info p { margin: 0; }
.case-info .case-edition { color: #efc988; font: 600 14px var(--sans); margin-bottom: 7px; }
.case-info h2 { font: 600 clamp(28px, 3.7vw, 46px)/1.02 var(--sans); letter-spacing: -.04em; }
.case-info .case-life { margin-top: 5px; font: 500 14px/1.25 var(--sans); color: #c7c8b9; }
.case-info .case-bio { margin: 12px 0; font: 400 16px/1.4 var(--sans); color: #eee6d5; }
.case-biography summary {
  padding-block: 9px;
  color: #ebc78c;
  font: 600 14px/1.25 var(--sans);
  cursor: pointer;
}
@media (min-height: 671px) { .case-biography summary { display: none; } }
.case-ranks { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 3px; border-block: 1px solid #50584a; padding: 6px 0; }
.case-ranks div { display: grid; gap: 2px; }
.case-ranks dt { font: 400 13px var(--sans); color: #c9c8b7; }
.case-ranks dd { margin: 0; color: #f4d59e; font: 600 20px/1 var(--sans); }
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.case-links a { display: inline-flex; align-items: center; min-height: 36px; color: #ebc78c; font: 600 14px/1.2 var(--sans); text-underline-offset: 3px; }
.case-paging { justify-content: center; gap: clamp(6px, 2vw, 18px); padding-top: 8px; border-top: 1px solid #5e635140; }
.case-paging button { width: 44px; min-height: 44px; cursor: pointer; display: grid; place-items: center; }
.case-paging > button { color: #ffedcf; background: #323c32; border: 1px solid #596451; border-radius: 50%; font: 400 27px/1 var(--sans); }
.case-picks { gap: clamp(0px, .6vw, 6px); }
.case-picks button { border: 1px solid transparent; border-radius: 7px; padding: 3px; background: transparent; }
.case-picks button[aria-pressed="true"] { border-color: #edc787; background: #464735; }
.case-picks button > span { display: block; width: 29px; pointer-events: none; }
.case-picks .triad-card { border-width: 1px; border-radius: 3px; }
.case-picks :is(.card-name, .card-ranks, .card-corner) { visibility: hidden; }
:is(.club-home, .app-dock, .display-case, .club-menu-dialog) :focus-visible {
  outline: 2px solid #ffcd75;
  outline-offset: 2px;
}
@media (min-width: 851px) and (min-height: 700px) {
  .club-home {
    grid-template-rows: clamp(255px, 37dvh, 365px) auto;
  }
  .club-home:has(.lobby-podium:not([hidden])) .showcase-card {
    max-width: min(100%, calc((100dvh - 560px) *0.79));
  }
}
@media (min-width: 981px) {
  #game-shell .mast-inner {
    height: auto;
    min-height: 60px;
  }
  #game-shell .mast nav,
  #game-shell .mast nav a {
    height: auto;
    align-self: stretch;
  }
  #game-shell .mast nav a {
    min-height: 40px;
  }
}
@media (max-width: 1100px) and (min-width: 851px) {
  #game-shell .mast-inner {
    gap: 13px;
    padding-inline: 18px;
  }
  #game-shell .mast nav {
    gap: 12px;
  }
  #game-shell .mast nav a {
    font-size: 14px;
  }
  #game-shell .mast .brand {
    font-size: 20px;
  }
}
@media (min-width: 851px) and (max-width: 1000px) {
  .club-home {
    grid-template-columns: 1.48fr 1fr;
  }
}
@media (min-width: 851px) and (max-width: 980px) {
  #game-shell .mast-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    gap: 0 13px;
    padding-top: 5px;
  }
  #game-shell .mast .brand {
    grid-area: 1 / 1;
    justify-self: start;
    padding: 0;
  }
  #game-shell .mast .mast-account {
    grid-area: 1 / 2;
    flex-wrap: nowrap;
    padding: 0;
  }
  #game-shell .mast nav {
    grid-area: 2 / 1 / 3 / -1;
    height: 39px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

@media (max-width: 850px), (max-width: 1024px) and (max-height: 500px) {
  :root {
    --dock-height: calc(59px + env(safe-area-inset-bottom, 0px));
    --mobile-mast: calc(50px + env(safe-area-inset-top, 0px));
  }
  #game-shell .mast {
    padding-top: env(safe-area-inset-top, 0px);
  }
  #game-shell .mast .mast-inner {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    min-height: 50px;
    padding: 3px max(9px, env(safe-area-inset-right)) 3px max(9px, env(safe-area-inset-left));
    gap: 3px clamp(4px, 1.4vw, 10px);
  }
  #game-shell .mast .brand {
    height: auto;
    font-size: clamp(1rem, 4.7vw, 1.25rem);
    padding: 0;
    gap: 5px;
  }
  #game-shell .mast .brand img {
    width: clamp(32px, 10vw, 42px);
    height: auto;
  }
  #game-shell .mast nav,
  #game-shell .mast .mast-more {
    display: none;
  }
  #game-shell .mast .mast-account {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    height: auto;
    padding: 0;
    gap: clamp(2px, 1vw, 7px);
  }
  #game-shell .mast .account-button {
    width: auto;
    padding: 0 7px 0 4px;
    gap: 5px;
    min-width: 34px;
    height: 38px;
    min-height: 38px;
  }
  #game-shell .mast .account-button > span:last-child {
    min-width: 0;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 600 14px var(--sans);
  }
  #game-shell .mast .audio-shortcut,
  #game-shell .mast #balance {
    min-height: 40px;
    flex: none;
  }
  #game-shell .mast .audio-shortcut {
    width: 36px;
    min-width: 36px;
    border-color: transparent;
    background: transparent;
  }
  .app-dock {
    position: fixed;
    z-index: 35;
    inset: auto 0 0;
    background: #1a211e;
    border-top: 1px solid #41483e;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--dock-height);
    padding: 3px max(6px, env(safe-area-inset-right)) max(3px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
  }
  .app-dock :is(button, a) {
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #c5c8ba;
    text-decoration: none;
    font: 600 12px/1.15 var(--sans);
    cursor: pointer;
  }
  .app-dock .selected {
    color: #f0c17a;
  }
  .app-dock button .more-dots {
    height: 21px;
  }
  body[data-view="pack"] .app-dock,
  #game-shell:has(.bt-arena) .app-dock {
    display: none;
  }
  body[data-view="store"] #game-shell {
    padding-bottom: var(--dock-height);
  }
  body[data-view="store"] .pk-screen .pk-home {
    display: none;
  }
  #game-shell .foot {
    display: none;
  }
  body[data-view="lobby"],
  body:not([data-view]) {
    overflow: hidden;
  }
  body:is([data-view="lobby"], :not([data-view])) #game-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    padding-bottom: var(--dock-height);
  }
  body:is([data-view="lobby"], :not([data-view])) .main-view {
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 22px);
    width: 100%;
    overflow: clip;
  }
  .club-home {
    height: 100%;
    padding: 9px 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 44px minmax(min-content, 1.55fr) minmax(7.5rem, 1fr);
    grid-template-areas: "switch" "table" "events";
    align-content: stretch;
    gap: 9px;
  }
  .room-switch {
    display: flex;
    align-items: stretch;
    grid-area: switch;
    background: #252c27;
    padding: 2px;
    border-radius: 10px;
  }
  .room-switch button {
    flex: 1;
    min-width: 0;
    color: #bfc3b7;
    background: none;
    border: none;
    border-radius: 8px;
    font: 600 14px/1 var(--sans);
    cursor: pointer;
  }
  .room-switch [data-featured-open] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ebcf9a;
  }
  .room-switch button[aria-pressed="true"] {
    background: #444d40;
    color: #fff4dd;
  }
  .club-home .legends-shelf,
  .club-home .club-standings {
    display: none;
  }
  .club-home[data-room="standings"] {
    grid-template-rows: 44px minmax(0, 1fr);
    grid-template-areas: "switch" "pane";
  }
  .club-home:not([data-room="play"]) :is(.match-table, .club-events) {
    display: none;
  }
  .club-home[data-room="standings"] .club-standings {
    display: block;
    grid-area: pane;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .match-table {
    align-items: stretch;
    min-height: 0;
    border-radius: 13px;
    container-type: inline-size;
  }
  .match-menu {
    --arc-inset: clamp(14px, 6.7cqw, 54px);
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
    min-width: 0;
    padding: clamp(8px, 3cqw, 18px) clamp(10px, 3.5cqw, 24px);
  }
  .match-heading {
    margin: 0;
  }
  .match-heading h1 {
    padding-inline-start: 3px;
    font-size: clamp(1.6rem, 7.4cqw, 2.45rem);
    letter-spacing: -.045em;
    text-shadow: 0 1px 8px #14221eb3;
  }
  .match-heading a {
    width: 44px;
    height: 44px;
    flex: none;
    background: radial-gradient(circle, #1c2c27db 49%, #b5a886 51%, transparent 55%);
    color: #ffe7bb;
  }
  .medo-at-table {
    inset: 0;
  }
  .medo-at-table img {
    object-position: 50% 43%;
  }
  .medo-at-table::after {
    background:
      linear-gradient(90deg, #14251ed9, #182b2463 38%, transparent 67%),
      linear-gradient(0deg, #101e18b8, transparent 30%),
      linear-gradient(180deg, #1120196b, transparent 29%);
  }
  .club-home .mode-row {
    align-content: space-around;
    align-items: center;
    justify-items: start;
    gap: 4px;
  }
  .club-home .match-choice {
    --biscuit-rim: #acaa86;
    --biscuit-fill: linear-gradient(145deg, #3b5045, #22372f 85%);
    --biscuit-dot: #a5ad8599;
    display: grid;
    position: relative;
    isolation: isolate;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(5px, 1.7cqw, 10px);
    width: clamp(8.7rem, 54cqw, 19rem);
    min-height: clamp(3.45rem, 17cqw, 4.3rem);
    padding: 9px clamp(9px, 3.2cqw, 18px);
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #fff1d5;
    filter: drop-shadow(0 2px 3px #101d1966);
    transition: transform .16s ease;
  }
  .match-choice::before,
  .match-choice::after {
    content: "";
    position: absolute;
    pointer-events: none;
    mask: url('/art/match-biscuit.svg') center / 100% 100% no-repeat;
  }
  .match-choice::before {
    inset: 0;
    z-index: -2;
    background: var(--biscuit-rim);
  }
  .match-choice::after {
    inset: 1px;
    z-index: -1;
    background:
      radial-gradient(circle at calc(100% - 8px) 36%, var(--biscuit-dot) 1px, transparent 1.6px),
      radial-gradient(circle at calc(100% - 8px) 64%, var(--biscuit-dot) 1px, transparent 1.6px),
      var(--biscuit-fill);
  }
  .club-home .hunt-seat {
    --biscuit-rim: #ffe1a6;
    --biscuit-fill: linear-gradient(155deg, #f7d799, #e7af62 85%);
    --biscuit-dot: #865b2d8c;
    margin-inline-start: var(--arc-inset);
    width: clamp(8.7rem, 52cqw, 19rem);
    color: #392815;
  }
  .club-home .practice-seat {
    margin-inline-start: calc(var(--arc-inset) * .8);
  }
  .club-home .match-choice:hover {
    background: transparent;
    --biscuit-rim: #ffdc9e;
  }
  .club-home .match-choice:active {
    transform: scale(.975);
  }
  .match-choice > .ico:first-child {
    box-sizing: content-box;
    width: clamp(16px, 4.8cqw, 22px);
    height: auto;
    aspect-ratio: 1;
    padding: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #e9d5a1;
  }
  .hunt-seat > .ico:first-child {
    color: #705026;
  }
  .match-choice > .ico:last-child {
    display: none;
  }
  .match-choice strong {
    font-size: clamp(1rem, 4.9cqw, 1.35rem);
    line-height: 1.05;
  }
  .match-choice small {
    font: 400 clamp(.78rem, 3.5cqw, .9rem)/1.1 var(--sans);
    margin-top: 2px;
  }
  .match-menu .resume-game {
    padding: 4px 12px;
    margin-inline-start: 3px;
    min-height: 44px;
    border-radius: 99px;
  }
  .medo-signature {
    bottom: clamp(12px, 4.3cqw, 24px);
    right: clamp(12px, 4.3cqw, 24px);
    padding-left: 9px;
    border-left: 2px solid #e9c787;
    pointer-events: none;
  }
  .medo-signature strong {font-size:clamp(23px,6.8cqw,31px)}
  .medo-signature span {
    font-size: .78rem;
    margin-top: 2px;
  }
  .club-events {
    grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.83fr);
    gap: 8px;
  }
  .club-home .reward-counter,
  .club-home .draw-counter {
    border-radius: 12px;
  }
  .club-home .reward-counter .daily-copy,
  .draw-counter {
    padding: 8px 15px;
  }
  .club-events h2 {
    font-size: clamp(21px, 5.4vw, 32px);
    margin: 3px 0;
  }
  .club-events .counter-state {
    font-size: 12px;
  }
  .club-home .reward-counter .floating-product {
    inset: 5% 4% 5% auto;
    height: 90%;
    width: 30%;
  }
  .club-events .daily-copy p {
    display: none;
  }
  .club-events .counter-action {
    margin: 1px 0 0;
    min-height: 29px;
  }
  .club-events #lobby-start {
    font-size: 13px;
  }
  .club-home .counter-heading {
    margin: 2px 0 10px;
  }
  .club-standings #lobby-ranks:has(.standing-row:nth-child(6)) {
    display: block;
  }
  .club-standings .standing-row {
    height: clamp(30px, 5.6dvh, 53px);
    font-size: 16px;
    grid-template-columns: 26px 27px minmax(0, 1fr) auto;
    padding: 3px 8px;
  }
  body[data-view]:not(
      :is(
        [data-view="lobby"],
        [data-view="pack"],
        [data-view="store"],
        [data-view="practice"],
        [data-view="match"]
      )
    ) {
    overflow: hidden;
  }
  body[data-view]:not(
      :is(
        [data-view="lobby"],
        [data-view="pack"],
        [data-view="store"],
        [data-view="practice"],
        [data-view="match"]
      )
    )
    .main-view,
  body[data-view="match"]:not(:has(.bt-arena)) .main-view {
    width: 100%;
    max-width: none;
    height: calc(100dvh - var(--mobile-mast) - var(--dock-height) - 1px);
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0 14px;
    scroll-padding: 12px;
  }
}
@media (max-width: 349px) {
  #game-shell .mast .mast-inner {
    padding-inline: max(6px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-right));
    column-gap: 3px;
  }
  #game-shell .mast .mast-account,
  #game-shell .mast #balance {
    column-gap: 2px;
  }
  #game-shell .mast .account-button {
    gap: 4px;
    padding-inline: 3px 4px;
  }
}
@media (max-width: 850px) and (forced-colors: active) {
  .club-home .match-choice {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    filter: none;
  }
  .match-choice::before,
  .match-choice::after {
    display: none;
  }
}
@media (max-width: 850px) and (min-aspect-ratio: 1/1), (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .club-home {
    grid-template-columns: 1.18fr 1fr;
    grid-template-areas: "switch switch" "table events";
    grid-template-rows: 30px minmax(min-content, 1fr);
    padding: 5px 0;
    gap: 5px 9px;
  }
  .club-home[data-room="standings"] {
    grid-template-areas: "switch switch" "pane pane";
    grid-template-rows: 30px minmax(0, 1fr);
  }
  .club-home .match-choice {
    min-height: 44px;
    padding-block: 5px;
  }
  .club-home .hunt-seat {
    width: clamp(8.5rem, 48.5cqw, 15rem);
  }
  .club-home .match-choice small,
  .club-home .draw-counter .counter-state {
    display: none;
  }
  .club-home .match-menu {
    --arc-inset: clamp(12px, 5.25cqw, 30px);
    padding-block: 8px;
  }
  .club-standings #lobby-ranks:has(.standing-row:nth-child(6)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
  }
}
@media (max-height: 670px) and (max-width: 850px), (max-width: 1024px) and (max-height: 500px) {
  .club-home .match-menu {
    padding-block: 8px;
  }
  .club-home .match-choice small {
    display: none;
  }
  .club-home .club-events .counter-action {
    min-height: 23px;
  }
  .club-home .club-events .draw-copy .counter-state {
    display: none;
  }
  .club-home .match-menu:has(.resume-game) .match-choice {
    min-height: 44px;
  }
  .club-home .match-menu:has(.resume-game) .mode-row {
    gap: 3px;
  }
}
@media (max-width: 1024px) and (max-height: 420px) and (orientation: landscape) {
  .club-home { grid-template-rows: 36px minmax(0, 1fr); }
  .club-home[data-room="standings"] { grid-template-rows: 36px minmax(0, 1fr); }
}
@media (max-width: 850px) and (max-height: 540px) and (orientation: portrait) {
  .club-home[data-room="play"] { grid-template-rows: 44px minmax(0, 1.13fr) minmax(128px, 1fr); }
}
@media (max-width: 1024px) and (max-height: 420px) and (orientation: landscape),
       (max-width: 850px) and (max-height: 540px) and (orientation: portrait) {
  .club-home .match-menu { padding: 3px 8px 6px; }
  .club-home .match-heading h1 { font-size: clamp(19px, 6cqw, 25px); }
  .club-home .mode-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 5px;
    align-content: end;
  }
  .club-home .mode-row :is(.match-choice, .resume-game) {
    width: 100%;
    margin: 0;
    min-height: 44px;
    padding: 4px 7px;
  }
  .club-home .match-choice strong { font-size: clamp(14px, 4.3cqw, 18px); }
  .club-home .match-choice > .ico:first-child { padding: 2px; }
  .club-home .medo-signature {
    inset: 9px 56px auto auto;
    padding-left: 5px;
  }
  .club-home .medo-signature strong { font-size: 17px; }
  .club-home .medo-signature span { font-size: 10px; }
  .club-home .club-events h2 { font-size: clamp(19px, 3.3vw, 24px); line-height: 1.05; }
  .club-home .reward-counter .daily-copy, .club-home .draw-counter { padding: 4px 10px; }
}
@media (min-width: 851px) and (min-height: 501px) and (max-height: 699px), (min-width: 1025px) and (max-height: 500px) {
  .club-home {
    padding-block: 10px;
    gap: 10px 20px;
    grid-template-rows: auto auto;
  }
  .match-menu {
    padding-block: 10px;
  }
  .match-heading {
    margin-bottom: 6px;
  }
  .match-heading h1 {
    font-size: 27px;
  }
  .club-home .mode-row {
    gap: 3px;
  }
  .match-choice {
    min-height: 36px;
    padding: 5px 9px;
  }
  .match-choice small {
    display: none;
  }
  .club-home .reward-counter .daily-copy,
  .draw-counter {
    padding-block: 7px;
  }
  .club-home .reward-counter .daily-copy p {
    display: none;
  }
  .club-home .showcase-card {
    max-width: min(100%, clamp(68px, calc((100dvh - 350px) *0.76), 205px));
  }
}
@media (max-width: 580px) and (orientation: portrait) {
  .display-case {
    width: min(460px, calc(100% - 16px));
    margin: auto auto max(8px, env(safe-area-inset-bottom));
    border-radius: 20px;
  }
  .case-interior { padding: 12px clamp(12px,4vw,21px); gap: 8px; }
  .case-controls::before {
    content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0;
    width: 32px; height: 3px; border-radius: 3px; background: #b7b39a;
  }
  .case-display { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 12px; }
  .case-face { width: clamp(100px, min(52vw, 25dvh), 206px); }
  .case-info h2 { font-size: clamp(24px, 6.3vw, 30px); }
  .case-info .case-edition { margin-bottom: 3px; }
  .case-info .case-bio { margin: 6px 0; font-size: 15px; line-height: 1.32; }
  .case-ranks { margin: 5px 0 0; padding: 4px 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .display-case { --case-space: max(6px, env(safe-area-inset-top), env(safe-area-inset-bottom)); }
  .case-interior { gap: 5px; padding: 6px 14px; }
  .case-display { align-items: center; }
  .case-face { width: min(100%, 42dvh); }
  .case-info h2 { font-size: 24px; }
  .case-info .case-bio { margin-block: 6px; font-size: 15px; }
  .case-ranks { margin-block: 4px 0; padding-block: 3px; }
  .case-paging { padding-top: 2px; }
}
.club-home .reward-counter .main-pack {
  position: absolute;
  inset: 0;
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.club-winners {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.club-winners a {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #f3e8d4;
  text-decoration: none;
  min-width: 0;
  min-height: 36px;
}
.club-winners a > span:last-child {
  min-width: 0;
  display: grid;
}
.club-winners small {
  font: 500 12px var(--sans);
  color: #dbba82;
}
.club-winners strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 14px var(--sans);
}
.club-home .lobby-podium {
  margin-top: 13px;
  padding-top: 8px;
  border-top: 1px solid #464b40;
}
.club-home .lobby-podium .counter-heading {
  margin: 0 0 3px;
}
@media (min-width: 851px) and (min-height: 700px) {
  .club-home:has(.lobby-podium:not([hidden])) .showcase-card {
    max-width: min(100%, calc((100dvh - 465px) *0.8));
  }
}
@media (max-width: 850px) {
  .club-home .lobby-podium {
    padding-top: 3px;
    margin-top: 5px;
  }
}
@media (max-width: 850px) and (max-height: 670px), (max-width: 850px) and (orientation: landscape) {
  .club-home[data-room="standings"] #lobby-ranks:has(.standing-row:nth-child(6)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    gap: 0 10px;
  }
  .club-standings .standing-row {
    font-size: 13px;
    grid-template-columns: 15px minmax(0, 1fr) auto;
    gap: 4px;
    height: clamp(23px, 4.5dvh, 30px);
    padding-inline: 0;
  }
  .club-standings .standing-row .tc-avatar {
    display: none;
  }
  .club-home .counter-heading {
    min-height: 25px;
    margin-bottom: 3px;
  }
  .club-home .lobby-podium h3 {
    font-size: 14px;
  }
}
body[data-view] .gx-scene .gx-heading h1,
body[data-view] :is(.mk-heading h1, .tc-scene h1, .standing-page .standings-title) {
  font: 600 clamp(30px, 3.5vw, 50px)/1.04 var(--sans);
  letter-spacing: -0.035em;
  text-transform: none;
}
body[data-view] :is(.tc-scene, .mk-market) {
  --tc-serif: var(--sans);
}
body[data-view] .gx-scene :is(.gx-subtitle, .gx-sectionhead h2, .gx-empty h2, .gx-wait h2),
body[data-view] .mk-market :is(h2, h3) {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-style: normal;
  text-transform: none;
}
body[data-view] :is(.mk-tabs, .gx-tabs) {
  column-gap: 6px;
}
body[data-view] .mk-tabs a {
  padding: 4px 12px;
}
body[data-view] :is(.mk-lot, .gx-empty, .gx-confirm, .tc-registration, .tc-photo-workbench) {
  border-radius: 12px;
}
body[data-view] :is(.gx-button, .tc-button, .mk-market button) {
  border-radius: 8px;
}
body[data-view] .standing-page {
  max-width: min(880px, 100%);
  margin-inline: auto;
}
body[data-view="leaderboard"] .empty-standings a {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: underline;
  color: var(--lime);
}
body[data-view] .sound-panel {
  border-radius: 13px;
  max-height: calc(100dvh - 20px);
  overflow: auto;
  overscroll-behavior: contain;
}
@media (max-width: 850px) {
  body[data-view] .gx-scene .gx-heading h1,
  body[data-view] :is(.mk-heading h1, .tc-scene h1, .standing-page .standings-title) {
    font-size: 29px;
  }
  body[data-view]:is(
      [data-view="pack"],
      [data-view="store"],
      [data-view="practice"],
      [data-view="match"]
    )
    .gx-scene
    .gx-heading
    h1 {
    font-size: 22px;
  }
}
