@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--bg:#141327;--panel:#201e37;--line:#35314e;--text:#faf6ff;--muted:#b9b2cf;--lime:#e4fd75;--purple:#b8a4ff;--coral:#ff806c;--gold:#ffcb63;--mint:#63e0ab;--blue:#87a9ff;font-family:Outfit,system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 82% 0%,#26203f 0,transparent 48%),var(--bg);color:var(--text);min-height:100vh}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.45}
a{color:inherit;text-decoration:none}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--purple);outline-offset:4px}
.shell{max-width:1280px;margin:auto;padding:0 46px;min-height:100vh;display:flex;flex-direction:column}
header,footer{min-height:85px;display:flex;justify-content:space-between;align-items:center;gap:12px}
header{border-bottom:1px solid var(--line)}
.brand,.header-right,.actions,.row,.controls,.tags{display:flex;align-items:center;gap:12px}
.brand{font-size:35px;font-weight:900;letter-spacing:-.07em;line-height:1}
.brandmark{display:grid;place-items:center;background:var(--lime);color:#211b36;border-radius:8px;width:35px;height:35px;transform:rotate(-12deg);font-size:24px}
.dot{color:var(--lime)}
.connection,footer{color:var(--muted);font-size:.88rem}
footer{border-top:1px solid var(--line);margin-top:auto}
footer span:first-child,.eyebrow{font-size:.8rem;letter-spacing:.16em;font-weight:800}
main{padding:48px 0;flex:1}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(3rem,7vw,6.8rem);line-height:.9;letter-spacing:-.075em;font-weight:900}
h2{font-size:1.65rem;letter-spacing:-.035em}
h3{font-size:1.05rem}
p{color:var(--muted);line-height:1.55}
.eyebrow{color:var(--lime);margin-bottom:18px}
.quiet,.secondary,.primary,.danger{border-radius:11px;border:1px solid var(--line);color:var(--text);background:#2a2544;padding:10px 15px;font-weight:700;transition:background .18s,transform .18s}
.quiet{background:transparent}
.primary{background:var(--lime);color:#211b36;border-color:transparent;box-shadow:0 3px 0 #99a84f}
.danger{color:#ffab9c;background:transparent}
button:not(:disabled):hover{filter:brightness(1.1)}
.primary:not(:disabled):active{transform:translateY(2px);box-shadow:none}
.hero{display:grid;grid-template-columns:1.05fr 1fr;min-height:418px;overflow:hidden;border:1px solid #40355d;border-radius:27px;background:radial-gradient(ellipse at 76% 60%,#45306a,transparent 65%),#231d3c}
.hero-copy{align-self:center;padding:40px 0 46px 42px;z-index:1}
.hero h1 span{color:var(--lime)}
.hero p{margin-top:24px;max-width:345px;font-size:1.12rem}
.pack{display:grid;place-items:center;position:relative;min-height:290px;isolation:isolate}
.pack::before,.pack::after{content:'';position:absolute;border:1px solid #8463b563;border-radius:50%;width:80%;aspect-ratio:1.2;transform:rotate(-19deg);z-index:-1}
.pack::after{width:64%;transform:rotate(23deg)}
.spark{position:absolute;color:var(--lime);font-size:2.5rem}
.spark.one{left:12%;top:19%}.spark.two{right:12%;bottom:18%;color:var(--purple);font-size:1.8rem}
.card{--ink:var(--purple);width:84px;aspect-ratio: .69;border:3px solid var(--ink);border-radius:12px;background:var(--ink);color:#1c1834;position:relative;display:grid;place-items:center;font-weight:900;padding:0;box-shadow:0 4px 0 #100d2377;flex:none;isolation:isolate}
.card::before{content:'';position:absolute;width:72%;height:73%;background:#fff5;border-radius:50%;transform:rotate(25deg);z-index:-1}
.card strong{font-size:2.3rem;line-height:1}
.card small{position:absolute;top:5px;left:7px;font-weight:800;font-size:.78rem}
.card small:last-child{top:auto;left:auto;bottom:5px;right:7px;transform:rotate(180deg)}
.card.coral,.swatch.coral{--ink:var(--coral)}.card.gold,.swatch.gold{--ink:var(--gold)}.card.mint,.swatch.mint{--ink:var(--mint)}.card.blue,.swatch.blue{--ink:var(--blue)}
.card.wild{background:conic-gradient(var(--gold) 25%,var(--mint) 0 50%,var(--blue) 0 75%,var(--coral) 0)}
.card.white{--ink:#f2eefa}
.pack .card{position:absolute;width:clamp(112px,15vw,167px);border:5px solid #201632;border-radius:20px;box-shadow:0 10px 20px #150f2a77}
.pack .card strong{font-size:clamp(3rem,6.5vw,5.5rem)}
.pack .card small{font-size:1.1rem;top:10px;left:10px}
.pack .card small:last-child{top:auto;left:auto;right:10px;bottom:10px}
.pack .card:nth-of-type(1){transform:translate(-58%,1%) rotate(-25deg)}
.pack .card:nth-of-type(2){transform:translate(57%,5%) rotate(23deg)}
.pack .card:nth-of-type(3){transform:translate(0,-5%) rotate(-5deg)}
.entry,.layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:19px;padding:23px;min-width:0}
.panel p{margin:7px 0 16px}
.panel form,.join-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
label.field{display:grid;gap:7px;color:var(--muted);flex:1;min-width:125px}
input[type=text]{background:#151324;color:var(--text);border:1px solid #494261;padding:10px 12px;border-radius:9px;width:100%}
.join-code{text-transform:uppercase;letter-spacing:.13em}
.room-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.room-head h1{font-size:clamp(2.65rem,6vw,4.8rem)}
.layout{grid-template-columns:minmax(0,1.65fr) minmax(235px,1fr)}
.stack{display:grid;gap:16px;align-content:start;min-width:0}
.actions{flex-wrap:wrap}
.spread{justify-content:space-between}
.room-code{font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:.15em;font-weight:900;color:var(--lime)}
.player{display:flex;gap:9px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}
.player:last-child{border-bottom:0}
.avatar{display:grid;place-items:center;background:#443669;color:#e4d9ff;width:34px;height:34px;border-radius:10px;font-weight:800;flex:none}
.player-info{flex:1;min-width:0;overflow-wrap:anywhere}
.player-info small,.muted{color:var(--muted)}
.player.current{color:var(--lime)}
.player .quiet{padding:5px 7px;font-size:.8rem}
.player strong{white-space:nowrap}
.rule{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.rule:last-child{border-bottom:0}
.rule input{width:1.25rem;height:1.25rem;accent-color:var(--lime);flex:none}
.table{min-height:330px;background:radial-gradient(ellipse at center,#463269,#28203f 74%);position:relative;text-align:center;overflow:hidden}
.table::before{content:'';position:absolute;inset:12px;border:1px solid #8a6eb650;border-radius:14px;pointer-events:none}
.table h2{color:var(--lime)}
.table .piles{display:flex;justify-content:center;align-items:center;gap:clamp(18px,7vw,70px);min-height:169px}
.pile{display:grid;justify-items:center;gap:9px;position:relative}
.pile span{color:#ddd2f3;font-size:.84rem}
.deck{--ink:#544476;background:#251b40;color:var(--lime);box-shadow:3px 4px 0 #76609c,6px 8px 0 #3b2d55}
.deck::before{background:#493660}
.deck strong{font-size:2.1rem;letter-spacing:-.08em;transform:rotate(-12deg)}
.delta{position:absolute;top:0;right:-15px;background:var(--lime);color:#211b36;border-radius:20px;padding:5px 9px;font-weight:900;z-index:2}
.controls{justify-content:center;flex-wrap:wrap}
.hand{display:flex;gap:8px;overflow:auto;padding:13px 4px 8px;min-height:116px}
.hand .card{width:clamp(62px,8vw,78px)}
.hand .card:not(:disabled):hover{transform:translateY(-7px)}
.hand .card:disabled{opacity:.63}
.card-caption{font-size:.85rem;color:var(--muted)}
.swatch{background:var(--ink);color:#211b36;border:0;border-radius:10px;padding:12px;font-weight:800}
dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;max-width:min(92vw,490px);padding:24px}
dialog::backdrop{background:#110c21c9}
dialog p{margin:10px 0}
dialog .actions{flex-wrap:wrap;margin-top:18px}
#toast{position:fixed;bottom:20px;right:20px;z-index:5;background:#342950;border:1px solid #695786;padding:12px 17px;border-radius:12px;max-width:min(85vw,380px)}
#toast:empty{display:none}
.flight{position:fixed!important;z-index:6;pointer-events:none}
@media(max-width:760px){.shell{padding:0 20px}.hero-copy{padding:30px 0 30px 26px}main{padding:30px 0}.layout{grid-template-columns:1fr}}
@media(max-width:520px){.shell{padding:0 13px}.connection{display:none}header,footer{min-height:64px}.hero,.entry{grid-template-columns:1fr}.hero-copy{padding:28px 22px 0}.hero p{margin-top:13px}.pack{min-height:245px}.panel{padding:16px}.room-head{align-items:start}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* The game surface projects the felt and piles behind the upright cards in hand. */
.in-round header{min-height:66px}
.in-round main{padding:16px 0 32px}
.in-round .room-head{margin-bottom:12px}
.in-round .room-head .eyebrow{margin-bottom:5px}
.in-round .room-head h1{font-size:clamp(2rem,5vw,3.25rem)}
.game-layout{grid-template-columns:minmax(0,1fr);margin-top:0}
.game-layout>aside{grid-template-columns:minmax(0,2fr) minmax(215px,1fr)}
.table{
  --active-card:var(--mint);
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(230px,1fr) auto auto;
  isolation:isolate;
  border:1px solid #504477;
  border-radius:24px;
  background:radial-gradient(ellipse at 50% 46%,#352653 0%,#221b3a 59%,#141126 100%);
  box-shadow:0 15px 42px #08061370,inset 0 1px #d5bcff28;
  text-align:center;
  overflow:hidden;
}
.table[data-color=coral]{--active-card:var(--coral)}
.table[data-color=gold]{--active-card:var(--gold)}
.table[data-color=blue]{--active-card:var(--blue)}
.table::before{inset:9px;border-radius:17px;border-color:#a28ac839;z-index:-1}
.table-seats{display:flex;justify-content:center;align-items:start;flex-wrap:wrap;gap:12px 24px;padding:12px 18px 0}
.table-seat{display:grid;justify-items:center;align-content:start;width:clamp(82px,10vw,135px);color:var(--muted)}
.table-seat small{font-size:.78rem}
.seat-label{
  display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:4px 6px 4px 10px;
  white-space:nowrap;background:#1a152b;border:1px solid #685685;border-radius:8px;
  color:var(--text);font-size:.84rem;font-weight:700
}
.seat-label span:first-child{overflow:hidden;text-overflow:ellipsis}
.seat-count{min-width:23px;padding:1px 4px;border-radius:4px;background:#4b386e}
.is-turn .seat-label{border-color:var(--lime);box-shadow:0 0 16px #d9f96752}
.is-turn .seat-count{background:var(--lime);color:var(--bg)}
.opponent-hand{
  display:flex;justify-content:center;align-items:center;min-height:48px;width:100%;
  perspective:450px;filter:drop-shadow(0 7px 4px #100a1c95)
}
.card-back{
  display:block;width:26px;height:36px;margin-left:-10px;border-radius:4px;border:2px solid #b8a4ef;
  background:repeating-linear-gradient(134deg,#4b3774 0 3px,#322658 3px 7px);
  transform:rotateX(-20deg) rotateZ(-5deg);box-shadow:0 2px 0 #160e2b
}
.card-back:first-child{margin-left:0}
.card-back:nth-child(even){transform:rotateX(-20deg) rotateZ(4deg)}
.table-center{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;position:relative;isolation:isolate;padding:9px 12px 6px;perspective:730px}
.felt{
  position:absolute;inset:-25% 4% -36%;z-index:-1;pointer-events:none;
  border:clamp(9px,2.2vw,27px) solid #302049;border-radius:47% / 43%;
  background:
    radial-gradient(ellipse at 51% 49%,#9467e34a,transparent 64%),
    repeating-linear-gradient(45deg,#cfa6ff0a 0 1px,transparent 1px 4px),
    radial-gradient(ellipse,#573d78,#342451 78%);
  box-shadow:0 8px 0 #201433,0 18px 0 #140e23,0 32px 38px #0b081d9e,inset 0 0 0 2px #a98bdb80,inset 0 0 65px #1c103fbd;
  transform:rotateX(44deg) translateY(-3%)
}
.felt::after{content:'';position:absolute;inset:9%;border:1px dashed #b692e65c;border-radius:inherit}
.turn-status{z-index:1;min-width:min(100%,245px);padding:5px 12px;background:#1d1530d9;border:1px solid #7a629e86;border-radius:12px}
.turn-status h2{font-size:clamp(1.1rem,3vw,1.5rem)}
.turn-status p{font-size:.88rem;line-height:1.32;margin-top:2px}
.table .piles{width:100%;min-height:150px;gap:clamp(42px,10vw,130px);perspective:700px}
.table .pile>span{font-weight:700;letter-spacing:.025em;text-shadow:0 2px 5px #110a21}
.table .pile{gap:0}
.table .pile .card{width:clamp(66px,10vw,91px)}
.table .deck{
  transform:rotateX(36deg) rotateZ(-10deg);
  border-color:#ab94e1;
  box-shadow:1px 3px #bfaee8,2px 6px #9076c1,3px 9px #7a61ae,4px 12px #644b95,5px 15px #4e386f,9px 23px 16px #150d27;
}
.table button.deck:hover:not(:disabled){transform:translateY(-7px) rotateX(34deg) rotateZ(-7deg);filter:brightness(1.2)}
.discard-stack{position:relative;isolation:isolate;transform:rotateX(34deg) rotateZ(7deg)}
.discard-stack::before,.discard-stack::after{
  content:'';position:absolute;inset:3% 1% 0;border-radius:12px;z-index:-1;
  box-shadow:0 5px 12px #160e2a;background:#79629d;border:1px solid #ae97d9;
  transform:translate(-5px,4px) rotate(-12deg)
}
.discard-stack::after{transform:translate(4px,4px) rotate(8deg);background:#48375f}
.table .delta{
  right:auto;left:72%;top:-10px;font-size:1.65rem;line-height:1;padding:7px 11px;
  color:var(--bg);background:var(--active-card);border:2px solid #fff8;box-shadow:0 3px 16px #16091abb
}
.table-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center;z-index:1}
.table-meta span{
  display:flex;gap:6px;align-items:center;padding:4px 9px;border:1px solid #9d7fd192;border-radius:99px;
  background:#1e1632;font-size:.79rem;color:var(--text)
}
.table-meta i{width:9px;height:9px;background:var(--active-card);border-radius:50%;box-shadow:0 0 8px var(--active-card)}
.table .controls{min-height:47px;padding:5px 12px;z-index:1}
.hand-area{
  position:relative;min-width:0;margin:4px 11px 11px;padding:9px 14px 6px;border-radius:14px;
  background:linear-gradient(#281e40df,#181225);box-shadow:inset 0 1px #9a7ebc65
}
.hand-area h2{font-size:1.08rem;text-align:left}
.hand-area .hand{width:max-content;max-width:100%;margin:0 auto;gap:5px;padding:20px 7px 10px;perspective:760px}
.hand-area .card{width:clamp(65px,8.3vw,94px);transform:rotateX(-10deg) rotateZ(-2deg);transition:transform 280ms,filter 280ms}
.hand-area .card:nth-child(even){transform:rotateX(-10deg) rotateZ(2deg)}
.hand-area .card:not(:disabled){box-shadow:0 0 0 1px #fff9,0 5px 0 #1c132f,0 0 15px color-mix(in srgb,var(--ink),transparent 55%)}
.hand-area .card:not(:disabled):is(:hover,:focus-visible){transform:translateY(-10px) rotateX(0) scale(1.035);z-index:2}
.hand-area .card:disabled{opacity:.77;filter:saturate(.67) brightness(.86)}
.swatch{box-shadow:inset 0 2px #fff7,0 5px color-mix(in srgb,var(--ink),#18122c 43%);min-width:74px;margin-bottom:5px}
@media(max-width:620px){
  .table{grid-template-rows:auto minmax(229px,1fr) auto auto;border-radius:16px}
  .table-seats{gap:8px;padding:12px 8px 0}
  .opponent-hand{min-height:37px}
  .card-back{width:20px;height:29px;margin-left:-9px}
  .table .piles{min-height:125px}
  .game-layout>aside{grid-template-columns:1fr}
  .hand-area{margin-inline:7px;padding-inline:8px}
  .table .controls .primary,.table .controls .secondary{padding:7px 10px}
}

/* Seat positions follow the same clockwise order as the rules engine. */
.table{grid-template-rows:auto auto auto auto}
.table-center{
  min-height:clamp(290px,33vw,370px);
  display:flex;flex-direction:column;align-items:center;justify-content:end;
  padding:0 12px 11px;
}
.felt{inset:-8% 3% -13%;transform:rotateX(44deg)}
.table-seats{position:absolute;inset:0;padding:0;display:block;pointer-events:none;z-index:2}
.table-seat{
  position:absolute;left:var(--seat-x,50%);top:var(--seat-y,10%);transform:translate(-50%,-50%);
  width:clamp(58px,10vw,124px);gap:2px;
}
.opponent-hand{transform:rotate(var(--seat-tilt,0deg));min-height:38px}
.is-target .seat-label{border-color:#ffb872;box-shadow:0 0 17px #ff9e5e65}
.is-target small,.draw-target{color:#ffcb90}
.table .piles{min-height:164px;align-self:stretch;width:auto;gap:clamp(24px,10vw,135px);padding-bottom:6px}
.table .piles #draw-pile{translate:0 -7%;z-index:1}
.table .piles #discard{z-index:0}
.table-meta{z-index:2}
.table .turn-status{justify-self:center;min-width:min(92%,315px);margin:7px 10px 0}
.turn-ring{
  position:absolute;top:43%;left:50%;width:clamp(121px,22vw,220px);aspect-ratio:1;
  border-radius:50%;z-index:-1;pointer-events:none;
  border:2px solid color-mix(in srgb,var(--active-card),transparent 40%);
  box-shadow:0 0 17px color-mix(in srgb,var(--active-card),transparent 63%);
  transform:translate(-50%,-50%) rotateX(52deg);
}
.turn-ring.counterclockwise{transform:translate(-50%,-50%) rotateX(52deg) scaleX(-1)}
.turn-ring i{
  --angle:0deg;position:absolute;inset:-2px;transform:rotate(var(--angle));border-radius:50%;
}
.turn-ring i:nth-child(2){--angle:120deg}
.turn-ring i:nth-child(3){--angle:240deg}
.turn-ring i::before{
  content:'';position:absolute;top:0;left:50%;width:27px;height:24px;translate:-50% -50%;
  background:var(--active-card);
  clip-path:polygon(0 35%,56% 35%,56% 0,100% 50%,56% 100%,56% 65%,0 65%);
}
@media(max-width:620px){
  .table{grid-template-rows:auto auto auto auto}
  .table-center{min-height:295px}
  .table-seat{width:clamp(52px,15vw,80px)}
  .seat-label{gap:4px;padding:3px 4px;font-size:.73rem}
  .seat-count{min-width:16px;padding:0 2px}
  .opponent-hand{min-height:28px}
  .card-back{width:15px;height:22px;margin-left:-10px}
  .table-seat small{font-size:.68rem}
  .table .piles{min-height:157px;gap:clamp(13px,7vw,38px)}
  .table .pile .card{width:65px}
  .turn-ring i::before{width:19px;height:19px}
}
.table-center{min-height:clamp(250px,24vw,290px)}
.table .piles{display:grid;grid-template-columns:1fr auto 1fr;gap:0}
.table .piles #draw-pile{justify-self:end;margin-right:clamp(21px,8vw,116px)}
.table .piles #discard{grid-column:2}
@media(max-width:620px){
  .table-center{min-height:269px}
  .table .piles #draw-pile{margin-right:clamp(16px,5vw,32px)}
}

/* The draw pile is the draw control on your turn. */
#draw-pile.can-draw>span{color:var(--lime)}
.table #draw-pile.can-draw .deck{border-color:var(--lime);animation:deck-ready 1.6s ease-in-out infinite}
@keyframes deck-ready{
  0%,100%{filter:drop-shadow(0 0 0 #e4fd7500)}
  50%{filter:drop-shadow(0 0 14px #e4fd75aa)}
}

/* Seated 3D view: you sit at the near edge, the felt runs away from you under a lamp,
   and your hand fans up in front of the rail. */
.table{grid-template-rows:auto auto;overflow:hidden}
.table-center{
  min-height:clamp(380px,40vw,500px);justify-content:center;padding:0 12px 96px;
  perspective:1000px;perspective-origin:50% 0%
}
.felt{
  inset:2% -4% -22%;transform:rotateX(58deg);transform-origin:50% 40%;
  border-width:clamp(12px,2.6vw,32px);border-color:#3a2757;
  background:
    radial-gradient(ellipse 46% 52% at 50% 46%,#c9a2ff3d,transparent 70%),
    repeating-linear-gradient(45deg,#cfa6ff0a 0 1px,transparent 1px 4px),
    radial-gradient(ellipse,#5d4183,#2e2048 80%);
  box-shadow:0 10px 0 #24173a,0 22px 0 #150e25,0 40px 50px #07040fd0,inset 0 0 0 2px #a98bdb70,inset 0 0 90px #12092ad0
}
.lamp{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse 34% 40% at 50% 44%,#fff3d814,transparent 70%),
    radial-gradient(ellipse 75% 80% at 50% 42%,transparent 45%,#08051399 100%)
}
.table-seats{z-index:3}
.table .turn-status{
  position:absolute;top:16px;left:18px;z-index:4;margin:0;min-width:0;max-width:min(240px,32%);
  text-align:left;padding:8px 12px;background:#140f22d9;backdrop-filter:blur(4px)
}
.table .turn-status .table-meta{justify-content:flex-start;margin-top:6px}
.table .turn-status .table-meta span{font-size:.72rem;padding:2px 8px}
.table .piles{min-height:190px;z-index:2;perspective:900px;perspective-origin:50% -60%}
.table .pile .card{width:clamp(78px,8.6vw,104px)}
.table .deck{transform:rotateX(54deg) rotateZ(-12deg);box-shadow:1px 3px #bfaee8,2px 6px #9076c1,3px 9px #7a61ae,4px 12px #644b95,5px 15px #4e386f,14px 30px 22px #0a0618cc}
.table button.deck:hover:not(:disabled){transform:translateY(-10px) rotateX(48deg) rotateZ(-8deg)}
.discard-stack{display:grid;transform:rotateX(54deg) rotateZ(4deg)}
.discard-stack::before,.discard-stack::after{display:none}
.pile-card{grid-area:1/1;transform:translate(var(--x,0),var(--y,0)) rotate(var(--r,0deg))}
.pile-card .card{box-shadow:0 2px 0 #1b1230,6px 12px 14px #0a0618aa}
.pile-card:not(:last-child) .card{filter:brightness(.78) saturate(.85)}
.turn-ring{top:52%}
.table .delta{z-index:3}

.hand-area{margin:-104px 0 0;padding:0 12px 10px;background:none;box-shadow:none;z-index:3;position:relative}
.hand-area .hand{width:auto;max-width:none;overflow:visible;justify-content:center;padding:46px 12px 0;perspective:none}
.hand-area .hand .card{
  width:clamp(78px,8.8vw,108px);flex:none;transform-origin:50% 130%;z-index:var(--z,1);
  transform:translateY(var(--fan-y,0px)) rotate(var(--fan-rot,0deg));
  transition:transform 280ms,filter 280ms,margin 280ms;
  box-shadow:0 2px 0 #1c132f,0 16px 22px #07040fb0
}
.hand-area .hand .card:not(:disabled){
  transform:translateY(calc(var(--fan-y,0px) - 14px)) rotate(var(--fan-rot,0deg));
  box-shadow:0 0 0 2px #fffc,0 2px 0 #1c132f,0 22px 26px #07040fb0,0 0 18px color-mix(in srgb,var(--ink),transparent 45%)
}
.hand-area .hand .card:not(:disabled):is(:hover,:focus-visible){
  transform:translateY(calc(var(--fan-y,0px) - 46px)) rotate(0deg) scale(1.12);z-index:100
}
.hand-area .hand .card:disabled{opacity:1;filter:saturate(.55) brightness(.62)}
.hand-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin-top:10px;
  padding:8px 14px;border-radius:12px;background:linear-gradient(#1d1630,#120d1f);box-shadow:inset 0 1px #9a7ebc45}
.hand-bar h2{font-size:1rem;text-align:left}
.hand-bar>label,.hand-bar>span{justify-self:end}
.hand-bar .controls{min-height:0;padding:0}
.hand-bar p{grid-column:1/-1;margin:0}

.flight{position:fixed;z-index:6;pointer-events:none;transform-style:preserve-3d}
.flight .flip{position:relative;width:100%;aspect-ratio:.69;transform-style:preserve-3d}
.flight .face{position:absolute;inset:0;backface-visibility:hidden}
.flight .face.back{transform:rotateY(180deg)}
.flight .face>.card{width:100%;height:100%;box-shadow:none}
.flight-shadow{position:fixed;z-index:5;pointer-events:none;border-radius:14px;background:#07040f;filter:blur(9px)}

@media(max-width:620px){
  .table-center{min-height:330px;padding-bottom:80px}
  .table .turn-status{top:8px;left:8px;max-width:46%;padding:6px 8px}
  .table .turn-status .table-meta{display:none}
  .hand-area{margin-top:-84px}
  .hand-area .hand .card{width:64px}
  .table .pile .card{width:66px}
  .hand-bar{grid-template-columns:1fr auto}
  .hand-bar>label,.hand-bar>span{grid-column:1/-1;justify-self:start}
}

/* Turn status lives in the bar under your hand, clear of the seats. */
.hand-bar .turn-status{position:static;max-width:none;min-width:0;margin:0;padding:0;background:none;border:0;backdrop-filter:none;text-align:left}
.hand-bar .turn-status h2{font-size:1.15rem;color:var(--lime)}
.hand-bar .turn-status p{font-size:.85rem;margin:1px 0 0}
.hand-bar .table-meta{justify-content:flex-start;margin-top:5px}
.hand-bar .table-meta span{font-size:.72rem;padding:2px 8px}
.hand-bar{align-items:start}
.hand-bar .controls{align-self:center}
.hand-bar>label,.hand-bar>span{align-self:center}
.hand-area .hand{gap:0}
.hand-bar{margin-top:26px}
.hand-bar .turn-status{justify-self:start}
@media(max-width:620px){.hand-bar{margin-top:18px}}

/* Direction reversed banner */
.reverse-banner{
  position:absolute;left:50%;top:44%;z-index:5;pointer-events:none;
  display:grid;justify-items:center;gap:2px;padding:14px 30px 16px;border-radius:18px;
  background:linear-gradient(135deg,#1b1330f2,#2b1f48f2);border:2px solid var(--active-card);
  box-shadow:0 0 40px color-mix(in srgb,var(--active-card),transparent 50%),0 18px 40px #07040fcc;
  transform:translate(-50%,-50%);white-space:nowrap
}
.reverse-banner b{font-size:3.4rem;line-height:1;color:var(--active-card);display:block}
.reverse-banner span{font-size:1.6rem;font-weight:900;letter-spacing:-.03em}
.reverse-banner small{color:var(--muted);font-size:.9rem}
@media(max-width:620px){.reverse-banner{padding:10px 16px}.reverse-banner b{font-size:2.4rem}.reverse-banner span{font-size:1.15rem}.reverse-banner small{font-size:.72rem}}
