/* Arena espacial: geometria decorativa separada dos alvos de clique. */
:root {
  --club-gold:#f2cb82;
  --club-black:#101419;
  --club-grain:url("assets/arena-weave.svg");
}
#gameShell .arena { perspective: 1050px; perspective-origin: 50% 54%; }
body:is([data-table],:not([data-table])) #gameShell .arena::before {
  background-image:radial-gradient(ellipse at 50% 55%, transparent 15%, #090a11c9 92%),var(--arena-image,linear-gradient(145deg,#26352f,#101419));
  filter:saturate(.67) brightness(.63);
}
body[data-table] #gameShell .arena .table, body #gameShell .arena .table {
  inset:10% 7% 13%;
  pointer-events:none;
  transform:rotateX(36deg) translateZ(-25px);
  transform-style:preserve-3d;
  border-radius:35% / 42%;
  border:0;
  overflow:visible;
  background:none;
  box-shadow:0 38px 38px #000b;
}
body:is([data-table],:not([data-table])) #gameShell .arena .table::before {
  content:"";
  display:block;
  position:absolute;
  inset:0;
  border-radius:inherit;
  transform:translateZ(-22px);
  border:2px solid color-mix(in srgb,var(--stage-edge,#ad8b52) 43%,#271b15);
  background:repeating-linear-gradient(96deg,#100b0977 0 1px,transparent 1px 6px),linear-gradient(130deg,#34251e,#141114 50%,#39291e);
  box-shadow:0 4px 0 #0c0909,0 12px 24px #0009;
}
body:is([data-table],:not([data-table])) #gameShell .arena .table::after {
  content:"";
  display:block;
  position:absolute;
  inset:0;
  transform:translateZ(3px);
  border-radius:inherit;
  opacity:1;
  border:clamp(6px,1.25vw,14px) solid color-mix(in srgb,var(--stage-edge,#ad8b52) 53%,#33241b);
  background:var(--club-grain),radial-gradient(ellipse at 46% 17%,color-mix(in srgb,var(--stage-glow,#8acaad) 35%,#172522),transparent 77%),var(--arena-felt,#102d26);
  box-shadow:inset 0 0 0 2px #ffffff24,inset 0 0 0 9px #070b1159,inset 0 0 48px #0009,0 0 0 1px #fff4,0 3px 0 #0c0d11;
}
body #gameShell .arena .table-label {
  display:flex;
  position:absolute;
  inset:40% 0 auto;
  width:auto;
  align-items:center;
  flex-direction:column;
  gap:.28em;
  color:var(--stage-ink,#fff1d1);
  opacity:.25;
  font:800 clamp(20px,5vw,53px)/1 Georgia,serif;
  letter-spacing:.12em;
  text-shadow:0 2px #0009;
  transform:translateZ(5px);
}
body #gameShell .arena .table-label span {font:700 .22em/1.3 system-ui,sans-serif;letter-spacing:.25em}
body #gameShell #center .played .card {
  rotate:x 12deg;
  box-shadow:inset 0 1px var(--card-highlight),0 2px var(--card-edge),0 5px color-mix(in srgb,var(--card-edge) 50%,#15131a),0 12px 15px #0008;
}
body #gameShell .hand {perspective:600px;perspective-origin:50% 130%}
body #gameShell .hand .card {
  rotate:x -8deg;
  box-shadow:inset 0 1px var(--card-highlight),0 2px var(--card-edge),0 4px color-mix(in srgb,var(--card-edge) 50%,#15131a),0 8px 12px #0008;
}
body #gameShell .hand .card:focus-visible {rotate:none}
@media (hover:hover) {
  body #gameShell .hand .card:not(:disabled):hover {rotate:x 8deg}
}
body #gameShell .player-roster .player > .player-info {
  box-shadow:inset 0 1px #fff3,0 3px color-mix(in srgb,var(--pc-edge,var(--stage-edge)) 24%,#151319),0 8px 14px #0007;
}
body #gameShell .player-roster .player.active > .player-info {
  outline:1px solid var(--game-turn,var(--club-gold));
}
body:not(.game-active) #siteHome :is(.home-cards,.landing-fan,.welcome-art) {
  perspective:700px;
  perspective-origin:50% 65%;
}
body:not(.game-active) #siteHome :is(.home-cards > span,.landing-card,.welcome-art > .card) {
  rotate:1 0 0 -19deg;
  box-shadow:inset 0 0 0 1px #ffffff70,0 3px #c2af91,0 5px #6e5a46,0 16px 23px #0008;
}
body:not(.game-active) #siteHome :is(.home-cards > span,.landing-card):nth-child(even) {
  rotate:1 1 0 -22deg;
}
@media (max-width:540px) {
  body:is([data-table],:not([data-table])) #gameShell .arena .table {inset:9% 4% 12%;transform:rotateX(26deg) translateZ(-12px)}
  body:is([data-table],:not([data-table])) #gameShell .arena .table::before {transform:translateZ(-15px)}
}
@media (forced-colors:active) {
  body #gameShell .arena .table-label {opacity:1}
}

body.dynamic-home:not(.game-active) .home-carousel {
  perspective:850px;
  border-color:#d4a96975;
  background:radial-gradient(ellipse at 85% 48%,#366954 0%,transparent 57%),linear-gradient(120deg,#111a20,#142925);
  box-shadow:inset 0 1px #fff2,0 5px #15141a,0 18px 38px #0007;
}
body.dynamic-home:not(.game-active) .home-banner-image {opacity:.14}
body.dynamic-home:not(.game-active) .home-kicker {color:var(--club-gold)}
body.dynamic-home:not(.game-active) .home-banner-cards {
  transform:rotateX(23deg) rotateY(-18deg);
  transform-style:preserve-3d;
}
body.dynamic-home:not(.game-active) .home-banner-cards span {
  translate:0 0 18px;
  box-shadow:inset 0 0 0 1px #fff8,0 3px #b5a485,0 5px #685541,0 15px 24px #0009;
}
body.dynamic-home:not(.game-active) .home-banner-cards span:nth-child(2) {translate:0 0 29px}
body.dynamic-home:not(.game-active) .home-banner-cards span:nth-child(3) {translate:0 0 41px}


/* Clube: acabamento comum à entrada, à navegação e à partida. */
body { --club-line:#c8a36763; --club-ivory:#fff3d7; }
body:not(.game-active) {
  background:radial-gradient(ellipse at 70% 0%,#193e34,transparent 55%),#101818;
}
body:not(.game-active) #siteHeader,
body.dynamic-home.account-hub.hub52:not(.game-active) #siteHeader {
  background:#111d1b;
  border-bottom:1px solid var(--club-line);
}
body.public-landing.landing-gamer:not(.game-active) .landing-fan,
body.dynamic-home:not(.game-active) .home-carousel {
  background:url("assets/arena-clube.svg") right center / auto 96% no-repeat,radial-gradient(ellipse at 75% 35%,#234c3e,#101c1c 68%);
  border-radius:24px;
  border:1px solid var(--club-line);
}
body.public-landing.landing-gamer:not(.game-active) .landing-fan {
  background-position:center;
  height:clamp(160px,46vw,270px);
}
body.public-landing.landing-gamer:not(.game-active) .landing-fan .landing-card,
body.dynamic-home:not(.game-active) .home-banner-cards {visibility:hidden}
body.dynamic-home:not(.game-active) .home-carousel {min-height:clamp(250px,35vw,390px)}
body.dynamic-home:not(.game-active) .home-carousel h1,
body.public-landing.landing-gamer:not(.game-active) .landing-title {
  font-family:Georgia,serif;
  font-style:normal;
  letter-spacing:-.035em;
  color:var(--club-ivory);
}
body.dynamic-home:not(.game-active) .home-carousel h1 {max-width:18ch}
body.dynamic-home:not(.game-active) .home-carousel p {max-width:42ch}
body.dynamic-home:not(.game-active) .home-carousel:has(.home-banner-image) {background-image:linear-gradient(100deg,#101c1c,#183d33)}
body.dynamic-home:not(.game-active) .home-carousel:not(:has(.home-banner-image)) > :is(h1,p,.home-kicker,.home-primary) {position:relative;z-index:1}
body :is(#siteHome,.home-sheet,#tableMenu,#gameShell) .gamer-icon {
  --icon-tone:var(--club-gold);
  --ink:var(--club-ivory);
}
body :is(.home-sheet,#tableMenu,#gameShell #bidPopin,#gameShell .loss-popin,.public-landing #siteHome #accountDialog) {
  border-color:var(--club-line);
  border-radius:20px;
  box-shadow:inset 0 1px #fff3,0 20px 60px #000a;
}
body :is(.home-play-grid,.home-menu-grid) button {
  min-height:48px;
  border-radius:12px;
  border-color:var(--club-line);
  background:linear-gradient(160deg,#2a443c,#172724);
  color:var(--club-ivory);
}
body :is(#siteHome,.home-sheet,#gameShell) :is(.home-primary,.primary) {
  border-color:#edcd92;
  background:linear-gradient(160deg,#fff0c3,#d7a65b);
  color:#23190e;
  box-shadow:inset 0 1px #fff9,0 3px #80542d;
}
body:is([data-table],:not([data-table])) #gameShell .arena .table::after {
  background:var(--club-grain),radial-gradient(ellipse at 50% 15%,#ffffff20,transparent 68%),var(--arena-pattern,none),var(--arena-felt,#102d26);
}
body #gameShell .arena .table-label {inset:38% 0 auto;opacity:.5}
body #gameShell .table-label .table-watermark {opacity:.32}
body #gameShell :is(.hand,#center) .card {
  border-radius:clamp(5px,1.5vw,11px);
  background-image:var(--card-pattern,none),radial-gradient(ellipse at 29% 7%,#fff4,transparent 68%),linear-gradient(150deg,var(--card-front-a,#fff7df),var(--card-front-b,#ddc9a0));
}
body #gameShell :is(.hand,#center) .card.manilha {
  border-color:var(--card-gold,var(--club-gold));
  box-shadow:inset 0 0 0 1px #fff8,0 2px #ba9859,0 5px #604822,0 9px 15px #0008;
}
body #gameShell :is(.hand,#center) .card .emblem-art {filter:drop-shadow(0 1px 0 #fff5)}
body #gameShell .hand-area {
  border-radius:16px;
  background:linear-gradient(160deg,color-mix(in srgb,var(--stage-raised) 83%,transparent),color-mix(in srgb,var(--stage-panel) 85%,transparent));
  border:1px solid color-mix(in srgb,var(--stage-edge) 52%,transparent);
}
body #gameShell .hand-area:after {display:none}
body #gameShell .hand[data-cards] {
  display:grid;
  grid-template-columns:repeat(var(--hand-columns,1),var(--card-width,60px));
  gap:4px;
  align-content:center;
  justify-content:center;
  width:max-content;
  height:auto;
}
body #gameShell .hand[data-cards] .card {
  position:relative;
  inset:auto;
  transform:none;
  margin:0;
}
body #gameShell .hand .card:not(:disabled):focus-visible {outline:2px solid var(--game-turn);outline-offset:2px}
body #gameShell .action,
body #gameShell .turn-banner {border-color:color-mix(in srgb,var(--stage-edge) 65%,var(--club-gold))}
body #gameShell .player-roster .player-info {border-radius:10px}
body #gameShell #center .played small {display:block}
@media (max-width:699px) {
  body.dynamic-home:not(.game-active) .home-carousel:not(:has(.home-banner-image)) {
    background-position:right -35px bottom -14px,center;
    background-size:65% auto,cover;
  }
  body.dynamic-home:not(.game-active) .home-carousel p {max-width:26ch}
  body #gameShell .turn-banner>div:first-child {display:grid;gap:0;justify-items:start}
  body #gameShell .turn-banner small {line-height:15px}
  body #gameShell .turn-banner h2 {max-width:100%}
}
/* Match only. Information sits directly on the scene, with the table as the focal point. */
body #gameShell {
  --rail-dark:#201914;
  --rail-metal:color-mix(in srgb,var(--stage-edge,#bda270) 75%,#dac08b);
}
body:is([data-table=imperial],[data-table=vegas],[data-table=noble],[data-table=pirate],[data-table=club]) #gameShell {--rail-dark:#2b190f}
body:is([data-table=cosmic-nebula],[data-table=galaxy],[data-table=cosmos],[data-table=hologram]) #gameShell {--rail-dark:#20142f}
body:is([data-table=neon-cyber],[data-table=cyber-arena],[data-table=cyber],[data-table=arcade]) #gameShell {--rail-dark:#101a2b}
body:is([data-table=lagoon],[data-table=ice],[data-table=glacier]) #gameShell {--rail-dark:#12272d}
body:is([data-table=volcano],[data-table=ruby-inferno],[data-table=lava],[data-table=candy]) #gameShell {--rail-dark:#391b25}
body:is([data-table=dragon],[data-table=emerald-dragon]) #gameShell {--rail-dark:#15281e}

body #gameShell .arena {perspective:900px;perspective-origin:50% 52%}
body:is([data-table],:not([data-table])) #gameShell .arena::before {
  filter:saturate(.72) brightness(.44);
  background-image:radial-gradient(ellipse at 50% 53%,transparent 25%,#070a13eb 94%),var(--arena-image,linear-gradient(145deg,#26352f,#101419));
}
body:is([data-table],:not([data-table])) #gameShell .arena .table {
  inset:8% 4% 11%;
  border-radius:28% / 44%;
  transform:rotateX(32deg) translateZ(-16px);
}
body:is([data-table],:not([data-table])) #gameShell .arena .table::before {
  transform:translateZ(-28px);
  background:repeating-linear-gradient(100deg,#0003 0 1px,transparent 1px 6px),linear-gradient(180deg,var(--rail-dark),#0b090b 65%,var(--rail-dark));
  border-color:var(--rail-metal);
  box-shadow:0 8px 1px #09090b,0 26px 30px #000b;
}
body:is([data-table],:not([data-table])) #gameShell .arena .table::after {
  border:clamp(7px,1.25vw,15px) solid transparent;
  background:
    var(--club-grain) padding-box,
    radial-gradient(ellipse at 46% 12%,#ffffff24,transparent 64%) padding-box,
    var(--arena-pattern,none) padding-box,
    var(--arena-felt,#102d26) padding-box,
    linear-gradient(155deg,#fdf0c9,var(--rail-metal) 26%,var(--rail-dark) 52%,var(--rail-metal) 82%,#fff1c2) border-box;
  box-shadow:inset 0 0 0 2px #fff4,inset 0 0 0 8px #080c116e,inset 0 0 45px #0007,0 2px 0 var(--rail-dark);
}
body #gameShell .arena .table-label {
  inset:11% 10%;
  display:grid;
  place-content:center;
  border:1px dashed color-mix(in srgb,var(--rail-metal) 55%,transparent);
  border-radius:inherit;
  opacity:.47;
}
body #gameShell .table-label .table-watermark {opacity:.28}
body #gameShell .turn-banner,
body #gameShell .turn-banner small,
body #gameShell .action,
body #gameShell .hand-area,
body #gameShell .player-roster .player > .player-info,
body #gameShell .player-roster .player-info > .player-stats,
body #gameShell .player-roster .player-stats > span {
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  outline:none;
}
body #gameShell .turn-banner {border-bottom:1px solid color-mix(in srgb,var(--stage-edge) 40%,transparent);background:var(--arena-base)}
body #gameShell .turn-banner small {padding-inline:0;font-weight:750;letter-spacing:.06em;color:var(--stage-dim)}
body #gameShell .turn-banner h2 {font-weight:800}
body #gameShell .player-roster .player > .avatar {
  background:var(--pc-pattern,none),var(--pc-background,linear-gradient(155deg,var(--stage-raised),var(--stage-panel)));
  border-color:var(--pc-edge,var(--stage-edge));
  box-shadow:0 0 0 2px var(--arena-base),0 4px 14px #0009;
}
body #gameShell .player-roster .player.active > .avatar {
  border-color:var(--game-turn);
  box-shadow:0 0 0 2px var(--arena-base),0 0 0 4px var(--game-turn),0 5px 20px #0009;
}
body #gameShell .player-roster .player > .player-info {
  color:var(--stage-ink);
  text-shadow:0 1px 2px #000,0 0 7px #000;
  padding:6px 2px 0;
}
body #gameShell .player-roster .player-info > b {color:var(--stage-ink)}
body #gameShell .player-roster .player-info > .player-handle {color:var(--stage-dim)}
body #gameShell .player-roster .player-info > .player-stats {height:19px;overflow:visible}
body #gameShell .player-roster .player-stats > span {justify-content:center;gap:3px}
body #gameShell .player-roster .player-stats small {color:var(--stage-ink);font-size:clamp(7px,1.3vw,9px)}
body #gameShell .player-roster .player-stats b {font-size:15px;line-height:18px}
body #gameShell .player-roster .player.active .player-info > b {color:var(--game-turn)}
body #gameShell #center .played small {
  background:none;
  padding:0;
  font-weight:750;
  text-shadow:0 1px 3px #000,0 0 5px #000;
}
body :is(#gameShell,.sample-card) .card:has(.index-top),body .motion-card:has(.index-top) {
  background-image:var(--card-pattern,none),linear-gradient(115deg,#fff3,transparent 36%,#0001 78%),linear-gradient(150deg,var(--card-front-a,#fff7df),var(--card-front-b,#ddc9a0));
  border:1px solid var(--card-edge);
  border-radius:clamp(7px,1.7vw,13px);
  box-shadow:inset 0 0 0 1px #fff4,0 2px var(--card-edge),0 4px color-mix(in srgb,var(--card-edge) 45%,#15131a),0 9px 15px #0008;
}
body :is(#gameShell,.sample-card) .card.manilha:has(.index-top),body .motion-card.manilha:has(.index-top) {
  border-color:var(--card-gold,var(--club-gold));
  box-shadow:inset 0 0 0 1px #fff7,0 3px #aa8148,0 5px #50361f,0 9px 15px #0008;
}
body #gameShell :is(.hand,#center,.hand-dialog-cards) .emblem-art {filter:drop-shadow(0 1px 0 #fff5) drop-shadow(0 2px 1px #0004)}
body #gameShell .hand-area:has(.hand-zoom:not([hidden])) {padding-top:40px}
body #gameShell .hand-zoom {
  position:absolute;
  inset:0 6px auto auto;
  min-height:44px;
  z-index:13;
  padding:5px 12px;
  background:transparent;
  border:0;
  border-radius:8px;
  box-shadow:none;
  color:var(--game-turn,var(--club-gold));
  font-size:12px;
  font-weight:800;
}
body #gameShell .hand-zoom[hidden] {display:none}
body #gameShell .hand-zoom:focus-visible,
body #gameShell .hand-dialog button:focus-visible {outline:2px solid var(--game-turn,var(--club-gold));outline-offset:2px}

body #gameShell .hand-dialog {
  position:fixed;
  inset:auto 0 0;
  margin:0 auto;
  width:min(100%,780px);
  max-width:100%;
  max-height:min(83dvh,680px);
  padding:0 14px max(16px,env(safe-area-inset-bottom));
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid var(--rail-metal);
  border-radius:24px 24px 0 0;
  color:var(--stage-ink);
  background:linear-gradient(145deg,var(--stage-raised),var(--stage-panel));
  box-shadow:0 -18px 65px #000a;
}
body #gameShell .hand-dialog::backdrop {background:#080d15b3}
body #gameShell .hand-dialog > header {
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0 9px;
  background:var(--stage-raised);
  border:0;
  border-bottom:1px solid var(--rail-metal);
}
body #gameShell .hand-dialog h2 {margin:0;font:700 clamp(22px,5vw,30px)/1.05 Georgia,serif}
body #gameShell .hand-dialog p {margin:4px 0 0;color:var(--stage-ink);font-size:12px}
body #gameShell .hand-dialog-close {min-height:44px;min-width:44px;padding:0;font-size:24px}
body #gameShell .hand-dialog-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,clamp(76px,22vw,105px)),1fr));
  gap:10px;
  padding:12px 3px 6px;
}
body #gameShell .hand-dialog-cards .card {
  width:min(100%,118px);
  height:auto;
  justify-self:center;
  opacity:1;
}
body #gameShell .hand-dialog-cards .card:disabled {cursor:default}
@media (max-width:699px) {
  body:is([data-table],:not([data-table])) #gameShell .arena .table {inset:10% 2% 11%;transform:rotateX(24deg) translateZ(-12px)}

}
@media (orientation:landscape) and (max-height:500px) {
  body #gameShell .hand-area:has(.hand-zoom:not([hidden])) {padding-bottom:48px}
}

/* One layout for each orientation. The middle track takes the remaining space. */
body #gameShell {
  --hand-reserved:clamp(146px,21dvh,178px);
  --seat-gap:5px;
  height:100dvh;
  box-sizing:border-box;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
body #gameShell > header {
  height:48px;
  flex:0 0 48px;
  padding:2px max(7px,env(safe-area-inset-right)) 2px max(7px,env(safe-area-inset-left));
}
body #gameShell > header .table-header-logo .logo-title {font-size:clamp(20px,5vw,30px)}
body #gameShell > header .table-header-logo .logo-sub {display:none}
body #gameShell > main:has(.play-stage) {
  width:min(100%,1440px);
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"turn" "lobby" "stage" "messages" "hand" "action";
  grid-template-rows:48px auto minmax(214px,1fr) 18px var(--hand-reserved) 44px;
  padding:0 max(6px,env(safe-area-inset-right)) 3px max(6px,env(safe-area-inset-left));
  gap:3px;
  overflow:auto hidden;
  overflow-x:hidden;
  overflow-y:auto;
}
body #gameShell:is([data-phase=lobby],[data-phase=result],[data-phase=finished]) > main:has(.play-stage) {
  grid-template-rows:48px auto minmax(214px,1fr) 18px 0 auto;
}
body #gameShell .play-stage[data-player-count] {min-height:0;width:min(100%,1200px)}
body #gameShell .turn-banner {height:48px;min-height:48px;max-height:48px}
body #gameShell .turn-banner > div:first-child {min-width:0}
body #gameShell .turn-banner h2 {min-width:0}
body #gameShell .turn-banner .clock-wrap {width:40px;height:40px}
body #gameShell .action {height:auto;min-height:28px;max-height:none;padding:2px 6px;overflow:visible}
body #gameShell .action #openBidPopin:not([hidden]) {min-height:44px}
body #gameShell .action:has(#openBidPopin:not([hidden])) #status {display:none}
body #gameShell #lobbyActions:not([hidden]) {max-height:112px}
body #gameShell #lobbyStartCountdown {flex:1 0 100%;font-size:11px;color:var(--game-turn);text-align:center}
body #gameShell .hand-area {padding:3px 4px 3px 42px}
body #gameShell .hand-area:has(.hand-zoom:not([hidden])) {padding-top:30px}
body #gameShell .hand-zoom {inset:-8px 4px auto auto}
body #gameShell .hand[data-fan=true] {column-gap:8px}
body #gameShell .hand[data-fan=true] .card {transform:rotate(calc(var(--tilt,0deg)*.5))}
body #gameShell .hand .card:not(:disabled):active {transform:translateY(-5px)}
body #gameShell .player-roster .player {
  display:grid;
  grid-template-columns:var(--hud-avatar) minmax(0,1fr);
  grid-template-rows:var(--hud-slot) var(--hud-info);
  column-gap:var(--seat-gap);
  align-items:center;
  padding-inline:3px;
}
body #gameShell .player-roster .player > .turn-slot {
  grid-column:1 / -1;
  grid-row:1;
  margin:0;
  height:var(--hud-slot);
}
body #gameShell .player-roster .player > .avatar {grid-column:1;grid-row:2}
body #gameShell .player-roster .player > .player-info {
  grid-column:2;
  grid-row:2;
  height:var(--hud-info);
  padding:0;
  margin:0;
  gap:0;
  justify-content:center;
}
body #gameShell .player-roster .player-info > :is(b,.lives,.player-handle,.player-total-points) {
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body #gameShell .player-roster .player-info > b {height:12px;line-height:12px;font-size:clamp(10px,2vw,14px)}
body #gameShell .player-roster .player-info > .player-handle {height:8px;min-height:8px;line-height:8px;font-size:8px}
body #gameShell .player-roster .player-info > .lives {height:9px;line-height:9px}
body #gameShell .player-roster .player-info > .player-total-points {height:8px;min-height:8px;line-height:8px}
body #gameShell .player-roster .player-info > .player-stats {height:12px;flex-shrink:0}
body #gameShell .player-roster .player-stats > span {min-height:12px;gap:2px;justify-content:start;padding:0}
body #gameShell .player-roster .player-stats > span + span {border:0}
body #gameShell .player-roster .player-stats small {font-size:6px;line-height:10px}
body #gameShell .player-roster .player-stats b {font-size:12px;line-height:12px}
body #gameShell .player-roster .player-mute {top:auto;bottom:0;right:calc(100% - 5px)}
body #gameShell #center {
  display:flex;
  flex-flow:row wrap;
  gap:6px;
  align-content:center;
  align-items:start;
}
body #gameShell #center .played small {height:17px;line-height:17px;margin:0}
body #gameShell #center .played:last-child .card {animation:arena-land .24s ease-out}
@keyframes arena-land {from{outline:2px solid var(--game-turn);outline-offset:3px}to{outline:2px solid transparent;outline-offset:0}}
body :is(#gameShell,.sample-card) .card:has(.index-top) :is(.rank,.card-index b),
body .motion-card:has(.index-top) :is(.rank,.card-index b) {font-size:28cqw}
body :is(#gameShell,.sample-card,.motion-card) .card-art {inset:31% 25%}
body #gameShell #bidPopin {max-height:min(45dvh,240px);bottom:max(5px,env(safe-area-inset-bottom))}
body #gameShell #bidPopin #controls {overflow-x:auto;overscroll-behavior-inline:contain}

body .home-start-actions {display:flex;align-items:center;flex-wrap:wrap;gap:7px}
body .home-start-actions button {min-height:44px;padding-inline:14px}
body .home-start-actions .home-primary {font-weight:850}
body #quickGame .quick-advanced {border-block:1px solid var(--ui-line);padding-block:4px}
body #quickGame .quick-advanced > summary {min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:700}
body #quickGame .quick-advanced > summary::after {content:'+';margin-left:auto}
body #quickGame .quick-advanced[open] > summary::after {content:'−'}
body #quickGame :is(button,select,input):focus-visible,
body #gameShell button:focus-visible {outline:2px solid var(--game-turn,var(--club-gold));outline-offset:2px}
@media (max-width:699px) {
  body #gameShell > header :is(.table-menu-button,.table-style-shortcut) {min-height:44px}
  body #gameShell .turn-banner {grid-template-columns:minmax(0,1fr) 40px 44px 44px}
  body #gameShell .player-roster .player-info > .player-handle {font-size:7px}
  body #gameShell .player-roster .player-stats small {font-size:6px}
}
@media (orientation:landscape) and (max-height:500px) {
  body #gameShell:is([data-phase=play],[data-phase=bid],[data-phase=trick]) > main:has(.play-stage) {
    grid-template-areas:"turn turn" "lobby lobby" "stage hand" "messages messages" "action action";
    grid-template-columns:minmax(0,1fr) minmax(182px,30%);
    grid-template-rows:48px auto minmax(202px,1fr) 18px 44px;
  }
  body #gameShell .hand-area:has(.hand-zoom:not([hidden])) {padding:26px 4px 46px}
  body #gameShell .hand-zoom {top:-5px}
}
@media (prefers-reduced-motion:reduce) {
  body #gameShell #center .played:last-child .card {animation:none}
}

body #gameShell .arena {overflow:clip;overflow-clip-margin:3px}
body #gameShell .play-stage {overflow:clip;overflow-clip-margin:3px}
body #gameShell .player-roster .player.active > .player-info {outline:none}
body #gameShell .side-seats .player {column-gap:2px;padding-inline:1px}
body #gameShell .side-seats .player-stats > span {gap:1px}
body #gameShell .side-seats .player-stats small {font-size:5px}
body #gameShell .side-seats .player-info > .lives {font-size:8px}
body #gameShell .side-seats .player-mute {bottom:-9px}
@media (max-width:370px) and (orientation:portrait) {
  body #gameShell {--hand-reserved:139px}
  body #gameShell .hand-area {padding-left:44px}
}

/* Surface finishes follow the existing deck ID on both game and catalog. */
body[data-deck-skin],.visual-skin-option {--deck-sheen:linear-gradient(115deg,#fff3,transparent 38%,#0001 81%)}
body:is([data-deck-skin=noir],[data-deck-skin=black],[data-deck-skin=carbon],[data-deck-skin=obsidian]),:is(.preview-noir,.preview-black,.preview-carbon,.preview-obsidian) {--deck-sheen:linear-gradient(115deg,#bdcde626,transparent 45%,#0004 84%)}
body:is([data-deck-skin=cyber-chrome],[data-deck-skin=arctic],[data-deck-skin=imperial]),:is(.preview-cyber-chrome,.preview-arctic,.preview-imperial) {--deck-sheen:linear-gradient(120deg,#edf9ff29,transparent 35%,#f3f9ff1c 65%,#0002)}
body:is([data-deck-skin=royal],[data-deck-skin=royal-gold],[data-deck-skin=emerald-royal],[data-deck-skin=ruby-imperial]),:is(.preview-royal,.preview-royal-gold,.preview-emerald-royal,.preview-ruby-imperial) {--deck-sheen:linear-gradient(125deg,#ffe8a748,transparent 37%,#b8792219 80%)}
body:is([data-deck-skin=holo],[data-deck-skin=prismatic]),:is(.preview-holo,.preview-prismatic) {--deck-sheen:linear-gradient(130deg,#b4ffff25,#c499f61a 52%,#ffc88e2a)}
body :is(#gameShell,.sample-card) .card:has(.index-top) {
  background-image:var(--card-pattern,none),var(--deck-sheen,linear-gradient(115deg,#fff3,transparent 38%,#0001 81%)),linear-gradient(150deg,var(--card-front-a,#fff7df),var(--card-front-b,#ddc9a0));
}
body #gameShell .hand-dialog > header {flex-wrap:nowrap}
body #gameShell .hand-dialog > header > div {display:block;min-width:0}
body #gameShell .hand-dialog-close {flex:0 0 44px}
@media (min-width:375px) and (max-width:540px) and (orientation:portrait) {
  body #gameShell .hand-dialog-cards:has(.card:nth-child(9)) {grid-template-columns:repeat(4,minmax(0,1fr))}
}

body #gameShell #bidPopin {bottom:max(var(--bid-bottom,6px),env(safe-area-inset-bottom))}
body #gameShell #bidPopin .bid-popin-footer > span {display:none}
@media (orientation:landscape) and (max-height:500px) {
  body #gameShell #bidPopin {
    left:max(6px,env(safe-area-inset-left));
    right:auto;
    margin-inline:0;
    width:calc(100% - max(182px,30%) - 12px);
  }
}
