:root{--paper:#f5f1e8;--surface:#fffdf7;--ink:#23392e;--muted:#718074;--line:#dcded1;--green:#174b3a;--green-light:#e4eee4;--wood:#c79657;--wood-light:#e3c48f;--danger:#a13932;--gold:#b48638;--radius:12px;--shadow:0 12px 36px #28372b0a;font-family:var(--font-ui);color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:inherit}button{color:inherit}input{width:100%;border:1px solid var(--line);border-radius:8px;padding:13px 14px;color:var(--ink);background:#fff;min-width:0}input:focus{border-color:var(--green)}input::placeholder{color:#91998f}.site-header{height:88px;max-width:1536px;margin:auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.wordmark{font-family:var(--font-ui);font-size:34px;letter-spacing:-2px;text-decoration:none;font-weight:700;display:flex;align-items:center;gap:18px}.wordmark span{font-family:inherit;font-weight:400;letter-spacing:0;font-size:17px;border-left:1px solid var(--line);padding-left:18px}.connection{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap;color:var(--muted)}.connection i{width:6px;height:6px;border-radius:50%;background:#a9b5a5}.connection.online i{background:#4d9661}.connection.offline{color:var(--danger)}.connection.offline i{background:var(--danger)}.icon-button{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:transparent;font-family:var(--font-ui);font-size:19px;flex-shrink:0}.icon-button:hover{background:var(--green-light)}#main{max-width:1536px;margin:auto;padding:32px 40px 24px;min-height:calc(100vh - 150px)}.text-button{background:transparent;border:0;padding:4px 0;font-size:inherit;text-decoration:underline;text-underline-offset:4px}.button{min-height:44px;padding:12px 18px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:13px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:var(--green-light)}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover:not(:disabled){background:#25634b}.button.small{min-height:36px;padding:8px 12px;font-size:12px}.button.danger{color:var(--danger)}.eyebrow{text-transform:uppercase;letter-spacing:2px;color:var(--muted);font-weight:600;font-size:10px}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1,h2{font-family:var(--font-ui);font-weight:400;letter-spacing:-1px}h1{font-size:54px;line-height:1.1}h2{font-size:28px;line-height:1.2}h3{font-size:14px;font-weight:600}p{line-height:1.65;font-size:14px}.notice{border:1px solid #d8afa1;background:#fff0e8;color:#833e31;font-size:13px;padding:12px 16px;border-radius:8px;margin-bottom:20px}.notice[hidden],.toast[hidden]{display:none}.loading-screen{text-align:center;min-height:60vh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted)}.loading-mark{font-family:var(--font-ui);letter-spacing:-4px;font-size:60px;color:var(--green)}.loading-screen p{margin:12px}.landing{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:64px;align-items:center;max-width:1140px;margin:50px auto}.landing-copy h1{margin:20px 0}.landing-copy>p{max-width:400px;color:var(--muted);font-size:16px}.field{display:grid;gap:8px;margin-bottom:20px}.field label{font-size:12px;font-weight:600}.field small{font-size:11px;color:var(--muted);line-height:1.5}.separator{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;margin:24px 0}.separator:before,.separator:after{content:"";height:1px;background:var(--line);flex:1}.room-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.room-heading h1{font-size:34px;margin:8px 0}.room-heading p{font-size:12px;color:var(--muted);margin:8px 0 0}.room-code{font-family:var(--font-ui);letter-spacing:3px;font-weight:600}.room-status{display:inline-flex;align-items:center;gap:8px;color:var(--green);background:var(--green-light);border-radius:4px;padding:6px 8px;font-size:10px;letter-spacing:.5px}.waiting-table{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;position:relative}.waiting-table h2{font-size:25px;margin-bottom:8px}.waiting-table>p{color:var(--muted);font-size:12px;max-width:460px}.seat-copy{display:grid;gap:8px;min-width:0}.seat-copy strong{font-size:14px;overflow-wrap:anywhere}.seat-copy span{font-size:11px;color:var(--muted)}.sidebar{display:flex;flex-direction:column;gap:16px;min-width:0}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.chat-list{max-height:245px;min-height:100px;overflow:auto;padding:16px 20px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin}.chat-empty{font-size:12px;color:var(--muted);line-height:1.6;margin:0}.chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.chat-form input{padding:10px 12px;font-size:12px}.chat-form button{width:40px;min-height:40px;padding:0;flex-shrink:0}.board-wrap{position:relative;background:#e7d4b4;border:1px solid #ba955f;border-radius:var(--radius);padding:10px;box-shadow:0 8px 20px #4d3c2510}.board-wrap:after{content:"";pointer-events:none;position:absolute;inset:6px;border:1px solid #b78a4a40;border-radius:8px}.board-svg{display:block;width:100%;height:auto;max-height:70vh;aspect-ratio:1;user-select:none}.board-svg .space{fill:#b08958;stroke:#987044;stroke-width:1}.board-svg .space-inner{fill:#c8a879}.board-svg .start{fill:#b79e75;stroke:var(--seat);stroke-width:3}.board-svg .marble{fill:var(--seat);stroke:#ffffffb0;stroke-width:1.5;filter:url(#marble-shadow)}.board-svg .home-space{stroke:var(--seat);stroke-width:1.5;fill:#ffffff38}.board-svg .base-space{fill:#c29c64;stroke:var(--seat);stroke-width:1.5}.board-svg .seat-label{font-size:12px;fill:#4c442f;text-anchor:middle;font-weight:600}.board-svg .board-center{fill:#66553a;text-anchor:middle}.board-svg .target{stroke:#263c2e;stroke-width:3;fill:#f5edb75e;cursor:pointer;animation:target-pulse 1.8s infinite}.board-svg [role=button]:focus{outline:none}.board-svg [role=button]:focus .target{stroke:#fff;stroke-width:5}.player-chip{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:12px 10px;min-width:0}.player-chip.current{border-color:var(--green);box-shadow:inset 0 3px var(--green)}.player-name{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;font-weight:600}.player-name>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hand-panel{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}.hand-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.hand-heading h2{font:600 14px var(--font-ui);letter-spacing:0;margin:0}.hand-heading span{color:var(--muted);font-size:10px}.hand{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin}.playing-card{min-width:88px;width:104px;height:142px;flex-shrink:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fffdf7;border:1px solid #cfd2c2;border-radius:8px;color:var(--green);box-shadow:0 3px 0 #e8e6dc;padding:12px 8px;transition:transform .15s,border-color .15s,background .15s;text-align:center}.playing-card:before,.playing-card:after{position:absolute;content:attr(data-symbol);font:600 12px var(--font-ui)}.playing-card:before{top:8px;left:9px}.playing-card:after{bottom:8px;right:9px;transform:rotate(180deg)}.playing-card:hover:not(:disabled){transform:translateY(-4px);border-color:var(--green)}.playing-card.selected{border:2px solid var(--green);background:var(--green-light);transform:translateY(-3px)}.playing-card.unplayable{opacity:.5}.playing-card:disabled{opacity:1}.playing-card.unplayable:disabled{opacity:.45}.card-value{font-family:var(--font-ui);font-size:44px;line-height:1;letter-spacing:-2px}.card-value.special{font-size:20px;letter-spacing:-.5px}.action-option:hover:not(:disabled){border-color:var(--green);background:var(--green-light)}.log-list{padding:8px 20px;max-height:240px;overflow:auto;scrollbar-width:thin}.log-index{font:10px var(--font-ui);color:var(--muted);margin-right:8px}.stats-row{display:flex;justify-content:space-between;gap:12px;font-size:11px;padding:12px 20px;border-top:1px solid var(--line);color:var(--muted)}.spectator-banner{background:var(--green-light);padding:12px 16px;border-radius:8px;font-size:12px;margin-bottom:16px}.skip-link{position:absolute;left:12px;top:-60px;z-index:20;background:var(--green);color:#fff;padding:12px}.skip-link:focus{top:12px}dialog{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);width:min(650px,calc(100% - 32px));max-height:85vh;padding:28px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#18362780;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;gap:16px}.dialog-top h2{margin:10px 0 20px}.help-steps{font-size:13px;line-height:1.7;padding-left:20px;margin:0 0 24px}.help-steps li{padding:4px 0}.help-cards{display:grid;grid-template-columns:80px 1fr;gap:0 16px;margin-bottom:24px;font-size:12px}.help-cards dt,.help-cards dd{border-top:1px solid var(--line);padding:10px 0;margin:0;line-height:1.6}.help-cards dt{font-weight:600;color:var(--green)}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--green);color:#fff;padding:12px 20px;font-size:13px;border-radius:8px;z-index:30;box-shadow:var(--shadow);max-width:calc(100% - 32px);text-align:center}.inline-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:16px}.empty-hand{font-size:13px;color:var(--muted);padding:16px 0;margin:0}.copy-fallback{font:11px var(--font-ui);overflow-wrap:anywhere;margin:12px 0 0}.copy-fallback a{color:var(--green)}@keyframes target-pulse{50%{fill:#ffffffa0;stroke:#526a42}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:1500px){.board-svg{max-height:72vh}}@media(max-width:1100px){.site-header{padding:0 24px}#main{padding:24px}.landing{gap:32px;margin:32px auto}.landing-copy h1{font-size:44px}.playing-card{width:90px;min-width:80px;height:132px}.board-wrap{padding:4px}.player-chip{padding:10px 7px}.hand-panel{padding:16px}}@media(max-width:850px){.landing{gap:28px;grid-template-columns:1fr 1fr}.landing-copy h1{font-size:38px}.player-chip{padding:10px 6px}.player-name{font-size:10px}.hand-heading{align-items:flex-start;gap:8px}.hand-heading span{max-width:125px;text-align:right;line-height:1.4}.hand{gap:8px}.playing-card{width:76px;min-width:76px;height:122px}.card-value{font-size:38px}.card-value.special{font-size:17px}.waiting-table{padding:20px}}@media(max-width:700px){.site-header{height:68px;padding:0 16px}.wordmark{font-size:28px;gap:12px}.wordmark span{font-size:14px;padding-left:12px}.connection{font-size:10px}.icon-button{width:30px;height:30px}#main{padding:24px 16px 16px;min-height:calc(100vh - 130px)}.landing{grid-template-columns:1fr;margin:0;gap:24px;max-width:480px}.landing-copy h1{font-size:38px;margin:14px 0}.landing-copy>p{font-size:14px;margin-bottom:12px}.room-heading{margin-bottom:20px;gap:12px;flex-wrap:wrap}.room-heading h1{font-size:29px}.waiting-table{padding:20px}.board-wrap{grid-row:3;margin-top:-8px}.hand-panel{grid-row:5;margin-top:0}.player-name{font-size:10px}.player-chip{padding:10px 8px}.board-svg{max-height:none}.hand{gap:8px;padding-bottom:8px}.playing-card{width:88px;min-width:88px;height:128px}.card-value{font-size:40px}.card-value.special{font-size:18px}.panel.log-panel{grid-row:6}.panel.chat-panel{grid-row:7}.chat-list{max-height:220px;min-height:80px}.log-list{max-height:180px}dialog{padding:20px}.help-cards{grid-template-columns:66px 1fr;gap:0 12px}.hand-heading span{max-width:170px}.landing-copy .eyebrow{font-size:9px}}@media(max-width:380px){.wordmark span{display:none}.site-header .connection{font-size:9px}.player-name{font-size:11px}.room-heading h1{font-size:26px}.hand-heading span{font-size:9px}.playing-card{width:76px;min-width:76px;height:120px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.hand-panel,.board-wrap{min-width:0}.room-heading p{overflow-wrap:anywhere}}

.mode-picker{border:0;padding:0;margin:0 0 20px;min-width:0;display:grid;gap:8px}.mode-picker legend{font-size:12px;font-weight:600;padding:0;margin-bottom:10px}.mode-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:8px;padding:12px;cursor:pointer;background:var(--surface)}.mode-choice:has(input:checked){border-color:var(--green);background:var(--green-light)}.mode-choice input[type=radio]{width:16px;height:16px;min-width:16px;margin:2px 0 0;padding:0;accent-color:var(--green);flex-shrink:0}.mode-choice>span{display:grid;gap:5px;min-width:0}.mode-choice strong{font-size:12px;line-height:1.4}.mode-choice small{font-size:10px;color:var(--muted);line-height:1.5}.hands-stack{min-width:0}.hand-heading h2{display:flex;align-items:center;gap:8px}.duel-hands .hand-panel{border-left:3px solid var(--seat)}.duel-hands .hand-panel.active-hand{outline:1px solid var(--green)}.duel-hands .hand-panel.active-hand .hand-heading>span{color:var(--green);font-weight:600}.inactive-hand .playing-card{background:#f7f6f0}.mode-choice:focus-within{outline:2px solid var(--green);outline-offset:2px}@media(max-width:700px){.hands-stack{grid-row:5;display:flex;flex-direction:column;gap:12px}.hands-stack .hand-panel{margin-top:0;grid-row:auto}.duel-hands .hand-heading{flex-wrap:wrap;gap:8px}.duel-hands .hand-heading>span{max-width:none;text-align:left}.mode-choice{padding:10px}}

/* A fixed game table keeps the board and every private card in the same viewport. */
:root{color-scheme:light;--input:#fff;--card:#fffdf7;--card-line:#cfd2c2;--card-shadow:#e8e6dc;--inactive:#f7f6f0;--action:#f4f7ee;--action-line:#a7b7a4;--board-fill:#e7d4b4;--board-edge:#ba955f;--board-hole:#b08958;--board-hole-edge:#987044;--board-inner:#c8a879;--board-label:#4c442f;--board-center:#66553a;--board-base:#c29c64;--board-home:#ffffff38;--board-path:#ae8652;--board-target:#263c2e;--board-target-fill:#f5edb75e;--notice-bg:#fff0e8;--notice-ink:#833e31;--notice-line:#d8afa1;--winner-bg:#fff7df;--winner-ink:#7a551b}
:root[data-theme=dark]{color-scheme:dark;--paper:#141b20;--surface:#1d272e;--ink:#ecf1ed;--muted:#afbbb6;--line:#3b494e;--green:#8fd2af;--green-light:#2a413a;--wood:#927246;--wood-light:#bca27b;--danger:#f6a69d;--gold:#e7bd74;--shadow:0 12px 36px #0003;--input:#172128;--card:#26343b;--card-line:#58676b;--card-shadow:#101a20;--inactive:#202c33;--action:#20332e;--action-line:#527566;--board-fill:#343d40;--board-edge:#637069;--board-hole:#1d282d;--board-hole-edge:#708078;--board-inner:#46564e;--board-label:#e0e8df;--board-center:#d6dfd5;--board-base:#293b3b;--board-home:#ffffff10;--board-path:#859588;--board-target:#c1f2d7;--board-target-fill:#8fd2af35;--notice-bg:#462b28;--notice-ink:#ffd2bf;--notice-line:#935d52;--winner-bg:#3b3321;--winner-ink:#f3d596}
body{background:var(--paper);color:var(--ink)}input{background:var(--input)}.playing-card{background:var(--card);border-color:var(--card-line);box-shadow:0 3px 0 var(--card-shadow)}.inactive-hand .playing-card{background:var(--inactive)}.notice{background:var(--notice-bg);color:var(--notice-ink);border-color:var(--notice-line)}.button.primary{color:var(--paper)}.button.primary:hover:not(:disabled){background:var(--green);filter:brightness(1.08)}.toast{color:var(--paper)}.board-wrap{background:var(--board-fill);border-color:var(--board-edge)}.board-wrap:after{border-color:var(--board-edge);opacity:.35}.board-svg .space{fill:var(--board-hole);stroke:var(--board-hole-edge)}.board-svg .space-inner{fill:var(--board-inner)}.board-svg .start{fill:var(--board-inner)}.board-svg .home-space{fill:var(--board-home)}.board-svg .base-space{fill:var(--board-base)}.board-svg .seat-label{fill:var(--board-label)}.board-svg .board-center{fill:var(--board-center)}.board-svg .target{fill:var(--board-target-fill);stroke:var(--board-target)}.board-svg .marble-node{cursor:pointer}.board-svg .marble-node.movable .marble{stroke:var(--green);stroke-width:3;filter:drop-shadow(0 0 5px var(--green))}.board-svg .marble-node:focus-visible{outline:none}.board-svg .marble-node:focus-visible .marble{stroke:var(--gold);stroke-width:4}.board-svg .drop-zone{transition:fill .15s,stroke .15s}.theme-button,.icon-button{touch-action:manipulation}#theme-button{font-family:var(--font-ui);font-size:18px}
body.playing{height:100dvh;overflow:hidden}body.playing .site-header{height:48px;padding:0 18px;max-width:none}body.playing .wordmark{font-size:27px;gap:10px}body.playing .wordmark span{font-size:13px;padding-left:10px}body.playing #main{height:calc(100dvh - 48px);min-height:0;max-width:none;padding:8px 14px}body.playing #app{height:100%;min-height:0}body.playing #notice:not([hidden]){position:fixed;top:53px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);z-index:40;margin:0;box-shadow:var(--shadow)}.game-shell{height:100%;display:flex;flex-direction:column;min-height:0}.game-shell>.room-heading{min-height:38px;height:38px;flex:0 0 auto;align-items:center;margin:0 0 6px;gap:12px}.game-shell>.room-heading .eyebrow,.game-shell>.room-heading p{display:none}.game-shell>.room-heading h1{font-size:21px;letter-spacing:0;margin:0}.game-shell .board-wrap{flex:1;min-height:0;min-width:0;padding:2px;display:flex;align-items:center;justify-content:center;grid-row:auto;margin:0;overflow:hidden}.game-shell .board-svg{height:100%;width:100%;max-height:none;aspect-ratio:1;object-fit:contain}.game-shell .player-chip{padding:6px 8px;border-radius:7px}.game-shell .player-chip.current{border-color:var(--green);box-shadow:inset 0 2px var(--green)}.game-shell .player-name{font-size:10px}.game-shell .hands-stack{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);min-height:0;gap:10px}.game-shell .hands-stack.duel-hands{grid-template-columns:repeat(2,minmax(0,1fr))}.game-shell .hand-panel{margin:0;min-height:0;padding:8px 12px;display:flex;flex-direction:column;grid-row:auto;border-radius:10px}.game-shell .hand-panel.active-hand{border-color:var(--green);box-shadow:inset 0 3px var(--green)}.game-shell .hand-heading{flex:0 0 auto;align-items:center;gap:8px;margin:0 0 4px;min-height:18px;flex-wrap:nowrap}.game-shell .hand-heading h2{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-shell .hand-heading>span{font-size:9px;text-align:right;max-width:none;line-height:1.25}.game-shell .hand{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--cards,6),minmax(0,96px));justify-content:center;gap:8px;padding:3px 0 5px;overflow:visible;align-items:stretch}.game-shell .playing-card{min-width:0;width:100%;height:100%;min-height:0;max-height:104px;flex-shrink:1;padding:8px 4px;touch-action:none;border-radius:7px}.game-shell .playing-card:before,.game-shell .playing-card:after{font-size:9px}.game-shell .playing-card:before{top:5px;left:6px}.game-shell .playing-card:after{bottom:5px;right:6px}.game-shell .card-value{font-size:35px}.game-shell .card-value.special{font-size:16px}.game-shell .empty-hand{font-size:11px;padding:14px 0;text-align:center}.game-shell .sidebar{grid-column:2;grid-row:1;min-height:0;gap:8px;overflow:hidden;display:flex;flex-direction:column}.card-ghost{position:fixed;z-index:100;pointer-events:none;width:82px;height:112px;border:2px solid var(--green);border-radius:8px;background:var(--card);box-shadow:0 12px 28px #0004;color:var(--green);display:flex;align-items:center;justify-content:center;font:36px var(--font-ui);transform:rotate(-7deg);opacity:.96}.card-flight{position:fixed;pointer-events:none;z-index:90;width:66px;height:88px;background:var(--card);color:var(--green);border:1px solid var(--card-line);border-radius:7px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;font:26px var(--font-ui)}.marble-flight{pointer-events:none}.game-shell .playing-card.dragging{opacity:.25}.game-shell .board-wrap.drag-over{border-color:var(--green);box-shadow:inset 0 0 0 2px var(--green)}
@media(max-width:1000px) and (min-width:721px){.game-shell .hand-panel{padding:7px 9px}.game-shell .hand{gap:5px}.game-shell .playing-card{max-height:94px}.game-shell .card-value{font-size:30px}.game-shell .card-value.special{font-size:13px}.game-shell .hand-heading>span{font-size:8px}.game-shell .hand-heading h2{font-size:11px}}
@media(max-width:720px){body.playing .site-header{padding:0 10px}.game-shell>.room-heading{height:34px;min-height:34px;gap:6px;flex-wrap:nowrap}.game-shell>.room-heading h1{font-size:17px}.game-shell .room-code{letter-spacing:1px}body.playing #main{padding:6px 8px}.game-shell>.game-layout:has(.duel-hands){--hand-height:210px}.game-shell .player-chip{padding:5px}.game-shell .player-name{font-size:9px;gap:4px}.game-shell .hands-stack,.game-shell .hands-stack.duel-hands{grid-row:3;grid-column:1;grid-template-columns:minmax(0,1fr);gap:6px}.game-shell .hands-stack.duel-hands{grid-template-rows:repeat(2,minmax(0,1fr))}.game-shell .hand-panel{padding:6px 8px;border-radius:8px}.game-shell .hand-heading{margin-bottom:2px;min-height:15px;gap:5px}.game-shell .hand-heading h2{font-size:11px}.game-shell .hand-heading>span{font-size:8px;max-width:56%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-shell .hand{gap:6px;padding:2px 0 4px;grid-template-columns:repeat(var(--cards,6),minmax(0,76px))}.game-shell .playing-card{max-height:94px;padding:7px 3px}.game-shell .card-value{font-size:30px}.game-shell .card-value.special{font-size:13px}.game-shell .duel-hands .hand-heading h2{font-size:10px}.game-shell .duel-hands .hand{gap:5px;padding:1px 0 3px}.game-shell .duel-hands .playing-card{max-height:58px;padding:5px 2px}.game-shell .duel-hands .card-value{font-size:25px}.game-shell .duel-hands .card-value.special{font-size:12px}.game-shell .duel-hands .playing-card:before,.game-shell .duel-hands .playing-card:after{font-size:7px}.game-shell .duel-hands .playing-card:before{left:4px;top:3px}.game-shell .duel-hands .playing-card:after{right:4px;bottom:3px}.game-shell .sidebar{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:7px;overflow:visible;min-height:0;align-items:start}}
@media(max-width:380px){body.playing .wordmark span{display:none}body.playing .connection{font-size:9px}.game-shell .hand{gap:4px}.game-shell .playing-card:before,.game-shell .playing-card:after{font-size:8px}.game-shell .card-value.special{font-size:12px}.game-shell .player-name{font-size:8px}.game-shell .sidebar{grid-template-columns:minmax(0,1fr) 86px}.game-shell .hand-heading>span{font-size:7px}.game-shell .hand-heading h2{font-size:10px}}
@media(max-height:600px) and (min-width:721px){body.playing .site-header{height:40px}body.playing #main{height:calc(100dvh - 40px);padding:5px 10px}.game-shell>.room-heading{height:30px;min-height:30px;margin-bottom:4px}.game-shell .hand-panel{padding:5px 9px}.game-shell .hand{padding:1px 0 3px;gap:6px}.game-shell .playing-card{max-height:70px}.game-shell .card-value{font-size:26px}.game-shell .card-value.special{font-size:13px}}
@media(prefers-reduced-motion:reduce){.card-flight,.card-ghost{transition:none!important;animation:none!important}.board-svg .target{animation:none!important}}

/* Interaction state names shared with app.js. */.utility-close{position:absolute;top:8px;right:8px;z-index:2;width:26px;height:26px;font-size:17px;background:var(--surface)}.board-svg .move-guide{stroke:var(--green);stroke-width:2;stroke-dasharray:5 5;opacity:.65;pointer-events:none}.board-svg .chosen-marble .marble{stroke:var(--gold);stroke-width:4;filter:drop-shadow(0 0 5px var(--gold))}.card-ghost{translate:-50% -50%}.dragging-card{cursor:grabbing;user-select:none}

/* Exchange status must remain visible before each deal. */.game-shell:has(.exchange-panel) .player-sub{display:block;font-size:8px;margin-top:3px;min-height:10px}.game-shell:has(.exchange-panel) .board-key{display:grid}
@media(max-height:650px) and (max-width:559px){.game-shell>.game-layout:has(.duel-hands){--hand-height:178px}.game-shell .duel-hands .hand-panel{padding:5px 7px}.game-shell .duel-hands .hand-heading{min-height:13px}.game-shell .duel-hands .hand-heading h2{font-size:9px}.game-shell .duel-hands .playing-card{max-height:47px}.game-shell .duel-hands .card-value{font-size:22px}.game-shell .duel-hands .card-value.special{font-size:11px}}
/* A phone turned sideways needs the hands in one row, like a small desktop. */
@media(max-height:520px) and (min-width:560px) and (max-width:720px){body.playing .site-header{height:40px}body.playing #main{height:calc(100dvh - 40px);padding:5px 8px}.game-shell>.room-heading{height:28px;min-height:28px;margin-bottom:4px}.game-shell>.game-layout:has(.duel-hands){--hand-height:112px;grid-template-columns:minmax(0,1fr) 196px;grid-template-rows:minmax(0,1fr) var(--hand-height);gap:6px}.game-shell .sidebar{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:5px}.game-shell .hands-stack,.game-shell .hands-stack.duel-hands{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.game-shell .hands-stack.duel-hands{grid-template-columns:repeat(2,minmax(0,1fr))}.game-shell .hand-panel,.game-shell .duel-hands .hand-panel{padding:5px 8px}.game-shell .hand-heading,.game-shell .duel-hands .hand-heading{min-height:14px}.game-shell .hand,.game-shell .duel-hands .hand{gap:5px;padding:1px 0 3px}.game-shell .playing-card,.game-shell .duel-hands .playing-card{max-height:67px}.game-shell .card-value,.game-shell .duel-hands .card-value{font-size:25px}.game-shell .card-value.special,.game-shell .duel-hands .card-value.special{font-size:12px}.game-shell:has(.exchange-panel) .board-key{display:grid}}

/* Leave a full row for the explicit exchange button, including six-card hands. */
.game-shell .hand{grid-auto-rows:minmax(0,1fr)}
@media(max-width:720px){.game-shell>.game-layout:has(.duel-hands .exchange-summary .button){--hand-height:228px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .playing-card{height:44px;max-height:44px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .card-caption{display:none}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .exchange-summary{flex-shrink:0;min-height:26px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .hand{align-items:center}}
@media(max-height:520px) and (min-width:560px) and (max-width:720px){.game-shell>.game-layout:has(.duel-hands .exchange-summary .button){--hand-height:120px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .playing-card{height:54px;max-height:54px}}

/* Small portrait screens reserve space for the board while choosing an exchange. */
@media(max-height:650px) and (max-width:559px){body.playing .site-header{height:44px;padding:0 8px}body.playing #main{height:calc(100dvh - 44px);padding:4px 6px}.game-shell>.room-heading{height:28px;min-height:28px;margin-bottom:4px}.game-shell>.room-heading h1{font-size:15px}.game-shell:has(.exchange-panel) .turn-banner{min-height:26px;padding:4px 8px;margin-bottom:3px}.game-shell:has(.exchange-panel) .turn-banner strong{font-size:11px}.game-shell:has(.exchange-panel) .turn-banner>span{display:none}.game-shell:has(.exchange-panel) .sidebar{height:32px;min-height:32px;align-items:stretch}.game-shell:has(.exchange-panel) .sidebar>.action-panel{display:flex;align-items:center;gap:6px;min-height:32px;max-height:32px;padding:4px 6px;overflow:hidden}.game-shell:has(.exchange-panel) .sidebar>.action-panel>.eyebrow,.game-shell:has(.exchange-panel) .sidebar>.action-panel>p,.game-shell:has(.exchange-panel) .sidebar>.action-panel>.team-score{display:none}.game-shell:has(.exchange-panel) .sidebar>.action-panel>h2{font-size:10px;line-height:1.1;letter-spacing:0;margin:0;min-width:0}.game-shell:has(.exchange-panel) .utility-tabs button{min-height:32px;font-size:9px;padding:4px}.game-shell:has(.exchange-panel) .exchange-progress{margin-left:auto;gap:3px;flex-shrink:0}.game-shell:has(.exchange-panel) .exchange-progress i{height:9px;width:9px;flex-basis:9px}.game-shell>.game-layout:has(.duel-hands .exchange-summary .button){--hand-height:178px}.game-shell .duel-hands .hand-panel:has(.exchange-summary){padding:5px 7px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .hand-heading{min-height:13px;margin-bottom:2px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .hand{align-items:center;padding:1px 0 3px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .playing-card{height:30px;max-height:30px;padding:3px 2px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .card-value{font-size:20px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .card-value.special{font-size:10px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .card-caption{display:none}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .playing-card:before,.game-shell .duel-hands .hand-panel:has(.exchange-summary) .playing-card:after{font-size:6px;top:2px;bottom:auto}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .playing-card:after{top:auto;bottom:2px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .exchange-summary{height:26px;min-height:26px;max-height:26px;flex-shrink:0;flex-wrap:nowrap;gap:4px;font-size:8px}}

/* A larger board, with all private cards kept in view. */
:root{--playable:#16835b;--playable-glow:#249e6b4d;--warning:#9a671e;--warning-bg:#fff0ce;--warning-line:#d39c43;--path-fill:#f8f0a1;--path-stroke:#406d36}
:root[data-theme=dark]{--playable:#9ce8bb;--playable-glow:#72e1a361;--warning:#f4cd7b;--warning-bg:#443620;--warning-line:#d7ac55;--path-fill:#ddf3a5;--path-stroke:#b9edb8}
.game-shell .board-wrap{background:transparent;border:0;box-shadow:none;padding:0;overflow:visible}
.game-shell .board-wrap:after{display:none}
.game-shell .board-svg .move-guide{display:none}
.game-shell .board-svg .target{animation:none;fill:var(--path-fill);stroke:var(--path-stroke);stroke-width:3}
.game-shell .board-svg .marble-node.selectable .marble{stroke:var(--playable);stroke-width:3;filter:drop-shadow(0 0 5px var(--playable-glow))}
.game-shell .playing-card.playable:not(:disabled){opacity:1;border:2px solid var(--playable);background:var(--card);box-shadow:0 0 0 1px var(--playable-glow),0 0 13px var(--playable-glow),0 3px 0 var(--card-shadow)}
.game-shell .playing-card.playable:hover:not(:disabled){background:var(--green-light);box-shadow:0 0 0 2px var(--playable),0 0 18px var(--playable-glow);transform:translateY(-4px)}
.game-shell .playing-card.unplayable,.game-shell .playing-card.unplayable:disabled{opacity:.38;filter:saturate(.25);box-shadow:none;border-color:var(--line)}
.game-shell .playing-card.selected{opacity:1!important;filter:none;border:3px solid var(--gold)!important;background:var(--green-light);box-shadow:0 0 0 2px var(--gold),0 0 19px var(--playable-glow);transform:translateY(-3px)}
.game-shell .hand-panel.active-hand{border-color:var(--playable);box-shadow:inset 0 3px var(--playable),0 0 12px var(--playable-glow)}
.deck-stack{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:64px;min-height:28px;padding:4px 8px;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--ink);font-size:10px;line-height:1.1}
.deck-stack{position:relative;border-color:var(--green);box-shadow:2px 2px 0 var(--paper),3px 3px 0 var(--line),4px 4px 0 var(--paper),5px 5px 0 var(--line);margin:0 5px 5px 0}
.deck-stack b{font-size:13px;color:var(--green)}
.deck-stack:not(:disabled):hover{background:var(--green-light);border-color:var(--playable)}
.deck-stack:disabled{opacity:.65}
.draw-pile{pointer-events:none;position:fixed;z-index:80;border:1px solid var(--green);border-radius:7px;background:var(--card);box-shadow:var(--shadow)}
.game-shell .draw-panel{border-color:var(--gold);background:var(--surface)}
.game-shell .draw-panel .button{width:100%;min-height:40px}
.seven-source{font-size:11px;line-height:1.5;padding:7px 9px;border-radius:7px;background:var(--green-light);color:var(--ink);margin:7px 0}

.settings-status{font-size:11px;line-height:1.5;color:var(--muted);margin:14px 0 0}
@media(min-width:1050px){body.playing .site-header{height:44px}body.playing #main{height:calc(100dvh - 44px);padding:6px 12px}.game-shell>.room-heading{height:30px;min-height:30px;margin-bottom:4px}.game-shell>.room-heading h1{font-size:18px}.game-shell>.game-layout:has(.duel-hands){--rail-hands:236px}.game-shell .hands-stack,.game-shell .hands-stack.duel-hands{grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:8px}.game-shell .hands-stack.duel-hands{grid-template-rows:repeat(2,minmax(0,1fr))}.game-shell .sidebar{grid-column:2;grid-row:2;gap:8px}.game-shell .hand-panel{padding:7px 10px}.game-shell .hand-heading{margin-bottom:3px;min-height:17px}.game-shell .hand-heading h2{font-size:12px}.game-shell .hand-heading>span{font-size:9px}.game-shell .hand{padding:2px 0 4px;gap:5px;grid-template-columns:repeat(var(--cards,6),minmax(0,1fr))}.game-shell .playing-card{max-height:84px;padding:6px 3px}.game-shell .card-value{font-size:30px}.game-shell .card-value.special{font-size:13px}.game-shell .duel-hands .hand-heading{min-height:15px}.game-shell .duel-hands .hand-heading h2{font-size:11px}.game-shell .duel-hands .playing-card{max-height:64px}.game-shell .duel-hands .card-value{font-size:27px}.game-shell .duel-hands .card-value.special{font-size:12px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .playing-card{max-height:48px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .card-caption{display:none}.game-shell .player-chip{padding:7px 9px}.game-shell .player-name{font-size:11px}}
@media(min-width:721px) and (max-width:1049px){.game-shell .hand-panel{padding:6px 9px}.game-shell .hand-heading{min-height:16px;margin-bottom:2px}.game-shell .playing-card{max-height:76px;padding:6px 3px}.game-shell .card-value{font-size:27px}.game-shell .card-value.special{font-size:12px}.game-shell .hand{gap:5px;padding:1px 0 3px}.game-shell .hand-panel:has(.exchange-summary .button) .playing-card{max-height:54px}.game-shell .hand-panel:has(.exchange-summary .button) .card-caption{display:none}}
@media(min-width:1050px) and (max-height:650px){.game-shell>.game-layout:has(.duel-hands){--rail-hands:210px}.game-shell .duel-hands .playing-card{max-height:54px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button) .playing-card{max-height:40px}}
@media(max-width:720px){.deck-stack{min-height:22px;min-width:48px;padding:3px 5px;gap:4px;font-size:8px}.deck-stack b{font-size:10px}.game-shell .seven-source{font-size:9px;padding:4px 6px;margin:4px 0}}

/* A combined duel hand still shows every card: six columns, up to two rows. */
.game-shell .hands-stack.merged-hands{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.game-shell .merged-hands .hand:has(.playing-card:nth-child(n+7)){grid-template-rows:repeat(2,minmax(0,1fr));row-gap:7px}
.game-shell .merged-hands .playing-card{max-height:86px}
.game-shell .merged-hands .hand-panel:has(.exchange-summary .button) .playing-card{max-height:74px}
@media(min-width:1050px){.game-shell>.game-layout:has(.merged-hands){--rail-hands:236px}.game-shell .hands-stack.merged-hands{grid-column:2;grid-row:1}.game-shell .merged-hands .card-value{font-size:30px}.game-shell .merged-hands .card-value.special{font-size:13px}}
@media(min-width:1050px) and (max-height:650px){.game-shell>.game-layout:has(.merged-hands){--rail-hands:210px}.game-shell .merged-hands .playing-card{max-height:72px}.game-shell .merged-hands .hand-panel:has(.exchange-summary .button) .playing-card{max-height:60px}}
@media(min-width:721px) and (max-width:1049px){.game-shell>.game-layout:has(.merged-hands){--hand-height:180px}.game-shell .merged-hands .playing-card{max-height:60px}.game-shell .merged-hands .hand-panel:has(.exchange-summary .button) .playing-card{max-height:52px}}
@media(max-width:720px){.game-shell>.game-layout:has(.merged-hands){--hand-height:210px}.game-shell>.game-layout:has(.merged-hands .exchange-summary .button){--hand-height:228px}.game-shell .hands-stack.merged-hands{grid-column:1;grid-row:3;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.game-shell .merged-hands .playing-card{max-height:72px}.game-shell .merged-hands .card-value{font-size:29px}.game-shell .merged-hands .card-value.special{font-size:13px}.game-shell .merged-hands .hand-panel:has(.exchange-summary .button) .playing-card{height:100%;max-height:68px}}
@media(max-height:650px) and (max-width:559px){.game-shell>.game-layout:has(.merged-hands),.game-shell>.game-layout:has(.merged-hands .exchange-summary .button){--hand-height:178px}.game-shell .merged-hands .hand-panel{padding:5px 7px}.game-shell .merged-hands .hand-heading{min-height:13px;margin-bottom:2px}.game-shell .merged-hands .hand:has(.playing-card:nth-child(n+7)){row-gap:5px}.game-shell .merged-hands .playing-card,.game-shell .merged-hands .hand-panel:has(.exchange-summary .button) .playing-card{max-height:54px;height:100%;padding:4px 2px}.game-shell .merged-hands .card-value{font-size:23px}.game-shell .merged-hands .card-value.special{font-size:11px}}
@media(max-height:520px) and (min-width:560px) and (max-width:720px){.game-shell>.game-layout:has(.merged-hands),.game-shell>.game-layout:has(.merged-hands .exchange-summary .button){--hand-height:112px}.game-shell .hands-stack.merged-hands{grid-column:1/-1;grid-row:2}.game-shell .merged-hands .hand:has(.playing-card:nth-child(n+7)){grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:4px}.game-shell .merged-hands .playing-card,.game-shell .merged-hands .hand-panel:has(.exchange-summary .button) .playing-card{height:100%;max-height:64px}.game-shell .merged-hands .card-value{font-size:24px}.game-shell .merged-hands .card-value.special{font-size:11px}}

/* Physical card piles and the seven individual step segments. */
.deck-stack{min-height:36px;min-width:72px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:8px}
.deck-stack:not(:disabled):hover{background:none;border-color:transparent}
.board-wrap.discard-active .discard-center>circle{fill:var(--warning-bg);stroke:var(--warning-line);stroke-width:4;opacity:.8}
@media(max-width:720px){.deck-stack{min-height:29px;min-width:58px;gap:5px}}
@media(max-height:650px) and (max-width:559px){.deck-stack{min-height:24px}}

/* Compact action controls keep a usable board on short portrait phones. */
@media(max-height:650px) and (max-width:559px){
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel{min-height:32px;max-height:70px;padding:5px 7px;overflow:auto}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel>.eyebrow,
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel>p:not(:has(strong)),
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel>.team-score,
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel>.move-list{display:none}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel>h2{font-size:12px;line-height:1.25;letter-spacing:0;margin:0}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel>p:has(strong){font-size:9px;line-height:1.2;margin:3px 0 0}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel>.action-options:empty{display:none}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel .cancel-choice{min-height:28px;padding:4px 5px;font-size:8px;margin:0;white-space:nowrap}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel:has(.seven-meter),
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel:has(.swap-progress){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center;max-height:62px;padding:4px 6px}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel:has(.seven-meter)>h2,
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel:has(.swap-progress)>h2{display:none}
  .game-shell .action-panel:has(.seven-meter)>.cancel-choice,
  .game-shell .action-panel:has(.swap-progress)>.cancel-choice{grid-column:2;grid-row:1}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel:has(.confirm-actions){max-height:70px}
  .game-shell .action-panel:has(.confirm-actions)>.seven-meter{display:flex;min-height:22px;padding:2px 4px;gap:5px}
  .game-shell .action-panel:has(.confirm-actions)>.seven-meter>.remaining{font-size:18px}
  .game-shell .action-panel:has(.confirm-actions)>.seven-meter>span{display:none}
  .game-shell .action-panel:has(.confirm-actions)>.seven-meter>.seven-segments{flex:1}
  .game-shell:not(:has(.exchange-panel)) .sidebar>.action-panel:has(.target-picker){max-height:112px}
  .game-shell .turn-banner:not(.forced-discard)>span{font-size:9px;line-height:1.2;max-height:22px;overflow:hidden}
  .game-shell:has(.exchange-panel) .player-sub{display:none}
  .game-shell:has(.exchange-panel) .player-chip>.exit-status{display:flex;justify-content:center;font-size:7px;padding:2px 1px;margin-top:3px;max-width:100%}
}

/* Quiet card faces: one value and a separately accessible information button. */
:root{--playable-glow:#3c97651c;--path-fill:#93b68b50;--path-stroke:#72916b;--endpoint-fill:#c4d7a8;--endpoint-stroke:#547c4d}
:root[data-theme=dark]{--playable-glow:#8bcfa71a;--path-fill:#9fb99a38;--path-stroke:#a1baa0;--endpoint-fill:#9ab78e;--endpoint-stroke:#c2d2ae}
.game-shell .hand-panel{--face-height:104px;--info-size:18px;--info-bottom:6px;--face-footer:22px}
.game-shell .card-slot{position:relative;display:flex;align-items:stretch;min-height:0;min-width:0;width:100%;height:100%;max-height:var(--face-height);border-radius:7px}
.game-shell .card-slot>.playing-card{position:relative;min-width:0;min-height:0;width:100%;height:100%!important;max-height:100%!important;padding:5px 2px var(--face-footer)!important;border-width:1px;border-radius:7px;display:flex;align-items:center;justify-content:center;text-align:center}
.game-shell .playing-card:before,.game-shell .playing-card:after{content:none;display:none!important}
.game-shell .card-slot>.playing-card .card-value{max-width:100%;line-height:1.1;letter-spacing:-.5px}
.game-shell .playing-card.playable:not(:disabled){border:1px solid color-mix(in srgb,var(--green) 55%,var(--line));box-shadow:0 2px 5px var(--playable-glow);background:var(--card)}
.game-shell .playing-card.playable:hover:not(:disabled){border-color:var(--green);background:color-mix(in srgb,var(--card) 80%,var(--green-light));box-shadow:0 2px 8px var(--playable-glow);transform:translateY(-2px)}
.game-shell .playing-card.selected,.game-shell .card-slot.has-selected>.playing-card{border:2px solid var(--gold)!important;background:var(--green-light);box-shadow:0 2px 7px var(--playable-glow);transform:translateY(-1px)}
.game-shell .playing-card.unplayable,.game-shell .playing-card.unplayable:disabled{opacity:.48;filter:saturate(.4);box-shadow:none}
.game-shell .hand-panel.active-hand{border-color:color-mix(in srgb,var(--green) 55%,var(--line));box-shadow:inset 0 2px color-mix(in srgb,var(--green) 55%,var(--line))}
.game-shell .board-svg .target{fill:var(--endpoint-fill);stroke:var(--endpoint-stroke);stroke-width:2;opacity:.85;animation:none;filter:none}
.game-shell .board-svg .marble-node.movable .marble,.game-shell .board-svg .marble-node.selectable .marble{stroke:var(--path-stroke);stroke-width:2;filter:none}
.game-shell .board-svg .chosen-marble .marble{stroke:var(--gold);stroke-width:2.5;filter:none}
.game-shell .merged-hands .hand:has(.card-slot:nth-child(n+7)){grid-template-rows:repeat(2,minmax(0,1fr));row-gap:7px}
@media(min-width:1050px){.game-shell .hand-panel{--face-height:84px;--info-size:16px;--info-bottom:5px;--face-footer:20px}.game-shell .duel-hands .hand-panel{--face-height:64px;--info-size:14px;--info-bottom:4px;--face-footer:18px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button){--face-height:48px;--info-size:12px;--info-bottom:3px;--face-footer:15px}.game-shell .merged-hands .hand-panel{--face-height:86px}.game-shell .merged-hands .hand-panel:has(.exchange-summary .button){--face-height:74px}}
@media(min-width:1050px) and (max-height:650px){.game-shell .duel-hands .hand-panel{--face-height:54px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button){--face-height:40px;--info-size:10px;--info-bottom:2px;--face-footer:12px}.game-shell .merged-hands .hand-panel{--face-height:72px}.game-shell .merged-hands .hand-panel:has(.exchange-summary .button){--face-height:60px}}
@media(min-width:721px) and (max-width:1049px){.game-shell .hand-panel{--face-height:76px;--info-size:14px;--info-bottom:4px;--face-footer:18px}.game-shell .hand-panel:has(.exchange-summary .button){--face-height:54px;--info-size:12px;--info-bottom:3px;--face-footer:15px}.game-shell .merged-hands .hand-panel{--face-height:60px}.game-shell .merged-hands .hand-panel:has(.exchange-summary .button){--face-height:52px}}
@media(max-width:720px){.game-shell .hand-panel{--face-height:94px;--info-size:16px;--info-bottom:5px;--face-footer:20px}.game-shell .duel-hands .hand-panel{--face-height:58px;--info-size:14px;--info-bottom:3px;--face-footer:17px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button){--face-height:44px;--info-size:11px;--info-bottom:2px;--face-footer:13px}.game-shell .merged-hands .hand-panel{--face-height:72px;--info-size:14px;--info-bottom:4px;--face-footer:18px}.game-shell .merged-hands .hand-panel:has(.exchange-summary .button){--face-height:68px}}
@media(max-height:650px) and (max-width:559px){.game-shell .duel-hands .hand-panel{--face-height:47px;--info-size:11px;--info-bottom:2px;--face-footer:13px}.game-shell .duel-hands .hand-panel:has(.exchange-summary){--face-height:30px;--info-size:9px;--info-bottom:1px;--face-footer:10px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .card-value{font-size:15px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .card-value.special{font-size:9px}.game-shell .duel-hands .hand-panel:has(.exchange-summary) .card-slot>.card-info{font-size:7px}.game-shell .merged-hands .hand-panel,.game-shell .merged-hands .hand-panel:has(.exchange-summary .button){--face-height:54px;--info-size:12px;--info-bottom:2px;--face-footer:14px}.game-shell .merged-hands .hand:has(.card-slot:nth-child(n+7)){row-gap:5px}}
@media(max-height:520px) and (min-width:560px) and (max-width:720px){.game-shell .hand-panel{--face-height:67px;--info-size:14px;--info-bottom:3px;--face-footer:17px}.game-shell .duel-hands .hand-panel{--face-height:67px}.game-shell .duel-hands .hand-panel:has(.exchange-summary .button){--face-height:54px;--info-size:12px;--info-bottom:2px;--face-footer:14px}.game-shell .merged-hands .hand-panel,.game-shell .merged-hands .hand-panel:has(.exchange-summary .button){--face-height:64px}.game-shell .merged-hands .hand:has(.card-slot:nth-child(n+7)){grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:4px}}

/* Hover brightens just the destination; route cells stay quiet. */
.game-shell .board-svg .move-target .target{fill:var(--path-fill);stroke:var(--path-stroke);stroke-width:1.4;opacity:.52}
.game-shell .board-svg .move-target.endpoint-active .target{fill:var(--endpoint-fill);stroke:var(--endpoint-stroke);stroke-width:2;opacity:.88}
/* Long names fit the same quiet card face as single digits. */
.game-shell .card-slot>.playing-card .card-value.special{font-size:9.5px;white-space:nowrap}
@supports(font-size:1cqw){.game-shell .card-slot{container-type:inline-size}.game-shell .card-slot>.playing-card .card-value.special{font-size:clamp(8px,18cqw,14px)}}
