/* Poker uses the viewport; secondary details live in dialogs. */
.poker-screen{background:var(--bg,#f4f5eb);color:var(--ink);min-height:100dvh}
body:has(.poker-playing){height:100dvh;overflow:hidden}
.poker-playing{height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:58px minmax(0,1fr)}
.poker-playing>.game-header{height:58px;min-height:0;padding:0 24px}
.poker-playing>.game-header .brand{font-size:29px}
.poker-main{width:100%;max-width:1500px;min-height:0;margin:auto;height:100%;padding:12px 24px 8px;display:grid;grid-template-rows:auto 44px minmax(0,1fr) auto auto;gap:12px}
.poker-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;min-width:0}
.poker-heading .eyebrow{font-size:9px;letter-spacing:1.2px}
.poker-heading h1{font-size:clamp(22px,3.5vh,36px);line-height:1.1;margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50vw}
.poker-next{display:flex;align-items:center;gap:12px;font-size:12px;max-width:48%;text-align:right}
.poker-next strong{display:block;min-width:45px;padding:9px;border-radius:10px;background:#e2e9d6;font-size:18px;white-space:nowrap}
.poker-arena{display:grid;grid-template-columns:minmax(110px,190px) minmax(0,1fr) minmax(110px,190px);grid-template-rows:repeat(var(--seat-rows),minmax(0,1fr));gap:8px 16px;min-height:0;position:relative;align-items:stretch}
.poker-felt{grid-column:2;grid-row:1/span var(--seat-rows);background:radial-gradient(ellipse at center,#507a5d,#234e40);border:clamp(5px,1.2vh,12px) solid #b2b994;border-radius:clamp(35px,10vw,160px);box-shadow:0 5px 0 #8a9373,0 12px 25px #183e2915;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;color:#fffced;text-align:center;gap:clamp(6px,2vh,18px);overflow:hidden}
.poker-pot>small{font-size:9px;letter-spacing:1.5px}.poker-pot>strong{display:block;font-family:Georgia,serif;font-size:clamp(22px,4.2vh,40px);margin-top:5px;font-weight:400}.poker-pot .virtual-money{font:12px "Segoe UI",sans-serif;color:#e2e9c7;margin-top:6px}
.virtual-money{display:block;font-size:11px;font-weight:400;white-space:nowrap;color:#748165;line-height:1.4}
.poker-board{display:flex;gap:clamp(4px,.9vw,10px);justify-content:center}
.poker-card{display:inline-flex;vertical-align:middle;flex-direction:column;justify-content:space-between;align-items:flex-start;background:#fffdf1;color:#23483d;border:1px solid #d2d8bd;border-radius:6px;width:clamp(36px,5vw,66px);height:clamp(50px,8vh,92px);padding:6px;font-size:clamp(16px,2.6vh,24px);box-shadow:0 3px 0 #142d2925;flex-shrink:0;line-height:1}
.poker-card>span{align-self:flex-end;font-size:1.15em}.poker-card.red{color:#b65546}.poker-card.card-back{background:repeating-linear-gradient(45deg,#d8dfc2,#d8dfc2 3px,#c2cdaa 3px,#c2cdaa 6px);align-items:center;justify-content:center;color:#537448}
.street-progress{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;font-size:10px;color:#adc4ac}.street-progress span{padding:4px 0;border-bottom:2px solid transparent}.street-progress .current-street{color:#fff6cb;border-color:#e7c987}.street-progress .past-street{color:#e8ecdb}
.poker-table-note{font-size:11px;line-height:1.4;margin:0;color:#dce5c9}.result-on-table{color:#264c3b;background:#f4f2d9;font-size:11px;padding:10px 15px;min-height:32px}
.poker-seat{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:clamp(5px,1vh,12px);display:grid;grid-template-columns:1fr auto;align-content:center;gap:4px 6px;min-height:0;min-width:0;position:relative}
.seat-name{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}.seat-name strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat-position{font-size:10px;position:absolute;right:8px;top:27px;color:#9b8147;white-space:nowrap}.seat-stack{font-family:Georgia,serif;font-size:clamp(16px,2.3vh,23px);grid-column:1/-1;padding-right:25px}.seat-action{font-size:10px;grid-column:1/-1;color:#7b856f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.poker-seat.active-seat{outline:2px solid #8ca46b;box-shadow:0 0 0 4px #8ca46b22;background:#f7f9ee}.folded-seat{opacity:.65}.seat-cards{display:flex;gap:4px;grid-column:1/-1;justify-content:center}.seat-cards .poker-card{width:25px;height:34px;font-size:11px;padding:3px}.hand-label{font-size:10px;grid-column:1/-1;text-align:center;color:#526b42}
.poker-controls{background:var(--paper);padding:12px 18px;border:1px solid var(--line);border-radius:12px;display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);gap:15px;align-items:center;min-height:0}
.personal-hand{display:flex;align-items:center;gap:14px;min-width:0}.personal-cards{display:flex;gap:6px}.personal-cards .poker-card{width:46px;height:64px;font-size:20px}.personal-hand h2{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:6px 0}.personal-hand .eyebrow{font-size:8px}.personal-hand p{font-size:11px;line-height:1.45;color:#7b856f;margin:0;max-width:340px}
.poker-actions .action-row{display:flex;gap:8px;flex-wrap:nowrap}.poker-actions .btn{font-size:12px;min-height:37px;padding:9px 14px;white-space:nowrap}.poker-actions label{font-size:10px;margin:9px 0 5px;line-height:1.3}.poker-actions input{width:130px;padding:8px 12px;min-height:34px}.poker-actions form .action-row{align-items:center}.waiting-action{font-size:12px;color:#7b856f;text-align:center}
.poker-toolbar{display:flex;align-items:center;gap:18px;min-height:24px}.poker-toolbar button{border:0;background:transparent;padding:5px 0;color:#526b42;font-size:11px;text-decoration:underline;text-underline-offset:3px}.poker-toolbar>span{margin-left:auto;font-size:10px;color:#8e977f}.poker-toolbar button:disabled{opacity:.4;cursor:default}
.poker-notice-slot{position:relative;height:44px;min-width:0;padding:2px;overflow:hidden}
.notice-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:10px;color:#8c977f;letter-spacing:.2px}.poker-notice-slot:has(.poker-action-popup:not([hidden])) .notice-placeholder{visibility:hidden}
.poker-action-popup{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;height:100%;min-width:0;border:1px solid #b8c4a5;border-radius:9px;background:#eef3df;box-shadow:0 1px 3px #213f2410;padding:7px 14px;pointer-events:none;animation:poker-notice-in .18s ease-out}.poker-action-popup[hidden]{display:none}.notice-action{font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notice-action strong{font-weight:650;color:#294e3c}.poker-action-popup>small{font-size:10px;color:#78876a;white-space:nowrap}
@keyframes poker-notice-in{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}
.poker-recap{font-size:13px;line-height:1.7}.session-winner{text-align:center;padding:5px 12px 20px}.session-winner h2{font:32px Georgia,serif;margin:15px 0}.hand-comparison{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin:20px 0}.comparison-player{display:flex;flex-direction:column;background:#edf0e4;border:1px solid #dce2cd;padding:12px 16px;border-radius:9px;max-width:100%;overflow-wrap:anywhere}.comparison-player span{font-size:12px}.comparison-winner{background:#dfebcf;border-color:#a4b88d}.comparison-sign{font:27px Georgia,serif;color:#91a176}.recap-board{display:flex;justify-content:center;gap:6px;margin:15px 0}.pot-award{padding:12px 0;border-top:1px solid var(--line)}.pot-award h3{font-size:14px;margin:0 0 10px}.revealed-hand{padding:14px 0;border-top:1px solid var(--line)}.revealed-hand>span{display:block;color:#8a957b;font-size:10px;margin:5px 0 10px}.revealed-hand .poker-card{margin-right:6px}.best-card{outline:2px solid #a5ae62}.poker-journal article{border-bottom:1px solid var(--line);padding:15px 0}.poker-journal .eyebrow{font-size:8px;display:block;margin-bottom:9px}.poker-journal h2{font:20px Georgia,serif;margin:8px 0}.poker-journal p{font-size:12px;line-height:1.6;color:#7a866b}
@media(min-height:850px) and (min-width:700px){.poker-main{gap:18px;padding-top:18px;padding-bottom:12px}.poker-controls{padding:18px 24px}}
@media(max-height:760px){.seat-cards,.hand-label{display:none}.poker-main{gap:8px}.poker-seat{gap:2px}.poker-controls{padding:9px 12px}.personal-hand h2{font-size:21px}.personal-cards .poker-card{width:39px;height:53px;font-size:17px}}
@media(max-width:700px){.poker-playing{grid-template-rows:49px minmax(0,1fr)}.poker-playing>.game-header{height:49px;padding:0 12px;gap:8px}.poker-playing>.game-header .brand{font-size:24px}.poker-playing .game-header .room-name{display:none}.poker-playing .code-chip{font-size:8px;padding:6px}.poker-playing .connection{font-size:8px}.poker-main{padding:8px 10px 5px;gap:8px}.poker-heading h1{font-size:23px}.poker-heading .eyebrow{font-size:7px;letter-spacing:.7px}.poker-next{font-size:10px;gap:6px}.poker-next strong{font-size:15px;min-width:37px;padding:7px}.poker-arena{grid-template-columns:minmax(66px,95px) minmax(0,1fr) minmax(66px,95px);gap:5px 7px}.poker-felt{border-width:5px;border-radius:45px;padding:8px 3px;gap:12px}.poker-board{gap:3px}.poker-board .poker-card{width:clamp(23px,5.5vw,36px);height:clamp(34px,8vw,50px);font-size:clamp(12px,3vw,16px);padding:3px;border-radius:4px}.poker-pot>strong{font-size:23px}.poker-pot>small{font-size:7px}.poker-pot .virtual-money{font-size:9px}.street-progress{gap:5px;font-size:8px}.poker-table-note{font-size:9px;max-width:150px}.result-on-table{font-size:10px;padding:8px;white-space:normal}.poker-seat{padding:7px 5px;gap:3px;border-radius:8px}.seat-name strong{font-size:10px}.seat-position{position:static;font-size:9px;grid-column:1/-1;min-height:10px}.seat-stack{font-size:17px;padding:0}.seat-stack .virtual-money{font-size:8px}.seat-action{font-size:9px}.seat-cards,.hand-label{display:none}.poker-controls{grid-template-columns:minmax(0,1fr);gap:9px;padding:10px 12px}.personal-hand{gap:10px}.personal-hand h2{font-size:21px;margin:3px 0}.personal-cards .poker-card{width:34px;height:46px;font-size:16px;padding:4px}.personal-hand p{font-size:10px}.poker-actions .action-row{gap:5px}.poker-actions>.action-row .btn{flex:1;padding:8px 6px;font-size:11px;min-height:35px}.poker-actions label{font-size:9px;margin:6px 0 4px}.poker-actions form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.poker-actions form .action-row{gap:5px}.poker-actions input{width:76px;padding:7px;font-size:12px;min-height:32px}.poker-actions form .btn{font-size:11px;padding:7px 9px;min-height:32px}.waiting-action{margin:0;font-size:11px}.poker-toolbar{gap:14px;justify-content:space-between}.poker-toolbar button{font-size:10px}.poker-toolbar>span{display:none}.recap-board .poker-card,.revealed-hand .poker-card{width:38px;height:53px;font-size:17px}.comparison-player{padding:9px 12px}}
@media(max-width:400px){.poker-arena{grid-template-columns:66px minmax(0,1fr) 66px;gap:4px}.seat-name .presence{display:none}.seat-position{font-size:8px}.seat-stack{font-size:15px}.poker-actions>.action-row .btn{font-size:10px}.poker-felt{border-radius:35px}.poker-next{max-width:45%}}
@media(max-height:530px) and (min-width:600px){.poker-playing{grid-template-rows:40px minmax(0,1fr)}.poker-playing>.game-header{height:40px}.poker-main{gap:5px;padding-top:5px}.poker-heading h1{font-size:19px}.poker-heading .eyebrow{font-size:7px}.poker-next strong{padding:5px;font-size:14px}.poker-controls{grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:10px;padding:7px 10px}.personal-hand p{display:none}.personal-hand h2{font-size:19px}.personal-cards .poker-card{width:30px;height:41px;font-size:14px}.poker-actions .btn{font-size:10px;min-height:29px;padding:6px 9px}.poker-actions label{font-size:8px;margin:3px 0}.poker-actions input{min-height:27px;padding:4px 7px}.poker-arena{gap:3px 10px;grid-template-columns:110px minmax(0,1fr) 110px}.poker-seat{padding:3px 7px;gap:1px;grid-template-columns:1fr auto}.seat-name strong{font-size:9px}.seat-position{position:absolute;right:7px;top:17px;font-size:8px}.seat-stack{font-size:14px}.seat-action{font-size:8px}.seat-stack .virtual-money{display:none}.poker-pot>strong{font-size:22px}.poker-felt{gap:5px;padding:6px}.poker-board .poker-card{width:30px;height:40px;font-size:14px}.poker-table-note{display:none}.poker-pot .virtual-money{display:none}.street-progress{font-size:8px}.poker-toolbar{min-height:19px}.poker-toolbar button{font-size:9px;padding:3px 0}}
@media(prefers-reduced-motion:reduce){.poker-action-popup{animation:none}}
/* Landing and room creation retain the existing visual language. */
.game-catalog{display:flex;flex-direction:column;width:100%}.catalog-card{border:1px solid #bdc8a8;border-radius:15px;background:#fafbedbb;box-shadow:0 8px 0 #c3cdae44;transform:rotate(-4deg)}.catalog-card:nth-child(2){transform:rotate(4deg);margin-left:20px;background:#e1e9d6}.catalog-card h2{font-family:Georgia,serif;font-weight:400;margin:16px 0 10px}.catalog-card p{font-size:12px;line-height:1.8}.create-room{flex-wrap:wrap}.create-room select{max-width:200px}.poker-config{display:flex;gap:12px;flex-wrap:wrap;width:100%}.poker-config label{display:flex;flex-direction:column;gap:6px;white-space:normal}.poker-config input{width:135px}.poker-config[hidden]{display:none}:focus-visible{outline:3px solid #aa8948;outline-offset:4px}
.hero-art:has(.game-catalog){aspect-ratio:auto;min-height:600px;overflow:hidden}.hero-art .game-catalog{padding:65px 25px 85px;gap:24px}.hero-art .catalog-card{padding:20px}.hero-art .catalog-card>span{font-size:28px;white-space:nowrap}.hero-art .catalog-card h2{font-size:26px}.hero-art .catalog-card p{margin:0}.hero-art .edition,.hero-art .art-caption{z-index:1}@media(max-width:900px){.hero-art:has(.game-catalog){min-height:600px}.hero-art .game-catalog{padding-left:20px;padding-right:25px}.hero-art .catalog-card{padding:20px 15px}.hero-art .catalog-card h2{font-size:24px}.hero-art .catalog-card>span{font-size:23px}}@media(max-width:650px){.hero-art:has(.game-catalog){min-height:510px}.hero-art .game-catalog{padding:60px 30px 75px}.hero-art .catalog-card{padding:20px}.hero-art .catalog-card p{font-size:12px}.hero-art .catalog-card:nth-child(2){margin-left:15px}}
.poker-seat{line-height:1.15}.seat-stack{line-height:1.1}.poker-seat .virtual-money{line-height:1.2}
@media(max-height:760px) and (min-width:701px){.poker-seat{padding:5px 8px;gap:1px}}
@media(max-height:680px) and (max-width:700px){.poker-seat{padding:3px 5px;gap:1px}.seat-name strong{font-size:9px;line-height:1.1}.seat-stack{font-size:15px;line-height:1.1}.seat-stack .virtual-money{display:none}.seat-position{position:absolute;right:4px;top:17px;font-size:7px;min-height:0}.seat-action{font-size:8px;line-height:1.1}.poker-actions>.action-row .btn{font-size:9px}.poker-arena{gap:4px}.poker-heading h1{font-size:20px}.poker-next strong{padding:5px}.poker-main{gap:6px}}

.create-room>.poker-config{grid-column:1/-1}

/* Keep the summary short; card-by-card explanations are optional. */
.hand-outcome{text-align:center;padding:8px 0 16px}.hand-outcome h2{font:29px/1.2 Georgia,serif;margin:10px 0 12px;overflow-wrap:anywhere}.winner-totals{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.winner-totals>div{display:flex;flex-direction:column;gap:4px}.winner-totals b{font-size:22px;color:#426a35;font-weight:500}.winner-totals strong{font-size:12px}.winner-totals .virtual-money{font-size:11px}.pot-outcomes{display:grid;gap:8px;margin-bottom:18px}.pot-outcome{padding:12px 15px;border:1px solid #d7e1c8;background:#edf2e3;border-radius:9px}.pot-outcome>span{font-size:9px;color:#7b886b;text-transform:uppercase;letter-spacing:.7px;display:block}.pot-outcome>strong{display:block;font-size:12px;margin-top:5px}.pot-outcome p{margin:5px 0 0;font-size:14px;color:#355533}.recap-details{border-top:1px solid var(--line);padding-top:12px}.recap-details summary{cursor:pointer;color:#7b886b;font-size:11px}.poker-recap .session-winner{padding:0 0 14px;border-bottom:1px solid var(--line);margin-bottom:12px}.poker-recap .session-winner h2{font-size:26px;margin:8px 0}.recap-details .hand-comparison{margin:14px 0}.recap-details .revealed-hand{padding:10px 0}.recap-details .poker-card{width:40px;height:55px;font-size:16px}
@media(max-width:700px){.poker-action-popup{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:4px 10px}.notice-action{font-size:11px;max-width:100%;line-height:1.25}.poker-action-popup>small{font-size:8px}.hand-outcome h2{font-size:25px}.winner-totals b{font-size:20px}.pot-outcome p{font-size:13px}}
