@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#efe9d8;background:#152b26;font-synthesis:none;--card-w:72px;--card-h:102px}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 40%,#25453a 0,transparent 65%)}
button,textarea{font:inherit}button{border:0;background:#efb85b;color:#182d27;padding:12px 19px;border-radius:8px;font-weight:700;cursor:pointer;transition:transform .2s}
button:hover{transform:translateY(-2px)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:4px}
.subtle{background:transparent;color:#efe9d8;border:1px solid #6e8071;padding:8px 13px}
header{height:54px;border-bottom:1px solid #ffffff20;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;font-size:10px;letter-spacing:1.5px}
header a{color:#efb85b;text-decoration:none;font-size:27px;display:flex;gap:12px;align-items:center}header a span{font-size:10px;color:#efe9d8}
main{max-width:1080px;margin:auto;padding:22px 30px 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#bdc7b4}h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(34px,4.5vw,52px);line-height:1.1;margin:9px 0}
em{color:#efb85b}h2{font-family:'Playfair Display',Georgia,serif;font-size:28px;margin:8px 0 14px}p{line-height:1.6}
.panel{border:1px solid #ffffff24;background:#10251f88;border-radius:16px}
#lobby{display:grid;grid-template-columns:1.2fr 1fr;min-height:440px;padding:30px 36px;gap:35px}
label{display:block;font-size:12px;margin:20px 0 8px}textarea{display:block;width:100%;max-width:380px;border:1px solid #66796a;background:#ffffff09;color:#fff;padding:10px;border-radius:8px;margin-bottom:16px;resize:vertical}
.muted{color:#b0c0b2;font-size:12px}.preview{display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(#49715b55,transparent 65%)}
.sample{background:#f5edd7;width:180px;height:250px;border-radius:16px;color:#243e30;box-shadow:12px 16px 0 #091c1844;transform:rotate(10deg);padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.sample img{width:145px;height:145px}.sample span{font-size:11px;font-weight:bold;letter-spacing:3px}.stamp{position:absolute;bottom:4px;right:-5px;border:1px solid #efb85b88;border-radius:50%;padding:23px 11px;font-size:8px;letter-spacing:2px;color:#efb85b;transform:rotate(-14deg);text-align:center}
.gamebar{display:flex;gap:20px;align-items:center;font-size:11px;color:#bdc7b4}.gamebar button{margin-left:auto}
#arena{position:relative;height:var(--table-height,380px);margin:4px 0 10px;isolation:isolate}
.felt{position:absolute;inset:63px 115px;border-radius:50%;border:9px solid #987249;background:radial-gradient(ellipse,#375f48,#234a39);box-shadow:0 0 0 3px #4d3828,0 15px 25px #0004,inset 0 0 45px #0005;display:grid;place-items:center}
.tablebrand{position:absolute;left:24%;font:italic 25px/1 'Playfair Display',Georgia,serif;opacity:.22;text-align:center}
.seat{position:absolute;transform:translate(-50%,-50%);text-align:center;z-index:3;border-radius:12px;padding:6px;transition:background .35s,box-shadow .35s,opacity .35s}
.seat.active{background:#efb85b18;outline:1px solid #efb85b}.seat.spotlit{background:#fff3b42b;box-shadow:0 0 30px 10px #fff4aa22}.seat.out{opacity:.35}
.seatname{font-size:11px;font-weight:bold;margin:4px;max-width:150px;overflow-wrap:anywhere}.cards{display:flex;gap:5px;justify-content:center}
.card-slot{width:var(--card-w);height:var(--card-h);flex-shrink:0}.concealed{visibility:hidden}
.card{width:var(--card-w);height:var(--card-h);border-radius:8px;background:#f5edd7;color:#223c30;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 4px 9px #0005;border:3px solid #e5dbc2;position:relative;overflow:hidden}
.card img,.card svg{width:calc(var(--card-w) - 12px);height:calc(var(--card-h) - 27px)}.card small{font-size:8px;line-height:1.1;font-weight:bold;padding:1px 2px;text-align:center}
.card.back{background:repeating-linear-gradient(45deg,#294944,#294944 6px,#31524b 6px,#31524b 8px);border-color:#d2aa67;color:#ffcf7d}.card.back b{font-size:45px;line-height:1.1}.card.back small{font-size:8px}
#draw-pile{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1}#draw-pile .card{width:48px;height:68px;box-shadow:3px 3px 0 #9d7d4b,6px 6px 0 #213d32,8px 8px 10px #0005}#draw-pile b{font-size:30px}
#spotlight{position:absolute;top:0;left:0;width:210px;height:220px;border-radius:50%;background:radial-gradient(ellipse,#fff9ca40 0%,#fff5a622 35%,#fff5a600 70%);z-index:2;pointer-events:none;will-change:transform;filter:drop-shadow(0 -25px 25px #fef7c022)}
#spotlight::before{content:'';position:absolute;left:15%;bottom:50%;width:70%;height:210px;clip-path:polygon(42% 0,58% 0,100% 100%,0 100%);background:linear-gradient(#fff5ad00,#fff5ad17)}
#flights{position:absolute;inset:0;z-index:10;pointer-events:none}.flight{position:absolute;top:0;left:0;will-change:transform;perspective:900px}
.flight>.card,.flight>.turning-card{margin-left:calc(var(--card-w) / -2);margin-top:calc(var(--card-h) / -2)}
.turning-card{position:relative;width:var(--card-w);height:var(--card-h);transform-style:preserve-3d}.face{position:absolute;inset:0;backface-visibility:hidden}.face.reverse{transform:rotateY(180deg)}
.controls{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;gap:20px}.controls h2{font-family:inherit;font-size:17px;margin:5px 0}.controls p{margin:3px 0}
#actions{display:flex;gap:8px;flex-wrap:wrap;min-width:180px;justify-content:flex-end}.danger{background:#f49a82}
.legend{display:flex;justify-content:center;gap:22px;font-size:10px;color:#b0c0b2;margin:10px 0}
footer{border-top:1px solid #ffffff20;margin-top:20px;padding:17px 0;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.5px;color:#91a997}
dialog{background:#efe9d8;color:#203b30;border:0;border-radius:15px;padding:28px;max-width:620px;line-height:1.8}dialog::backdrop{background:#05150dcc}dialog .subtle{color:#203b30;float:right}dialog li{margin-bottom:12px}
#center{position:absolute;z-index:4}#center .card{--card-w:100px;--card-h:136px;animation:reveal .4s ease-out}#center small{font-size:11px}
@keyframes reveal{from{transform:perspective(600px) rotateY(-80deg) scale(.85);opacity:.3}to{transform:perspective(600px) rotateY(0) scale(1);opacity:1}}
[hidden]{display:none!important}
.hold-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.hold-button:hover{transform:none}.hold-button.is-holding{box-shadow:0 0 0 3px #efb85b55;filter:brightness(1.08)}
.hold-copy{display:flex;text-align:left}
.hold-wheel{width:23px;height:23px;flex-shrink:0;transform:rotate(-90deg);fill:none;stroke:currentColor;stroke-width:2.8}
.hold-track{opacity:.22}.hold-progress{stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round}
.hold-button.selected{opacity:.8;box-shadow:inset 0 0 0 2px #f5edd7}
.local-vote-row{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-end}.local-vote-row>span{min-width:55px;font-size:12px;overflow-wrap:anywhere}.local-vote-row button{font-size:11px;padding:10px 12px}.local-vote-row .hold-wheel{width:18px;height:18px}
#confirmationStatus{font-size:10px}#arena[data-phase=challenge]~.controls #actions{min-width:220px}
@media(max-width:620px){
 .local-vote-row{flex-wrap:wrap}.local-vote-row>span{width:100%}.local-vote-row button{min-width:0}
 :root{--card-w:58px;--card-h:83px}header{padding:0 15px;height:46px}header>span{font-size:7px;letter-spacing:.6px}header a span{font-size:8px}
 main{padding:15px 12px 0}.intro{gap:8px;margin-bottom:14px}.intro .eyebrow{font-size:7px;letter-spacing:1px}.intro button{font-size:10px}h1{font-size:34px}
 #lobby{padding:22px;grid-template-columns:1fr;gap:14px}.preview{min-height:235px}.sample{width:140px;height:195px}.sample img{width:110px;height:110px}.stamp{right:10px}
 .felt{inset:55px 45px;border-width:7px}.tablebrand{left:10%;font-size:20px}.seat{padding:4px}.seatname{font-size:10px;max-width:125px}.card img,.card svg{height:57px}.card small{font-size:7px}.card.back b{font-size:36px}.card.back small{font-size:7px}
 #spotlight{width:150px;height:160px}.controls{flex-direction:column;align-items:stretch;padding:15px;gap:12px}.controls h2{font-size:16px}.controls .muted{font-size:11px}
 #actions{justify-content:stretch}#actions button{flex:1;font-size:12px}.legend{font-size:8px;gap:12px}.gamebar{gap:10px;font-size:9px}.gamebar button{font-size:10px}footer{font-size:7px;letter-spacing:.8px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* During play, the table and the current action are the whole screen. */
.playing>header,.playing footer,.playing .intro .eyebrow,.playing #turnLabel,.playing #deck{display:none}
.playing main{padding-top:24px;max-width:1040px}.playing .intro{margin-bottom:10px}.playing h1{font-size:30px;margin:0}
.playing #rulesButton{border:0;color:#c9d3bf;font-size:12px;padding:9px 12px;border-radius:30px;background:#ffffff08}
.playing .gamebar{font-size:11px;color:#92ab98}.playing .controls{padding:14px 5px;border-top:1px solid #ffffff16;min-height:85px}
.playing .controls h2{font-size:17px;font-weight:500}.playing .tablebrand{display:none}
.new-table-button{display:inline-flex;align-items:center;gap:9px;color:#e6cd96;background:linear-gradient(120deg,#eac16f16,#eac16f06);border:1px solid #d5b77455;border-radius:30px;padding:9px 16px;font-size:11px;box-shadow:0 2px 10px #0001}
.new-table-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;transition:transform .25s}.new-table-button:hover{border-color:#e6cd96;background:#eac16f20}.new-table-button:hover svg{transform:rotate(-9deg)}
.intro-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.audio-control{position:relative}
.audio-button{width:35px;height:35px;border-radius:50%;padding:9px;display:grid;place-items:center;background:#ffffff08;color:#c9d3bf}.audio-button:hover{background:#ffffff14;transform:none}.audio-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sound-slash{display:none}.audio-button.muted .sound-waves{display:none}.audio-button.muted .sound-slash{display:block}
.audio-panel{position:absolute;right:0;top:calc(100% + 10px);width:238px;padding:17px;background:#f5efde;color:#203b30;border-radius:15px;box-shadow:0 10px 35px #0005;z-index:25;border:1px solid #d5c9a7}
.audio-panel-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;margin-bottom:17px}.audio-panel-top button{background:#203b300c;color:#466044;font-size:10px;padding:7px 9px;border-radius:20px}
.audio-panel label{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:10px;font-size:12px;margin:13px 0 0}.audio-panel input{width:100%;accent-color:#8b743e;cursor:pointer}
dialog.guide-dialog,dialog.restart-dialog{border:1px solid #fff6d055;border-radius:24px;background:#f5efde;color:#203b30;box-shadow:0 30px 100px #0007;max-height:90dvh;overflow:auto}
dialog::backdrop{background:#061e17c9;backdrop-filter:blur(6px)}
.guide-dialog{width:min(560px,calc(100% - 24px));padding:24px 28px}
.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.dialog-top .eyebrow{color:#677864;margin:0}
.icon-button{display:grid;place-items:center;background:#203b300b;color:#47604b;border-radius:50%;width:32px;height:32px;padding:0;font-size:14px}
.guide-art{height:190px;background:radial-gradient(ellipse,#d5debf88,transparent 75%);border:1px solid #203b3012;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:23px}
.example-card{width:78px;height:110px;border:2px solid #d5c9a7;border-radius:9px;background:#fff9e9;box-shadow:0 5px 10px #213d3015;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#254331}
.example-card img{width:62px;height:74px;object-fit:contain}.example-card>span{font-size:9px;font-weight:700}.example-back{background:repeating-linear-gradient(45deg,#294944,#294944 6px,#31524b 6px,#31524b 8px);border-color:#c6a66b;color:#efc97b}.example-back b{font-size:46px}
.example-hand,.example-exchange,.example-choice,.example-finish{display:flex;align-items:center;justify-content:center;gap:20px}.spread .example-card:first-child{transform:rotate(-13deg) translateY(7px)}.spread .example-card:last-child{transform:rotate(13deg) translateY(7px)}
.speech-bubble{font-size:12px;font-weight:600;color:#355e44;background:#dce5c9;border-radius:12px 12px 12px 0;padding:7px 13px;margin-bottom:12px}.example-arrow{font-size:32px;color:#728460}
.choice-label{font-size:11px;font-weight:700;color:#4c7850}.doubt-label{color:#a26950}
.example-outcomes{display:flex;gap:45px}.example-outcomes>div{display:flex;align-items:center;flex-direction:column;gap:3px}.example-outcomes .example-card{width:60px;height:82px}.example-outcomes img{width:45px;height:52px}.example-outcomes strong{font-size:11px;margin-top:4px}.example-outcomes>div>span{font-size:10px;color:#61715d}
.winner-mark{font-size:78px;color:#b99041;line-height:1}
.guide-copy>.eyebrow{color:#82916f;font-size:9px}.guide-copy h2{font-size:28px;line-height:1.15;margin:9px 0 13px}.guide-copy h2:focus{outline:none}.guide-copy>p{font-size:14px;line-height:1.7;margin:0}
.guide-tip{font-size:12px;line-height:1.6;margin:14px 0 0;padding-left:12px;border-left:2px solid #c7aa64;color:#637357}
.guide-copy details{font-size:12px;margin-top:15px;color:#637357}.guide-copy summary{cursor:pointer;font-weight:600}.guide-copy details p{margin:7px 0 0}
.guide-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.guide-navigation>button{font-size:12px;padding:11px 15px}.guide-navigation .subtle,.restart-actions .subtle{color:#466044;border-color:#a6b19a;background:transparent;float:none}
#guideDots{display:flex;gap:5px;align-items:center}#guideDots button{width:7px;height:7px;padding:0;border:0;background:#c7cebb;border-radius:50%}#guideDots button[aria-current=true]{background:#8c7339;width:18px;border-radius:5px}
.guide-hold-note{text-align:center;font-size:10px;color:#8b927c;margin:18px 0 0}
.restart-dialog{width:min(460px,calc(100% - 24px));padding:34px;text-align:center}.restart-dialog .eyebrow{color:#879276;margin:24px 0 10px}.restart-dialog h2{font-size:29px;line-height:1.15}.restart-dialog>p:not(.eyebrow){color:#69785f;font-size:13px;line-height:1.7}
.restart-art{display:flex;justify-content:center;align-items:center;height:100px;position:relative;padding-right:18px}.restart-art img{width:68px;height:90px;background:#fff8e6;border:1px solid #d5c9a7;padding:10px;border-radius:9px;box-shadow:0 5px 10px #213d3015;transform:rotate(-16deg)}.restart-art img+img{margin-left:-12px;transform:rotate(12deg)}.restart-art>span{position:absolute;font-size:26px;color:#b38d46;bottom:1px;margin-left:122px}
.restart-actions{display:flex;gap:9px;justify-content:center;margin-top:24px}.restart-actions button{font-size:12px;padding:12px 15px}
@media(max-width:620px){
 .playing main{padding-top:18px}.playing h1{font-size:25px}.playing #rulesButton{font-size:10px;padding:8px 10px}.playing .gamebar{font-size:10px}.new-table-button{padding:7px 12px;font-size:10px}.new-table-button svg{width:18px;height:18px}
 .intro-actions{gap:5px}.audio-button{width:30px;height:30px;padding:7px}.playing h1{font-size:clamp(20px,6.3vw,25px)}
 .playing .controls{padding:14px 0;gap:12px}.playing .controls h2{font-size:16px}
 .guide-dialog{padding:18px 20px}.guide-art{height:166px;margin-bottom:18px}.guide-copy h2{font-size:25px}.guide-copy>p{font-size:13px}.guide-navigation{gap:8px}.guide-navigation>button{font-size:11px;padding:10px}.guide-hold-note{font-size:9px}
 .example-hand,.example-exchange,.example-choice,.example-finish{gap:12px}.example-outcomes{gap:26px}.choice-label{font-size:10px}.example-card{width:67px;height:95px}.example-card img{width:52px;height:64px}
 .restart-dialog{padding:28px 22px}.restart-dialog h2{font-size:26px}.restart-actions{flex-direction:column}.restart-actions button{padding:13px}
}
