:root{--ink:#253d32;--muted:#7b8275;--green:#30553e;--paper:#f7f6ef;--line:#dedfd3;--lime:#d8e5a6;--serif:Georgia,'Times New Roman',serif;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #a3b868;outline-offset:4px}a{color:inherit;text-decoration:none}.header{max-width:1440px;margin:auto;padding:30px 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font:32px var(--serif);letter-spacing:-1.6px}.brand-mark{font-size:44px;line-height:1}.brand-sub{display:block;font:9px Arial;letter-spacing:3.1px;margin-top:4px}.header nav{display:flex;gap:40px;align-items:center}.nav-note{font:italic 15px var(--serif);color:var(--muted)}button{border:0}.text-button{background:none;color:var(--ink);padding:10px;font-size:13px}.text-button span{margin-left:10px}.primary,.secondary,.dark-button{padding:17px 24px;border-radius:6px;display:inline-flex;gap:15px;align-items:center;justify-content:center;font-size:13px;font-weight:600;min-height:50px}.primary{background:var(--green);color:#fff}.primary:hover:not(:disabled),.dark-button:hover{background:#1c392a}.secondary{background:transparent;border:1px solid #ccd1c1;color:var(--ink)}.secondary:hover{background:#e9eddf}.dark-button{background:var(--ink);color:white}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;display:block}.eyebrow i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6f8b4b;margin-right:8px}.home{max-width:1440px;margin:auto;display:grid;grid-template-columns:1.05fr 1fr;gap:30px;padding:76px 5% 75px;align-items:center}.hero-copy h1{font:clamp(40px,4.4vw,66px)/1.1 var(--serif);letter-spacing:-2.3px;margin:26px 0}.hero-copy h1 em{color:#68834f;font-weight:400}.hero-copy>p{color:#777f72;font-size:15px;line-height:1.85;max-width:385px}.hero-actions{display:flex;gap:12px;margin-top:30px}.trust-line{display:flex;gap:19px;font-size:10px;color:#808776;margin-top:26px}.hero-art{position:relative;padding:25px 20px 37px;height:485px}.table-label{text-align:center;font-size:8px;letter-spacing:2.3px;margin-bottom:19px;color:#878b7b}.felt{position:relative;height:350px;background:#31563f;border-radius:170px;box-shadow:inset 0 0 50px #183e25,0 9px 0 #d8d8bb,0 12px 0 #b7bea4,0 25px 40px #30402b17;border:10px solid #d8ddc6;transform:rotate(-7deg)}.felt:after,.game-table:after{content:'';position:absolute;inset:14px;border:1px solid #ffffff16;border-radius:inherit;pointer-events:none}.felt-inner{position:absolute;inset:60px;border:1px solid #ffffff19;border-radius:100px;display:flex;align-items:center;flex-direction:column;justify-content:center;color:#b1c09865}.felt-club{font-size:75px}.felt-word{font:italic 17px var(--serif)}.art-player{position:absolute;display:flex;align-items:center;gap:7px;transform:rotate(7deg);font-size:10px;color:#52614b}.art-player>span:last-child{background:var(--paper);padding:8px;border-radius:8px;box-shadow:0 3px 12px #0000000b}.art-player i{width:5px;height:5px;background:#719160;border-radius:50%;display:inline-block;margin-left:4px}.art-top{top:-29px;left:43%}.art-left{left:-27px;top:40%;flex-direction:column}.art-right{right:-23px;top:40%;flex-direction:column}.avatar{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font:19px var(--serif);border:3px solid var(--paper);flex-shrink:0}.clay{background:#d6af9b;color:#6c4633}.sand{background:#dfc888;color:#6c5a27}.sage{background:#b9c8a0;color:#364b2e}.blue{background:#bed0ce;color:#354e50}.art-deck{display:flex;position:absolute;top:105px;left:calc(50% - 69px);gap:15px;transform:rotate(7deg)}.card{display:inline-block;position:relative;width:66px;height:94px;flex-shrink:0;background:#fffdf5;border:1px solid #d8d8c9;border-radius:5px;color:#253c32;box-shadow:0 2px 4px #00000016;user-select:none}.red{color:#ad5544}.card-corner{position:absolute;top:6px;left:6px;font:bold 17px var(--serif);text-align:center;line-height:1}.card-corner small{display:block;font-size:13px;margin-top:1px}.card-center{position:absolute;left:0;right:0;top:30px;text-align:center;font-size:30px}.card-bottom{position:absolute;right:6px;bottom:5px;font:bold 15px var(--serif);transform:rotate(180deg)}.back-card{display:inline-block;width:66px;height:94px;border:5px solid #faf8e9;border-radius:5px;background:repeating-linear-gradient(45deg,#b4c1a0 0 1px,#3e644c 1px 5px);box-shadow:0 2px 0 #ced5bf,0 4px 0 #f3f2df,0 6px 7px #0003}.art-hand{position:absolute;bottom:-35px;left:calc(50% - 130px);display:flex;transform:rotate(7deg)}.art-hand .card{width:74px;height:108px;margin-left:-20px}.art-hand .card:first-child{margin-left:0}.fan-0{transform:rotate(-20deg) translateY(15px)}.fan-1{transform:rotate(-10deg) translateY(3px)}.fan-3{transform:rotate(10deg) translateY(3px)}.fan-4{transform:rotate(20deg) translateY(15px)}.art-you{position:absolute;bottom:-75px;left:0;right:0;text-align:center;font:italic 13px var(--serif);color:#858875;transform:rotate(7deg)}.art-sticker{position:absolute;right:-5px;bottom:8px;transform:rotate(7deg);background:#e9eccd;width:125px;height:125px;border-radius:50%;padding:22px 18px;font:italic 14px/1.4 var(--serif);text-align:center;box-shadow:0 4px 8px #00000008}.art-sticker>span{font:30px var(--serif);float:left;margin-right:7px;margin-left:14px}.art-sticker i{font-size:25px;position:absolute;right:8px;top:0;color:#7d9367}.join-strip{max-width:1296px;margin:0 auto;background:#edeee2;border:1px solid #e0e3d3;border-radius:8px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;gap:25px;width:90%}.join-strip h2{font:23px var(--serif);letter-spacing:-.4px;margin:9px 0 0}.join-strip .eyebrow{font-size:8px}.join-strip form{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}input{border:1px solid #d7dccd;border-radius:5px;padding:15px;background:#fafaf5;color:var(--ink);min-width:0}.join-strip input{width:150px;font-size:12px}#join-code{text-transform:uppercase;letter-spacing:1px}.features{max-width:1440px;margin:auto;padding:60px 5%;display:grid;grid-template-columns:repeat(3,1fr);gap:65px}.feature-icon{font:31px var(--serif);color:#7d8f64}.features h3{font:22px var(--serif);margin:14px 0 10px}.features p{font-size:13px;line-height:1.8;color:#838877;max-width:300px}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;margin:0 5%;padding:25px 0;font-size:10px;color:#8a8e80}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{width:min(560px,92vw);border:1px solid #d2d8c4;border-radius:14px;background:var(--paper);color:var(--ink);padding:32px;box-shadow:0 20px 80px #12271933;max-height:88vh}dialog::backdrop{background:#142b226e;backdrop-filter:blur(4px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.icon-button{font-size:26px;color:var(--ink);background:transparent}dialog h2{font:34px var(--serif);margin:16px 0}dialog p{color:#757f6e;font-size:14px;line-height:1.7}dialog label{display:block;font-size:12px;font-weight:bold;margin:25px 0 8px}dialog input{width:100%}dialog .primary{width:100%;margin-top:15px}.setting{display:flex;justify-content:space-between;background:#eceedf;border-radius:6px;padding:16px;margin:18px 0;font-size:12px}.setting span:last-child{color:#78816b}.small-note{font-size:11px!important;line-height:1.7;color:var(--muted)}.rules-list{padding-left:20px;font-size:13px;line-height:1.7}.rules-list li{padding:8px 0}details{font-size:12px;border-top:1px solid var(--line);padding-top:15px}summary{cursor:pointer}#toast{position:fixed;z-index:100;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#203b2e;color:#fffdf0;padding:16px 24px;border-radius:7px;box-shadow:0 8px 35px #0002;max-width:90vw;width:max-content;font-size:13px;line-height:1.5;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}.lobby{max-width:1000px;margin:65px auto;text-align:center;padding:0 25px}.lobby h1{font:55px var(--serif);margin:20px}.lobby>p{max-width:540px;line-height:1.8;margin:auto;color:var(--muted);font-size:14px}.invite{display:flex;align-items:center;justify-content:center;gap:40px;margin:35px auto;background:#e9ecdd;padding:22px;border-radius:8px;width:fit-content}.invite div{text-align:left}.invite span{font-size:9px;letter-spacing:2px;display:block}.invite b{font-size:25px;letter-spacing:4px;display:block;margin-top:6px}.lobby-seats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:40px 0}.seat{border:1px dashed #d1d6c5;border-radius:10px;padding:28px 15px;background:#f0f1e8}.seat.filled{border-style:solid;background:#fffef8}.seat h3{font:19px var(--serif)}.seat p{font-size:11px;color:var(--muted)}.seat .avatar,.empty-avatar{width:55px;height:55px;font-size:25px}.empty-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#e4e8d9;color:#9aa88c}.game-shell{max-width:1440px;margin:30px auto 50px;padding:0 4%}.game-title{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:22px}.game-title .eyebrow{font-size:8px}.game-title h2{font:25px var(--serif);margin:9px 0}.game-title h2 span{font-size:18px;color:var(--muted)}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:25px}.scorebar{display:flex;border:1px solid var(--line);background:#fdfcf5;border-radius:8px 8px 0 0;align-items:center}.score-team{flex:1;padding:15px 25px;border-right:1px solid var(--line)}.score-team>span{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.score-team b{font:25px var(--serif)}.score-team small{font:12px Arial;color:#929985}.score-team.yours{background:#edf0df}.round-label{font-size:10px;line-height:1.8;padding:0 20px;color:#828a77}.game-table{position:relative;background:radial-gradient(ellipse at center,#385e47,#244834);color:#eef2de;border:8px solid #c8cfb5;border-radius:0 0 16px 16px;padding:18px 24px;min-height:400px}.opponents{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding-bottom:20px;position:relative;z-index:1}.player-box{display:flex;align-items:center;gap:6px;padding:6px;border-radius:6px;background:#ffffff08;min-width:0;position:relative}.player-box.active{background:#ffffff18;box-shadow:0 0 0 1px #c8d99f80}.player-box .avatar{border-color:#a1b39336;width:29px;height:29px;font-size:15px}.player-box b{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.player-box b small{font-size:9px;font-weight:400}.player-box div>span{font-size:8px;color:#c0cfb5;display:block;margin-top:4px}.turn-dot{position:absolute;right:5px;top:5px;border-radius:50%;background:#dce6a4;width:5px;height:5px}.table-section{font-size:8px;letter-spacing:1.5px;color:#bdcba9;display:block;margin-bottom:10px}.meld-area{min-height:80px}.meld-row{display:flex;flex-wrap:wrap;gap:14px;min-height:54px}.empty-meld{font:italic 12px var(--serif);color:#b5c7ac6e;margin:12px 0}.meld-cards{display:flex;padding-right:5px}.card.mini{width:34px;height:47px;margin-right:-12px;border-radius:3px}.mini .card-corner{font-size:12px;top:3px;left:3px}.mini .card-corner small{font-size:10px}.mini .card-center,.mini .card-bottom{display:none}.meld>span{display:block;font-size:8px;color:#c4d1af;margin-top:7px}.piles{display:flex;align-items:center;justify-content:center;gap:45px;min-height:155px}.pile-button{background:transparent;color:#dce3c7;display:flex;flex-direction:column;align-items:center;gap:10px}.pile-button:disabled{opacity:1}.pile-button:not(:disabled):hover>.card,.pile-button:not(:disabled):hover>.back-card{transform:translateY(-5px)}.pile-button>span:last-child{font-size:9px}.pile-button b{margin-left:5px;color:#f5f4c7}.table-monogram{text-align:center;color:#a3b8904d;font-size:42px}.table-monogram small{display:block;font:italic 12px var(--serif);margin-top:2px}.empty-pile{width:66px;height:94px;border:1px dashed #a0b58e5c;border-radius:5px;display:grid;place-items:center;font-size:30px;color:#a0b58e5c}.hand-zone{background:#fdfcf5;border:1px solid var(--line);border-radius:10px;padding:20px;margin-top:16px}.hand-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.hand-heading .eyebrow{font-size:9px}.hand-heading p{font-size:11px;color:var(--muted);line-height:1.6;margin:8px 0}.opening{font-size:10px;color:#7c8a68;white-space:nowrap}.hand{display:flex;overflow-x:auto;padding:25px 5px 15px;min-height:140px}.hand-card{border:0;padding:0;background:transparent;margin-right:-16px;transition:transform .15s;flex-shrink:0}.hand-card:last-child{margin-right:0}.hand-card:disabled{opacity:1}.hand-card:not(:disabled):hover{transform:translateY(-8px);z-index:1}.hand-card.selected{transform:translateY(-17px);z-index:2}.hand-card.selected .card{outline:2px solid #6e8c42;outline-offset:1px;background:#f1f6dc}.hand-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:15px}.hand-actions>div{display:flex;gap:8px}.hand-actions .primary,.hand-actions .secondary{padding:12px 18px;min-height:42px;font-size:11px}.game-aside{padding-top:0}.turn-panel,.result{background:#e9eed9;border-radius:8px;padding:22px}.turn-panel .eyebrow,.result .eyebrow{font-size:8px}.turn-panel h3,.activity h3{font:22px var(--serif);margin:13px 0}.turn-panel p,.tip p{font-size:12px;line-height:1.8;color:#7c866b}.activity{padding:25px 5px}.activity .eyebrow{font-size:8px}.activity h3{font-size:18px}.activity ol{list-style:none;padding:0;margin:15px 0}.activity li{font-size:11px;color:#8b9282;border-left:1px solid #d8dfca;padding:10px 0 10px 14px;line-height:1.5;position:relative}.activity li:before{content:'';position:absolute;left:-3px;top:15px;width:5px;height:5px;border-radius:50%;background:#c7d0b6}.activity li.latest{color:#34533b}.activity li.latest:before{background:#668650}.tip{border-top:1px solid var(--line);padding:15px 5px;display:flex;gap:12px}.tip>span{font-size:27px;color:#829366}.tip p{font-size:11px;margin:0}.tip b{display:block;color:#516746;font-weight:500}.connection{font-size:9px;color:#7d9568}.result h2{font:26px var(--serif)}.result p{font-size:12px;line-height:1.8;display:flex;justify-content:space-between}.result .primary{font-size:11px;padding:13px;width:100%;margin-top:10px}.busy{cursor:progress}.busy button{pointer-events:none}
@media(min-width:1500px){.home{padding-top:100px;padding-bottom:100px}.hero-art{height:530px}.felt{height:390px}}
@media(max-width:1100px){.hero-copy h1{font-size:47px}.hero-actions{flex-wrap:wrap}.hero-art{height:420px}.felt{height:300px}.art-deck{top:85px}.art-sticker{bottom:-10px;right:-15px;width:110px;height:110px;padding:17px}.hero-art .card,.hero-art .back-card{width:58px;height:84px}.art-hand .card{width:66px;height:98px}.art-hand{left:calc(50% - 110px)}.join-strip{align-items:flex-start}.join-strip form{max-width:340px}.join-strip input{flex:1}.join-strip .dark-button{width:100%}.game-layout{grid-template-columns:minmax(0,1fr) 205px;gap:15px}.game-table{padding:16px}.opponents{grid-template-columns:repeat(2,1fr)}.game-aside{font-size:11px}}
@media(max-width:760px){.header{padding:22px 6%}.brand{font-size:28px}.brand-mark{font-size:37px}.brand-sub{font-size:7px}.desktop{display:none}.header nav{gap:0}.home{grid-template-columns:1fr;padding:45px 7% 35px;gap:40px}.hero-copy h1{font-size:clamp(42px,8vw,58px)}.hero-copy>p{max-width:440px}.hero-copy .eyebrow{font-size:9px}.hero-actions{flex-wrap:nowrap}.hero-actions .primary,.hero-actions .secondary{padding:15px;font-size:11px;gap:8px}.trust-line{font-size:9px;gap:14px}.hero-art{max-width:460px;width:100%;margin:auto;height:430px;padding-left:12px;padding-right:12px}.felt{height:300px}.art-sticker{bottom:10px;right:0}.join-strip{flex-direction:column;padding:25px;gap:22px}.join-strip h2{font-size:24px}.join-strip form{max-width:none;width:100%;justify-content:stretch}.features{padding:45px 7%;gap:24px;grid-template-columns:1fr}.features article{display:grid;grid-template-columns:40px 1fr;gap:0 15px}.feature-icon{grid-row:span 2}.features h3{margin:4px 0 9px}.features p{max-width:none;margin:0}footer{font-size:9px;line-height:1.7}footer>span:last-child{text-align:right}.lobby{margin:40px auto}.lobby h1{font-size:40px}.lobby-seats{grid-template-columns:repeat(2,1fr);gap:10px}.seat{padding:20px 10px}.seat h3{font-size:16px}.invite{gap:20px;padding:20px;flex-direction:column}.invite div{text-align:center}.invite b{font-size:23px}.game-shell{padding:0 3%;margin:22px auto}.game-title{align-items:flex-start}.game-title h2{font-size:18px}.game-title h2 span{font-size:14px}.game-title .eyebrow{font-size:7px;letter-spacing:1px}.game-title .text-button{font-size:11px;padding:5px}.game-layout{grid-template-columns:1fr}.game-aside{display:grid;grid-template-columns:1fr 1fr;gap:15px}.activity{padding-top:5px;grid-column:2;grid-row:span 2}.activity ol{max-height:230px;overflow:auto}.turn-panel,.result{padding:18px}.tip{grid-column:1}.connection{grid-column:1/-1}.round-label{display:none}.score-team{padding:13px 20px}.score-team:last-of-type{border:0}.score-team b{font-size:23px}.game-table{padding:14px;border-width:5px}.opponents{gap:8px;padding-bottom:14px}.player-box b{font-size:11px;max-width:105px}.player-box div>span{font-size:9px}.piles{gap:35px;min-height:155px}.hand-zone{padding:16px 12px}.hand-heading p{max-width:250px}.opening{font-size:9px}.hand-card{margin-right:-26px}.hand .card{width:59px;height:86px}.hand-actions .text-button{font-size:10px;padding:6px}.hand-actions .primary,.hand-actions .secondary{font-size:10px;padding:10px}.hand{min-height:126px}.meld-row{gap:12px;min-height:45px}.meld-area{min-height:68px}.game-title>div:last-child{white-space:nowrap}dialog{padding:25px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.recent-rooms{width:90%;max-width:1296px;margin:0 auto 30px;display:flex;align-items:flex-start;gap:40px;padding:25px 0;border-top:1px solid var(--line)}.recent-rooms h2{font:25px var(--serif);margin:10px 0}.recent-rooms .eyebrow{font-size:8px}.recent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1;gap:10px}.recent-room{display:flex;text-align:left;align-items:center;gap:13px;background:#fdfcf6;border:1px solid var(--line);border-radius:7px;padding:16px;color:var(--ink)}.recent-room:hover{border-color:#a6b68e;background:#edf1e2}.recent-icon{font-size:28px;color:#78935d}.recent-room b{display:block;font:17px var(--serif)}.recent-room small{display:block;font-size:9px;letter-spacing:.4px;color:var(--muted);margin-top:6px}.recent-room>span:last-child{margin-left:auto;font-size:10px;white-space:nowrap}.turn-steps{display:flex;align-items:center;justify-content:center;gap:15px;padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--line);color:#a1a895;font-size:10px}.turn-steps>span{display:flex;align-items:center;gap:6px}.turn-steps b{display:grid;place-items:center;border:1px solid #d5dcc9;width:20px;height:20px;border-radius:50%;font-size:9px}.turn-steps i{color:#d0d8c4;font-style:normal}.turn-steps .current{color:#315a35}.turn-steps .current b{color:#fff;background:#466b3c;border-color:#466b3c}.turn-steps small{font-size:8px;opacity:.65}.frozen-badge{display:block;width:fit-content;margin:-3px auto 15px;padding:6px 10px;background:#cbdab619;color:#d3e1b9;border:1px solid #cbdab627;border-radius:20px;font-size:8px;letter-spacing:.3px}.at-table .header{padding-top:18px;padding-bottom:18px}.at-table .brand{font-size:26px}.at-table .brand-mark{font-size:36px}.at-table .game-table .pile-button:not(:disabled)>.back-card,.at-table .game-table .pile-button:not(:disabled)>.card{outline:2px solid #d9e8ad;outline-offset:5px}.at-table .game-table .pile-button:not(:disabled)>span:last-child{color:#f1f7d9}.at-table .game-table .player-box.active{box-shadow:0 0 0 1px #dbecab;background:#cde5a326}
@media(max-width:760px){.recent-rooms{flex-direction:column;gap:10px}.recent-list{width:100%;grid-template-columns:1fr}.recent-room{padding:13px}.turn-steps{gap:9px;font-size:9px;padding-bottom:13px;margin-bottom:14px}.turn-steps small{display:none}.turn-steps b{width:18px;height:18px}.at-table .header{padding:16px 5%}}

/* A square table, rotated around each player's own seat. */
.game-shell{max-width:1180px}
.game-layout{grid-template-columns:minmax(0,760px) 245px;justify-content:center}
.game-table{aspect-ratio:1;width:100%;min-height:0;padding:20px;display:grid;grid-template-columns:100px minmax(0,1fr) 100px;grid-template-rows:58px minmax(0,1fr) 58px;gap:14px;border-radius:18px;border-color:#c8d8b6;background:radial-gradient(ellipse at 48% 38%,#64976e 0%,#51865e 56%,#477b54 100%);color:#fffef1}
.game-table:after{inset:10px;border-color:#e8f3ce33}
.game-table .player-box{z-index:1;padding:9px 12px;background:#254c354d;align-self:center;justify-self:center;width:100%;max-width:205px;justify-content:center;gap:9px;border:1px solid #eff7d61a;box-shadow:0 3px 12px #204b2c12}
.game-table .player-top{grid-column:2;grid-row:1}
.game-table .player-bottom{grid-column:2;grid-row:3}
.game-table .player-left{grid-column:1;grid-row:2}
.game-table .player-right{grid-column:3;grid-row:2}
.game-table .player-left,.game-table .player-right{flex-direction:column;text-align:center;padding:14px 6px;gap:9px}
.game-table .player-box b{max-width:140px;font-size:13px}
.game-table .player-left b,.game-table .player-right b{max-width:84px}
.game-table .player-box div>span{color:#f0f5e5;font-size:9px;line-height:1.4;margin-top:3px}
.game-table .player-box .player-role{color:#e2edc7;font-size:8px;letter-spacing:.6px}
.game-table .player-box .avatar{width:31px;height:31px;border-color:#f5f9e880}
.at-table .game-table .player-box.active{background:#345e3ce6;border-color:#eff3c2;box-shadow:0 0 0 2px #e0edbc50}
.game-table .turn-dot{width:7px;height:7px;background:#f2efbf;right:6px;top:6px}
.table-center{grid-column:2;grid-row:2;display:grid;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);gap:16px;min-width:0;min-height:0;position:relative;z-index:1}
.game-table .meld-area{min-height:0;overflow:auto;padding:8px;border:1px solid #e9f1d522;border-radius:8px;background:#315d3d16}
.game-table .table-section{color:#f1f5db;line-height:1.6;font-size:8px;letter-spacing:1px;margin-bottom:7px}
.game-table .meld-row{min-height:0;gap:12px}
.game-table .empty-meld{color:#eff5dcba;font-size:11px;line-height:1.5;margin:6px 0}
.game-table .meld>span{color:#f1f5dc}
.game-table .piles{gap:18px;min-height:150px}
.game-table .table-monogram{color:#d8e7b671;font-size:35px}
.game-table .pile-button{padding:5px;color:#f5f7e7}
.game-table .pile-button>span:last-child{font-size:9px;white-space:nowrap;line-height:1.5}
.game-table .pile-button b{color:#fffbd5}
.table-center:has(.frozen-badge){grid-template-rows:minmax(0,1fr) auto auto minmax(0,1fr);gap:10px}
.game-table .frozen-badge{margin:0 auto;padding:5px 7px;max-width:100%;text-align:center;background:#274d3966;color:#f2f6e3;border-color:#dcebc65c;font-size:8px}
.felt{background:radial-gradient(ellipse at 48% 38%,#64976e,#477b54);border-radius:30px;box-shadow:inset 0 0 50px #2f62432b,0 9px 0 #d8d8bb,0 12px 0 #b7bea4,0 25px 40px #30402b17}
@media(max-width:1100px){.game-layout{grid-template-columns:minmax(0,1fr) 205px;gap:15px}.game-table{grid-template-columns:78px minmax(0,1fr) 78px;grid-template-rows:52px minmax(0,1fr) 52px;padding:14px;gap:10px}.game-table .player-left b,.game-table .player-right b{max-width:66px;font-size:11px}.game-table .piles{gap:12px}.game-table .table-monogram{font-size:25px}.game-table .table-monogram small{display:none}}
@media(max-width:760px){.game-layout{grid-template-columns:minmax(0,1fr)}.game-table{grid-template-columns:62px minmax(0,1fr) 62px;grid-template-rows:42px minmax(0,1fr) 42px;border-width:5px;padding:9px;gap:8px}.game-table .player-box{padding:5px 7px;gap:6px}.game-table .player-left,.game-table .player-right{padding:10px 3px;gap:5px}.game-table .player-box b{font-size:11px;max-width:110px}.game-table .player-left b,.game-table .player-right b{max-width:54px;font-size:10px}.game-table .player-box div>span{font-size:8px;margin-top:2px}.game-table .player-box .player-role{font-size:7px;letter-spacing:0}.game-table .player-box .avatar{width:25px;height:25px;font-size:13px}.table-center{gap:8px}.game-table .meld-area{padding:5px;border-radius:5px}.game-table .table-section{font-size:7px;letter-spacing:.3px;margin-bottom:5px}.game-table .empty-meld{font-size:9px;margin:0}.game-table .piles{min-height:111px;gap:9px}.game-table .pile-button{padding:3px;gap:9px}.game-table .pile-button .card,.game-table .pile-button .back-card,.game-table .empty-pile{width:48px;height:70px}.game-table .pile-button .card-center{font-size:24px;top:24px}.game-table .pile-button .card-corner{font-size:13px;top:4px;left:4px}.game-table .pile-button .card-corner small{font-size:10px}.game-table .pile-button .card-bottom{font-size:11px;bottom:3px;right:4px}.game-table .pile-button>span:last-child{font-size:7px}.game-table .pile-button b{margin-left:2px}.game-table .table-monogram{display:none}.game-table .card.mini{width:28px;height:39px;margin-right:-12px}.game-table .mini .card-corner{font-size:10px}.game-table .mini .card-corner small{font-size:8px}.game-table .meld>span{font-size:7px}.game-table .meld-row{gap:8px}.table-center:has(.frozen-badge){gap:5px}.game-table .frozen-badge{font-size:7px;padding:3px 4px}.hand-heading .eyebrow{font-size:8px;letter-spacing:1px}}

/* Keep the two main actions beside the hand, including on small screens. */
.hand-with-actions{display:grid;grid-template-columns:minmax(0,1fr) 136px;gap:16px;align-items:center}
.hand-with-actions .hand{min-width:0}
.hand-with-actions .hand-actions{border-top:0;border-left:1px solid var(--line);padding:10px 0 10px 16px;flex-direction:column-reverse;gap:8px;align-items:stretch}
.hand-with-actions .hand-actions>div{flex-direction:column;gap:9px}
.hand-with-actions .hand-actions .primary,.hand-with-actions .hand-actions .secondary{width:100%;padding:13px 9px;min-height:44px;white-space:nowrap;font-size:12px}
.hand-with-actions .hand-actions .text-button{font-size:10px;padding:7px 0}
.opening-total{padding:13px 16px;background:#e9eed9;border-radius:6px;color:#34533b;font-size:13px;font-weight:600}
.wild-assignments{margin:18px 0;display:grid;gap:10px}
dialog .wild-row{display:flex;align-items:center;gap:16px;margin:0;padding:12px;border:1px solid var(--line);border-radius:7px}
.wild-row .card{width:45px;height:65px}
.wild-row .card-center{font-size:21px;top:24px}
.wild-row .card-corner{font-size:12px;top:4px;left:4px}
.wild-row .card-corner small{font-size:9px}
.wild-row .card-bottom{font-size:11px;bottom:3px;right:4px}
.wild-row>span:last-child{flex:1;font-size:12px}
.wild-row select{display:block;width:100%;margin-top:9px;padding:12px;border:1px solid #c8d2bd;border-radius:5px;background:#fffef8;color:var(--ink);font:inherit}
#wild-preview{display:grid;gap:10px;font-size:12px;color:#6b7861;line-height:1.6}
.wild-preview-group{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:10px 0}
.wild-preview-group>span{display:flex;padding-right:12px}
.wild-preview-group small{font-size:10px}
.wild-error{color:#9e3e33!important;min-height:0}
@media(max-width:760px){.hand-with-actions{grid-template-columns:minmax(0,1fr) 102px;gap:8px}.hand-with-actions .hand-actions{padding-left:8px}.hand-with-actions .hand-actions .primary,.hand-with-actions .hand-actions .secondary{font-size:10px;padding:11px 5px;min-height:42px}.hand-with-actions .hand-actions .text-button{font-size:9px}.wild-preview-group{gap:8px}.wild-preview-group small{font-size:9px}.wild-preview-group b{font-size:11px}}

.table-chat{background:#fdfcf5;border:1px solid var(--line);border-radius:9px;padding:18px;margin-bottom:20px;text-align:left}
.table-chat .eyebrow{font-size:8px}
.table-chat h3{font:22px var(--serif);margin:11px 0 8px}
.chat-note{font-size:11px;color:#758269;line-height:1.6;margin:0 0 14px}
.messages{max-height:280px;min-height:95px;overflow-y:auto;overscroll-behavior:contain;padding:3px 5px 3px 0;scrollbar-width:thin;scrollbar-color:#bccca8 transparent}
.chat-empty{font:italic 13px/1.7 var(--serif);color:#849278;margin:12px 0}
.chat-message{padding:10px 11px;background:#f0f2e8;border-radius:7px;margin:0 0 9px}
.chat-message.own-message{background:#e5edda}
.chat-message>div{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.chat-message b{font-size:11px;font-weight:600;color:#355339}
.chat-message time{font-size:9px;color:#7a896e}
.chat-message p{font-size:12px;line-height:1.65;margin:5px 0 0;color:#43523b;white-space:pre-wrap;overflow-wrap:anywhere}
#message-form{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
#message-input{font:12px/1.6 Arial,Helvetica,sans-serif;width:100%;display:block;resize:vertical;min-height:64px;max-height:180px;padding:10px;border:1px solid #cfd8c2;border-radius:6px;background:#fffef8;color:var(--ink)}
#message-input:focus-visible{outline:2px solid #91ac73;outline-offset:2px}
.message-compose-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:9px}
.message-compose-footer>span{font-size:8px;color:#7c896d;line-height:1.5}
.message-compose-footer .primary{font-size:11px;padding:10px 13px;min-height:36px;white-space:nowrap}
.message-error{font-size:11px;line-height:1.5;color:#9e3e33;margin:8px 0 0}
.message-error:empty{display:none}
.lobby .table-chat{max-width:580px;margin:35px auto}
@media(max-width:760px){.game-aside>.table-chat{grid-column:1/-1;margin-bottom:0}.table-chat{padding:16px}.messages{max-height:230px}.message-compose-footer>span{font-size:9px}.message-compose-footer .primary{font-size:12px;padding:12px 18px;min-height:42px}}

/* All cards stay on screen: overlap while corner labels fit, then wrap. */
.hand-with-actions .hand{display:flex;flex-direction:column;align-items:stretch;gap:25px;overflow:visible;min-height:0;padding:26px 3px 15px}
.hand-row{display:flex;align-items:flex-start;flex-wrap:nowrap;width:100%;min-width:0}
.hand-row .hand-card{margin:0;flex:0 0 var(--peek);width:var(--peek);position:relative;text-align:left}
.hand-row .hand-card:last-child{flex:0 0 auto;width:auto}
.hand-row .hand-card .card{display:block}
.hand-with-actions{align-items:start}
.hand-with-actions .hand-actions{position:sticky;top:15px;margin-top:24px}
