:root { --felt:#dfdac1; --felt-dark:#20292e; --felt-glow:#faf3db; --panel:#f2ecd6; --sheet:#f4efd9; --text:#25383b; --muted:#4c5c5f; --gold:#096d79; --gold-deep:#07535d; --win:#257e5b; --paper:#f8f0d7; --ink:#233242; --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px); --safe-l:env(safe-area-inset-left,0px); --safe-r:env(safe-area-inset-right,0px); }
.brand h1 { text-transform:uppercase; letter-spacing:1px; color:#076f7b; text-shadow:1px 2px #fff5d7; }
.brand-vault { background:center/contain no-repeat url('art/dossier.svg'); height:145px; font-size:0!important; }
.panel { border-color:#5e62553d; }
.btn.gold { background:linear-gradient(#bd493f,#a83331);color:#fff9e7;box-shadow:0 3px #772d28; }
.btn.ghost,.count-picker button { border-color:#45585777; }
.count-picker button { background:#fff8e1; }.count-picker button.on { background:#cce0d8; }
.field input { background:#fff9e7; border-color:#45585766; }
.back-link { color:#155c66; }.sheet .close { background:#25383b18; }
.game-item,.seat-list li { background:#3445410b; }
.overlay { padding:max(8px,var(--safe-t)) max(12px,var(--safe-r)) max(8px,var(--safe-b)) max(12px,var(--safe-l)); }
.sheet { border-color:#5e625555; max-width:100%; max-height:calc(100vh - max(8px,var(--safe-t)) - max(8px,var(--safe-b))); }
.brand-vault { font-size:62px; color:var(--gold); line-height:1; text-shadow:2px 3px #000; }
.toggle-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:12px 0; font-size:18px; font-weight:bold; }
.toggle-row input { width:22px; height:22px; accent-color:var(--gold); }
.toggle-row small { flex-basis:100%; margin-left:30px; color:var(--muted); font-size:14px; font-weight:normal; }
.linkbtn { display:block; text-align:center; text-decoration:none; margin-top:8px; }
.howto { font-size:16px; line-height:1.45; }
.howto h3 { color:var(--gold); margin:18px 0 5px; }
.howto a { color:var(--gold); }
.howto p { margin:7px 0; }
.icon-btn { width:36px; height:36px; border:1px solid #45585777; border-radius:8px; background:#fff8e3; font-size:21px; }
#table { --ch:110px; --cw:77px; --tw:65px; --th:94px; background:radial-gradient(circle at 20% 30%,#695f3c17 0 1px,transparent 2px) 0 0/17px 23px,repeating-linear-gradient(173deg,#fff7dc0c 0 2px,transparent 2px 13px),radial-gradient(ellipse at 48% 40%,#f4edd6,#d9d8c2 80%);border-top:5px solid #a93835; }
.le-top { position:absolute; top:calc(6px + var(--safe-t)); left:calc(100px + var(--safe-l)); right:calc(100px + var(--safe-r)); display:flex; justify-content:space-between; gap:12px; align-items:flex-start; height:38px; }
.le-top b { display:block; font-family:Georgia,serif; font-size:19px; color:var(--gold); white-space:nowrap; }
#trumpLabel { font-size:12px; }
.tools { display:flex; gap:4px; }
.tools .btn { padding:6px 8px; font-size:13px; }
.seat { position:absolute; display:flex; align-items:center; gap:5px; width:92px; border:1px solid #7d8c85; border-radius:9px; padding:6px; background:#f6f0dce0; z-index:3; text-align:left; cursor:pointer;box-shadow:1px 2px 0 #25383b18; }
.seat.side { transform:translateY(-50%); }.seat.side.left { left:calc(6px + var(--safe-l)); }.seat.side.right { right:calc(6px + var(--safe-r)); }
.seat .avatar { width:29px; height:29px; font-size:15px; }
.seat .seat-main { min-width:0; flex:1; font-size:13px; line-height:1.15; }
.seat .nm { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.seat .sub { color:var(--muted); font-size:12px; display:block; }
.seat.active { border:2px solid var(--gold); background:#d9e8dc; }
.seat.tight { padding:4px; }.seat.tighter { gap:3px; padding:3px; }.seat.tightest .avatar { width:24px; height:24px; font-size:13px; }
#me { left:calc(6px + var(--safe-l)); bottom:calc(8px + var(--safe-b)); width:92px; }
#center { position:absolute; top:calc(50px + var(--safe-t)); bottom:calc(var(--ch) + 30px + var(--safe-b)); left:calc(105px + var(--safe-l)); right:calc(285px + var(--safe-r)); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; min-height:0; }
#announcement { color:var(--gold); font-weight:bold; text-align:center; font-size:clamp(14px,4.2vh,19px); }
#announcement:empty { display:none; }
#trickArea { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; flex:1; min-height:0; }
.trick-slot { display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12px; min-width:0; }
.trick-slot .card { width:var(--tw); height:var(--th); flex:none; }
.trick-slot b { white-space:nowrap; max-width:var(--tw); overflow:hidden; text-overflow:ellipsis; }
.trick-slot.winner .card { box-shadow:0 0 0 3px var(--gold),0 0 18px #edc96877; }
.trick-slot.lead b::before { content:'↗ '; color:var(--gold); }
#decision { position:absolute; left:auto; right:calc(103px + var(--safe-r)); width:174px; top:calc(51px + var(--safe-t)); bottom:calc(var(--ch) + 29px + var(--safe-b)); overflow-y:auto; scrollbar-width:thin; padding:0 3px; touch-action:pan-y; }
#turnLabel { font-size:16px; color:var(--gold); }
#prompt { margin:5px 0; font-size:16px; line-height:1.25; }
#actions { display:flex; flex-direction:column; gap:5px; }
#actions .btn { width:100%; padding:8px; font-size:15px; margin:0; }
#receipt { font-size:13px; color:var(--muted); line-height:1.25; margin:6px 0; }
#myEvidence { width:100%; text-align:center; flex:none; display:flex; align-items:center; justify-content:center; gap:5px; }
#myEvidence > .evidence-label { max-width:75px; }
.evidence-strip { display:flex; justify-content:center; gap:5px; flex-wrap:wrap; align-items:center; }
.evidence-card { position:relative; border:0; padding:0; background:transparent; border-radius:5px; }
.evidence-card .card { width:34px; height:49px; }
.evidence-card.covered { opacity:.65; }
.evidence-card .check { position:absolute; right:-3px; bottom:0; border-radius:50%; background:#126b50; color:white; padding:0 3px; font-weight:bold; }
.evidence-card.eligible { outline:3px solid var(--gold); box-shadow:0 0 12px #edc96888; }
.evidence-label { font-size:12px; margin-right:5px; }
.cover-choice { display:flex; text-align:left; gap:7px; align-items:center; }
.cover-choice .card { width:28px; height:40px; flex:none; }
.cover-choice span { font-size:13px; }
.card { position:relative; border-radius:8px; overflow:hidden; box-shadow:0 3px 7px #0007; background:var(--paper); }
.card svg { display:block; width:100%; height:100%; }
.card.pending { visibility:hidden; }
.card.illegal { filter:brightness(.65); }
.hand { position:absolute; left:calc(101px + var(--safe-l)); right:calc(101px + var(--safe-r)); bottom:calc(7px + var(--safe-b)); height:calc(var(--ch) + 14px); z-index:4; }
.hand .card { position:absolute; bottom:0; width:var(--cw); height:var(--ch); touch-action:none; transition:transform .15s,left .2s; }
.hand .card.selected { transform:translateY(-12px); box-shadow:0 0 0 3px var(--gold); }
.hand .card.dragging { opacity:.3; }
.drag-ghost { position:fixed; z-index:50; width:var(--cw); height:var(--ch); pointer-events:none; }
.insert-mark { position:absolute; bottom:0; width:3px; height:var(--ch); background:var(--gold); }
.hand-action { position:absolute; bottom:calc(var(--ch) + 2px); transform:translateX(-50%); z-index:40; }
.hand-action button { border:2px solid #9e7c29; border-radius:10px; background:var(--gold); color:#182431; padding:9px 15px; font-size:16px; font-weight:bold; white-space:nowrap; }
.hand-tools { position:absolute; right:calc(105px + var(--safe-r)); bottom:calc(var(--ch) + 10px + var(--safe-b)); display:flex; align-items:center; gap:5px; font-size:12px; z-index:3; }
.chip { border:1px solid #45585777; border-radius:999px; font-size:12px; background:#fff8e3; padding:4px 8px; }
.chip.on { color:var(--gold); border-color:var(--gold); }
.evidence-row { border-top:1px solid #ffffff26; padding:9px 0; }
.evidence-row h3 { margin:0 0 8px; font-size:18px; }
.evidence-row .evidence-card .card { width:48px; height:69px; }
.evidence-row p { font-size:15px; margin:5px 0; }
.past-trick { display:flex; gap:4px; margin:6px 0; align-items:center; flex-wrap:wrap; }
.past-trick .card { width:33px; height:48px; }
.score-table { width:100%; border-collapse:collapse; font-size:16px; }
.score-table td,.score-table th { padding:6px; text-align:center; border-bottom:1px solid #ffffff26; }
.score-table .total { font-weight:bold; color:var(--gold); }
.result-row { border-bottom:1px solid #ffffff26; padding:8px 0; display:flex; flex-direction:column; gap:3px; }
.result-row strong { color:var(--gold); font-size:18px; }
.result-row span { font-size:15px; }
.round-intro { position:absolute; inset:0; display:grid; place-content:center; text-align:center; background:#f2ecd6f5; color:var(--gold); z-index:20; font:32px Georgia,serif; }
.round-intro small { display:block; font:17px 'Trebuchet MS',sans-serif; margin-top:10px; color:var(--text); }
.your-turn-flash { animation:le-turn .8s ease-out; } @keyframes le-turn { 50% { box-shadow:inset 0 0 0 4px var(--gold); } }
@media (min-width:1100px) and (min-height:650px) { #table { max-width:1280px; max-height:850px; margin:auto; border-radius:24px; border:2px solid #a6b1b544; }.le-top { left:120px;right:120px; }.seat { width:105px; }.seat .seat-main { font-size:16px; }.seat .sub { font-size:14px; }#decision { width:220px;right:120px; }#center { left:120px;right:355px; } }
@media (max-height:360px) { .le-top { top:calc(3px + var(--safe-t)); }.le-top b { font-size:17px; }#center { top:calc(43px + var(--safe-t));gap:4px; }#decision { top:calc(43px + var(--safe-t)); }#prompt { font-size:15px; }.evidence-card .card { width:27px;height:39px; }.seat { padding:4px; } }
@media (min-height:600px) and (max-aspect-ratio:1.6) { #center { bottom:calc(var(--ch) + 55px + var(--safe-b));right:calc(110px + var(--safe-r)); }#decision { left:calc(110px + var(--safe-l));right:calc(110px + var(--safe-r));width:auto;top:auto;bottom:calc(var(--ch) + 30px + var(--safe-b));max-height:130px;display:flex;gap:10px;align-items:center; }#decision #actions { flex-direction:row;flex:1;flex-wrap:wrap; }#decision #actions .btn { width:auto; }#receipt { max-width:160px; }.trick-slot .card { width:calc(var(--tw)*1.2);height:calc(var(--th)*1.2); } }
.rotate { color:#fff6df; }
@media (orientation:portrait) and (max-width:600px) { .rotate { display:flex; } }
