:root{--ink:#183e32;--cream:#fff8e4;--gold:#eed18b;--blue:#bdddeb;--felt:#1c573f;--phone-w:844px;--phone-h:390px;--scale:1;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#193e32;background:#eeeee6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8dc7e7;outline-offset:3px}button{border:0}button svg{vertical-align:middle;flex:none}button:active:not(:disabled){filter:brightness(.93)}p{line-height:1.5}.preview-workspace{max-width:1110px;margin:auto;min-height:100dvh;padding:38px 35px 30px;display:flex;flex-direction:column;justify-content:center}.preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:45px}.preview-wordmark{font:bold 31px Georgia,serif;letter-spacing:-1.6px}.preview-wordmark span{color:#b1914a}.preview-tag{font-size:10px;letter-spacing:2.5px;color:#7c877b;font-weight:650}.preview-intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:20px}.preview-intro h1{font:normal 38px Georgia,serif;letter-spacing:-1px;margin:0 0 9px}.preview-intro p{font-size:14px;color:#7c877b;margin:0}.preview-tools{display:flex;gap:7px}.preview-button{border:1px solid #c8cfc2;border-radius:7px;background:transparent;padding:10px 12px;color:#335542;font-size:11px}.preview-button span{margin-left:8px;color:#7a8a78}.preview-button:hover,.preview-button[aria-pressed=true]{background:#dce5d7}.phone-stage{width:100%;display:flex;justify-content:center;padding:12px 0}.phone-shell{padding:10px;border-radius:48px;background:linear-gradient(150deg,#434b42,#111b15 35%,#1d251e 70%,#4f584b);box-shadow:0 1px 0 2px #818878,0 22px 55px #1c382c2b,inset 0 0 0 3px #2a332b;position:relative;flex:none}.phone-shell:before{content:"";width:60px;height:4px;border-radius:3px;position:absolute;top:-5px;right:115px;background:#3a443a}.phone-viewport{width:calc(844px * var(--scale));height:calc(390px * var(--scale));overflow:hidden;border-radius:39px}.phone{width:844px;height:390px;position:relative;overflow:hidden;transform:scale(var(--scale));transform-origin:0 0;background:var(--cream);color:var(--ink);isolation:isolate}.island{position:absolute;left:8px;top:139px;width:22px;height:108px;border-radius:15px;background:#080e0a;z-index:30;pointer-events:none}.home-indicator{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);width:113px;height:4px;border-radius:9px;background:#f3efdf6b;z-index:35;pointer-events:none}.phone:not(.playing) .home-indicator{background:#1c34243b}.phone.playing{background:radial-gradient(ellipse at 52% 10%,#343e30,#202a22 72%);color:var(--cream)}#app{height:100%;position:relative}.preview-footer{display:flex;justify-content:space-between;font-size:11px;color:#72816f;margin:26px 5px 0;gap:12px}.preview-footer i{display:inline-block;border-radius:50%;width:5px;height:5px;background:#548166;margin-right:6px}.preview-note{font-size:10px;color:#8b9486;margin-top:30px;text-align:center;line-height:1.7}.rotate-hint{display:none}
.app-header{height:49px;display:flex;align-items:center;gap:12px;padding:0 38px}.brand{font:bold 27px Georgia,serif;letter-spacing:-1.2px}.brand i{font-style:normal;color:#a98b44}.app-header .profile-button{margin-left:auto;background:none}.icon-button{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#ffffff08;border:1px solid #ffffff26;color:inherit;padding:0}.phone:not(.playing) .icon-button{border-color:#203b2c33}.avatar{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;background:var(--seat,#234d68);border:1px solid #fff4cd5c;border-radius:50%;font:italic bold 24px Georgia,serif;color:#fff1cd;flex:none}.top-title{font-size:14px;font-weight:700}.app-header .sound-toggle{margin-left:auto}.sound-toggle{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #71897766;background:transparent;border-radius:6px;padding:6px 9px;color:inherit;font-size:11px;min-height:29px}.sound-toggle.muted{opacity:.6}.play-header{height:34px;padding:0 38px;gap:10px;position:relative;z-index:5}.play-header .brand{font-size:20px}.hand-counter{font-size:9px;letter-spacing:1.5px;color:#e5d59d;display:flex;gap:12px;align-items:center;margin-left:12px}.hand-counter span+span{border-left:1px solid #69816c;padding-left:12px;letter-spacing:0;color:#b4c9b5;font-size:11px}.play-header .icon-button{width:28px;height:28px;border-radius:7px}.table-mode{margin-left:auto;font-size:10px;color:#a2b49f}.play-header .sound-toggle{margin-left:0}
.game-content{height:356px;position:relative}.felt{position:absolute;left:80px;right:80px;top:36px;bottom:52px;border-radius:50%;background:radial-gradient(ellipse at 50% 44%,#2b704e,#1b523c 75%);border:8px solid #8b704d;box-shadow:0 0 0 2px #b09b70,inset 0 0 0 2px #443f2b66,0 6px 0 3px #171e18,0 12px 28px #07170f80}.felt:before{content:"";position:absolute;inset:12px;border:1px solid #e8d29b25;border-radius:50%;pointer-events:none}.felt:after{content:"";position:absolute;inset:0;border-radius:50%;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23ffffff' filter='url(%23n)' opacity='.4' d='M0 0h110v110H0z'/%3E%3C/svg%3E");pointer-events:none}.felt-wordmark{position:absolute;left:50%;top:68px;transform:translateX(-50%);font:italic 16px Georgia,serif;color:#e9e3ba35;letter-spacing:1px}.seat{position:absolute;width:151px;text-align:center;z-index:5}.seat.left{left:40px;top:66px}.seat.right{right:40px;top:66px}.seat.top{left:50%;top:0;transform:translateX(-50%);width:244px;height:72px}.seat-cards{display:flex;justify-content:center;align-items:flex-end;gap:5px;height:72px;margin-bottom:5px}.seat-cards .card{width:52px;height:68px}.seat-cards .card.back:first-child{transform:rotate(-7deg)}.seat-cards .card.revealed{transform:translateY(-5px)}.seat-cards .number{font-size:35px}.seat-cards .stars{font-size:10px;margin-top:2px;min-height:11px}.seat-cards .was-hidden{font-size:5px;bottom:4px}.seat.top .seat-cards{position:absolute;left:151px;top:0;width:109px;margin:0;height:70px}.seat.top .plate{width:147px;top:3px;position:relative}.seat.top .seat-feedback{width:147px;position:relative;top:6px}.plate{background:var(--seat-bg,#153a2e);border:1px solid #b8a168a1;border-left:3px solid var(--accent,#b8a168);border-radius:10px;min-height:48px;display:flex;align-items:center;text-align:left;padding:5px 8px;gap:8px;box-shadow:0 4px 8px #071c1738}.seat .avatar{width:34px;height:34px;font-size:22px}.portrait{position:relative;flex:none}.seat-status{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;border:2px solid #153a2e;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#f3d48b;color:#243f2e;font-size:12px;font-weight:850;box-shadow:0 1px 3px #0003}.seat-status.pending{background:#d7a43c;font-size:8px;letter-spacing:0;animation:breathe 1.6s ease-in-out infinite}.player-info{min-width:0;flex:1}.player-name{font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:1.12}.player-coins{font-size:12px;color:#f6e8bd;margin-top:3px;display:flex;align-items:center;gap:4px}.coin-icon{width:11px;height:11px;border:1px solid #d8ae60;box-shadow:inset 0 0 0 1px #b0873f;border-radius:50%;background:#efce86;display:inline-block;flex:none}.seat-feedback{display:flex;justify-content:center;align-items:center;gap:5px;height:24px}.choice-name{font-size:8px;text-transform:uppercase;letter-spacing:.5px;color:#d8e5cf;min-width:25px}.choice-name.raise{color:#e8c96f}.choice-name.hold{color:#b8d7e5}.choice-name.reraise{color:#d3b4ee}.history{display:flex;gap:3px;justify-content:center}.history span{border:1px solid #a9c3aa3d;background:#143e2b65;border-radius:3px;width:17px;height:17px;font-size:9px;display:flex;align-items:center;justify-content:center;color:#e8f0da;font-weight:800}.history span.raise{background:#efcf84;border-color:#ffe5a4;color:#493c19}.history span.hold{background:#bcdae8;border-color:#c7e8f7;color:#214552}.history span.fold{background:#65453d;border-color:#a77262;color:#eacbc4}.history span.reraise{background:#715286;border-color:#ad8ac4;color:#f2dffa}.seat.folded{opacity:.45}.seat.winner .plate{border-color:#f3d78d;box-shadow:0 0 20px #f6ce6c3b}.seat-choice-cue{animation:seatNod .5s ease-out}
.card{width:60px;height:80px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #dfd3a6;border-radius:5px;background:#fff8e2;color:#164a36;box-shadow:0 3px 6px #061b164d;flex:none;transition:transform .22s,box-shadow .22s}.card:before{content:"";position:absolute;inset:3px;border:1px solid #bbaa7659;border-radius:2px;pointer-events:none}.number{font:bold 43px/.95 Georgia,serif}.stars{color:#a06c20;font-size:13px;line-height:1;letter-spacing:0;min-height:14px;margin-top:4px}.card.back{background-color:#204b3c;background-image:repeating-linear-gradient(45deg,transparent 0 7px,#d6be8044 8px,transparent 9px),repeating-linear-gradient(-45deg,transparent 0 7px,#d6be8044 8px,transparent 9px);border-color:#b6b085}.card.back:after{content:"✦";width:24px;height:32px;border:1px solid #b9a968;border-radius:50%;background:#25513f;display:flex;align-items:center;justify-content:center;color:#e5cf8c;font-size:19px}.card.empty{background:#27664c35;border:1px dashed #93b99b69;box-shadow:none;color:#8eb49a69;font-size:25px}.card.empty:before{border-color:#93b99b29}.card.win{box-shadow:0 0 0 2px #dfbd67,0 0 20px #eaca6b40}.was-hidden{position:absolute;bottom:5px;font-size:6px;color:#4c6c54;font-weight:700}.card:has(.was-hidden) .stars{margin-bottom:7px}.board-area{position:absolute;left:50%;top:73px;transform:translateX(-50%);width:232px;text-align:center;z-index:3}.board-meta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:25px;margin-bottom:6px}.stage-label{font-size:8px;letter-spacing:1.2px;text-transform:uppercase;color:#c5d9bf;font-weight:700}.pot{display:flex;align-items:center;justify-content:center;gap:5px;background:#103e2c;border:1px solid #b4a66944;border-radius:20px;padding:4px 9px;color:#ffedbe;font-size:12px;min-height:25px;white-space:nowrap}.pot .coin{width:16px;height:16px;font-size:9px}.pot strong{font-size:14px}.board-cards{display:flex;justify-content:center;gap:7px}.table-message{font-size:10px;line-height:1.2;min-height:20px;margin-top:7px;color:#e4dec2;max-width:240px}.table-message.short{color:#f3d18a}.board-result{margin-top:6px;font-weight:700;color:#f5de9c;font-size:12px;line-height:1.2}.coin{width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid #e8bc66;background:radial-gradient(circle at 40% 28%,#f7df9d,#d5a248);box-shadow:0 0 0 1px #8d6830,inset 0 0 0 1px #fcebb9,0 2px 0 #9e7338;color:#7e6027;font-size:12px;font-weight:800}.large.coin{width:44px;height:44px;font-size:20px}
.hero-seat{position:absolute;left:184px;top:220px;display:flex;align-items:center;gap:18px;z-index:7}.hero-info{width:151px;flex:none;display:flex;flex-direction:column;align-items:center;gap:7px}.hero-profile{display:flex;gap:8px;align-items:center;border:1px solid #d4b9778c;border-left:3px solid var(--accent,#c6a555);border-radius:10px;background:var(--seat-bg,#12382d);padding:7px 8px;width:151px;min-height:58px;text-align:left;box-shadow:0 4px 8px #071c1738}.hero-profile .avatar{width:40px;height:40px;font-size:26px}.hero-profile .player-name{font-size:14px}.hero-profile .player-coins{font-size:12px;margin-top:4px}.hero-profile .seat-status{width:17px;height:17px;font-size:11px}.hero-info .history span{width:23px;height:20px;font-size:10px}.hero-info .hand-strength{font-size:10px;line-height:1;color:#e7d6a1}.hero-cards{display:flex;align-items:flex-end;gap:9px}.your-card-wrap{width:68px;text-align:center}.card-action{border:0;background:none;padding:0;display:inline-block;color:inherit}.hero-cards .card{width:62px;height:78px}.hero-cards .card.revealed{transform:translateY(-8px);box-shadow:0 0 0 2px #efd285,0 3px 8px #0e241666}.hero-cards .your-card-wrap:first-child .card:not(.revealed){transform:rotate(-4deg)}.card-caption{display:flex;justify-content:center;align-items:center;gap:3px;font-size:7px;color:#c9dbcc;margin-top:3px;min-height:12px;white-space:nowrap}.card-caption.public{color:#f2d590}.card-action.can-choose .card{animation:chooseGlow 1.6s ease-in-out infinite}.card-action.can-choose:hover .card{transform:translateY(-8px)}.reveal-card-label{display:flex;align-items:center;justify-content:center;gap:4px;padding:4px 5px;margin-top:5px;border-radius:5px;background:#eed18b;color:#23432f;font-size:9px;line-height:1;font-weight:750}.card-action.can-choose{cursor:pointer}.card-action.can-choose:focus-visible{border-radius:7px}
.bet-spot{position:absolute;z-index:4;display:flex;gap:3px;align-items:center;justify-content:center;transform:translate(-50%,-50%);pointer-events:none}.bet-spot .coin{width:20px;height:20px;font-size:10px}.bet-spot.own-bet{left:50%;top:215px}.pot-payout{position:absolute;top:118px;left:50%;z-index:50}.flying-coin{position:absolute;animation:chipFlight .65s cubic-bezier(.2,.7,.3,1) forwards;z-index:50}.deal-cue{animation:dealIn .4s ease-out}.board-cards .new-card{animation:cardTurn .5s ease-out}
.action-panel{position:absolute;right:35px;bottom:16px;width:261px;padding:10px 11px 11px;border:1px solid #7e9d7c4f;border-radius:12px;background:#122f26;z-index:10;min-height:83px;box-shadow:0 5px 12px #07190e1a}.action-panel.active{animation:actionPulse 2s ease-in-out infinite;border-color:#aabe8b70}.action-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;font-weight:650;margin:0 0 8px;min-height:13px}.action-heading .selected-tag{font-size:8px;color:#d6d7b5}.action-buttons{display:flex;gap:7px}.btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:43px;padding:10px 14px;border-radius:8px;font-size:13px;font-weight:750;transition:filter .2s;white-space:nowrap}.action-buttons .btn{flex:1;padding:10px 6px}.action-buttons .hold{background:var(--blue);color:#234959}.action-buttons .raise,.btn-gold{background:var(--gold);color:#25402f}.action-buttons .fold{background:#503e35;color:#f1d2c4;border:1px solid #9b7765}.action-buttons .reraising{background:#74558b;color:#f9e5ff}.action-buttons:has(.reraising) .btn{font-size:11px}.btn-primary{background:#174535;color:#fff0ca}.btn-outline{background:transparent;border:1px solid #abb995;color:#294936}.btn-quiet{background:#e6e9d9;color:#294936}.waiting-state{display:flex;align-items:center;justify-content:center;min-height:43px;font-size:11px;color:#b6cbb6;text-align:center;flex:1}.waiting-state .dots{font-size:25px;letter-spacing:6px;animation:breathe 1.6s infinite}.result-reason{font-size:10px;color:#c7d4b9;margin:-2px 0 8px;line-height:1.25}.result-panel .action-heading{color:#f2d38d}.result-panel .btn{min-height:34px;font-size:12px;padding:7px}.result-extra{display:flex;justify-content:space-between;margin-top:4px}.text-btn{background:none;color:inherit;font-size:10px;padding:4px 0;text-decoration:underline;text-underline-offset:3px}.turn-clock{position:absolute;left:10px;right:10px;top:0;height:2px;background:linear-gradient(to right,#f3d88c var(--progress,100%),transparent var(--progress,100%));border-radius:5px}.pause-cover{position:absolute;inset:0;background:#0e241ccc;backdrop-filter:blur(6px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:24}.pause-cover h2{font:34px Georgia,serif;margin:0 0 20px}.pause-cover .btn{min-width:160px}.pause-cover .btn-quiet{margin-top:10px}
.home-screen{padding:13px 54px 25px;display:grid;grid-template-columns:1fr 1fr;gap:0 52px;position:relative;height:341px}.home-visual{grid-column:1;grid-row:1/8;display:flex;align-items:center;justify-content:center;position:relative}.home-mini-table{width:300px;height:181px;border-radius:50%;background:radial-gradient(ellipse,#2a704f,#1a4b37);border:7px solid #a68a60;box-shadow:0 7px 0 #6b624a,0 21px 30px #213f3126;position:relative;display:flex;align-items:center;justify-content:center}.home-mini-table .card{position:absolute;width:66px;height:92px;transform:rotate(-12deg) translateX(-63px)}.home-mini-table .card:nth-child(2){transform:translateY(-8px);z-index:1}.home-mini-table .card:nth-child(3){transform:rotate(12deg) translateX(63px);z-index:2}.home-mini-table .number{font-size:45px}.home-mini-table .stars{font-size:14px}.home-mini-table .coin{position:absolute;bottom:-13px;right:60px;z-index:3}.home-visual:after{content:"ON THREE";position:absolute;bottom:35px;font-size:8px;letter-spacing:3px;color:#8c987a}.home-greeting{grid-column:2;font-size:9px;text-transform:uppercase;letter-spacing:1.8px;color:#839176;margin:2px 0 8px;font-weight:650}.home-screen h2{grid-column:2;font:normal 31px/1.05 Georgia,serif;letter-spacing:-.9px;margin:0 0 10px}.home-tag{font-size:11px;color:#78836a;margin:0 0 13px;grid-column:2}.home-buttons{grid-column:2;display:grid;gap:8px}.home-buttons .btn{min-height:39px;font-size:12px}.button-caption{grid-column:2;font-size:8px;text-align:center;color:#89937c;margin-top:7px}.home-footer{display:flex;justify-content:space-between;grid-column:2;align-items:center;font-size:9px;color:#778369;margin-top:10px}.screen-content{height:281px;overflow:auto;padding:4px 47px 15px;display:grid;grid-template-columns:1fr 1fr;column-gap:28px;align-content:start}.screen-content h2{font:25px Georgia,serif;margin:3px 0 4px;grid-column:1/-1}.intro{font-size:11px;color:#7a8974;margin:0 0 16px;grid-column:1/-1}.form-field{display:block;margin-bottom:13px;min-width:0}.form-label{display:block;font-size:10px;font-weight:700;margin-bottom:6px;color:#55704f}.form-field select,.form-field input{width:100%;border:1px solid #c4cdb9;background:#fffdf3;border-radius:7px;padding:9px 10px;min-height:36px;font-size:11px;color:#284a35}.form-note{font-size:8px;color:#829477;display:block;margin-top:4px}.segmented{display:flex;gap:4px}.segmented button{flex:1;background:#e8eddd;border:1px solid #c8d2bb;border-radius:6px;padding:9px 5px;font-size:11px;color:#3c583d;min-height:36px}.segmented .selected{background:#1a4b36;color:#fff3d7;border-color:#1a4b36}.settings-bottom{height:60px;position:absolute;bottom:0;left:0;right:0;padding:8px 46px 15px;border-top:1px solid #d7ddcb;background:#fff9e7}.settings-bottom .btn{width:100%;min-height:37px;font-size:12px}
#overlay{position:absolute;inset:0;pointer-events:none;z-index:40}.sheet-backdrop{position:absolute;inset:0;background:#061c17a6;display:flex;align-items:center;justify-content:center;pointer-events:auto;backdrop-filter:blur(4px)}.sheet{background:#fff8e5;color:#244832;border:1px solid #dacb9c;border-radius:17px;width:430px;max-height:350px;box-shadow:0 14px 45px #071c1644;display:flex;flex-direction:column;animation:sheetIn .2s ease-out;overflow:hidden}.sheet-handle{display:none}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 21px 9px;flex:none}.sheet-head h2{font:24px Georgia,serif;margin:0}.sheet-head button{background:#dfe6d3;color:#36533c;width:28px;height:28px;border-radius:50%;font-size:22px}.sheet-body{padding:0 21px 17px;overflow:auto;font-size:12px}.sheet-body p{margin:9px 0;color:#64745c}.sheet-body h3{font-size:13px;margin:17px 0 5px}.sheet-body>.btn{margin-top:10px;width:100%;min-height:38px;font-size:12px}.menu-list{display:grid;gap:4px}.menu-list button{text-align:left;background:#e8eddb;border-radius:7px;min-height:37px;padding:9px 12px;color:#33543d;font-size:12px}.profile-options{display:flex;gap:9px;margin:10px 0 17px}.color-choice{width:38px;height:38px;border-radius:50%;background:var(--seat);border:3px solid transparent;box-shadow:0 0 0 1px #c5ceb9}.color-choice.selected{border-color:#fff3cb;box-shadow:0 0 0 2px #435f3e}.review-row{border:1px solid #cfdbc3;border-radius:9px;padding:10px 12px;margin-top:10px}.review-row.winner{border-color:#b5a165;background:#f3edcf}.review-row p{font-size:10px}.review-cards{display:flex;gap:7px}.review-cards .card{width:48px;height:65px;box-shadow:none}.review-cards .number{font-size:32px}.review-cards .stars{font-size:10px}.log-entry{padding:8px 0;border-bottom:1px solid #cdd6bd;font-size:11px}.volume-field{display:flex;align-items:center;gap:10px;padding:10px 0 6px;font-size:11px}.volume-field input{flex:1;accent-color:#ab843a}.audio-note{font-size:9px!important}
#effects{position:absolute;inset:0;pointer-events:none;z-index:31}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:100;max-width:90%;padding:12px 19px;border-radius:10px;background:#153a2e;color:#fff0c8;box-shadow:0 4px 20px #122c2330;opacity:0;pointer-events:none;font-size:12px;transition:opacity .2s}#toast.visible{opacity:1}
@keyframes breathe{50%{opacity:.5}}@keyframes actionPulse{50%{background:#2d543e}}@keyframes seatNod{40%{transform:translateY(-5px);filter:brightness(1.3)}100%{transform:translateY(0)}}@keyframes chooseGlow{50%{box-shadow:0 0 0 2px #e5ca85,0 0 14px #e9cf7859}}@keyframes cardTurn{from{transform:scaleX(.1);opacity:.4}to{transform:scaleX(1);opacity:1}}@keyframes dealIn{from{transform:translateY(-13px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes chipFlight{from{transform:translate(0,0) rotate(-20deg);opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(25deg);opacity:.05}}@keyframes sheetIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px){.preview-workspace{padding:25px 23px}.preview-intro h1{font-size:31px}.preview-tools{gap:4px}.preview-button{padding:9px 10px}.preview-header{margin-bottom:30px}}@media(max-width:700px){.preview-header{margin-bottom:25px}.preview-tag{font-size:8px;letter-spacing:1px}.preview-intro{display:block}.preview-intro h1{font-size:29px}.preview-tools{margin-top:20px}.preview-footer{flex-direction:column;text-align:center}.preview-note{margin-top:20px}}
@media(max-height:540px) and (orientation:landscape){body{background:#202a22}.preview-workspace{padding:0;min-height:100dvh;max-width:none;justify-content:center;height:100dvh}.preview-header,.preview-intro,.preview-footer,.preview-note{display:none}.phone-stage{padding:0;height:100%;width:100%;align-items:center}.phone-shell{padding:0;box-shadow:none;border-radius:0;background:none}.phone-shell:before{display:none}.phone-viewport{border-radius:0}.island,.home-indicator{display:none}.tv-preview{display:none}}
@media(max-width:600px) and (orientation:portrait){.preview-workspace{display:none}.rotate-hint{display:flex;position:fixed;inset:0;background:radial-gradient(ellipse,#255840,#153a2c);color:#fff1cc;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px}.rotate-device{border:2px solid #b2c6a1;border-radius:14px;width:119px;height:64px;display:flex;align-items:center;justify-content:center;font-size:39px;color:#edd18e}.rotate-hint h2{font:32px Georgia,serif;margin:30px 0 0}.rotate-hint p{color:#b6ceaf;font-size:14px}.rotate-hint>span{font:bold 23px Georgia,serif;margin-top:45px;color:#e3cc8e}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

:fullscreen body{background:#202a22}:fullscreen .preview-workspace{padding:0;max-width:none;height:100dvh;min-height:100dvh}:fullscreen .preview-header,:fullscreen .preview-intro,:fullscreen .preview-footer,:fullscreen .preview-note,:fullscreen .tv-preview{display:none}:fullscreen .phone-stage{padding:0;height:100%;align-items:center}:fullscreen .phone-shell{padding:0;box-shadow:none;border-radius:0;background:none}:fullscreen .phone-shell:before,:fullscreen .island,:fullscreen .home-indicator{display:none}:fullscreen .phone-viewport{border-radius:0}

.board-area .board-cards .card{height:74px}.game-content.hand-result .seat.folded{opacity:.73}

body.immersive{background:#202a22}.immersive .preview-workspace{padding:0;max-width:none;height:100dvh;min-height:100dvh}.immersive .preview-header,.immersive .preview-intro,.immersive .preview-footer,.immersive .preview-note,.immersive .tv-preview{display:none}.immersive .phone-stage{padding:0;height:100%;align-items:center}.immersive .phone-shell{padding:0;box-shadow:none;border-radius:0;background:none}.immersive .phone-shell:before,.immersive .island,.immersive .home-indicator{display:none}.immersive .phone-viewport{border-radius:0}

/* A private card stays legible, but sits in shade behind the public card. */
.hero-cards .card.private-card{background:linear-gradient(135deg,#dce4dc,#c6d2cb);border-color:#9eafa5;box-shadow:inset 0 0 14px #1c3e3026,0 2px 4px #061b1638;color:#2e5044}
.hero-cards .card.private-card:before{border-color:#75908466}
.hero-cards .card.private-card .stars{color:#796332}
.private-mark{position:absolute;top:5px;right:6px;display:flex;color:#3e6253}
.hero-cards .card.revealed{background:#fff8e2}

/* One edge-to-edge public table, with the same seats, cards and felt as the phone. */
.tv-preview[hidden]{display:none!important}
body.public-view{overflow:hidden;background:#202a22}
.public-view .preview-workspace{display:block;max-width:none;min-height:0;height:100dvh;padding:0;margin:0}
.public-view .preview-workspace>:not(#tv-preview),.public-view .rotate-hint{display:none!important}
body.public-view #tv-preview:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100dvh;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;color:var(--cream);background:radial-gradient(ellipse at 50% 38%,#354333,#202a22 80%);--u:min(.078125vw,.138889dvh)}
.tv-header{position:absolute;left:4%;right:4%;top:3%;display:flex;align-items:center;gap:calc(28 * var(--u));z-index:12;height:calc(44 * var(--u))}
.tv-header .brand{font-size:calc(33 * var(--u));letter-spacing:calc(-1.2 * var(--u));white-space:nowrap}
.tv-hand{display:flex;align-items:center;gap:calc(20 * var(--u));font-size:calc(14 * var(--u));font-weight:650;letter-spacing:calc(2 * var(--u));color:#ead699}
.tv-hand span{border-left:1px solid #8ba18c66;padding-left:calc(20 * var(--u));font-size:calc(16 * var(--u));letter-spacing:0;font-weight:500;color:#b6cbb8}
.tv-controls{margin-left:auto;display:flex;gap:calc(10 * var(--u))}
.tv-controls button{display:flex;gap:calc(7 * var(--u));align-items:center;border:1px solid #aec3a847;background:#1d3126a6;color:#cbd8c9;border-radius:calc(8 * var(--u));padding:calc(10 * var(--u)) calc(13 * var(--u));font-size:calc(13 * var(--u));white-space:nowrap;min-height:calc(38 * var(--u))}
.tv-controls svg{width:calc(16 * var(--u));height:calc(16 * var(--u))}
.tv-controls button:hover{background:#3a5140;color:#fff3d1}
.tv-table{position:absolute;inset:0}
.tv-table .felt{left:8%;right:8%;top:23%;bottom:12%;border-width:calc(12 * var(--u));box-shadow:0 0 0 calc(2 * var(--u)) #b09b70,inset 0 0 0 calc(2 * var(--u)) #443f2b66,0 calc(8 * var(--u)) 0 calc(3 * var(--u)) #171e18,0 calc(16 * var(--u)) calc(35 * var(--u)) #07170f80}
.tv-table .felt:before{inset:calc(20 * var(--u))}
.tv-seat{position:absolute;width:calc(220 * var(--u));z-index:5;text-align:center}
.tv-seat.left{left:4%;top:37%;}
.tv-seat.right{right:4%;top:37%}
.tv-seat.top,.tv-seat.bottom{left:50%;transform:translateX(-50%);display:flex;flex-direction:row-reverse;align-items:center;gap:calc(23 * var(--u));width:calc(425 * var(--u))}
.tv-seat.top{top:12%}
.tv-seat.bottom{bottom:4%}
.tv-seat-info{width:calc(220 * var(--u));flex:none}
.tv-cards.seat-cards{height:calc(118 * var(--u));gap:calc(9 * var(--u));margin:0 0 calc(10 * var(--u));align-items:flex-end}
.tv-seat.top .tv-cards,.tv-seat.bottom .tv-cards{height:auto;flex:none;margin:0 0 calc(20 * var(--u))}
.tv-cards.seat-cards .card{width:calc(81 * var(--u));height:calc(109 * var(--u));border-width:calc(2 * var(--u));border-radius:calc(7 * var(--u))}
.tv-cards .card.back:first-child{transform:rotate(-6deg)}
.tv-cards .card.revealed{transform:translateY(calc(-8 * var(--u)));box-shadow:0 0 0 calc(2 * var(--u)) #efd28588,0 calc(6 * var(--u)) calc(12 * var(--u)) #071c164d}
.tv-cards.seat-cards .number{font-size:calc(57 * var(--u))}
.tv-cards.seat-cards .stars{font-size:calc(17 * var(--u));min-height:calc(18 * var(--u));margin-top:calc(4 * var(--u))}
.tv-cards.seat-cards .was-hidden{font-size:calc(8 * var(--u));bottom:calc(6 * var(--u))}
.tv-preview .card:before{inset:calc(5 * var(--u));border-radius:calc(3 * var(--u))}
.tv-preview .card.back:after{width:calc(35 * var(--u));height:calc(47 * var(--u));font-size:calc(28 * var(--u))}
.tv-seat .plate{min-height:calc(76 * var(--u));padding:calc(10 * var(--u));gap:calc(12 * var(--u));border-left-width:calc(4 * var(--u));border-radius:calc(13 * var(--u));position:relative}
.tv-seat .avatar{width:calc(50 * var(--u));height:calc(50 * var(--u));font-size:calc(33 * var(--u))}
.tv-seat .player-name{font-size:calc(22 * var(--u));line-height:1.1}
.tv-seat .player-coins{font-size:calc(18 * var(--u));gap:calc(6 * var(--u));margin-top:calc(6 * var(--u))}
.tv-seat .coin-icon{width:calc(15 * var(--u));height:calc(15 * var(--u))}
.tv-seat .seat-status{width:calc(25 * var(--u));height:calc(25 * var(--u));right:calc(-5 * var(--u));bottom:calc(-5 * var(--u));font-size:calc(17 * var(--u));border-radius:calc(7 * var(--u))}
.tv-seat .seat-status.pending{font-size:calc(12 * var(--u))}
.tv-seat .seat-feedback{height:calc(40 * var(--u));gap:calc(9 * var(--u))}
.tv-seat .history{gap:calc(5 * var(--u))}
.tv-seat .history span{width:calc(26 * var(--u));height:calc(25 * var(--u));font-size:calc(14 * var(--u));border-radius:calc(4 * var(--u))}
.tv-seat .choice-name{font-size:calc(11 * var(--u));min-width:0;max-width:calc(74 * var(--u));letter-spacing:calc(.4 * var(--u))}
.tv-seat.folded{opacity:.52}.tv-table.hand-result .tv-seat.folded{opacity:.78}
.tv-seat.winner .plate{border-color:#f3d78d;box-shadow:0 0 calc(24 * var(--u)) #f6ce6c40}
.tv-winner{position:absolute;right:calc(-10 * var(--u));top:calc(-13 * var(--u));width:calc(28 * var(--u));height:calc(28 * var(--u));display:flex;align-items:center;justify-content:center;background:#efce84;border-radius:50%;color:#364a2b;font-size:calc(20 * var(--u))}
.tv-board.board-area{left:50%;top:35%;width:calc(430 * var(--u));transform:translateX(-50%);z-index:3}
.tv-board .board-meta{gap:calc(20 * var(--u));margin-bottom:calc(14 * var(--u));min-height:calc(39 * var(--u))}
.tv-board .stage-label{font-size:calc(13 * var(--u));letter-spacing:calc(2 * var(--u))}
.tv-board .pot{border-radius:calc(25 * var(--u));font-size:calc(23 * var(--u));gap:calc(8 * var(--u));padding:calc(7 * var(--u)) calc(15 * var(--u));min-height:calc(39 * var(--u))}
.tv-board .pot strong{font-size:calc(26 * var(--u))}
.tv-preview .coin{width:calc(34 * var(--u));height:calc(34 * var(--u));font-size:calc(18 * var(--u));border-width:calc(2 * var(--u))}
.tv-board .pot .coin{width:calc(25 * var(--u));height:calc(25 * var(--u))}
.tv-board .board-cards{gap:calc(12 * var(--u))}
.tv-board.board-area .board-cards .card{width:calc(107 * var(--u));height:calc(145 * var(--u));border-radius:calc(7 * var(--u));border-width:calc(2 * var(--u))}
.tv-board .number{font-size:calc(83 * var(--u))}.tv-board .stars{font-size:calc(23 * var(--u));min-height:calc(24 * var(--u));margin-top:calc(7 * var(--u))}
.tv-board .card.empty{font-size:calc(40 * var(--u))}
.tv-message{font-size:calc(24 * var(--u));font-weight:700;line-height:1.2;margin:calc(22 * var(--u)) auto 0;color:#eee9ce;text-wrap:balance}
.tv-message.result{color:#f6dd95}
.tv-detail{font-size:calc(15 * var(--u));line-height:1.35;margin:calc(8 * var(--u)) 0 0;color:#bed0b8;text-wrap:balance}
.tv-bet.left{left:28%;top:55%}.tv-bet.right{left:72%;top:55%}.tv-bet.top{left:59%;top:31%}.tv-bet.bottom{left:43%;top:74%}
.tv-table-note{position:absolute;bottom:3%;left:4%;color:#93aa94;font-size:calc(12 * var(--u))}
#tv-effects{position:absolute;inset:0;z-index:10;pointer-events:none}
.tv-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;text-align:center}.tv-empty .brand{font-size:38px}.tv-empty p{color:#b5cbb5}
@media(max-aspect-ratio:4/3){.tv-seat.left,.tv-seat.right{top:40%}.tv-seat.top{top:16%}.tv-seat.bottom{bottom:10%}.tv-board.board-area{top:38%}.tv-table .felt{top:24%;bottom:18%}.tv-bet.bottom{top:72%}.tv-bet.top{top:33%}}

/* Public information only; the same optional hint appears on both tables. */
.hints-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:6px 8px;min-height:29px;border:1px solid #71897766;border-radius:6px;background:transparent;color:#c5d7c7;font-size:10px;white-space:nowrap}
.hints-toggle[aria-pressed=true]{background:#365044;color:#e8e8cc;border-color:#9aa77880}
.tv-controls .hints-toggle[aria-pressed=true]{background:#365044;color:#e8e8cc;border-color:#9aa77880}

/* One legible public-hand ranking, outside the player plates. */
.visible-leaderboard{--l:1px;position:absolute;left:38px;bottom:10px;width:190px;padding:7px 8px 6px;border:1px solid #80947d65;border-radius:10px;background:#142f27ed;box-shadow:0 5px 12px #091a142b;z-index:8;text-align:left}
.leaderboard-heading{height:17px;display:flex;justify-content:space-between;align-items:flex-start;color:#c4d2c1;font-size:10px;font-weight:700;letter-spacing:.4px}
.leaderboard-info{display:flex;align-items:center;justify-content:center;width:11px;height:11px;border:1px solid #9fb39f80;border-radius:50%;font:italic 8px Georgia,serif;color:#9fb39f}
.visible-leaderboard ol{list-style:none;margin:0;padding:0}
.leader-row{display:flex;align-items:center;gap:5px;min-height:28px;padding:2px 0;position:relative;border-top:1px solid #b3c8b20d;color:#f4ebd0;background:#142f27}
.leader-rank{width:10px;text-align:center;font-size:10px;color:#9bac9a;flex:none}
.leader-row .avatar{width:23px;height:23px;font-size:15px}
.leader-person{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.leader-person strong{font-size:11px;font-weight:700;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.leader-cards{border-radius:3px;display:flex;align-items:center;justify-content:flex-end;gap:3px;flex:none;min-width:21px}
.leader-card{width:21px;height:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #91aaa24d;border-radius:3px;background:#c2cec5;color:#244c3e;flex:none}
.leader-card b{font:bold 17px/.9 Georgia,serif}
.leader-card small{font-size:5px;line-height:1;min-height:5px;margin-top:2px;color:#927132;letter-spacing:-.3px}
.leader-card.connected{background:#f8efcf;border-color:#d9c997;color:#204c39}
.leader-empty{font-size:16px;color:#7f9888;padding:0 12px}
.leader-row.made .leader-rank{color:#f1d082}
.leader-row.made .leader-card{background:#fff2cc;border-color:#d9c997;color:#214331}
.leader-row.made .leader-cards{outline:1px solid #f0ce78;outline-offset:2px;box-shadow:0 0 0 2px #f0ce7833,0 0 10px #f0ce7859}
.leader-row.folded{opacity:.43;filter:grayscale(1)}
.with-leaderboard .seat.left,.with-leaderboard .seat.right{top:36px}
.with-leaderboard .hero-seat{left:244px;gap:13px;top:220px}
.with-leaderboard .hero-info,.with-leaderboard .hero-profile{width:122px}
.with-leaderboard .hero-profile{padding:7px 6px;gap:6px}
.with-leaderboard .hero-profile .avatar{width:31px;height:31px;font-size:21px}
.with-leaderboard .hero-profile .player-coins{font-size:11px;gap:3px}
.leader-cards:has(.leader-card:nth-child(4)){gap:2px}
.leader-cards:has(.leader-card:nth-child(4)) .leader-card{width:16px}

.tv-table .visible-leaderboard{left:4%;bottom:4%;width:calc(272 * var(--u));padding:calc(11 * var(--u)) calc(12 * var(--u));border-radius:calc(13 * var(--u))}
.tv-table .leaderboard-heading{height:calc(25 * var(--u));font-size:calc(15 * var(--u));letter-spacing:calc(.5 * var(--u))}
.tv-table .leaderboard-info{width:calc(16 * var(--u));height:calc(16 * var(--u));font-size:calc(12 * var(--u))}
.tv-table .leader-row{gap:calc(7 * var(--u));min-height:calc(40 * var(--u));padding:calc(3 * var(--u)) 0}
.tv-table .leader-rank{width:calc(14 * var(--u));font-size:calc(14 * var(--u))}
.tv-table .leader-row .avatar{width:calc(33 * var(--u));height:calc(33 * var(--u));font-size:calc(22 * var(--u))}
.tv-table .leader-person{gap:calc(3 * var(--u))}
.tv-table .leader-person strong{font-size:calc(16 * var(--u))}
.tv-table .leader-cards{border-radius:calc(4 * var(--u));gap:calc(4 * var(--u));min-width:calc(30 * var(--u))}
.tv-table .leader-card{width:calc(30 * var(--u));height:calc(37 * var(--u));border-radius:calc(4 * var(--u))}
.tv-table .leader-card b{font-size:calc(24 * var(--u))}
.tv-table .leader-card small{font-size:calc(7 * var(--u));min-height:calc(7 * var(--u));margin-top:calc(3 * var(--u))}
.tv-table .leader-cards:has(.leader-card:nth-child(4)){gap:calc(3 * var(--u))}
.tv-table .leader-cards:has(.leader-card:nth-child(4)) .leader-card{width:calc(23 * var(--u))}
.tv-table .leader-empty{font-size:calc(22 * var(--u))}
.tv-table.with-leaderboard .tv-table-note{display:none}
.tv-table.with-leaderboard .tv-seat.left,.tv-table.with-leaderboard .tv-seat.right{top:min(34%,calc(96% - 482 * var(--u)))}

.tv-table .leader-row.made .leader-cards{outline-offset:calc(3 * var(--u));box-shadow:0 0 0 calc(1 * var(--u)) #f0ce7866,0 0 calc(15 * var(--u)) #f0ce7866}

/* A neutral submitted check becomes an action letter only after the reveal. */
.leader-avatar{position:relative;display:flex;flex:none}
.leader-action{position:absolute;right:-3px;bottom:-2px;display:flex;align-items:center;justify-content:center;min-width:13px;height:13px;padding:0 2px;border-radius:4px;border:1px solid #142f27;box-shadow:0 0 0 1px #142f27;font-size:8px;line-height:1;font-weight:850;z-index:1}
.leader-action.ready{background:#d7f3df;color:#187941;border-color:#91cba0;font-size:10px}
.leader-action.raise{background:#efcf84;color:#493c19}
.leader-action.hold{background:#bcdae8;color:#214552}
.leader-action.call{background:#d5e5db;color:#2b5140}
.leader-action.reraise{background:#715286;color:#f2dffa;min-width:17px}
.tv-table .leader-action{right:calc(-4 * var(--u));bottom:calc(-3 * var(--u));min-width:calc(19 * var(--u));height:calc(19 * var(--u));padding:0 calc(3 * var(--u));border-radius:calc(5 * var(--u));font-size:calc(12 * var(--u))}
.tv-table .leader-action.ready{font-size:calc(15 * var(--u))}
.tv-table .leader-action.reraise{min-width:calc(24 * var(--u))}

/* One room, two personal layouts. The TV always receives the public projection. */
.avatar{overflow:hidden}.portrait>.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.view-switch{display:inline-flex;border:1px solid #b1c4b23b;border-radius:7px;padding:2px;gap:2px;flex:none}.view-switch button{font-size:9px;padding:5px 6px;border-radius:4px;background:transparent;color:inherit;min-height:23px}.view-switch button.selected{background:#e9d08e;color:#243b2e;font-weight:750}.table-share{border:1px solid #b7c7ad50;border-radius:6px;background:#314533;color:#f2e8cb;padding:6px;font-size:10px}.play-header{gap:7px}.room-connected .play-header .table-mode{display:none}.play-header .hand-counter{margin-left:0;gap:7px}.play-header .hand-counter span+span{padding-left:7px}.play-header .view-switch{margin-left:auto}.play-header .hints-toggle{margin-left:0}.play-header .sound-toggle{font-size:9px;padding:5px}
.home-buttons{gap:5px}.home-buttons .btn{min-height:32px;font-size:11px;padding:7px}.home-screen .home-tag{margin-bottom:8px}.home-screen .return-room{grid-column:2;font-size:9px;padding:3px}.home-screen .button-caption{margin-top:3px}.home-screen h2{font-size:29px}.home-footer{margin-top:5px}
.room-top{height:52px;padding:10px 38px;display:flex;align-items:center;gap:10px}.room-top .brand{font-size:25px}.room-top .view-switch{margin-left:auto}.room-top .icon-button{border-color:#778d7544;width:30px;height:30px}.room-lobby{padding:4px 48px 22px;height:338px;overflow:auto;position:relative;color:#244431}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:750;color:#957943;margin:6px 0 7px}.room-lobby h2{font:30px/1.1 Georgia,serif;letter-spacing:-.5px;margin:6px 0 8px}.lobby-description{font-size:12px;color:#73816b;margin:0 0 15px}.lobby-roster{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.lobby-seat{border:1px solid var(--accent,#8a9a7d);border-left-width:3px;border-radius:10px;background:var(--seat-bg,#e9eddc);color:#fff1ce;padding:9px 12px;display:flex;align-items:center;gap:10px;min-height:62px;min-width:0}.lobby-seat>div{min-width:0;flex:1}.lobby-seat strong{font-size:14px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lobby-seat small{display:block;margin-top:4px;font-size:10px;color:#e1dfca}.lobby-seat .avatar{height:38px;width:38px}.lobby-seat.empty-seat{background:#ebeede;color:#718365;border:1px dashed #b1bba3;justify-content:space-between;font-size:12px}.remove-seat{background:#ffffff12;color:#e9dfc8;border-radius:50%;font-size:20px;width:28px;height:28px}.lobby-actions{display:flex;gap:10px}.lobby-actions .btn{flex:1;font-size:12px;min-height:37px;padding:8px}.lobby-foot,.tv-entry{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#78856f;gap:12px;margin-top:12px}.tv-entry a{color:#41604a;font-size:11px;text-decoration:none;border-bottom:1px solid #a2b099}.inline-error{color:#a44735!important;font-size:12px}.room-lobby .inline-error:empty{display:none}.photo-editor{display:flex;align-items:center;gap:20px;margin:10px 0 20px}.profile-preview{width:90px;height:90px;border-radius:50%;background:var(--seat);color:#f4dfac;display:flex;align-items:center;justify-content:center;font:bold italic 45px Georgia,serif;overflow:hidden;border:3px solid #c2ad72;flex:none}.profile-preview img{width:100%;height:100%;object-fit:cover}.photo-options{display:flex;flex-wrap:wrap;gap:8px}.photo-pick{padding:8px 10px;border:1px solid #bbc7ae;border-radius:7px;font-size:11px;cursor:pointer;background:#eef0e2}.profile-options{flex-wrap:wrap;gap:10px}.color-choice{color:var(--accent);border:2px solid var(--accent);font-size:19px;box-shadow:none}.color-choice.selected{border-color:var(--accent);box-shadow:0 0 0 2px #fff8e5,0 0 0 4px var(--accent)}.profile-editor>.btn{width:100%}.profile-editor input{font-size:16px!important}.share-block{padding:8px 0 16px}.share-block+.share-block{border-top:1px solid #c6ccb8}.share-block h3{font:22px Georgia,serif;margin:4px 0}.share-block p{font-size:12px}.share-link{border:1px solid #c6cdb8;background:#fffdf2;padding:10px;border-radius:7px;font-size:11px;color:#50634a;width:100%;text-overflow:ellipsis}.share-buttons{display:flex;gap:8px;margin-top:10px}.share-buttons .btn{flex:1;min-height:38px;font-size:12px;padding:8px 10px;text-decoration:none}.large-qr{max-width:260px;margin:10px auto}.large-qr svg{width:100%;height:auto}.join-qr{display:block;background:white;border-radius:5px;flex:none}.tv-open-seat button{background:#18382cd9;color:#ebd7a8;border:1px solid #b4a06a88;display:flex;gap:calc(10 * var(--u));align-items:center;padding:calc(10 * var(--u));border-radius:calc(10 * var(--u));font-size:calc(13 * var(--u));margin:auto}.tv-open-seat .join-qr{width:calc(100 * var(--u));height:calc(100 * var(--u))}.tv-open-seat.top{top:9%}.tv-open-seat.bottom{bottom:2%}.tv-lobby-seats{display:flex;justify-content:center;gap:20px;margin:32px auto}.tv-lobby-seats>button,.tv-lobby-player{border:1px solid var(--accent,#b4a16a);border-radius:15px;padding:18px;background:var(--seat-bg,#15382b);color:#fff0cd;display:flex;flex-direction:column;align-items:center;gap:12px;width:190px;min-height:215px;justify-content:center}.tv-lobby-seats .join-qr{width:140px;height:140px}.tv-lobby-player img,.tv-lobby-player>span{width:110px;height:110px;object-fit:cover;border-radius:50%;border:2px solid var(--accent);display:grid;place-items:center;font:60px Georgia,serif}.tv-lobby-player strong{font-size:19px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-lobby-player small{color:#d0d9bd}.public-view>#overlay{position:fixed;inset:0;z-index:50}.public-view .sheet{max-height:85dvh;width:440px}.public-view .sheet-head h2{font-size:27px}.public-view .sheet-body{font-size:16px}
body.controller-mode{background:#e9eade}.controller-mode .rotate-hint{display:none!important}.controller-mode .preview-workspace{display:flex;padding:28px;max-width:1100px;height:auto;min-height:100dvh}.controller-mode .preview-header{margin-bottom:20px}.controller-mode .preview-intro{margin-bottom:15px}.controller-mode .phone-stage{height:auto;padding:10px 0}.controller-mode .phone-shell{border-radius:40px;padding:9px}.controller-mode .phone-viewport{width:390px;height:720px;border-radius:32px}.controller-mode .phone{width:390px;height:720px;transform:none;overflow:auto}.controller-mode .phone.playing{background:#fff8e5;color:#214532}.controller-mode .island,.controller-mode .home-indicator{display:none}.controller-mode #app{height:auto;min-height:100%}.controller-mode .room-top{padding:14px 18px;height:62px;border-bottom:1px solid #d6d9c7;background:#fffbed}.controller-mode .room-top .brand{font-size:24px}.controller-mode .view-switch{border-color:#b4c0a4}.controller-mode .view-switch button{font-size:10px;min-height:28px;padding:4px 6px}.controller-content{padding:20px 20px 22px}.controller-identity{display:flex;align-items:center;gap:13px;border:1px solid var(--accent);border-left-width:4px;background:var(--seat-bg);border-radius:14px;padding:14px;color:#fff1d2}.controller-identity .avatar{width:60px;height:60px;font-size:34px;border:2px solid var(--accent)}.controller-identity>div:nth-child(2){min-width:0;flex:1}.controller-identity strong{display:block;font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controller-identity>div>span{display:flex;align-items:center;gap:6px;font-size:16px;margin-top:7px;color:#edddae}.controller-identity .text-btn{font-size:11px;color:#cbd2b9}.controller-identity .seat-status{width:22px;height:22px;font-size:12px}.controller-meta{display:flex;justify-content:space-between;margin:17px 1px;color:#77866d;font-size:12px}.controller-hand{border:1px solid #cfccad;background:radial-gradient(ellipse at 45% 35%,#30694e,#204f3c);border-radius:18px;padding:25px 16px 13px;box-shadow:0 3px 0 #b5ab84}.controller-cards{display:flex;justify-content:center;gap:14px}.controller-cards .your-card-wrap{width:130px}.controller-cards .card{width:130px;height:168px;border-radius:9px}.controller-cards .number{font-size:82px}.controller-cards .stars{font-size:23px;min-height:24px;margin-top:7px}.controller-cards .card.back:after{width:46px;height:61px;font-size:35px}.controller-cards .card-caption{font-size:11px;margin-top:10px;min-height:16px}.controller-cards .card.revealed{box-shadow:0 0 0 2px #e9cc7c;transform:translateY(-5px)}.controller-cards .reveal-card-label{font-size:12px;min-height:34px;margin-top:12px}.controller-cards .was-hidden{font-size:10px;bottom:8px}.controller-cards .private-mark{top:9px;right:9px}.controller-cards .private-mark svg{width:15px;height:15px}.privacy-toggle{display:flex;align-items:center;justify-content:center;gap:7px;margin:15px auto 0;min-height:34px;padding:7px 14px;border:1px solid #819d7f66;border-radius:20px;background:#173d2f;color:#dde5cc;font-size:12px}.controller-content>.action-panel{position:relative;inset:auto;width:auto;min-height:112px;margin:22px 0 0;border-radius:15px;padding:17px;background:#e5e9d7;color:#28513a;border-color:#bac6a6;box-shadow:none}.controller-content>.action-panel.active{animation:controllerPulse 2s ease-in-out infinite}.controller-content .action-heading{font-size:15px;margin-bottom:12px}.controller-content .action-buttons .btn{font-size:16px;min-height:52px;border-radius:10px}.controller-content .action-buttons:has(.reraising){flex-wrap:wrap}.controller-content .action-buttons .reraising{min-width:100%}.controller-content .selected-tag{font-size:10px;color:#477352}.controller-content .waiting-state{color:#637b5c;font-size:14px;min-height:35px}.controller-content .result-reason{font-size:13px;line-height:1.5;color:#57704e}.controller-content .result-panel .action-heading{color:#375532}.controller-content .result-extra{margin-top:10px}.controller-content .result-extra .text-btn{font-size:12px}.controller-footer{display:flex;justify-content:space-between;align-items:center;margin-top:17px;font-size:11px;color:#7b896f}.controller-footer .text-btn{font-size:11px}.controller-mode .sheet{max-height:calc(100% - 30px);width:calc(100% - 26px);border-radius:20px}.controller-mode .sheet-head{padding:20px 20px 13px}.controller-mode .sheet-body{padding:0 20px 23px}.controller-mode .sheet-body>.btn{min-height:44px}.controller-mode .sheet-body p{font-size:13px}.controller-mode .menu-list button{min-height:46px;font-size:14px}.controller-mode .profile-options{gap:12px}.controller-mode .color-choice{width:40px;height:40px}.controller-mode .share-buttons{flex-wrap:wrap}.controller-mode .share-buttons .btn{min-width:110px;min-height:44px}.controller-mode .share-block h3{font-size:24px}.controller-mode .form-label{font-size:12px}.controller-mode .form-field select{font-size:14px;min-height:42px}.controller-mode .room-lobby{padding:18px 22px 25px;height:auto;min-height:600px}.controller-mode .room-lobby h2{font-size:35px}.controller-mode .lobby-description{font-size:14px}.controller-mode .lobby-roster{grid-template-columns:1fr;gap:9px;margin:22px 0}.controller-mode .lobby-seat{min-height:63px;padding:10px 14px}.controller-mode .lobby-seat strong{font-size:17px}.controller-mode .lobby-seat small{font-size:12px}.controller-mode .empty-seat{min-height:48px}.controller-mode .lobby-actions{flex-direction:column}.controller-mode .lobby-actions .btn{font-size:15px;min-height:46px}.controller-mode .lobby-foot{flex-wrap:wrap;font-size:11px}.controller-mode .lobby-foot .text-btn,.controller-mode .tv-entry a,.controller-mode .tv-entry .text-btn{font-size:12px}.controller-mode .tv-entry{margin-top:20px}.controller-mode .home-screen{height:auto;display:block;padding:20px 27px 30px}.controller-mode .home-visual{height:207px}.controller-mode .home-visual:after{display:none}.controller-mode .home-greeting{margin-top:20px;font-size:10px}.controller-mode .home-screen h2{font-size:37px;margin:9px 0 12px}.controller-mode .home-tag{font-size:14px;margin:0 0 21px}.controller-mode .home-buttons .btn{min-height:45px;font-size:15px}.controller-mode .home-buttons{gap:10px}.controller-mode .button-caption{display:block;font-size:11px;margin-top:12px}.controller-mode .home-footer{font-size:11px;margin-top:22px}.controller-mode .home-footer .text-btn{font-size:11px}.controller-mode .app-header{padding:16px 24px;height:65px;gap:8px}.controller-mode .app-header .brand{font-size:27px}.controller-mode .screen-content{display:block;height:580px;padding:15px 25px 85px}.controller-mode .settings-bottom{position:sticky;bottom:0;height:70px;padding:12px 25px}.controller-mode .screen-content h2{font-size:30px}.controller-mode .intro{font-size:13px}.controller-mode .form-field{margin-bottom:18px}.controller-mode .profile-editor .btn{font-size:15px;min-height:47px}.controller-mode .photo-pick{font-size:12px;min-height:39px}.controller-mode .form-field input{min-height:45px}.controller-mode .room-top .invite-small{font-size:23px}.controller-mode .view-switch+.icon-button{margin-left:0}
@keyframes controllerPulse{50%{background:#cbdcc2;box-shadow:0 0 0 3px #a8bd8c44}}
@media(max-width:600px) and (orientation:portrait){body.controller-mode{background:#fff8e5}.controller-mode .preview-workspace{display:block;padding:0;margin:0;width:100%;max-width:none;min-height:100dvh}.controller-mode .preview-header,.controller-mode .preview-intro,.controller-mode .preview-footer,.controller-mode .preview-note{display:none}.controller-mode .phone-stage{padding:0;display:block}.controller-mode .phone-shell{border-radius:0;box-shadow:none;background:none;padding:0;width:100%}.controller-mode .phone-shell:before{display:none}.controller-mode .phone-viewport{width:100%;height:100dvh;border-radius:0;overflow:auto}.controller-mode .phone{width:100%;min-height:100dvh;height:auto;overflow:visible}.controller-mode #overlay{position:fixed}.controller-mode .room-top{padding-top:max(14px,env(safe-area-inset-top));height:auto;min-height:62px}.controller-mode .controller-content{padding-bottom:max(25px,env(safe-area-inset-bottom))}}
@media(max-height:540px) and (orientation:landscape){.room-connected .room-lobby{height:338px}.controller-mode .preview-workspace{display:block;padding:0;height:auto}.controller-mode .preview-header,.controller-mode .preview-intro,.controller-mode .preview-footer,.controller-mode .preview-note{display:none}.controller-mode .phone-viewport,.controller-mode .phone{min-height:100dvh;height:auto}.controller-mode .phone-shell{margin:auto;display:block;width:408px}.controller-mode .phone-stage{display:block}}
@media(prefers-reduced-motion:reduce){.controller-content>.action-panel.active{animation:none;background:#d3e1ca}.controller-cards .card-action.can-choose .card{animation:none;box-shadow:0 0 0 2px #e8cf83}}
@media(max-width:360px) and (orientation:portrait){.controller-mode .room-top{padding-left:14px;padding-right:14px;gap:6px}.controller-mode .room-top .brand{font-size:21px;letter-spacing:-1px}.controller-mode .room-top .icon-button{width:27px;height:27px;flex:none}.controller-mode .view-switch button{font-size:9px;padding:4px}.controller-content{padding:16px}.controller-hand{padding:20px 12px 12px}.controller-cards{gap:12px}.controller-cards .your-card-wrap{width:110px}.controller-cards .card{width:110px;height:145px}.controller-cards .number{font-size:70px}.controller-cards .stars{font-size:20px}.controller-cards .card-caption{font-size:10px}.controller-identity{padding:12px;gap:10px}.controller-identity .avatar{width:50px;height:50px}.controller-identity strong{font-size:19px}.controller-content .action-buttons .btn{font-size:15px}.controller-mode .room-lobby{padding:18px 18px 25px}}
/* Private cards peel at the corner; public cards stay fully face up. */
.controller-hand{padding-bottom:20px}
:is(.controller-cards,.hero-cards) .peek-card{--peek-open-clip:polygon(0% 0%,100% 0%,100% 12%,3% 100%,0% 100%);position:relative;display:block;border-radius:9px;cursor:pointer;touch-action:manipulation;-webkit-touch-callout:none;user-select:none}
:is(.controller-cards,.hero-cards) .peek-card:focus-visible{outline:3px solid #e7cf8a;outline-offset:5px}
:is(.controller-cards,.hero-cards) .peek-surface{position:relative;display:block;overflow:hidden;border:0;background:#fff8e2;isolation:isolate}
:is(.controller-cards,.hero-cards) .peek-surface:before{display:none}
:is(.controller-cards,.hero-cards) .peek-front{position:absolute;inset:0;border:2px solid #d8c794;border-radius:inherit;background:linear-gradient(135deg,#c7ba95 20%,#fff8e2 66%);box-shadow:inset 0 0 0 5px #fff8e2,inset 0 0 0 6px #e6dbb9}
:is(.controller-cards,.hero-cards) .peek-back.card{position:absolute;inset:0;width:100%;height:100%;margin:0;box-shadow:none;clip-path:polygon(0% 0%,100% 0%,100% 90%,86% 100%,0% 100%)}
:is(.controller-cards,.hero-cards) .peek-open .peek-back{clip-path:var(--peek-open-clip)}
:is(.controller-cards,.hero-cards) .peek-number{position:absolute;right:9%;bottom:19%;font:bold 46px/.9 Georgia,serif;color:#174c3b}
:is(.controller-cards,.hero-cards) .peek-stars{position:absolute;right:8%;bottom:7%;font-size:17px;line-height:1;letter-spacing:1px;color:#9b6c25;white-space:nowrap}
:is(.controller-cards,.hero-cards) .peek-curl{position:absolute;inset:0;width:100%;height:100%;transform-origin:100% 100%;transform:scale(.16);filter:drop-shadow(2px 3px 3px #1d29194d);pointer-events:none}
:is(.controller-cards,.hero-cards) .peek-open .peek-curl{transform:scale(1)}
:is(.controller-cards,.hero-cards) .peek-hint{position:absolute;bottom:12px;left:9px;color:#f4e4b6;font-size:10px;font-weight:650;letter-spacing:.1px;pointer-events:none}
:is(.controller-cards,.hero-cards) .peek-open .peek-hint{top:13px;bottom:auto;left:12px;color:#f4e4b6}
:is(.controller-cards,.hero-cards) .peek-open .peek-back:after{transform:translate(-13px,-18px) scale(.72)}
:is(.controller-cards,.hero-cards) .peek-card:disabled .peek-back{clip-path:none}
.controller-cards .card.revealed{transform:none}
@media(max-width:360px) and (orientation:portrait){.controller-cards .peek-number{font-size:40px}.controller-cards .peek-stars{font-size:15px;letter-spacing:.5px}.controller-cards .peek-hint{font-size:9px}}
.controller-cards .reveal-to-table{margin-top:9px;display:flex;gap:5px;align-items:center;justify-content:center;min-height:40px;width:100%;font-size:12px;border-radius:8px;background:#ead08f;color:#26482f;font-weight:750}.controller-cards .reveal-to-table:disabled{background:#224936;color:#a5ba96;opacity:.75}

/* Private corners stay open by default; peek mode adds tap-to-cover privacy. */
.hero-seat.private-corners{top:218px}
.game-content>.board-area .table-message{position:absolute;top:104px;right:156px;width:148px;max-width:148px;text-align:right;line-height:11px}
.hero-seat.private-corners .hero-cards .card{width:74px;height:94px}
.hero-cards .your-card-wrap .peek-surface,.hero-cards .your-card-wrap .peek-back{transform:none!important}
.hero-cards .peek-back.card{width:100%;height:100%;border-radius:7px}
.hero-cards .peek-surface{border-radius:7px}
.hero-cards .peek-front{border-width:1px;box-shadow:inset 0 0 0 3px #fff8e2,inset 0 0 0 4px #e6dbb9}
.hero-cards .peek-number{right:8%;bottom:20%;font-size:34px}
.hero-cards .peek-stars{right:7%;bottom:7%;font-size:12px;letter-spacing:.2px}
.hero-cards .peek-hint{left:6px;bottom:7px;font-size:7px;letter-spacing:0}
.hero-cards .peek-open .peek-hint{top:8px;left:6px}
.hero-cards .peek-open .peek-back:after{transform:translate(-8px,-8px) scale(.6)}
.hero-cards .reveal-to-table{display:flex;align-items:center;justify-content:center;gap:3px;width:100%;min-height:24px;margin-top:5px;border-radius:5px;background:#ead08f;color:#26482f;font-size:8px;font-weight:750}
.hero-cards .reveal-to-table:disabled{background:#264a38;color:#a8baa3;opacity:.75}

/* Guests choose a seat directly; profile setup belongs to that seat. */
.lobby-seat.take-seat{width:100%;text-align:left;transition:background .15s,border-color .15s}
.lobby-seat.take-seat>span{font-weight:700;color:#375a42}
.lobby-seat.take-seat small{margin:0;color:#718365;font-size:10px}
.lobby-seat.take-seat:hover{background:#dce6ce;border-color:#748c63}
.lobby-actions:empty{display:none}
.controller-mode .lobby-seat.take-seat{min-height:63px;font-size:15px}
.controller-mode .lobby-seat.take-seat small{font-size:11px}

.hero-cards .peek-card.peek-static{cursor:default}

/* In-game rules can be edited without resetting a table. */
.table-settings-sheet{width:530px;max-width:calc(100% - 32px);max-height:calc(100% - 24px)}
.table-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin-top:15px}
.table-settings-grid .form-field{margin-bottom:10px}
.table-settings-grid .form-note{font-size:9px;line-height:1.5;color:#64745c}
.sheet-body .settings-timing{background:#e9eddc;border-radius:8px;padding:8px 12px;line-height:1.5;margin-top:4px}
.table-settings-footer{position:sticky;bottom:-17px;background:#fff8e5;padding:9px 0 2px;border-top:1px solid #d6d9c7}
.table-settings-footer>.btn{width:100%;min-height:40px;font-size:13px}
.settings-error:empty{display:none}
.settings-pending-note{padding:9px 12px;border:1px solid #c6ad68;border-radius:7px;background:#f3e8c3}
.controller-mode .table-settings-grid{grid-template-columns:1fr;gap:0}
.controller-mode .table-settings-grid .form-note{font-size:11px}
.controller-mode .table-settings-footer{bottom:-23px;padding:12px 0 0}
.controller-mode .table-settings-footer>.btn{min-height:46px;font-size:15px}
