/* =====================================================================
   FARIAS TRUCO — mesa de jogo, cartas, assentos, ações e efeitos
   ===================================================================== */

/* ---------------------------------------------------------------- cartas */
.card {
  --cw: 84px;
  position: relative; width: var(--cw); height: calc(var(--cw) * 1.42);
  border-radius: calc(var(--cw) * .085); flex: none;
  transform-style: preserve-3d;
}
.card .face, .card .back {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card .face {
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(165deg, #fffdf8 0%, #f6f0e2 60%, #ebe1cb 100%);
  color: #121214;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.7), 0 12px 26px -12px rgba(0,0,0,.95);
}
.card .face::before { /* filete dourado */
  content: ""; position: absolute; inset: 5.5%; border-radius: calc(var(--cw) * .05);
  border: 1px solid rgba(160,122,52,.42); pointer-events: none;
}
.card.red .face { color: var(--crimson); }
.card .idx {
  position: absolute; left: 7%; top: 5%; display: grid; justify-items: center; line-height: 1;
  font-family: var(--f-display); font-weight: 800; font-size: calc(var(--cw) * .25);
}
.card .idx svg { width: calc(var(--cw) * .15); height: calc(var(--cw) * .15); margin-top: 2px; }
.card .idx.br { left: auto; top: auto; right: 7%; bottom: 5%; transform: rotate(180deg); }
.card .pips { position: absolute; inset: 15% 22%; }
.card .pip { position: absolute; width: calc(var(--cw) * .2); height: calc(var(--cw) * .2); transform: translate(-50%, -50%); }
.card .pip.flip { transform: translate(-50%, -50%) rotate(180deg); }
.card .pip.ace { width: calc(var(--cw) * .46); height: calc(var(--cw) * .46); filter: drop-shadow(0 2px 1px rgba(0,0,0,.15)); }
.card .court {
  position: absolute; inset: 19% 21%; border-radius: calc(var(--cw) * .04);
  border: 1px solid rgba(160,122,52,.6);
  background: linear-gradient(160deg, rgba(201,164,92,.16), rgba(201,164,92,.04) 50%, rgba(201,164,92,.14));
  display: grid; place-items: center; align-content: center; gap: 2px;
}
.card .court .crown { width: 46%; height: auto; color: #9b7630; }
.card .court .letter { font-family: var(--f-display); font-weight: 800; font-size: calc(var(--cw) * .4); line-height: .9; }
.card .court svg.cs { width: calc(var(--cw) * .17); height: calc(var(--cw) * .17); }
.card.manilha .face { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 0 calc(var(--cw) * .025) var(--gold-hi), 0 0 calc(var(--cw) * .3) rgba(243,220,160,.45), 0 12px 26px -12px #000; }
.card.manilha .face::after { /* fita dourada de manilha */
  content: ""; position: absolute; right: -18%; top: 7%; width: 60%; height: 7%;
  background: var(--foil); transform: rotate(38deg); box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.card .back {
  background-color: #0a0a0b;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(243,220,160,.10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(201,164,92,.26) 0 1px, transparent 1px calc(var(--cw) * .1)),
    repeating-linear-gradient(-45deg, rgba(201,164,92,.26) 0 1px, transparent 1px calc(var(--cw) * .1));
  box-shadow: inset 0 0 0 calc(var(--cw) * .045) #0a0a0b, inset 0 0 0 calc(var(--cw) * .058) rgba(201,164,92,.8), 0 0 0 1px rgba(0,0,0,.6), 0 10px 22px -10px #000;
  transform: rotateY(180deg);
  display: grid; place-items: center;
}
.card .back .mono {
  width: 48%; aspect-ratio: .78; border-radius: 50%;
  background: #0a0a0b; box-shadow: 0 0 0 1px rgba(201,164,92,.85), 0 0 0 calc(var(--cw)*.025) #0a0a0b, 0 0 0 calc(var(--cw)*.035) rgba(201,164,92,.4);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: calc(var(--cw) * .17); letter-spacing: .04em;
}
.card .back .mono span { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card.down .face { transform: rotateY(180deg); }
.card.down .back { transform: rotateY(0deg); }
.card.covered .back::after { content: "encoberta"; position: absolute; bottom: 8%; font-size: calc(var(--cw) * .1); color: var(--gold); letter-spacing: .08em; }

/* ---------------------------------------------------------------- palco */
.game {
  position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  background: radial-gradient(130% 80% at 50% 0%, #121214 0%, #000 60%);
  overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.g-top { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 4px; }
.g-top .icon-btn { width: 42px; height: 42px; position: relative; flex: none; }
.g-tools { display: flex; gap: 6px; }
.g-top, .g-bottom, .me-line { min-width: 0; }
@media (max-width: 430px) {
  .g-top { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .g-top .icon-btn { width: 38px; height: 38px; }
  .g-tools { gap: 4px; }
  .g-tools .sound-btn { display: none; }
  .scoreplate { gap: 8px; padding: 5px 10px; }
  .sp-team { min-width: 36px; }
}

.scoreplate {
  display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 12px;
  padding: 6px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(28,28,31,.95), rgba(8,8,9,.95));
  border: 1px solid var(--hairline); box-shadow: 0 10px 30px -10px #000;
}
.sp-team { display: grid; justify-items: center; line-height: 1; min-width: 44px; }
.sp-team small { font-size: .7rem; color: var(--ash); font-weight: 700; margin-bottom: 3px; }
.sp-team b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; }
.sp-team.us b { color: var(--gold-hi); }
.sp-team.them b { color: var(--platinum); }
.sp-team b.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.sp-mid { display: grid; justify-items: center; gap: 5px; }
.value-badge { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--foil); color: #1b1203; white-space: nowrap; }
.value-badge.hot { animation: pulseGold 1.2s ease-in-out infinite; }
@keyframes pulseGold { 50% { box-shadow: 0 0 16px rgba(243,220,160,.8); } }
.trick-pips { display: flex; gap: 5px; }
.trick-pips i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.trick-pips i.us { background: var(--gold-hi); border-color: var(--gold-hi); }
.trick-pips i.them { background: var(--platinum); border-color: var(--platinum); }
.trick-pips i.tie { background: linear-gradient(90deg, var(--gold-hi) 50%, var(--platinum) 50%); border: 0; }

.g-stage { position: relative; min-height: 0; }
.rail {
  position: absolute; inset: 1% 3% 0; border-radius: 46% / 32%;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(255,255,255,.06), transparent 40%),
    linear-gradient(180deg, #1b1b1e, #08080a 50%, #121214);
  box-shadow: 0 40px 80px -20px #000, inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.8);
}
.felt {
  position: absolute; inset: 14px; border-radius: inherit;
  background-color: #08080a;
  background-image:
    radial-gradient(70% 55% at 50% 42%, rgba(255,244,220,.085), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 45%, #141416 0%, #060607 70%);
  box-shadow: 0 0 0 1.5px rgba(201,164,92,.8), 0 0 0 5px #070708, 0 0 0 6px rgba(201,164,92,.22), inset 0 0 90px rgba(0,0,0,.95), inset 0 0 0 1px rgba(0,0,0,.9);
  overflow: hidden;
}
.felt::after { /* inscrição gravada no feltro */
  content: "FARIAS TRUCO"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 800; letter-spacing: .4em; white-space: nowrap;
  font-size: clamp(.8rem, 3.4vw, 1.4rem); color: rgba(201,164,92,.07);
  text-shadow: 0 1px 0 rgba(0,0,0,.8);
}
.felt .crest { position: absolute; left: 50%; top: 50%; width: 34%; max-width: 220px; transform: translate(-50%, -50%); opacity: .055; color: var(--gold); }
@media (orientation: landscape) {
  .rail { inset: 2% 4% 1%; border-radius: 50%; }
}

/* centro: monte e vira */
.pile { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; justify-items: center; gap: 4px; }
.pile .stackwrap { position: relative; width: calc(var(--pcw) * 1.95); height: calc(var(--pcw) * 1.42); --pcw: clamp(34px, 8.5vw, 52px); }
.pile .card { --cw: var(--pcw); position: absolute; top: 0; }
.pile .vira { left: 52%; transform: rotate(90deg) translateY(-6%); }
.pile .deck { left: 0; }
.pile .deck:nth-child(2) { transform: translate(1px, -1px); }
.pile .deck:nth-child(3) { transform: translate(2px, -2px); }
.pile .tag { font-size: .66rem; color: var(--ash); white-space: nowrap; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.6); border: 1px solid var(--hairline-2); }
.pile .tag b { color: var(--gold-hi); }
.pile.mineiro .stackwrap { width: calc(var(--pcw) * 1.1); }

/* cartas na mesa */
.tcard { position: absolute; z-index: 5; --cw: clamp(40px, min(13.5vw, 15vh), 96px); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); transition: transform .45s var(--ease), opacity .45s, left .5s var(--ease), top .5s var(--ease); }
.tcard.win .face { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 30px rgba(243,220,160,.7), 0 14px 30px -10px #000; }
.tcard.win { z-index: 7; }
.tcard.lose { filter: brightness(.6); }
.tcard.gone { opacity: 0; }
.tcard .owner { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-size: .6rem; color: var(--ash); white-space: nowrap; }

/* ---------------------------------------------------------------- assentos */
.seat { position: absolute; z-index: 8; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; width: 104px; pointer-events: none; transition: left .4s var(--ease), top .4s var(--ease); }
.seat .av-wrap { position: relative; }
.seat .avatar { --s: clamp(40px, 11vw, 52px); }
.seat .ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; }
.seat .ring circle { fill: none; stroke: var(--gold-hi); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(243,220,160,.8)); }
.seat .ring circle.low { stroke: #f0a198; }
.seat .plate {
  max-width: 104px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; line-height: 1.3;
  background: rgba(8,8,9,.88); border: 1px solid var(--hairline); color: var(--ivory);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seat.them .plate { border-color: rgba(195,200,208,.35); }
.seat.them .avatar { box-shadow: inset 0 0 0 1.5px rgba(195,200,208,.6), 0 6px 16px -6px #000; color: var(--platinum); }
.seat.turn .avatar { box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 0 4px rgba(243,220,160,.18), 0 0 26px rgba(243,220,160,.55); }
.seat .flags { display: flex; gap: 3px; }
.seat .flag { font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--mist); }
.seat .flag.off { background: rgba(229,103,92,.18); color: #f6b0a8; }
.seat .flag.dealer { background: var(--foil); color: #1b1203; }
.seat .backs { position: absolute; top: 50%; display: flex; }
.seat .backs .card { --cw: clamp(18px, 5vw, 26px); margin-left: calc(var(--cw) * -.55); }
.seat .backs .card:first-child { margin-left: 0; }
.seat .backs.right { left: calc(100% + 4px); transform: translateY(-50%); }
.seat .backs.left { right: calc(100% + 4px); transform: translateY(-50%); }
.seat .partner-cards { display: flex; gap: 2px; margin-top: 2px; }
.seat .partner-cards .card { --cw: 30px; }
.bubble {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 6px 11px; border-radius: 14px; background: var(--ivory); color: #111; font-size: .8rem; font-weight: 700;
  white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 20px -8px #000; animation: bubble 2.8s var(--ease) forwards; z-index: 40;
}
.bubble.emoji { font-size: 1.6rem; background: none; box-shadow: none; padding: 0; }
.bubble.signal { background: var(--foil); }
@keyframes bubble { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -12px); } }

/* ---------------------------------------------------------------- base: mão e ações */
.g-bottom { position: relative; z-index: 25; display: grid; gap: 6px; padding: 0 8px calc(8px + var(--safe-b)); }
.me-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.me-plate { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(8,8,9,.85); border: 1px solid var(--hairline); pointer-events: none; }
.me-plate .avatar { --s: 32px; }
.me-plate b { font-size: .84rem; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-plate.turn { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 18px rgba(243,220,160,.5); }
.me-plate .timer { font-family: var(--f-ui); font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--gold-hi); min-width: 2ch; }
.status-line { font-size: .84rem; color: var(--mist); text-align: right; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-line b { color: var(--gold-hi); }

.hand { position: relative; height: calc(var(--hcw) * 1.42 + 18px); --hcw: clamp(74px, 22vw, 112px); }
.hcard {
  position: absolute; left: 50%; bottom: 4px; --cw: var(--hcw);
  transform: translateX(calc(-50% + var(--x, 0px))) translateY(var(--y, 0px)) rotate(var(--r, 0deg));
  transform-origin: 50% 110%;
  transition: transform .35s var(--ease), filter .2s, opacity .3s;
  border: 0; padding: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hcard.sel { --y: -26px; z-index: 5; }
.hcard.sel .face { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 28px rgba(243,220,160,.55), 0 18px 30px -10px #000; }
.hand.waiting .hcard { filter: brightness(.78) saturate(.8); }
.hand.myturn .hcard:not(.sel):hover { --y: -10px; }
.hcard.leaving { opacity: 0; transform: translateX(calc(-50% + var(--x, 0px))) translateY(-120px) scale(.7); }
.hand-tools { position: absolute; left: 50%; bottom: calc(var(--hcw) * 1.42 + 30px); transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; animation: fadeIn .2s; }
.hand-tools .btn { --h: 40px; font-size: .88rem; box-shadow: 0 10px 24px -8px #000; }

.dock { display: flex; justify-content: center; gap: 8px; min-height: 0; flex-wrap: wrap; }
.act { --h: 54px; min-width: 116px; font-size: 1rem; }
.act-raise { font-family: var(--f-display); font-weight: 800; letter-spacing: .08em; font-size: 1.15rem; min-width: 150px; }
.act-raise small, .act small { font-family: var(--f-ui); font-weight: 700; font-size: .7rem; letter-spacing: 0; opacity: .75; }
.act-accept { background: var(--ivory); color: #121214; border: 0; }
.act-accept:hover { background: #fff; }
.act-run { color: var(--mist); }

.prompt {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 8px;
  width: min(94vw, 440px); padding: 14px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(30,30,33,.97), rgba(10,10,11,.97)); border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px -12px #000; z-index: 40; animation: sheetUp .3s var(--ease);
}
.prompt h3 { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .06em; }
.prompt p { margin: 4px 0 12px; color: var(--mist); font-size: .9rem; }
.prompt .row { justify-content: center; flex-wrap: wrap; }
.prompt .pcards { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; flex-wrap: wrap; }
.prompt .pcards .card { --cw: 56px; }
.prompt .pcards .who { width: 100%; font-size: .75rem; color: var(--ash); }

/* ---------------------------------------------------------------- efeitos */
.stamp {
  position: fixed; left: 50%; top: 42%; z-index: 90; pointer-events: none; text-align: center;
  transform: translate(-50%, -50%);
}
.stamp b {
  display: block; font-family: var(--f-display); font-weight: 900; letter-spacing: .08em;
  font-size: clamp(3.2rem, 17vw, 7.5rem); line-height: 1;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #000) drop-shadow(0 0 30px rgba(243,220,160,.45));
  animation: stampIn 1.6s var(--ease) forwards;
}
.stamp span { display: block; margin-top: 6px; font-weight: 700; color: var(--ivory); text-shadow: 0 2px 6px #000; animation: fadeOut 1.6s ease forwards; }
.stamp.soft b { font-size: clamp(2.2rem, 11vw, 4.4rem); }
.stamp.grey b { background: linear-gradient(135deg, #8d8b86, #e6e3dc 50%, #8d8b86); -webkit-background-clip: text; background-clip: text; }
@keyframes stampIn {
  0% { transform: scale(2.6); opacity: 0; } 14% { transform: scale(.94); opacity: 1; } 22% { transform: scale(1.04); }
  30% { transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(1.06); }
}
@keyframes fadeOut { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 15%, 85% { transform: translate3d(-2px,0,0); } 30%, 70% { transform: translate3d(4px,0,0); } 45%, 55% { transform: translate3d(-6px,0,0); } }
.flash { position: fixed; inset: 0; z-index: 85; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(243,220,160,.28), transparent 60%); animation: fadeOut .7s ease forwards; }

.banner {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; pointer-events: none;
  padding: 14px 26px; border-radius: 20px; text-align: center; white-space: nowrap;
  background: rgba(6,6,7,.92); border: 1px solid var(--hairline); box-shadow: 0 20px 50px -10px #000;
  animation: bannerIn .5s var(--ease);
}
.banner b { display: block; font-family: var(--f-display); font-size: clamp(1.4rem, 6vw, 2rem); letter-spacing: .06em; }
.banner small { color: var(--mist); font-size: .85rem; }
.banner.us b { color: var(--gold-hi); }
.banner.them b { color: var(--platinum); }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, -40%) scale(.92); } }

.conn-pill { position: fixed; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); z-index: 95; padding: 7px 14px; border-radius: 99px; font-size: .82rem; font-weight: 700; background: #2a1414; border: 1px solid rgba(229,103,92,.5); color: #f6b0a8; }

.overlay {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(20,20,22,.88), rgba(0,0,0,.96));
  animation: fadeIn .5s ease;
}
.overlay canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.final { position: relative; text-align: center; display: grid; gap: 14px; justify-items: center; max-width: 420px; }
.final .title { font-family: var(--f-display); font-weight: 900; font-size: clamp(3rem, 15vw, 5.5rem); letter-spacing: .08em; line-height: 1; }
.final .title.lose { color: var(--platinum); }
.final .score { font-family: var(--f-display); font-size: 2rem; font-weight: 700; }
.final .score .us { color: var(--gold-hi); }
.final p { margin: 0; color: var(--mist); }
.final .row { justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- gavetas (chat, registro, menu) */
.drawer-back { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); animation: fadeIn .2s; }
.drawer {
  position: fixed; z-index: 101; left: 0; right: 0; bottom: 0; max-height: 78dvh;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px;
  padding: 16px 16px calc(14px + var(--safe-b)); border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #1b1b1e, #0b0b0c); border: 1px solid var(--hairline); border-bottom: 0;
  animation: sheetUp .3s var(--ease);
}
.drawer header { display: flex; align-items: center; justify-content: space-between; }
.drawer header h2 { font-family: var(--f-display); letter-spacing: .06em; }
.drawer .chat-log { max-height: none; }
.log-list { overflow-y: auto; display: grid; gap: 4px; align-content: start; font-size: .86rem; }
.log-list div { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); color: var(--mist); }
.log-list div b { color: var(--ivory); }
.log-list .hand-sep { background: none; color: var(--gold); font-weight: 700; font-size: .75rem; padding-top: 10px; }
.menu-list { display: grid; gap: 8px; align-content: start; overflow-y: auto; }
.vol { display: grid; gap: 8px; }
.vol input[type=range] { width: 100%; accent-color: var(--gold); }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.signal-grid .chip { min-height: 44px; text-align: left; border-radius: 12px; }

@media (min-width: 900px) {
  .drawer { left: auto; top: 0; width: 400px; max-height: none; border-radius: 24px 0 0 24px; border: 1px solid var(--hairline); border-right: 0; animation: slideIn .3s var(--ease); }
  @keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
  .g-bottom { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .g-bottom .me-line { grid-column: 1; align-self: end; flex-direction: column; align-items: flex-start; }
  .g-bottom .hand { grid-column: 2; width: 560px; }
  .g-bottom .dock { grid-column: 3; justify-content: flex-end; align-self: end; padding-bottom: 10px; }
  .status-line { text-align: left; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hand { --hcw: clamp(56px, 13vh, 74px); }
  .g-top { padding-top: 4px; }
  .sp-team b { font-size: 1.3rem; }
  .act { --h: 44px; min-width: 96px; }
  .g-bottom { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .g-bottom .me-line { grid-column: 1; flex-direction: column; align-items: flex-start; }
  .g-bottom .hand { grid-column: 2; width: 300px; }
  .g-bottom .dock { grid-column: 3; justify-content: flex-end; }
  .seat .avatar { --s: 34px; }
  .seat .flags { display: none; }
  .seat .plate { font-size: .68rem; padding: 2px 8px; }
  .seat { gap: 1px; }
}
@media (min-width: 1200px) and (min-height: 760px) {
  .seat .avatar { --s: 62px; }
  .seat .plate { font-size: .86rem; }
  .seat { width: 130px; }
  .seat .backs .card { --cw: 30px; }
}
