/* Current-board sliding hint: preview remains separate from the tile grid. */
.sliding-hint{max-width:32rem;margin:1rem auto;padding:1rem;border:1px solid var(--line,#55715f);border-radius:1rem;text-align:left;background:var(--white,#fffefa)}
.sliding-hint p{margin:0 0 .75rem;line-height:1.5}.sliding-hint>div{display:flex;gap:.6rem;flex-wrap:wrap}.sliding-hint button{min-height:44px;padding:.65rem .9rem}.sliding-hint small{display:block;margin-top:.7rem;line-height:1.4}

/* Explicit paper-card palette: never inherit cream text from the felt room. */
.sliding .sliding-hint{background:#fffefa;color:#273e36;border-color:#b6bdaa}
.sliding .sliding-hint p,.sliding .sliding-hint small{color:#273e36}
.sliding .sliding-hint button{background:#fffefa;color:#273e36;border-color:#657768}
.sliding .sliding-hint button.primary{background:#315c4b;color:#ffffff;border-color:#315c4b}
.sliding .sliding-hint button:focus-visible{outline:3px solid #80530f;outline-offset:3px}
@media(forced-colors:active){
 .sliding .sliding-hint{background:Canvas;color:CanvasText;border-color:CanvasText}
 .sliding .sliding-hint p,.sliding .sliding-hint small{color:CanvasText}
 .sliding .sliding-hint button,.sliding .sliding-hint button.primary{background:ButtonFace;color:ButtonText;border-color:ButtonText}
 .sliding .sliding-hint button:focus-visible{outline-color:Highlight}
}

/* Keep the move and its board together; never shrink a tile below a usable target. */
.sliding .sliding-hint{padding:12px;margin:12px auto 0;font-size:14px;line-height:1.4;width:100%;min-width:0}
.sliding .sliding-hint p{margin-bottom:8px;line-height:1.4}
.sliding .sliding-hint small{margin-top:8px;font-size:12px;line-height:1.35}
.sliding .sliding-hint button{min-height:44px;padding:8px 10px;font-size:13px}
@media(min-width:900px){
 .club-room .sliding .board-wrap:has(>.sliding-hint){display:grid;grid-template-columns:minmax(248px,390px) minmax(200px,260px);grid-template-rows:auto auto;align-items:start;justify-content:center;gap:12px 20px}
 .club-room .sliding .board-wrap:has(>.sliding-hint)>.puzzle-goal{grid-column:1;grid-row:1;margin:0}
 .club-room .sliding .board-wrap:has(>.sliding-hint)>.sliding-board{grid-column:1;grid-row:2;width:100%;max-width:390px;margin:0}
 .club-room .sliding .board-wrap:has(>.sliding-hint)>.sliding-hint{grid-column:2;grid-row:2;align-self:start;margin:0}
}
@media(max-width:899px){
 .club-room .sliding .board-wrap:has(>.sliding-hint)>.sliding-board{width:min(100%,max(248px,calc(100svh - 520px)));max-width:340px}
 .club-room .sliding .board-wrap:has(>.sliding-hint)>.puzzle-goal{margin-bottom:8px}
 .club-room .sliding:has(.sliding-hint) .game-feedback{margin:8px 0;min-height:22px}
}

.sliding .sliding-hint [data-action="sliding-hint-dismiss"]{min-width:112px}

:root{--paper:#f6f3eb;--ink:#273e36;--muted:#626a60;--green:#315c4b;--line:#d9dbcc;--gold:#dbb25e;--white:#fffefa;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:var(--white);border-radius:9px;min-height:44px;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b37825;outline-offset:4px}button:hover:not(:disabled){filter:brightness(.97)}.site-header{max-width:1360px;margin:auto;padding:26px 44px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font:600 23px Georgia,serif;white-space:nowrap}.brand em{font-weight:400}.header-note{margin-left:auto;font:italic 16px Georgia,serif;color:var(--muted)}.private-pill{border:1px solid #d8d9cb;border-radius:100px;padding:7px 12px;color:var(--muted);font-size:11px;letter-spacing:.05em;white-space:nowrap}.home{max-width:1360px;margin:auto;padding:43px 44px 20px}.home-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:700;margin:0 0 14px;color:#78816b}h1,h2,p{margin-top:0}h1{font:400 clamp(32px,3.5vw,48px)/1.13 Georgia,serif;letter-spacing:-1.3px;margin-bottom:12px}.intro{color:var(--muted);margin-bottom:0;font-size:16px}.edition{display:flex;gap:13px;align-items:center;border-left:1px solid var(--line);padding:0 28px}.edition span{font:52px Georgia,serif;color:#87927b}.edition small{font-size:12px;line-height:1.6;color:var(--muted)}.game-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 22px}.game-card{padding:0;text-align:left;border:none;background:none;border-radius:14px;overflow:hidden;transition:transform .15s}.game-card:hover{transform:translateY(-3px)}.game-preview{height:205px;position:relative;overflow:hidden;border-radius:13px;border:1px solid #00000007;display:flex;justify-content:center;align-items:center}.sage{background:#dce6d8}.sand{background:#ece2c7}.blue{background:#dae5ed}.rose{background:#eedbd2}.mint{background:#d7e7dd}.gold{background:#ece3c9}.lavender{background:#e3dfee}.peach{background:#eee1cd}.preview-inner{width:420px;flex:none;transform:scale(.49);max-height:370px;pointer-events:none}.game-card:nth-child(1) .preview-inner{transform:scale(.49);width:430px}.game-card:nth-child(2) .preview-inner{transform:scale(.51);width:430px}.game-card:nth-child(3) .preview-inner{transform:scale(.50);width:440px}.game-card:nth-child(7) .preview-inner{transform:scale(.49);width:370px}.preview-inner .game-extra,.preview-inner .number-pad,.preview-inner .piece-tray,.preview-inner .word-list,.preview-inner small{display:none}.preview-inner .grid-board{width:330px;margin:auto}.preview-inner .solitaire-board{padding-top:55px}.preview-inner .tableau{max-height:200px}.preview-inner .playing-card{font-size:19px;height:77px}.preview-inner .card-slot{height:77px}.play-badge{position:absolute;bottom:12px;right:12px;font-size:11px;letter-spacing:.04em;background:#fffefaed;padding:8px 11px;border-radius:30px}.game-card-copy{padding:17px 2px 4px;display:flex;justify-content:space-between;align-items:center}.game-card h2{font:23px Georgia,serif;margin:0 0 7px;letter-spacing:-.3px}.game-card p{font-size:12px;color:var(--muted);margin:0}.card-arrow{font-size:23px;color:#78816b;padding-right:5px}.continue-strip{display:flex;gap:14px;align-items:center;background:#e8ece0;border:1px solid #d8dece;border-radius:12px;padding:16px 20px;margin-bottom:28px}.continue-strip small{display:block;letter-spacing:.12em;font-size:9px;margin-bottom:5px;color:var(--muted)}.continue-strip strong{font:20px Georgia,serif}.continue-strip button{margin-left:auto}.continue-dot{background:#628570;width:9px;height:9px;border-radius:50%}.primary{background:var(--green);border-color:var(--green);color:white;padding:12px 22px}.quiet{padding:10px 15px;background:transparent}.home footer{display:flex;justify-content:space-between;margin-top:35px;padding:20px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.back-home{margin-left:auto;padding:10px 17px;background:transparent}.play-layout{max-width:1280px;margin:35px auto;padding:0 36px;display:grid;grid-template-columns:245px minmax(0,1fr);gap:28px 36px}.game-sidebar{padding-top:26px}.game-sidebar h1{font-size:38px}.game-subtitle{font:italic 18px/1.5 Georgia,serif;color:var(--muted);max-width:210px}.rules{border-top:1px solid var(--line);padding-top:20px;margin-top:28px}.rules summary{font-weight:600;font-size:14px;cursor:pointer}.rules p{font-size:14px;line-height:1.8;color:var(--muted);margin-top:13px}.local-note{font-size:12px;line-height:1.9;color:var(--muted);margin-top:30px}.local-note span{color:#648567}.local-note small{font-size:11px;padding-left:17px}.play-surface{background:#fffefa;border:1px solid var(--line);border-radius:20px;padding:20px 25px 24px;min-width:0;box-shadow:0 7px 20px #283e3505}.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}.run-stats{display:flex;gap:20px;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}.run-stats b{color:var(--ink)}.toolbar-buttons{display:flex;gap:8px}.board-wrap{min-height:350px;display:flex;flex-direction:column;justify-content:center}.grid-board{display:grid;grid-template-columns:repeat(var(--cols),1fr);width:min(100%,430px);margin:0 auto;gap:7px}.grid-board button{aspect-ratio:1;min-height:0;padding:0}.game-feedback{text-align:center;min-height:44px;font-size:13px;line-height:1.5;margin:20px 0 10px;color:#5a685d}.game-controls{display:flex;justify-content:center;gap:10px}.game-controls button{padding:10px 20px;background:#f8f7f1}.game-switcher{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding-top:10px}.game-switcher button{font-size:12px;min-height:38px;padding:8px 13px;background:transparent}.game-switcher .active{background:#e0e8da;border-color:#b6c4ae}.slide-tile{background:#e7c878;border:none;font:32px Georgia,serif;color:#484631;box-shadow:0 3px 0 #cdb269}.slide-tile.empty{background:#efece2;box-shadow:none;opacity:1}.sliding-board{padding:13px;background:#efecdf;border-radius:15px;gap:10px}.arrow-board{background:#e8eee3;border-radius:12px;padding:12px;gap:5px}.arrow-tile{font-size:31px;border:0;background:#fffef5;border-radius:8px}.arrow-tile.empty{background:transparent;opacity:1}.arrow-tile.hinted,.hinted{outline:3px solid #d7a951;outline-offset:-3px}.sudoku-board{gap:0;border:2px solid #566c5a;max-width:405px}.sudoku-cell{border-radius:0;border:0;border-right:1px solid #d5dbce;border-bottom:1px solid #d5dbce;background:#fffefa;font-size:23px;color:#3d795f}.sudoku-cell.given{background:#f0f2e8;font-weight:600;color:#354a40}.sudoku-cell.box-right{border-right:2px solid #687d68}.sudoku-cell.box-bottom{border-bottom:2px solid #687d68}.selected{outline:3px solid #b1842f!important;outline-offset:-3px}.sudoku-cell.selected{background:#f8e5b5}.sudoku-cell.conflict{color:#af302b;background:#f9e2dc}.number-pad{display:flex;gap:5px;margin:18px auto 0;max-width:490px;flex-wrap:wrap;justify-content:center}.number-pad button{min-width:38px;font-size:18px;background:#f0f3e9;padding:5px 10px}.number-pad .erase{font-size:13px}.word-board{gap:3px;max-width:430px}.letter{border:0;border-radius:4px;font-size:19px;background:#f0eee3}.letter.found{background:#dae5d1;color:#355637}.letter.hinted{background:#f9e4aa}.word-list{display:flex;gap:10px 17px;justify-content:center;flex-wrap:wrap;margin:20px auto 0;max-width:390px;font-size:13px;letter-spacing:.08em}.found-word{text-decoration:line-through;color:#76866b}.block-board{gap:4px;background:#e4ded3;padding:10px;border-radius:12px;max-width:390px}.block-cell{background:#f9f6ed;border:0;border-radius:4px}.block-cell.filled{background:#779486;box-shadow:inset 0 -3px 0 #5c7c6c}.piece-tray{display:flex;align-items:center;justify-content:center;gap:20px;min-height:100px}.block-piece{border:none;background:transparent;min-width:85px;min-height:82px;padding:10px}.piece-grid{display:grid;grid-template-columns:repeat(var(--pw),20px);grid-template-rows:repeat(var(--ph),20px);gap:3px;justify-content:center}.piece-grid i{background:#78968a;border-radius:3px;box-shadow:inset 0 -3px 0 #5c7c6c}.used-piece{width:85px;text-align:center;color:#839578}.game-extra{text-align:center;font-size:13px;color:var(--muted);padding:12px 0}.tubes{display:flex;gap:17px;flex-wrap:wrap;align-items:center;justify-content:center;max-width:520px;margin:10px auto}.tube{border:0;background:transparent;padding:6px 7px 10px;width:82px;border-radius:15px}.tube-glass{border:3px solid #b7c8cb;border-top-width:1px;border-radius:5px 5px 22px 22px;display:flex;flex-direction:column;height:180px;padding:4px;overflow:hidden;background:#f4f9fa}.drop{height:25%;background:var(--liquid);display:flex;justify-content:center;align-items:center;color:#fff;font-size:17px;text-shadow:0 1px 2px #0005;border-bottom:1px solid #ffffff33}.drop.air{border:0}.drop:last-child{border-radius:0 0 12px 12px}.tube-label{display:block;margin-top:9px;font-size:12px;color:var(--muted)}.solitaire-board{width:100%;min-height:375px}.card-top{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:28px}.playing-card,.card-slot{width:100%;height:100px;border-radius:7px;border:1px solid #c6cabe;background:#fffefa;padding:7px;font-size:19px;text-align:left;display:block;position:relative}.playing-card span{white-space:nowrap;font-size:16px}.playing-card b{display:block;text-align:center;font-size:30px;font-weight:400;margin-top:8px}.playing-card.red{color:#b85346}.playing-card.back{background:repeating-linear-gradient(45deg,#406751 0px,#406751 4px,#456e57 4px,#456e57 6px);border:3px solid #e0e7d5;color:#e9dcc2;text-align:center;box-shadow:0 1px 2px #0002}.playing-card.back span{font-size:35px}.card-slot{color:#7c8a75;text-align:center;background:#dfe7d7;border:1px dashed #afbea1;padding-top:28px;font-size:25px}.card-top small{font-size:10px;display:block;text-align:center;margin-top:5px;color:#697761}.tableau{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.card-column{position:relative;min-height:120px}.stack-card{position:absolute;width:100%;left:0}.solitaire .board-wrap{background:#e8eddf;border-radius:12px;padding:16px}.mahjong-board{position:relative;width:100%;height:340px;margin:0 auto;max-width:490px}.mahjong-pos{position:absolute;width:15%;height:23%}.mahjong-tile{width:100%;height:95%;background:#faf1d2;border:1px solid #c0b990;border-bottom:5px solid #ada97c;box-shadow:2px 2px 0 #b7b088;border-radius:7px;font:32px Georgia,serif;color:#497363}.mahjong-tile.blocked{background:#dedbc2;color:#7d8772}.mahjong-tile.raised{box-shadow:3px 7px 7px #4a4b3455;background:#fff6d7}.pause-screen{text-align:center;padding:60px 0}.pause-screen>span{font-size:45px;color:#879579}.pause-screen h2{font:32px Georgia,serif;margin:18px 0 10px}.pause-screen p{font-size:14px;color:var(--muted)}.win-note{text-align:center;color:var(--muted);font-size:13px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.win-note button{display:block;margin:14px auto 0}.round-end,.end-note{text-align:center;font-size:13px;color:#8a543a}.storage-warning{text-align:center;padding:12px;background:#fff0c3;color:var(--ink);font-size:13px}.modal-backdrop{position:fixed;inset:0;background:#243a3466;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px}.confirm-dialog{padding:30px;background:var(--paper);border-radius:20px;max-width:430px;box-shadow:0 10px 60px #0002}.confirm-dialog h2{font:29px Georgia,serif}.confirm-dialog p{line-height:1.65;color:var(--muted);font-size:14px}.confirm-dialog>div{display:flex;gap:12px;justify-content:flex-end}.is-won{box-shadow:0 0 0 3px #becdb3}
@media(min-width:1450px){.game-preview{height:225px}}@media(max-width:1050px){.game-catalog{grid-template-columns:repeat(3,1fr)}.game-card h2{font-size:21px}.play-layout{grid-template-columns:200px minmax(0,1fr);gap:22px;padding:0 25px}.game-sidebar h1{font-size:32px}.play-surface{padding:17px}.playing-card span{font-size:13px}.playing-card b{font-size:25px}.playing-card,.card-slot{height:87px}}@media(max-width:800px){.site-header{padding:20px 24px}.header-note{display:none}.private-pill{margin-left:auto}.home{padding:30px 24px}.game-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 18px}.edition{display:none}.game-preview{height:210px}.play-layout{display:flex;flex-direction:column;margin:20px auto;padding:0 20px;gap:18px}.game-sidebar{padding:0}.game-sidebar h1{font-size:34px;margin-bottom:7px}.game-sidebar .eyebrow,.game-subtitle,.local-note{display:none}.rules{margin:10px 0 0;padding:0;border:0}.rules p{margin-bottom:0;max-width:650px}.rules:not([open]){padding-bottom:0}.game-toolbar{margin-bottom:18px}.game-switcher{padding:0}.back-home{margin-left:auto}.play-layout .board-wrap{min-height:310px}.play-surface{padding:18px}.mahjong-board{height:320px}.solitaire-board{min-height:380px}.home footer{gap:16px;line-height:1.6}.brand{font-size:21px}.brand img{width:33px;height:33px}.play-layout .rules[open] p{font-size:13px;line-height:1.6}.site-header:has(.back-home) .private-pill{display:none}}@media(max-width:480px){.site-header{padding:17px 17px;gap:10px}.brand{font-size:19px;gap:9px}.brand img{width:30px;height:30px}.private-pill{font-size:9px;padding:6px 8px}.home{padding:27px 17px 15px}.home-heading{margin-bottom:25px}h1{font-size:32px;letter-spacing:-1px}.eyebrow{font-size:9px}.intro{font-size:13px}.game-catalog{gap:23px 13px}.game-preview{height:155px}.preview-inner{transform:scale(.36)}.game-card:nth-child(1) .preview-inner{transform:scale(.34)}.game-card:nth-child(2) .preview-inner{transform:scale(.35)}.game-card:nth-child(3) .preview-inner{transform:scale(.36)}.game-card:nth-child(7) .preview-inner{transform:scale(.36)}.game-card h2{font-size:19px;line-height:1.15;margin-bottom:6px}.game-card p{font-size:10px;line-height:1.4}.game-card-copy{padding-top:12px}.card-arrow{display:none}.play-badge{font-size:9px;bottom:8px;right:8px;padding:6px 9px}.continue-strip{padding:13px;gap:9px}.continue-strip strong{font-size:17px}.continue-strip small{font-size:7px}.continue-strip .primary{padding:10px 11px;font-size:11px}.home footer{flex-direction:column;gap:5px;margin-top:25px;font-size:10px}.back-home{font-size:11px;min-height:38px;padding:7px 10px}.play-layout{padding:0 10px;margin-top:18px;gap:15px}.game-sidebar{padding:0 7px}.game-sidebar h1{font-size:30px}.rules{font-size:12px}.rules summary{font-size:12px}.rules p{font-size:12px!important}.play-surface{border-radius:14px;padding:12px 10px 18px}.run-stats{font-size:11px;gap:12px}.toolbar-buttons{gap:5px}.toolbar-buttons button{padding:8px 10px;font-size:11px;min-height:38px}.game-toolbar{margin-bottom:15px}.game-feedback{font-size:12px;padding:0 5px;margin-top:16px}.game-controls{gap:7px}.game-controls button{font-size:12px;padding:9px 17px}.grid-board{gap:5px}.slide-tile{font-size:30px}.arrow-board{gap:4px;padding:9px}.arrow-tile{font-size:28px}.sudoku-board{gap:0}.sudoku-cell{font-size:20px}.number-pad{gap:4px}.number-pad button{min-width:30px;padding:4px 8px;font-size:16px}.word-board{gap:2px}.letter{font-size:16px}.word-list{font-size:11px}.block-board{gap:3px;padding:8px}.tubes{gap:7px}.tube{width:71px;padding:5px 7px}.tube-glass{height:148px}.card-top,.tableau{gap:3px}.solitaire .board-wrap{padding:8px}.playing-card,.card-slot{height:72px;border-radius:4px;padding:4px;font-size:12px}.playing-card span{font-size:11px;letter-spacing:-.6px}.playing-card b{font-size:23px;margin-top:6px}.playing-card.back{border-width:2px}.playing-card.back span{font-size:26px}.card-slot{padding-top:23px;font-size:21px}.card-top{margin-bottom:24px}.solitaire-board{min-height:420px}.mahjong-board{height:280px}.mahjong-tile{font-size:26px;border-bottom-width:4px}.game-switcher{gap:6px}.game-switcher button{font-size:11px;min-height:38px;padding:8px 10px}.play-layout .board-wrap{min-height:295px}.confirm-dialog{padding:24px}.preview-inner .tube{width:74px}.preview-inner .tubes{gap:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.preview-inner .grid-board>span{aspect-ratio:1;display:flex;align-items:center;justify-content:center;min-height:0;padding:0}.preview-inner .playing-card{display:block}.preview-inner .tube{display:inline-block}.preview-inner .mahjong-tile{display:flex;align-items:center;justify-content:center}.preview-inner .card-slot{display:block}
/* Interaction refinements: stable taps, clear destinations and readable cards. */
html{scroll-behavior:auto}.play-surface{overflow:hidden}.game-toolbar button,.game-controls button{min-height:44px}.board-instruction{text-align:center;font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:12px}.placement-controls{text-align:center;margin:4px 0 5px}.placement-controls button{min-width:160px}.block-cell.ghost-valid{background:#b4cead;box-shadow:inset 0 0 0 2px #55794a;color:#31523b}.block-cell.ghost-invalid{background:#e8b6a2;box-shadow:inset 0 0 0 2px #a55e46}.piece-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px;max-width:390px;margin:0 auto}.block-piece{min-width:0;width:100%;display:flex;justify-content:center;align-items:center}.piece-grid{grid-template-columns:repeat(var(--pw),18px);grid-template-rows:repeat(var(--ph),18px)}.used-piece{width:auto}.hint-destination{outline:3px dashed #638b5a;outline-offset:0;background:#e9f0e4}.tube.selected .tube-label:after{content:' · selected'}.tube.hint-destination .tube-label:after{content:' · pour here'}.tube-label{min-height:28px;line-height:1.4}.solitaire-options{display:flex;gap:8px;justify-content:center;margin:0 0 16px;flex-wrap:wrap}.solitaire-options button{font-size:12px;min-height:44px}.solitaire-scroll{width:100%;overflow-x:auto;padding-bottom:8px}.solitaire-board.large-cards{min-width:620px}.solitaire-board.large-cards .playing-card,.solitaire-board.large-cards .card-slot{height:110px}.solitaire-board.large-cards .playing-card span{font-size:20px}.solitaire-board.large-cards .playing-card b{font-size:33px}.waste-slot{font-size:23px!important;color:#9faa92}.card-column.hinted{outline:3px dashed #b1842f;outline-offset:2px;border-radius:8px}.card-column .playing-card{box-shadow:0 1px 3px #2d412c22}.preview-inner .solitaire-options{display:none}.preview-inner .solitaire-scroll{overflow:hidden}.preview-inner .solitaire-board.large-cards{min-width:0}.preview-inner .board-instruction,.preview-inner .placement-controls{display:none}.number-pad button{min-height:44px}
@media(max-width:480px){.piece-grid{grid-template-columns:repeat(var(--pw),17px);grid-template-rows:repeat(var(--ph),17px);gap:2px}.block-piece{padding:6px;min-height:84px}.piece-tray{gap:4px}.solitaire .board-wrap{padding:8px 5px}.solitaire-options{gap:5px}.solitaire-options button{padding:8px 10px;font-size:11px}.playing-card span{font-size:12px;letter-spacing:-.6px}.word-board .letter{font-size:17px}.sudoku-cell{min-height:34px}.game-feedback{min-height:46px}}

/* Append after existing Sudoku rules; selected/conflict remain strongest. */
.sudoku-cell.peer{background:#edf1e8}
.sudoku-cell.matching-number{background:#dce8cd;color:#37552c;font-weight:800}
.sudoku-cell.selected{background:#c9dfb5;box-shadow:inset 0 0 0 2px #4c7139}
.sudoku-cell.conflict{box-shadow:inset 0 0 0 2px #b9534c}
.sudoku-notes{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%;font-size:clamp(8px,1.6vw,12px);line-height:1.1;font-weight:500;color:#65735c;pointer-events:none}
.sudoku-notes>span{display:flex;align-items:center;justify-content:center}
.sudoku-tools{display:flex;justify-content:center;margin-top:14px}
.pencil-toggle{font-size:.85rem;padding:8px 15px}
.pencil-toggle.active{background:#dce8cd;border-color:#6c8c58}
.number-pad>button:not(.erase){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.number-pad small{font-size:9px;font-weight:400;white-space:nowrap;line-height:1.1}
.number-pad .number-complete{opacity:.55}

.preview-inner .sudoku-tools{display:none}

.blocking-arrow{background:#ecd2c3!important;box-shadow:inset 0 0 0 2px #a96a51}.word-progress{text-align:center;margin-top:14px;font-size:12px;color:var(--muted)}.preview-inner .word-progress{display:none}
.saved-layout-note{font-size:12px;line-height:1.5;background:#f0ebd9;padding:10px;border-radius:8px;color:#6e6341;margin-bottom:15px}.preview-inner .saved-layout-note{display:none}.preview-inner .mahjong-board{height:370px!important}.preview-inner .mahjong-tile span{font-size:20px!important}.preview-inner .mahjong-tile span+span{font-size:8px!important}.mahjong .board-wrap{padding-top:6px}.mahjong-tile.blocked{filter:saturate(.45);background:#e7e2cd}.mahjong-tile.free{background:#fff8dc}.mahjong-tile.hinted{box-shadow:0 0 0 3px #b78c36,3px 6px 5px #454b3333}.mahjong-tile.selected{background:#e5edd0}

/* Desktop playtest refinement: keep boards readable and controls beside/below,
   never floating over the playfield. Small-screen layouts stay unchanged. */
@media(min-width:1051px){
  .site-header:has(.back-home){padding-top:14px;padding-bottom:14px}
  .play-layout{margin-top:20px;margin-bottom:24px}
  .game-sidebar{padding-top:14px}
  .play-surface{padding-top:16px;padding-bottom:18px}
  .game-toolbar{margin-bottom:14px}
  .game-feedback{margin-top:12px;margin-bottom:8px;min-height:36px}
  .water .tubes{max-width:none;gap:8px;flex-wrap:nowrap;margin:6px auto}
  .water .board-wrap{min-height:270px}
  .blocks .board-wrap{display:grid;grid-template-columns:minmax(0,390px) minmax(140px,170px);gap:10px 20px;justify-content:center;align-items:center;min-height:0}
  .blocks .board-instruction{grid-column:1/-1;margin:0}
  .blocks .block-board{grid-column:1;grid-row:2/5;width:100%;margin:0}
  .blocks .piece-tray{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:4px;min-height:0;width:100%}
  .blocks .block-piece{min-height:64px;padding:7px}
  .blocks .used-piece{min-height:64px;display:grid;place-items:center}
  .blocks .placement-controls{grid-column:2;grid-row:3;margin:0}
  .blocks .placement-controls button{min-width:0;width:100%;padding-left:8px;padding-right:8px}
  .blocks .game-extra{grid-column:2;grid-row:4;padding:0;line-height:1.7}
}
/* Keep isolated-test status visible even where the normal preview pill hides. */
@media(max-width:800px){
  .site-header:has(.back-home){flex-wrap:wrap}
  .site-header:has(.back-home) .private-pill.qa-session{display:inline-block;margin-left:auto}
}
/* Mahjong: side locks are not the same as a tile covering this one. */
.mahjong-tile{position:relative}
.mahjong-tile.side-blocked{filter:none;background:#f7efd9;border-left:3px solid #a28d5f;border-right:3px solid #a28d5f;color:#52674e}
.mahjong-tile.covered{filter:saturate(.35);background:#d8d6cb}
.mahjong-layer{position:absolute;top:1px;right:2px;min-width:10px;font:700 8px/1.1 Arial,sans-serif;color:#5d6856;background:#ffffffb8;border-radius:2px;padding:1px;pointer-events:none}
.mahjong-tile.raised{border-bottom-width:6px;box-shadow:3px 6px 0 #a89f7c,4px 8px 5px #4a4b3433}
.mahjong-key{text-align:center;font-size:12px;line-height:1.5;color:var(--muted);margin:0 auto 4px;max-width:440px}
.preview-inner .mahjong-key,.preview-inner .mahjong-layer{display:none}

/* Pointer drag is scoped to cards and tray pieces. Board/background scrolling,
   stock buttons, all other games, and keyboard/click controls stay unchanged. */
.play-surface.solitaire .playing-card:not(.back)[data-action="select"],
.play-surface.solitaire .playing-card[data-action="foundation"],
.play-surface.blocks .block-piece {
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  cursor:grab;
}
.puzzle-dragging .play-surface { cursor:grabbing; }
.drag-source { opacity:.45; }
.drag-destination-valid { outline:3px solid var(--green)!important; outline-offset:2px; border-radius:7px; }
.drag-destination-invalid { outline:2px dashed #a55e46!important; outline-offset:2px; border-radius:7px; }
.block-cell.drag-cell-valid { background:#b4cead; box-shadow:inset 0 0 0 3px #55794a; }
.block-cell.drag-cell-invalid { background:#e8b6a2; box-shadow:inset 0 0 0 3px #a55e46; }
.puzzle-drag-ghost {
  position:fixed; top:0; left:0; z-index:19; pointer-events:none;
  opacity:.78; margin:0; will-change:transform;
  user-select:none; -webkit-user-select:none;
}
.puzzle-drag-ghost * { pointer-events:none!important; }
.puzzle-drag-ghost .drag-card-face { width:100%; height:100%; min-height:0; box-shadow:0 4px 12px #273e3633; }
.puzzle-drag-ghost .drag-count { position:absolute; right:0; bottom:-14px; padding:3px 5px; border-radius:7px; white-space:nowrap; background:var(--green); color:white; font:11px/1.2 Arial,sans-serif; }
.puzzle-drag-ghost.drag-piece-outline { opacity:.7; }
.drag-outline-square { position:absolute; border:2px solid var(--green); border-radius:4px; background:transparent; }
@media(prefers-reduced-motion:reduce) { .puzzle-drag-ghost { transition:none; } }
/* A previous click-preview remains in state for cancellation/Undo, but does not
   compete with the live dragged footprint. */
.puzzle-dragging .block-cell:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview) { background:#f9f6ed; box-shadow:none; color:transparent; }
.puzzle-dragging .block-cell.filled:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview) { background:#779486; box-shadow:inset 0 -3px 0 #5c7c6c; }

/* Solitaire reference table — an immersive game surface, not an embedded panel. */
.solitaire-room{--felt:#153e34;--felt-light:#275c49;--table-ink:#f7eedb;--table-muted:#b9c9bd;--brass:#d4b674;--card-height:clamp(116px,18.8vh,156px);--stack-step:clamp(23px,3.7vh,30px);--table-gap:clamp(10px,1.45vw,20px);height:100svh;min-height:520px;display:flex;flex-direction:column;overflow:hidden;color:var(--table-ink);background:radial-gradient(ellipse at 50% 38%,#2c624e 0%,#1c493c 48%,#10362e 100%);position:relative}
.solitaire-room:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.15;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23ffffff' filter='url(%23n)' opacity='.42' d='M0 0h160v160H0z'/%3E%3C/svg%3E");mix-blend-mode:soft-light}
.table-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px clamp(20px,3.4vw,56px);flex-shrink:0;border-bottom:1px solid #e7cf9f26;background:linear-gradient(#0c2c26b3,#11352c38);box-shadow:0 5px 25px #07231c12}
.table-identity{display:flex;align-items:center;gap:24px;flex-shrink:0}.table-identity h1{font:400 29px/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.6px;margin:0 0 6px}.table-identity p{margin:0;font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:#bfcebe}.table-header button{border:1px solid #dfe7cf30;background:transparent;color:var(--table-ink);font-size:13px;min-height:42px;border-radius:6px;padding:10px 13px}.table-header .table-back{border:0;padding:8px 0;color:#c5d2c6;font-size:13px}.table-back span{margin-left:4px}.table-stats{display:flex;gap:30px;text-align:center;font-variant-numeric:tabular-nums}.table-stats>span{min-width:38px}.table-stats b{display:block;font:500 21px/1.2 Georgia,serif;color:#fbf2dc}.table-stats small{display:block;font-size:9px;letter-spacing:.14em;text-transform:uppercase;margin-top:5px;color:#b1c7b9}.table-stats i{font:12px Arial,sans-serif;color:#acc3b3;margin-left:2px}.table-top-actions{display:flex;align-items:center;gap:8px}.table-header .table-new,.solitaire-room .table-new{background:linear-gradient(#e2c993,#c9a964);border:1px solid #e5cfa0;color:#243c30;box-shadow:0 2px 0 #071f2040,inset 0 1px #fff4ce9c;font-weight:600;min-height:44px;padding:11px 20px;border-radius:6px}.table-sound{font-size:11px!important;color:#bccdbf!important;border:0!important}.table-qa{font:10px/1.2 Arial,sans-serif;letter-spacing:.1em;color:#ffe0a5;text-align:center;padding:5px;position:relative;background:#092b254d;flex-shrink:0}
.solitaire-room .play-surface.solitaire{position:relative;display:flex;flex:1;min-height:0;overflow:hidden;border:0;border-radius:0;background:none;box-shadow:none;padding:0}.solitaire-room .board-wrap{display:block;position:relative;flex:1;min-height:0;overflow:auto;background:none;border-radius:0;padding:clamp(20px,3.2vh,32px) 24px 28px;scrollbar-color:#72988655 transparent;isolation:isolate}.solitaire-room .is-won{box-shadow:none}.solitaire-room .solitaire-scroll{position:relative;max-width:1050px;margin:auto;padding:3px 4px 20px;scrollbar-color:#91ac9166 transparent;outline-offset:-2px;overflow-x:auto}.solitaire-room .solitaire-scroll:focus-visible{outline:1px solid #cebc8755}.solitaire-room .solitaire-board{width:min(100%,calc(var(--card-height)*4.8 + var(--table-gap)*6));min-height:0;margin:0 auto;--table-card-height:var(--card-height)}.solitaire-room .card-top,.solitaire-room .tableau{gap:var(--table-gap)}.solitaire-room .card-top{margin-bottom:clamp(21px,4.2vh,38px)}.solitaire-room .card-top>div{position:relative}.solitaire-room .card-top>div>small{font:10px/1.3 Arial,sans-serif;letter-spacing:.05em;color:#b5c9b9;margin-top:9px;text-align:center;white-space:nowrap}.solitaire-room .card-column{height:calc(var(--pile-count)*var(--stack-step) + var(--table-card-height));min-height:var(--table-card-height)}.stack-card{top:calc(var(--card-index)*32px)}.solitaire-room .stack-card{top:calc(var(--card-index)*var(--stack-step))}.solitaire-room .playing-card,.solitaire-room .card-slot{height:var(--table-card-height);min-height:0;border-radius:7px}.solitaire-room .playing-card{padding:0;border:1px solid #dddbc7;background:linear-gradient(115deg,#fffef7,#f5f1e4);color:#1e302b;box-shadow:0 2px 0 #c6c7b6,0 3px 6px #051c2352,inset 0 0 0 3px #ffffff8a;overflow:hidden;transform-origin:center center;transition:box-shadow .15s,filter .15s}.solitaire-room .playing-card.red{color:#a53336}.solitaire-room .playing-card:hover:not(:disabled){filter:brightness(1.035);box-shadow:0 2px 0 #ddd2b1,0 5px 12px #041e2266}.solitaire-room .playing-card:focus-visible{outline:3px solid #f1d388;outline-offset:2px;z-index:2}.playing-card .card-corner{position:absolute;top:6px;left:7px;display:flex;gap:2px;align-items:baseline;font:18px/1 Georgia,'Times New Roman',serif;letter-spacing:-.7px;white-space:nowrap}.card-corner strong{font-weight:700}.card-corner i{font:inherit;font-style:normal}.playing-card .corner-bottom{left:auto;top:auto;bottom:6px;right:7px;transform:rotate(180deg)}.playing-card .card-pips{position:absolute;inset:20px 12px;display:block;pointer-events:none}.card-pips i{position:absolute;transform:translate(-50%,-50%);font:24px/1 Georgia,serif;font-style:normal}.card-pips i.inverted{transform:translate(-50%,-50%) rotate(180deg)}.card-pips.ace-pip i{font-size:49px}.playing-card .card-court{position:absolute;inset:26% 21%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid currentColor;background:repeating-linear-gradient(45deg,transparent 0,transparent 5px,#bbaa7620 5px,#bbaa7620 6px);box-shadow:inset 0 0 0 3px #faf7ec,inset 0 0 0 4px currentColor}.card-court em{font:30px/1 Georgia,serif;font-style:normal}.card-court i{font:19px/1 Georgia,serif;font-style:normal;margin-top:3px}.solitaire-room .playing-card.back{padding:0;color:#d7bd7b;border:4px solid #e8e4d5;background:repeating-linear-gradient(45deg,#214e48 0,#214e48 2px,#1d4542 2px,#1d4542 6px);box-shadow:0 2px 0 #bcc0b2,0 3px 7px #031b205e,inset 0 0 0 1px #c8b271,inset 0 0 0 5px #224b43,inset 0 0 0 6px #c8b27173}.playing-card .card-back-emblem{font:30px/1 Georgia,serif;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid #cdb47888;border-radius:50%;padding:8px;box-shadow:0 0 0 5px #123d3330}.solitaire-room .stock-card{cursor:pointer}.solitaire-room .stock-pile:has(.stock-card):after{content:'';position:absolute;inset:5px -2px 21px 2px;border:1px solid #ddd8c9;border-radius:7px;background:#e2dfd0;box-shadow:1px 2px 0 #b0b9a9;z-index:-1}.solitaire-room .card-slot{background:#092c2826;border:1px solid #b8d0b22a;box-shadow:inset 0 1px 6px #0729234d;padding:0;display:flex;align-items:center;justify-content:center;color:#b5c9ab4d;font:29px Georgia,serif}.solitaire-room .foundation-slot{display:flex;flex-direction:column;gap:7px}.solitaire-room .foundation-slot span{font:40px/1 Georgia,serif}.solitaire-room .foundation-slot small{color:#b5c9ab66!important;font:12px/1 Georgia,serif!important;margin:0!important}.solitaire-room .recycle-mark{font:37px/1 Arial,sans-serif;color:#c8d2ba99}.solitaire-room .playing-card.selected{outline:3px solid #edc773!important;outline-offset:1px;box-shadow:0 0 18px #efcd753f;filter:brightness(1.07)}.solitaire-room .card-column.hinted,.solitaire-room .hinted{outline:2px solid #eac982!important;outline-offset:3px;border-radius:7px;box-shadow:0 0 20px #f2d39725}.solitaire-room .drag-source{opacity:.27}.solitaire-room .drag-destination-valid{outline:3px solid #e7ca85!important;outline-offset:4px;background:#d2d69615}.solitaire-room .drag-destination-invalid{outline:2px dashed #e0a08b!important}.table-watermark{position:absolute;pointer-events:none;bottom:42px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:13px;opacity:.075;color:#e6d5a6;white-space:nowrap}.table-watermark>span{font:75px Georgia,serif;line-height:1}.table-watermark>small{font:10px Arial,sans-serif;letter-spacing:.33em}.table-footer{position:relative;z-index:3;flex-shrink:0;padding:0 clamp(20px,3.4vw,56px) max(18px,env(safe-area-inset-bottom));background:linear-gradient(#10392ee6,#0e3028);box-shadow:0 -18px 28px #10392e22}.solitaire-room .game-feedback{color:#c1d2c0;min-height:34px;font-size:13px;line-height:1.4;margin:0;padding:6px 0 10px}.table-action-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:13px;border-top:1px solid #d4c18f25}.table-save,.table-mode{font:10px/1.5 Arial,sans-serif;color:#91af9b;margin:0;flex:1}.table-save span{font-size:7px;margin-right:5px;color:#abc492}.table-mode{text-align:right;letter-spacing:.15em}.solitaire-room .game-controls{gap:9px;flex-shrink:0}.solitaire-room .game-controls button{color:#eee5ce;background:linear-gradient(#295045,#23453b);border:1px solid #9fae8748;box-shadow:0 2px 1px #06271a55,inset 0 1px #dce7bd0d;min-height:45px;padding:10px 19px;border-radius:6px;font-size:13px}.solitaire-room .game-controls button>span{font-size:19px;line-height:1;vertical-align:-1px;margin-right:5px;color:#d4b979}.solitaire-room .game-controls button:disabled{opacity:.3}.solitaire-room button:active:not(:disabled){transform:translateY(1px)}.solitaire-room button:focus-visible{outline:3px solid #efce84;outline-offset:3px}.table-pause-screen{position:absolute;inset:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.table-pause-screen>span{font:32px Georgia,serif;color:#cfb67c;margin-bottom:22px}.table-kicker{font:10px/1.4 Arial,sans-serif;letter-spacing:.18em;color:#c9ad72;margin:0 0 12px}.table-pause-screen h2,.table-result h2{font:400 40px/1.15 Georgia,serif;letter-spacing:-.8px;margin:0 0 13px}.table-pause-screen>p:not(.table-kicker),.table-result>p:not(.table-kicker){font-size:14px;line-height:1.65;color:#b8ccba;margin-bottom:25px}.table-pause-screen .table-new{min-width:175px}.table-result{position:relative;max-width:490px;margin:-60px auto 0;padding:30px 35px;text-align:center;border:1px solid #d1b77b66;border-radius:12px;background:linear-gradient(135deg,#244d40f5,#16392ef5);box-shadow:0 15px 65px #0218106e;animation:result-arrive .45s ease-out}.win-suits{font:30px Georgia,serif;color:#d9be80;letter-spacing:7px;margin-bottom:15px}.result-stats{display:flex;justify-content:center;gap:22px;font-size:11px;color:#b8cabb;margin:0 0 27px}.result-stats b{display:block;font:22px Georgia,serif;color:#efe6ce;margin-bottom:6px}.table-result .table-new{display:block;width:100%;max-width:250px;margin:0 auto}.result-replay{display:block;margin:8px auto 0;color:#cbd8c4;background:transparent;border:0;font-size:12px;padding:10px}.table-dialog-backdrop{background:#061e18bf;backdrop-filter:blur(5px)}.table-help-dialog{max-width:460px;border:1px solid #cab477;background:#f5f1e5;border-radius:12px;padding:30px;color:#284338}.table-help-dialog .table-kicker{color:#87723c}.table-help-dialog h2{font-size:31px;margin-bottom:18px}.table-help-dialog .help-title-row{display:flex;justify-content:space-between;align-items:flex-start}.table-help-dialog .dialog-close{font-size:28px;line-height:1;background:none;border:0;padding:0 8px;min-width:40px}.table-help-dialog ul{padding-left:19px;margin:0 0 20px;font-size:14px;line-height:1.8;color:#4b5d4f}.table-help-dialog p{font-size:14px;margin-bottom:18px}.table-help-dialog .help-fine{font-size:12px;line-height:1.7;color:#6a7265}.table-help-dialog .table-preferences{justify-content:flex-start;border-top:1px solid #d2d5c6;padding-top:18px;margin-bottom:12px}.table-preferences button{padding:9px 16px}.table-help-dialog>.primary{width:100%;margin-top:2px}.solitaire-room+.storage-warning{position:fixed;bottom:0;left:0;right:0;z-index:6;margin:0}.solitaire-room>.storage-warning{position:relative;margin:0;padding:7px;flex-shrink:0}.solitaire-room .solitaire-board.large-cards{min-width:730px;--table-card-height:155px;--stack-step:30px}.solitaire-room .large-cards .card-corner{font-size:20px}.solitaire-room .large-cards .playing-card,.solitaire-room .large-cards .card-slot{height:var(--table-card-height)}
/* Card face typography also applies to previews and lifted cards. */
.preview-inner .card-pips{inset:17px 8px}.preview-inner .card-pips i{font-size:15px}.preview-inner .card-pips.ace-pip i{font-size:27px}.preview-inner .card-corner{font-size:15px;top:4px;left:4px}.preview-inner .corner-bottom{top:auto;left:auto;right:4px;bottom:4px}.preview-inner .card-court em{font-size:22px}.preview-inner .card-court i{font-size:13px}.preview-inner .card-column{height:calc(var(--pile-count)*32px + 77px)}.preview-inner .foundation-slot{display:flex;align-items:center;justify-content:center;padding:0}.preview-inner .stock-pile small,.preview-inner .card-top>div>small{display:none}.preview-inner .card-top{margin-bottom:26px}.preview-inner .playing-card{overflow:hidden}.preview-inner .card-back-emblem{font-size:25px;padding:4px}.puzzle-drag-ghost.solitaire-ghost{opacity:1;filter:drop-shadow(2px 8px 9px #031e245a);--table-card-height:100%;color:#21352c}.solitaire-ghost .drag-card-face{background:linear-gradient(115deg,#fffef7,#f5f1e4);border:1px solid #dddbc7;border-radius:7px;color:#1e302b;padding:0;overflow:hidden;position:absolute;box-shadow:0 2px 1px #b1b7a8;min-height:0}.solitaire-ghost .drag-card-face.red{color:#a53336}.solitaire-ghost .card-corner{font-size:18px}.solitaire-ghost .card-pips{inset:20px 12px}.solitaire-ghost .card-court{inset:26% 21%}
@keyframes result-arrive{from{transform:translateY(15px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-width:1150px){.table-header{gap:16px;padding-left:22px;padding-right:22px}.table-identity{gap:16px}.table-stats{gap:19px}.table-top-actions{gap:6px}.table-header .table-sound{display:none}.table-save{font-size:9px}.table-mode{font-size:8px}.solitaire-room .game-controls button{padding:10px 16px}.table-footer{padding-left:22px;padding-right:22px}}
@media(max-width:820px){.table-header{flex-wrap:wrap;gap:14px 18px;padding:14px 20px}.table-identity h1{font-size:26px}.table-stats{margin-left:auto;gap:24px}.table-top-actions{width:100%;justify-content:flex-end;border-top:1px solid #d4c18f18;padding-top:10px}.table-header .table-top-actions .table-sound{display:inline-block;margin-right:auto}.table-header .table-top-actions button{min-height:38px;font-size:12px;padding:8px 14px}.table-header .table-back span{display:none}.table-header .table-back{font-size:23px;min-width:28px}.table-identity{gap:14px}.solitaire-room{--card-height:clamp(104px,16.2vh,137px);--table-gap:10px;--stack-step:25px}.solitaire-room .board-wrap{padding:24px 16px}.table-save,.table-mode{display:none}.table-action-row{justify-content:center;gap:0;padding-top:10px}.table-footer{padding:0 18px max(14px,env(safe-area-inset-bottom))}.solitaire-room .game-feedback{font-size:12px}.table-watermark{bottom:36px}.solitaire-room .table-result{margin:-40px auto 0}}
@media(max-width:540px){.solitaire-room{min-height:480px;--card-height:calc((100vw - 38px)*.24);--table-gap:5px;--stack-step:24px}.table-header{padding:13px 14px 11px;gap:12px}.table-identity{gap:8px}.table-identity h1{font-size:25px;margin-bottom:4px}.table-identity p{font-size:8px;letter-spacing:.14em}.table-stats{gap:18px}.table-stats b{font-size:20px}.table-stats small{font-size:8px;margin-top:3px}.foundation-stat{display:none}.table-top-actions{gap:6px;padding-top:9px}.table-header .table-top-actions button{padding:8px 10px;font-size:11px}.table-header .table-top-actions .table-new{padding-left:17px;padding-right:17px}.table-header .table-sound{padding-left:0!important;font-size:10px!important}.solitaire-room .board-wrap{padding:19px 7px 22px}.solitaire-room .solitaire-scroll{padding:3px 3px 20px}.solitaire-room .solitaire-board{width:100%}.solitaire-room .card-top{margin-bottom:25px}.solitaire-room .playing-card,.solitaire-room .card-slot{border-radius:4px}.solitaire-room .playing-card.back{border-width:2px;box-shadow:0 2px 0 #a9b1a1,0 3px 7px #031b205e,inset 0 0 0 1px #c8b271,inset 0 0 0 3px #224b43,inset 0 0 0 4px #c8b27173}.solitaire-room .card-corner{font-size:17px;top:5px;left:4px;gap:1px;letter-spacing:-1px}.solitaire-room .corner-bottom{left:auto;top:auto;right:4px;bottom:5px}.solitaire-room .card-pips{inset:20px 5px}.solitaire-room .card-pips i{font-size:15px}.solitaire-room .ace-pip i{font-size:31px}.solitaire-room .card-court{inset:26% 16%}.solitaire-room .card-court em{font-size:22px}.solitaire-room .card-court i{font-size:13px}.solitaire-room .card-back-emblem{font-size:21px;padding:5px;box-shadow:none}.solitaire-room .foundation-slot{gap:4px}.solitaire-room .foundation-slot span{font-size:28px}.solitaire-room .card-top>div>small{font-size:8px;letter-spacing:0;margin-top:7px}.solitaire-room .foundation-slot small{font-size:9px!important}.solitaire-room .card-column{min-height:var(--card-height)}.solitaire-room .game-controls{width:100%;gap:5px;justify-content:center}.solitaire-room .game-controls button{padding:9px 10px;font-size:11px;min-height:45px;flex:1;white-space:nowrap}.solitaire-room .game-controls button>span{display:block;font-size:18px;margin:0 0 4px}.table-footer{padding-left:10px;padding-right:10px}.solitaire-room .game-feedback{font-size:11px;min-height:36px;padding:5px 6px 8px}.table-action-row{padding-top:10px}.table-watermark{bottom:38px}.table-watermark>span{font-size:52px}.table-watermark>small{font-size:8px}.table-result{padding:23px 19px;margin:15px auto!important;max-width:340px}.table-result h2,.table-pause-screen h2{font-size:32px}.table-result>p:not(.table-kicker),.table-pause-screen>p:not(.table-kicker){font-size:12px}.result-stats{gap:19px}.table-help-dialog{max-height:90svh;overflow:auto;padding:24px}.table-help-dialog h2{font-size:28px}.table-help-dialog ul{font-size:13px}.solitaire-room .large-cards .card-corner{font-size:21px}.solitaire-room .large-cards .card-pips i{font-size:24px}.solitaire-room .large-cards .ace-pip i{font-size:48px}.solitaire-room .large-cards .card-court em{font-size:32px}.solitaire-room .large-cards .card-pips{inset:22px 12px}}
@media(max-height:620px) and (min-width:700px){.solitaire-room{min-height:400px;--card-height:94px;--stack-step:20px}.table-header{padding-top:10px;padding-bottom:10px;flex-wrap:nowrap}.table-top-actions{width:auto;border:0;padding:0}.table-header .table-sound{display:none!important}.table-stats{gap:15px}.table-identity h1{font-size:24px}.solitaire-room .board-wrap{padding-top:14px}.solitaire-room .card-top{margin-bottom:22px}.table-footer{padding-bottom:10px}.table-identity p{display:none}.solitaire-room .game-feedback{min-height:25px;font-size:11px;padding:3px 0 5px}.table-action-row{padding-top:8px}.solitaire-room .game-controls button{min-height:38px;padding:8px 14px}.solitaire-room .card-corner{font-size:15px;top:4px;left:4px}.solitaire-room .corner-bottom{top:auto;left:auto;bottom:4px;right:4px}.solitaire-room .card-pips i{font-size:17px}.solitaire-room .ace-pip i{font-size:35px}.solitaire-room .card-court em{font-size:24px}}
@media(prefers-reduced-motion:reduce){.table-result{animation:none}.solitaire-room *{animation:none!important;transition:none!important}}

/* 1.4 — the clubhouse: one front door, eight individual games. */
:root{--paper:#f5f2e9;--ink:#263e35;--muted:#6b7368;--green:#285441;--line:#dcded1;--white:#fffdf7;--club-pine:#183e32;--club-gold:#ddc48d;--club-serif:Georgia,'Times New Roman',serif}
.club-header{max-width:1320px;padding:22px 40px;margin:auto;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}
.brand{font-family:var(--club-serif);font-size:23px;font-weight:500;letter-spacing:-.55px;gap:12px}.brand img{border-radius:12px}.brand em{font-style:normal;font-weight:400}.lobby-nav{display:flex;gap:10px;margin-left:auto;align-items:center}.lobby-nav button{display:flex;align-items:center;gap:9px;font-size:14px;padding:11px 17px;background:none;border:1px solid transparent;border-radius:7px;color:#596a5e}.lobby-nav button.active{color:var(--ink);background:#e7ebdf;border-color:#dce2d3}.lobby-nav svg{width:16px;height:16px}.lobby-nav small{font-size:11px;background:#ccd7c4;border-radius:20px;padding:2px 6px}.club-qa{font-size:10px;padding:7px 10px;background:#efe3b7;color:#64552b;border-radius:5px;letter-spacing:.04em}
.club-home{max-width:1320px;padding:34px 40px 0;margin:auto}.lobby-welcome{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(255px,1fr);gap:26px;align-items:stretch;margin-bottom:50px}.lobby-feature{position:relative;overflow:hidden;border-radius:15px;min-height:344px;background:#173f33;isolation:isolate;box-shadow:0 7px 24px #183e3212}.cover-art{display:block;width:100%;height:auto;pointer-events:none}.lobby-feature .feature-art{position:absolute;top:0;right:-4%;width:76%;height:100%;object-fit:cover;object-position:center}.lobby-feature:after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#173f33 5%,#173f33f5 31%,#173f3380 53%,#173f3300 75%)}.feature-copy{position:relative;z-index:1;padding:37px 34px 31px;max-width:57%;color:#fff8e5}.club-kicker{font-size:10px;letter-spacing:.16em;font-weight:600;margin:0 0 13px;line-height:1.5;color:#7b836e}.feature-copy .club-kicker{color:#d4c290;font-size:9px;white-space:nowrap}.feature-copy h1{font-family:var(--club-serif);font-size:clamp(30px,3.4vw,44px);line-height:1.07;font-weight:400;letter-spacing:-1.1px;margin:0 0 17px}.feature-copy>p:not(.club-kicker){font-size:13px;line-height:1.7;color:#c9d6c6;margin:0 0 23px}.feature-button{border:1px solid #ecdaa5;background:linear-gradient(#eddba9,#ddc388);color:#203e30;padding:12px 19px;min-height:46px;border-radius:6px;font-size:13px;font-weight:600;box-shadow:0 3px 7px #06241933;white-space:nowrap}.feature-button>span{margin-left:22px;font-size:18px;font-weight:400}.feature-caption{display:block;font-size:8px;letter-spacing:.15em;color:#a6bfaa;margin-top:17px;white-space:nowrap}.your-corner{padding:23px 2px 8px;display:flex;flex-direction:column;min-width:0}.your-corner .club-kicker{margin-bottom:9px}.your-corner h2{font:400 28px/1.12 var(--club-serif);letter-spacing:-.65px;max-width:230px;margin:0 0 10px}.your-corner>p:not(.club-kicker){font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 20px}.recent-list{display:flex;flex-direction:column;gap:1px}.recent-game{width:100%;display:flex;align-items:center;text-align:left;gap:12px;min-height:70px;padding:10px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}.recent-game img{width:64px;height:50px;object-fit:cover;border-radius:7px;flex-shrink:0}.recent-game>span:not(.recent-arrow){display:flex;flex-direction:column;gap:6px;min-width:0}.recent-game strong{font:400 18px/1.1 var(--club-serif);letter-spacing:-.25px}.recent-game small{font-size:10px;color:#78806f}.recent-arrow{margin-left:auto;font-size:22px;color:#76866e;flex-shrink:0}.corner-note{font-size:10px;color:#707c66;margin-top:auto;padding-top:15px;display:flex;align-items:center;gap:7px}.corner-note>span{font-size:18px;line-height:1;color:#7c9472}
.catalog-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:21px}.catalog-heading .club-kicker{font-size:9px;margin-bottom:8px}.catalog-heading h2{font:400 32px/1.15 var(--club-serif);letter-spacing:-.6px;margin:0}.catalog-count{font-size:11px;color:#7b8373;padding-bottom:4px}.catalog-filters{display:flex;gap:10px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:25px;flex-wrap:wrap}.catalog-filters button{min-height:36px;padding:8px 16px;font-size:12px;background:transparent;border:1px solid #d7dccd;border-radius:30px;color:#6b7566}.catalog-filters button.active{background:#244c3c;border-color:#244c3c;color:#fff8e4}.game-catalog{grid-template-columns:repeat(4,minmax(0,1fr));gap:29px 22px}.game-tile{min-width:0}.cover-frame{position:relative}.game-card{display:block;width:100%;padding:0;border:none;border-radius:12px;background:#e1e7d7;overflow:hidden;text-align:left;position:relative;box-shadow:0 2px 5px #1b352a0a;transition:box-shadow .2s,transform .2s;isolation:isolate}.game-card .cover-art{aspect-ratio:1.5;object-fit:cover;transition:transform .35s}.game-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #16392922;filter:none}.game-card:hover .cover-art{transform:scale(1.035)}.cover-play{position:absolute;left:12px;bottom:11px;display:flex;align-items:center;gap:6px;background:#fffcf0ed;border:1px solid #fffaf480;border-radius:5px;color:#2c493c;padding:6px 9px;font-size:10px;font-weight:600;box-shadow:0 2px 7px #102d241a}.cover-play>span{font-size:14px;line-height:1}.saved-badge{position:absolute;left:11px;top:11px;background:#173e32d9;color:#e9e8cb;border:1px solid #ffffff26;border-radius:4px;font-size:9px;padding:5px 7px;letter-spacing:.02em}.favorite-button{display:flex;align-items:center;justify-content:center;padding:0;gap:8px;border:1px solid #fffcf0a6;border-radius:50%;min-height:34px;width:34px;color:#fff8e8;background:#183e3266;backdrop-filter:blur(8px);box-shadow:0 2px 6px #183e3212}.cover-frame>.favorite-button{position:absolute;right:10px;top:10px;z-index:2}.favorite-button svg{width:16px;height:16px}.favorite-button.is-favorite{background:#fff7dc;color:#a9624b;border-color:#fff7dc}.favorite-button:hover{filter:none;background:#fff7dc;color:#a9624b}.tile-copy{padding:15px 1px 0}.tile-copy>p{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#838875;margin-bottom:7px}.tile-copy h3{font:400 23px/1.1 var(--club-serif);letter-spacing:-.3px;margin:0 0 8px}.tile-copy h3 button{font:inherit;letter-spacing:inherit;border:0;background:none;padding:0;min-height:0;text-align:left}.tile-copy>span{font-size:11px;line-height:1.55;color:#77806e;display:block}.empty-collection{text-align:center;padding:55px 20px 75px}.empty-collection>svg{width:35px;height:35px;color:#9aa98d;margin-bottom:20px}.empty-collection h3{font:27px var(--club-serif);margin:0 0 10px}.empty-collection p{font-size:14px;color:var(--muted);margin-bottom:24px}.club-footer{border-top:1px solid var(--line);padding:28px 0 32px;margin-top:43px;display:flex;justify-content:space-between;align-items:center;gap:20px}.club-footer .brand{font-size:19px;gap:9px}.club-footer .brand img{width:28px;height:28px;border-radius:8px}.club-footer>div>p{font:italic 12px var(--club-serif);color:#7c8475;margin:9px 0 0 37px}.club-footer>p{font-size:11px;line-height:1.85;color:#596d5b;margin:0}.club-footer>p span{font-size:10px;color:#89917f}.club-footer>a{font-size:11px;text-decoration:none;color:#5d725a;padding:12px 0}
/* A consistent entrance and calm frame, without replacing individual boards. */
.club-room{min-height:100svh;background:radial-gradient(ellipse at 50% 42%,#faf8ef,#edf0e3);display:flex;flex-direction:column}.room-header{background:var(--club-pine);color:#f6efd8;padding:17px max(28px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid #c7ccaf30;box-shadow:0 2px 10px #193f3214}.room-identity{display:flex;gap:25px;align-items:center}.room-back{background:none;color:#baceb7;border:0;font-size:13px;padding:7px 0;min-height:44px;white-space:nowrap}.room-back span{margin-left:5px}.room-identity>div{border-left:1px solid #b9c09d40;padding-left:25px}.room-identity p{font-size:8px;color:#9fb6a0;letter-spacing:.16em;text-transform:uppercase;margin:0 0 6px}.room-identity h1{font:400 29px/1.05 var(--club-serif);letter-spacing:-.6px;margin:0}.room-options{display:flex;gap:9px;align-items:center}.room-options>button{min-height:42px;border-radius:6px;padding:9px 17px;font-size:12px}.room-options .favorite-full{width:auto;min-width:44px;padding:9px 13px;background:none;color:#b8cbb6;border:0;font-size:11px}.room-options .favorite-full.is-favorite{color:#e9ce91}.room-pause{color:#e0e7cf;background:#315340;border-color:#78957755}.room-new{color:#274332;background:linear-gradient(#e2ca96,#d0b578);border-color:#e3cf9c;font-weight:600}.room-qa{border-radius:0;text-align:center;padding:4px;font-size:9px}.club-room .play-layout{width:100%;max-width:1040px;margin:0 auto;padding:20px 36px 16px;display:flex;flex-direction:column;gap:0;flex:1}.room-context{display:flex;justify-content:space-between;align-items:flex-start;gap:30px;position:relative;margin-bottom:16px;min-height:24px}.room-context>p{font:italic 15px/1.6 var(--club-serif);margin:0;color:#75816b}.room-context .rules{margin:0;border:0;padding:0;max-width:540px;flex-shrink:0}.room-context .rules summary{font-size:11px;line-height:24px;text-align:right;color:#506d54;padding:0 0 0 16px}.room-context .rules p{font-size:13px;line-height:1.75;padding:16px 20px;background:#fffdf7;border:1px solid #dce2d3;border-radius:9px;margin:12px 0 0;color:#5b6e57}.club-room .play-surface{padding:18px 30px 22px;border-radius:13px;box-shadow:0 5px 22px #24483206;background:#fffdf7;border-color:#dce2d1;overflow:visible}.club-room .game-toolbar{padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid #e4e7da}.club-room .run-stats{font-size:12px;gap:24px;color:#84907a}.club-room .run-stats b{font-weight:500;color:#4b644d}.room-save{font-size:10px;color:#829077;white-space:nowrap;display:flex;align-items:center;gap:6px}.room-save i{height:5px;width:5px;display:block;border-radius:50%;background:#8da880}.club-room .game-feedback{font-size:12px;color:#6b7d64;margin:16px 0 12px;min-height:25px}.club-room .game-controls{border-top:1px solid #e4e7da;padding-top:15px;gap:9px}.club-room .game-controls button{min-height:42px;min-width:107px;font-size:12px;background:#edf0e3;border-color:#dce1d0;border-radius:6px;padding:10px 20px;color:#536e51}.room-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:10px}.room-bottom>span{font:italic 12px var(--club-serif);color:#8d987e}.room-explore{border:0;background:none;color:#708165;font-size:11px;padding:9px 0}.club-room .board-wrap{min-height:310px}.club-room .word-board,.club-room .sudoku-board{max-width:390px}.club-room .pause-screen{padding:65px 0}.club-room .modal-backdrop{background:#173b3280}
@media(min-width:1051px){.club-room .water .tubes{max-width:none;gap:17px}.club-room .blocks .board-wrap{grid-template-columns:minmax(0,350px) 155px;gap:9px 30px}.club-room .blocks .block-board{max-width:350px}.club-room .mahjong-board{height:330px;max-width:480px}}
@media(max-width:1100px){.club-header{padding:20px 30px}.club-home{padding:28px 30px 0}.lobby-welcome{gap:24px;grid-template-columns:minmax(0,2fr) minmax(245px,1fr)}.lobby-feature{min-height:330px}.feature-copy{padding:31px 27px;max-width:65%}.feature-copy h1{font-size:37px}.feature-copy>p:not(.club-kicker){font-size:12px}.feature-copy .club-kicker{font-size:8px}.your-corner h2{font-size:27px}.game-catalog{gap:28px 18px}.tile-copy h3{font-size:21px}.tile-copy>span{font-size:10px}.recent-game strong{font-size:17px}.room-header{padding:16px 27px}}
@media(max-width:820px){.club-header{padding:18px 24px;gap:14px}.club-header .brand{font-size:21px}.club-header .brand img{width:34px;height:34px}.lobby-nav{gap:2px}.lobby-nav button{padding:10px 13px;font-size:12px}.club-qa{font-size:8px}.club-home{padding:24px 24px 0}.lobby-welcome{grid-template-columns:minmax(0,1fr);gap:0;margin-bottom:38px}.lobby-feature{min-height:315px}.feature-copy{padding:34px;max-width:55%}.feature-copy h1{font-size:39px}.feature-copy>p:not(.club-kicker){font-size:13px}.lobby-feature .feature-art{width:72%;right:-3%}.your-corner{padding:23px 0 0;display:grid;grid-template-columns:175px minmax(0,1fr);gap:4px 24px}.your-corner .club-kicker{grid-column:1;margin:0}.your-corner h2{grid-column:1;font-size:24px;margin:0}.your-corner>p:not(.club-kicker){display:none}.recent-list{grid-column:2;grid-row:1/4}.recent-game{padding:8px 0;min-height:60px}.recent-game:first-child{border:0}.recent-game img{height:44px;width:61px}.corner-note{grid-column:1;font-size:9px;line-height:1.5;padding-top:5px;margin:0;max-width:160px}.corner-note>span{display:none}.game-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px}.tile-copy h3{font-size:24px}.tile-copy>span{font-size:12px}.tile-copy>p{font-size:9px}.catalog-heading h2{font-size:30px}.club-footer{gap:18px;flex-wrap:wrap}.club-footer>p{margin-left:auto}.club-footer>a{display:none}.room-header{padding:16px 23px;gap:15px}.room-identity{gap:16px}.room-identity>div{padding-left:16px}.room-identity h1{font-size:27px}.room-options .favorite-full span{display:none}.room-options .favorite-full{padding:9px;min-width:37px}.room-options>button{padding:9px 13px}.club-room .play-layout{padding:18px 23px}.room-context .rules{max-width:58%;flex-shrink:1}.room-context>p{font-size:13px}.club-room .play-surface{padding:16px 22px 20px}.room-save{font-size:9px}.club-room .board-wrap{min-height:320px}.room-header .room-back span{display:none}.room-back{font-size:22px}.club-room .water .tubes{max-width:570px;gap:10px}.club-room .water .tube{width:69px}.club-room .water .tube-glass{height:156px}}
@media(max-width:540px){.club-header{padding:16px 18px 13px;flex-wrap:wrap;gap:12px}.club-header .brand{font-size:21px}.club-header .brand img{width:33px;height:33px}.lobby-nav{width:100%;border-top:1px solid #e3e4d9;padding-top:10px;gap:7px;margin-left:0}.lobby-nav button{padding:9px 16px;min-height:37px;font-size:12px}.club-header .club-qa{position:absolute;top:27px;right:14px;font-size:7px;padding:4px}.club-home{padding:20px 17px 0}.lobby-feature{min-height:304px;border-radius:11px}.feature-copy{padding:29px 23px 26px;max-width:74%}.feature-copy h1{font-size:35px;line-height:1.1;letter-spacing:-.7px}.feature-copy>p:not(.club-kicker){font-size:11px;line-height:1.7;margin-bottom:21px}.feature-copy .club-kicker{font-size:7px;letter-spacing:.12em}.feature-button{font-size:12px;min-height:43px;padding:10px 15px}.feature-button>span{margin-left:17px}.feature-caption{font-size:7px;letter-spacing:.13em;margin-top:17px}.lobby-feature .feature-art{width:110%;right:-32%;object-position:center;opacity:.92}.lobby-feature:after{background:linear-gradient(90deg,#173f33 0%,#173f33eb 33%,#173f3377 62%,#173f3300 96%)}.your-corner{grid-template-columns:125px minmax(0,1fr);gap:5px 17px;padding-top:23px}.your-corner .club-kicker{font-size:7px;letter-spacing:.13em}.your-corner h2{font-size:22px;letter-spacing:-.5px}.corner-note{font-size:8px;padding-top:4px;max-width:125px}.recent-game{gap:9px;padding:9px 0;min-height:58px}.recent-game img{width:47px;height:42px;border-radius:5px}.recent-game strong{font-size:15px;line-height:1.2}.recent-game small{font-size:8px;line-height:1.3}.recent-game>span:not(.recent-arrow){gap:4px}.recent-arrow{font-size:17px}.lobby-welcome{margin-bottom:33px}.catalog-heading{margin-bottom:18px;gap:10px}.catalog-heading h2{font-size:27px;letter-spacing:-.6px}.catalog-heading .club-kicker{font-size:8px}.catalog-count{font-size:9px;max-width:68px;line-height:1.5;text-align:right;padding-bottom:1px}.catalog-filters{gap:7px;padding-bottom:16px;margin-bottom:22px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.catalog-filters::-webkit-scrollbar{display:none}.catalog-filters button{font-size:10px;padding:8px 12px;min-height:34px;white-space:nowrap}.game-catalog{gap:25px 14px}.game-card{border-radius:8px}.game-card .cover-art{aspect-ratio:1.32;object-fit:cover}.cover-play{left:7px;bottom:7px;padding:5px 6px;font-size:8px;gap:4px;border-radius:4px}.cover-play>span{font-size:11px}.cover-frame>.favorite-button{top:7px;right:7px;min-height:30px;width:30px}.favorite-button svg{width:14px;height:14px}.saved-badge{left:6px;top:7px;font-size:7px;padding:4px 5px}.tile-copy{padding-top:12px}.tile-copy>p{font-size:7px;letter-spacing:.08em;margin-bottom:6px}.tile-copy h3{font-size:21px;line-height:1.1;margin-bottom:7px;letter-spacing:-.5px}.tile-copy>span{font-size:10px;line-height:1.5}.club-footer{padding:25px 0 29px;margin-top:32px;align-items:flex-start;gap:21px}.club-footer .brand{font-size:18px}.club-footer .brand img{width:27px;height:27px}.club-footer>p{width:100%;margin:0;font-size:10px;line-height:1.9}.club-footer>p span{font-size:9px}.club-footer>div>p{font-size:11px;margin-top:7px}.empty-collection{padding:35px 12px 55px}.empty-collection h3{font-size:23px}.empty-collection p{font-size:12px;line-height:1.6}.room-header{padding:14px 15px;gap:12px;flex-wrap:wrap}.room-identity{gap:11px;flex:1}.room-identity>div{padding-left:13px}.room-identity h1{font-size:26px}.room-identity p{font-size:7px;margin-bottom:5px}.room-options{gap:6px}.room-options .favorite-full{display:none}.room-options>button{font-size:10px;padding:9px 10px;min-height:38px}.room-options .room-pause{border:0;background:none;padding:9px 5px;color:#d0ddc3}.club-room .play-layout{padding:15px 10px 10px}.room-context{margin-bottom:13px;gap:10px;padding:0 5px;flex-wrap:wrap}.room-context>p{font-size:12px;max-width:68%;line-height:1.6}.room-context .rules{max-width:none;flex-shrink:0}.room-context .rules summary{font-size:10px;line-height:20px;padding:0}.room-context .rules[open]{width:100%}.room-context .rules[open] summary{text-align:left}.room-context .rules p{font-size:12px;margin-top:9px;padding:14px 16px}.club-room .play-surface{padding:13px 11px 17px;border-radius:10px}.club-room .game-toolbar{margin-bottom:15px;padding-bottom:12px}.club-room .run-stats{font-size:10px;gap:15px}.time-label{display:none}.room-save{font-size:8px;gap:4px}.club-room .game-feedback{font-size:11px;margin:15px 3px 12px;min-height:31px}.club-room .game-controls{padding-top:13px;gap:7px}.club-room .game-controls button{min-width:0;flex:1;max-width:118px;font-size:11px;padding:9px 12px;min-height:42px}.room-bottom{padding:8px 5px 0}.room-bottom>span{font-size:10px}.room-explore{font-size:10px}.club-room .board-wrap{min-height:295px}.club-room .water .tubes{gap:7px;max-width:340px}.club-room .water .tube{width:67px}.club-room .water .tube-glass{height:147px}.club-room .mahjong-board{height:285px}.club-room .pause-screen{padding:50px 6px}.club-room .pause-screen h2{font-size:27px}.club-room .pause-screen p{font-size:12px}}
@media(max-width:360px){.feature-copy{padding-left:19px;max-width:84%}.feature-copy h1{font-size:32px}.your-corner{grid-template-columns:110px minmax(0,1fr);gap:5px 12px}.recent-game img{width:39px;height:38px}.recent-game strong{font-size:14px}.recent-arrow{display:none}.catalog-heading h2{font-size:25px}.tile-copy h3{font-size:19px}.catalog-filters{gap:5px}.catalog-filters button{padding:7px 10px;font-size:9px}.room-identity h1{font-size:23px}.room-options>button{font-size:9px}.room-header{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){.game-card,.game-card .cover-art{transition:none}.game-card:hover,.game-card:hover .cover-art{transform:none}}

/* Keep secondary copy and independent favourite targets comfortably readable. */
.tile-copy>span{font-size:12px}.tile-copy>p{font-size:10px}.favorite-button{min-height:40px;width:40px}.cover-frame>.favorite-button{right:9px;top:9px}.catalog-count{font-size:12px}.recent-game small{font-size:11px}.corner-note{font-size:11px}
@media(max-width:540px){.club-header .club-qa{top:76px;right:16px;font-size:7px}.tile-copy>span{font-size:11px}.tile-copy>p{font-size:8px}.cover-frame>.favorite-button{min-height:38px;width:38px;top:6px;right:6px}.recent-game small{font-size:9px}.corner-note{font-size:9px}.catalog-count{font-size:9px}}

/* AA contrast for small secondary labels on warm paper. */
.tile-copy>p,.tile-copy>span,.catalog-count,.recent-game small,.corner-note,.club-kicker,.club-footer>p span,.club-footer>div>p{color:#64715f}.room-save,.club-room .run-stats,.room-context>p,.room-bottom>span{color:#64715f}.feature-caption{color:#b3c6b1}.feature-copy .club-kicker{color:#d4c290}.feature-copy>p:not(.club-kicker){color:#c9d6c6}.catalog-heading h2:focus{outline:2px solid #a28044;outline-offset:7px}
.club-room .game-feedback{color:#64715f}

/* 1.5: one tactile game-home scene. Fluid height, never a clipped viewport. */
:root{--scene-cream:#fff4d9;--scene-gold:#e6c783;--scene-green:#183f33;--scene-shadow:#08281f}
body{background:#153c31}.app-scene{min-height:100svh}.menu-scene,.club-room{position:relative;isolation:isolate;color:var(--scene-cream);background:radial-gradient(ellipse at 50% 35%,#37664e 0%,#244e3d 45%,#11372d 100%)}
.menu-scene:before,.club-room:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.16;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.42' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}
.menu-scene{min-height:100svh;display:grid;grid-template-rows:auto 1fr auto;padding:calc(18px + env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));gap:18px}
.menu-header{width:min(100%,1040px);margin:auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}.menu-header-slot{display:flex;align-items:center;min-width:0}.menu-header-slot:last-child{justify-content:flex-end}.menu-header h1{text-align:center;font:500 34px/1.03 Georgia,serif;letter-spacing:-1px;margin:0;color:#fff1ce;text-shadow:0 2px 3px #09291f70;outline-offset:5px}.menu-header h1 span{display:block}.menu-header h1 em{display:block;font:400 18px/1.2 Georgia,serif;letter-spacing:4px;text-transform:uppercase;margin-top:8px;color:#d6bd83}.menu-header h1:focus:not(:focus-visible){outline:0}
.scene-icon{width:48px;height:48px;min-height:48px;display:flex;align-items:center;justify-content:center;padding:11px;border-radius:16px;background:linear-gradient(#386149,#234a39);border:1px solid #b4c59444;color:#f5e6bd;box-shadow:inset 0 1px 0 #ecf1c02b,0 3px 0 #0c2b22,0 5px 10px #06281b30}.scene-icon svg,.menu-dock svg,.menu-resume svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.menu-edit{background:#234a38;border-color:#728965;color:#fff1ce;border-radius:14px;min-height:46px;padding:10px 15px;font-size:16px;box-shadow:0 3px 0 #0c2b22}
.menu-field{width:min(100%,1000px);margin:auto;align-self:center;min-width:0;position:relative}.menu-field .game-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 22px}.menu-field .game-tile{padding:0;min-width:0}.menu-field .game-card{position:relative;width:100%;height:clamp(170px,27svh,250px);padding:0;border:2px solid #ead29e;border-radius:24px;background:#244c3b;isolation:isolate;box-shadow:inset 0 0 0 2px #fff2d24d,0 5px 0 #ad8e58,0 9px 0 #0b2b20,0 13px 23px #031f174f;overflow:hidden;transform:none;transition:transform .16s,box-shadow .16s,filter .16s}
.menu-field .game-card:before{content:'';position:absolute;inset:0;z-index:2;border-radius:22px;pointer-events:none;box-shadow:inset 0 1px 2px 1px #fff8de90,inset 0 0 0 4px #fff9dc16}
.menu-field .game-card:after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(0deg,#112b25f5 0%,#17382ec4 20%,#17382e00 49%)}
.menu-field .game-card .cover-art{width:100%;height:100%;object-fit:cover;aspect-ratio:auto;transform:scale(1.035);transition:transform .25s}.menu-game-name{position:absolute;z-index:1;left:5px;right:5px;bottom:15px;text-align:center;color:#fff6e2;text-shadow:0 2px 3px #05281d;font:600 22px/1.1 Georgia,serif;letter-spacing:-.45px;padding:0 4px}
@media(hover:hover){.menu-field .game-card:hover{transform:translateY(-3px);filter:brightness(1.06);box-shadow:0 7px 0 #ad8e58,0 11px 0 #0b2b20,0 15px 25px #031f1759}.menu-field .game-card:hover .cover-art{transform:scale(1.08)}}
.menu-field .game-card:active{transform:translateY(4px);box-shadow:0 1px 0 #ad8e58,0 3px 0 #0b2b20,0 5px 10px #031f1759;filter:brightness(.96)}
.menu-favorite{position:absolute;top:10px;right:10px;z-index:3;width:35px;height:35px;display:grid;place-items:center;background:#183e32d9;color:#fff6de;border:1px solid #fff2ceaa;border-radius:50%}.menu-favorite svg{width:21px;height:21px}.menu-favorite.chosen{background:#f6dfaa;color:#724225;border-color:#fff3d2}.menu-field .game-card[aria-pressed=true]{border-color:#f6dfaa;box-shadow:0 0 0 3px #e7c27180,0 5px 0 #ad8e58,0 9px 0 #0b2b20,0 13px 23px #031f174f}
.menu-bottom{width:min(100%,520px);display:grid;gap:14px;margin:0 auto;padding-top:7px}.menu-dock{display:flex;align-items:center;gap:5px;padding:6px;background:#0f3228b5;border:1px solid #99b18633;border-radius:23px;box-shadow:inset 0 2px 5px #08281f66,0 1px 0 #b8caa033}.menu-dock button{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;border:1px solid transparent;border-radius:17px;background:none;color:#c4d0b7;font-weight:500;font-size:17px;padding:10px}.menu-dock button.active{color:#354932;background:linear-gradient(#f8e7b6,#dfc68c);border-color:#eedfb4;box-shadow:inset 0 1px 0 #fff8da,0 3px 0 #ad8f5b,0 4px 6px #08281f66}.menu-dock svg{width:23px;height:23px}.menu-resume{display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(#f5dfab,#dfc18a);color:#29422f;border:1px solid #f7e8bf;box-shadow:inset 0 1px 0 #fff2d0,0 4px 0 #a98b57,0 6px 10px #05271d55;border-radius:17px;min-height:48px;font-size:17px;padding:10px 16px}.menu-resume svg{width:19px;height:19px;fill:currentColor;stroke-width:0}.menu-resume span{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.menu-resume strong{font-weight:600}.menu-resume:active,.menu-primary:active,.scene-icon:active{transform:translateY(2px)}
.menu-empty{text-align:center;padding:45px 20px}.menu-empty>svg{width:64px;height:64px;color:#e0ca99;margin-bottom:20px}.menu-empty h2{font:30px Georgia,serif;margin:0 0 12px}.menu-empty p{color:#d0dac1;line-height:1.6;font-size:17px;margin-bottom:24px}.menu-primary{display:block;border-radius:14px;background:linear-gradient(#f2deab,#d8bc81);color:#294431;border:1px solid #ead6a7;box-shadow:0 3px 0 #aa8b56;min-height:48px;padding:12px 24px;font-size:17px;font-weight:600;margin:0 auto}.scene-qa{position:fixed;bottom:2px;right:5px;color:#d3caa6;font:9px/1 Arial,sans-serif;z-index:10;pointer-events:none}
.scene-backdrop{background:#061d17ad;backdrop-filter:blur(5px);padding:20px max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}.scene-dialog{width:min(100%,430px);max-height:calc(100svh - 40px);overflow:auto;background:#f8f1de;border:2px solid #d6c18f;border-radius:24px;box-shadow:inset 0 0 0 4px #fff8e9,0 8px 0 #786748,0 20px 80px #031a1470;padding:24px;color:#2b4534}.scene-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.scene-dialog h2{font:29px/1.1 Georgia,serif;margin:0;letter-spacing:-.6px}.scene-dialog h3{font-size:17px;margin:18px 0 10px}.scene-dialog p{font-size:16px;line-height:1.6;color:#52654e}.scene-dialog .dialog-close{width:44px;height:44px;min-width:44px;font-size:28px;background:#e8dfc8;border-color:#d6c9a6;border-radius:50%;padding:0;color:#46573d}.scene-dialog .settings-list{display:flex;flex-direction:column;gap:10px;align-items:stretch}.scene-dialog .setting-row,.scene-dialog .favorite-full{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:17px;background:#fffbef;border:1px solid #ded3b5;border-radius:13px;padding:12px 16px;color:#3e5940;box-shadow:0 2px 0 #daceaf}.scene-dialog .favorite-full{justify-content:flex-start}.scene-dialog .favorite-full svg{width:22px;height:22px}.scene-dialog .favorite-full.is-favorite{color:#925336;background:#ffedc4}.scene-dialog .settings-note{font-size:14px;margin:20px 0;text-align:center;line-height:1.5}.scene-dialog>.menu-primary{width:100%;margin-top:20px}.scene-dialog .table-preferences{justify-content:center;flex-wrap:wrap}.scene-dialog .table-preferences button{color:#3e5940;background:#e9e0c9;border-color:#cfc09a;font-size:15px;padding:10px 13px;min-height:46px}
/* Shared room chrome lives in the same game world; puzzle boards stay intact. */
.club-room{min-height:100svh}.club-room .room-header{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:18px;padding:calc(17px + env(safe-area-inset-top)) max(24px,calc((100vw - 960px)/2));background:none;border:0;box-shadow:none;color:#fff2d3}.club-room .room-header h1{text-align:center;font:500 31px/1.1 Georgia,serif;letter-spacing:-.5px;margin:0}.club-room .room-back{padding:11px;min-height:48px;font-size:22px}.club-room .play-layout{width:100%;max-width:930px;padding:8px 26px calc(24px + env(safe-area-inset-bottom));margin:0 auto;display:flex;flex-direction:column;justify-content:center}.club-room .play-surface{background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 28px 23px;color:var(--scene-cream);overflow:visible}.club-room .game-toolbar{min-height:45px;margin:0 0 10px;padding:0 0 8px;border:0}.club-room .run-stats{gap:22px;font-size:16px;color:#5e6d54}.club-room .run-stats b{color:#324c39;font-weight:600}.club-room .room-help{border:1px solid #cfc3a1;background:#eae1c8;color:#4b5b3d;width:44px;height:44px;font:24px Georgia,serif;border-radius:50%;padding:0}.club-room .game-feedback{font-size:15px;line-height:1.45;min-height:22px;margin:15px 0 11px;padding:0;color:#506146}.club-room .game-controls{gap:12px;padding-top:13px;border-color:#ddd3b7}.club-room .game-controls button{min-height:48px;font-size:16px;padding:11px 20px;background:linear-gradient(#faf1da,#e7dab9);color:#3d573e;border:1px solid #cabd9a;border-radius:13px;box-shadow:0 3px 0 #c0ad84}.club-room .game-controls button:disabled{box-shadow:none}.club-room .pause-screen h2{font-size:32px}.club-room .pause-screen .menu-primary{margin-top:24px}.club-room .board-wrap{min-height:300px}.table-header .scene-icon{width:46px;height:46px;min-height:46px}.table-top-actions{min-width:46px}.table-header .table-top-actions .scene-icon{padding:11px}.table-header .table-top-actions .scene-icon svg{width:24px;height:24px}
.scene-enter{animation:scene-arrive .2s ease-out both}@keyframes scene-arrive{from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.menu-scene{padding:calc(15px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(13px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));gap:15px}.menu-header{gap:8px;grid-template-columns:52px minmax(0,1fr) 52px}.menu-header h1{font-size:29px;letter-spacing:-.8px}.menu-header h1 em{font-size:16px;letter-spacing:3px;margin-top:6px}.menu-header h1 em:not(:only-child){line-height:1.1}.menu-header-slot{justify-content:flex-start}.menu-header-slot:last-child{justify-content:flex-end}.scene-icon{width:46px;height:46px;min-height:46px;border-radius:15px;padding:10px}.menu-edit{padding:9px;min-width:48px;font-size:15px}.menu-field{max-width:470px}.menu-field .game-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 16px}.menu-field .game-card{height:clamp(100px,calc((100svh - 258px)/4),151px);border-radius:20px}.menu-field .game-card:before{border-radius:18px}.menu-game-name{font-size:20px;bottom:12px;letter-spacing:-.35px}.menu-bottom{max-width:470px;gap:12px;padding-top:5px}.menu-dock{border-radius:21px;padding:5px}.menu-dock button{min-height:47px;gap:9px;font-size:16px;border-radius:16px;padding:9px}.menu-resume{min-height:45px;font-size:16px;padding:9px 14px}.menu-resume svg{width:17px;height:17px}.menu-favorite{top:7px;right:7px;width:30px;height:30px}.menu-favorite svg{width:18px;height:18px}.menu-empty{padding:40px 8px}.club-room .room-header{grid-template-columns:46px minmax(0,1fr) 46px;padding:calc(15px + env(safe-area-inset-top)) max(15px,env(safe-area-inset-right)) 15px max(15px,env(safe-area-inset-left));gap:12px}.club-room .room-header h1{font-size:28px}.club-room .room-back{padding:10px;min-height:46px}.club-room .play-layout{padding:2px 12px calc(19px + env(safe-area-inset-bottom))}.club-room .play-surface{padding:10px 13px 19px;border-radius:21px}.club-room .game-toolbar{margin-bottom:8px}.club-room .run-stats{font-size:15px;gap:18px}.club-room .game-feedback{font-size:14px;margin-top:13px;min-height:22px}.club-room .game-controls{gap:8px}.club-room .game-controls button{font-size:15px;padding:10px 9px;min-width:0;min-height:47px;max-width:140px;flex:1}.club-room .board-wrap{min-height:290px}.club-room .water .tube{width:67px}.club-room .water .tubes{max-width:340px}.club-room .mahjong-board{height:280px}.scene-dialog{padding:21px}.scene-dialog h2{font-size:27px}.scene-dialog p{font-size:15px}.scene-dialog .setting-row,.scene-dialog .favorite-full{font-size:16px}.scene-dialog .settings-note{font-size:14px}}
@media(max-width:360px){.menu-scene{padding-left:14px;padding-right:14px}.menu-header h1{font-size:25px}.menu-header h1 em{font-size:14px}.menu-field .game-catalog{gap:15px 13px}.menu-game-name{font-size:18px}.menu-dock button{font-size:15px;gap:8px}.club-room .room-header h1{font-size:24px}.club-room .play-layout{padding-left:7px;padding-right:7px}.club-room .play-surface{padding-left:10px;padding-right:10px}}
/* Short/zoomed screens scroll normally, keeping control and type sizes intact. */
@media(max-height:620px) and (min-width:701px){.menu-scene{gap:14px}.menu-header h1{font-size:28px}.menu-field .game-card{height:165px}.menu-bottom{grid-template-columns:1fr 1fr;align-items:center;width:min(100%,1000px);max-width:1000px}.menu-bottom:not(:has(.menu-resume)){display:block;max-width:500px}.menu-dock button{font-size:16px}}
@media(prefers-reduced-motion:reduce){.scene-enter{animation:none}.menu-field .game-card,.menu-field .game-card .cover-art{transition:none}.menu-field .game-card:hover,.menu-field .game-card:hover .cover-art{transform:none}}
@media(max-width:820px){.table-header .table-top-actions{width:auto;border:0;padding:0;margin-left:auto;flex-shrink:0;justify-content:flex-end}}
@media(max-width:700px){.menu-scene{--menu-reserve:240px}.menu-scene:has(.menu-resume){--menu-reserve:294px}.menu-field .game-card{height:clamp(100px,calc((100svh - var(--menu-reserve) - env(safe-area-inset-top) - env(safe-area-inset-bottom))/4),151px)}}
/* Large browser zoom keeps the whole menu reachable without horizontal spill. */
.menu-scene{grid-template-columns:minmax(0,1fr)}.menu-header,.menu-bottom{min-width:0}.menu-dock button{min-width:0}
@media(max-width:320px){.menu-dock button{flex-direction:column;gap:5px;font-size:14px}.menu-header{grid-template-columns:46px minmax(0,1fr) 46px;gap:5px}.menu-header h1{font-size:23px}.menu-header h1 em{font-size:12px;letter-spacing:1.5px}.menu-resume span{font-size:15px}.menu-game-name{font-size:17px}}

/* Installation lives in Settings; the game menu stays unchanged. */
/* Override legacy .confirm-dialog > div action-row flex for readable guide flow. */
.scene-dialog>.install-guide{display:block}
.scene-dialog .install-steps{padding-left:24px;margin:18px 0;color:#3e5940;font-size:16px;line-height:1.6}.install-steps li+li{margin-top:12px}.scene-dialog .install-guide>.menu-primary{width:100%;margin:20px 0}.scene-dialog .install-guide .settings-note{margin-bottom:0}@media(max-width:700px){.scene-dialog .install-steps{font-size:15px}}

/* Gameplay refinement 1.6: legal choices and results, without covering the board. */
.solitaire-room .legal-destination{position:relative;outline:2px solid #d4cf8c;outline-offset:4px;border-radius:7px}
.solitaire-room .legal-destination:after{content:'↓';position:absolute;right:3px;top:-20px;color:#f1df9b;font-size:17px;font-weight:700;line-height:1;pointer-events:none}
.solitaire-room .legal-destination .card-slot{color:#d8cf98}
.puzzle-dragging .legal-destination{outline-color:transparent}
.puzzle-dragging .legal-destination:after{display:none}
.block-cell.clear-preview,.block-cell.drag-clear-preview{box-shadow:inset 0 0 0 3px #bb9140;background:#e4d6a9}
.block-cell.ghost-valid.clear-preview{background:#c0cf9b;box-shadow:inset 0 0 0 3px #bb9140}
.block-piece.no-space{opacity:.65}
.piece-no-space{display:block;font-size:10px;color:#765f42;margin-top:5px}
.placement-summary{display:block;min-height:18px;font-size:12px;line-height:1.5;color:#6b6545;margin-top:8px}
.score-current{display:inline-block}
.block-result{margin-top:18px;border-top:1px solid #d2c7a4;padding-top:19px}
.block-result>p{font-size:14px;line-height:1.5;margin:8px 0 15px}
.block-result .result-replay{margin:10px auto 0;display:block;font-size:13px;color:#596b4c}
@media(max-width:540px){.solitaire-room .legal-destination{outline-offset:2px}.solitaire-room .legal-destination:after{top:-17px;font-size:15px}.placement-summary{font-size:12px}.piece-no-space{font-size:9px}}

.puzzle-dragging .block-cell.drag-cell-valid{background:#b4cead;box-shadow:inset 0 0 0 3px #55794a}
.puzzle-dragging .block-cell.drag-clear-preview{background:#e4d6a9;box-shadow:inset 0 0 0 3px #bb9140}
.puzzle-dragging .block-cell.drag-cell-invalid{background:#e8b6a2;box-shadow:inset 0 0 0 3px #a55e46}
/* Keep destination marks inside the scrollable table's clipping boundary. */
.solitaire-room .foundation-pile.legal-destination{outline-offset:1px}
.solitaire-room .foundation-pile.legal-destination:after{top:6px;right:6px}
/* The board, tray and Undo should share a narrow screen rather than compete
   with repeated instructions and a second full-height placement row. */
@media(max-width:700px){
  .club-room .blocks .board-wrap{min-height:0}
  .club-room .blocks .board-instruction{display:none}
  .club-room .blocks .block-board{width:min(100%,max(224px,calc(100svh - 400px)));max-width:340px;margin:0 auto}
  .club-room .blocks .piece-tray{min-height:64px;max-width:340px}
  .club-room .blocks .block-piece{min-height:62px;padding:4px;flex-direction:column}
  .club-room .blocks .placement-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;min-height:44px}
  .club-room .blocks .placement-controls button{min-width:140px;min-height:44px}
  .club-room .blocks .placement-summary{margin:0;max-width:128px;text-align:left;min-height:0}
  .club-room .blocks .game-extra{padding:3px 0;font-size:12px}
  .club-room .blocks .game-feedback{font-size:13px;min-height:19px;margin:7px 0;line-height:1.4}
  .club-room .blocks .game-controls{padding-top:8px}
}

/* Matching puzzles 1.7: quiet goals, explicit choices and contextual paths. */
.puzzle-goal{text-align:center;margin:0 auto 13px;color:#3d5945;line-height:1.4}
.puzzle-goal strong{display:block;font-size:15px;font-weight:650}
.puzzle-goal>span{display:block;font-size:12px;color:#6b785f;margin-top:3px}
.mahjong-tile.matching-tile{box-shadow:inset 0 0 0 2px #6c9461,2px 2px 0 #b7b088;background:#edf2d7}
.mahjong-tile.selected{box-shadow:inset 0 0 0 3px #3f6d4b,2px 2px 0 #b7b088;background:#d7e9c7}
.mahjong-tile.blocking-tile{outline:3px solid #bf744d;outline-offset:-3px}
.mahjong-tile.hinted{outline:3px solid #bb9140;outline-offset:-3px}
.tube.pour-destination{background:#edf1df;box-shadow:inset 0 0 0 2px #7b9965}
.tube.selected{outline:3px solid #456d51;outline-offset:-1px;background:#e3edda}
.water .tube .tube-label:after{content:none}
.tube-label{min-height:34px;margin-top:5px;line-height:1.25;color:#526b51}
.tube-label small{display:block;font-size:10px;font-weight:650;line-height:1.3;margin-top:3px;white-space:nowrap}
.sorted-tube .tube-glass{border-color:#658c68}
.tube.hint-destination{outline:3px dashed #b68b36;outline-offset:-2px}
.arrow-tile{position:relative}
.arrow-tile>span{pointer-events:none}
.arrow-tile>small{position:absolute;right:4px;top:2px;font-size:16px;line-height:1;color:#873e30;pointer-events:none}
.arrow-tile.exit-path{box-shadow:inset 0 0 0 2px #c9a584;background:#efe0c9}
.arrow-tile.clear-path{box-shadow:inset 0 0 0 2px #a2bc86;background:#dce9cd}
.arrow-tile.blocked-source{outline:2px dashed #a56f46;outline-offset:-4px}
.arrow-tile.exit-blocker{box-shadow:inset 0 0 0 3px #9f5746}
@media(max-width:700px){
  .club-room :is(.water,.mahjong,.arrows) .board-wrap{min-height:0}
  .puzzle-goal{margin-bottom:9px}.puzzle-goal strong{font-size:14px}.puzzle-goal>span{font-size:11px}
  .club-room .water .tubes{gap:6px 9px;margin:3px auto;max-width:310px}
  .club-room .water .tube{width:64px;padding:4px 6px;border-radius:12px}
  .club-room .water .tube-glass{height:clamp(104px,calc((100svh - 424px)/2),140px)}
  .club-room .water .tube-label{min-height:32px}
  .club-room :is(.water,.mahjong,.arrows) .game-feedback{font-size:13px;line-height:1.4;min-height:19px;margin:9px 0}
  .club-room :is(.water,.mahjong,.arrows) .game-controls{padding-top:9px}
  .club-room .mahjong .game-extra{padding:5px 0;font-size:12px}
  .club-room .mahjong-key{font-size:10px;line-height:1.4;margin-bottom:0}
  .club-room .arrows .arrow-board{width:min(100%,max(240px,calc(100svh - 302px)));max-width:390px}
}

/* Logic puzzles 1.8: the board stays primary; transient input stays unsaved. */
.sliding-board{isolation:isolate}
.slide-tile{position:relative;transition:background .12s}
.slide-tile.movable{background:#e6cc8b;box-shadow:inset 0 0 0 2px #886d2f,0 3px 0 #bda05d}
.slide-tile.in-place{color:#335840}
.slide-tile.empty{border:1px dashed #c1b795;color:#958862;font-size:26px}
.word-board{touch-action:none;user-select:none;-webkit-user-select:none}
.word-board .letter{font-weight:600;touch-action:none}
.word-board .letter.found{background:#dbe9d1;color:#355e3c}
.word-board .letter.word-trace{background:#d2e3b8;box-shadow:inset 0 0 0 2px #729056;color:#294e33}
.word-board .letter:is(.word-trace-start,.word-trace-end){background:#bcd396;box-shadow:inset 0 0 0 2px #416a39}
.word-board .letter.word-trace-invalid{background:#f0d6bd;box-shadow:inset 0 0 0 2px #a3704a}
.word-selection{min-height:17px;letter-spacing:.025em}
.words .word-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:390px;width:100%;gap:8px 12px;margin:15px auto 0;text-align:center;line-height:1.35}
.words .word-list>span{border-radius:5px;background:#efeee4;padding:6px 2px;font-size:12px;letter-spacing:.04em;white-space:nowrap}
.words .word-list .found-word{background:#e1ebd7;color:#4f7148;text-decoration:line-through}
.words .word-list b{font-size:10px}
.sudoku-status{display:flex;justify-content:space-between;align-items:center;gap:10px;max-width:390px;width:100%;margin:0 auto 10px;font-size:12px;color:#4b674d;min-height:28px}
.sudoku-status strong{font-weight:600;white-space:nowrap}
.sudoku-status>span{text-align:right;font-size:11px;line-height:1.3;color:#6b785f}
.sudoku-board .sudoku-cell{position:relative;font-variant-numeric:tabular-nums}
.sudoku-board .sudoku-cell.selected{outline-color:#365f38!important;background:#d0e3bc;box-shadow:inset 0 0 0 2px #365f38}
.sudoku-board .sudoku-cell.conflict{background:#fae4db;color:#a03429;box-shadow:inset 0 0 0 2px #b9534c}
.sudoku-board .sudoku-cell.conflict:after{content:'!';position:absolute;font-size:9px;line-height:1;right:2px;top:2px;color:#a03429;font-weight:800}
.sudoku-notes{position:absolute;inset:2px;width:auto;height:auto;font-size:clamp(9px,1.5vw,11px);color:#4f6550}
.sudoku-tools{max-width:390px;width:100%;gap:10px;margin:12px auto 0}
.sudoku-tools button{min-height:40px;flex:1;font-size:13px}
.sudoku .number-pad{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;max-width:390px;width:100%;margin:9px auto 0}
.sudoku .number-pad button{min-width:0;padding:5px 0;min-height:48px;font-size:21px;border-radius:6px}
.sudoku .number-pad small{font-size:9px}
.sudoku .number-pad .number-complete{opacity:.72}
.sudoku .number-pad .note-active{background:#d4e5bf;box-shadow:inset 0 0 0 2px #6f8a53}
@media(max-width:700px){
  .club-room :is(.sliding,.words,.sudoku) .board-wrap{min-height:0}
  .club-room .sliding .sliding-board{width:min(100%,max(248px,calc(100svh - 310px)));max-width:390px}
  .club-room .words .word-board{width:min(100%,max(270px,calc(100svh - 367px)));max-width:390px}
  .club-room .sudoku .sudoku-board{width:min(100%,max(270px,calc(100svh - 397px)));max-width:390px}
  .club-room .sudoku-cell{min-height:0;font-size:21px}
  .club-room .word-board .letter{font-size:17px}
  .words .word-list{margin-top:10px;gap:6px 8px}
  .words .word-list>span{font-size:11px;padding:5px 1px}
  .sudoku-status{margin-bottom:7px}
  .sudoku-tools{margin-top:9px;gap:8px}
  .sudoku .number-pad{margin-top:7px;gap:3px}
  .sudoku .number-pad button{font-size:19px;min-height:46px}
  .club-room :is(.sliding,.words,.sudoku) .game-feedback{font-size:13px;line-height:1.4;min-height:19px;margin:9px 0}
  .club-room :is(.sliding,.words,.sudoku) .game-controls{padding-top:9px}
}
@media(prefers-reduced-motion:reduce){.slide-tile{transition:none}}

/* Only the extra status text is visually hidden; assistive readers keep it. */
.words .word-list .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}

/* Move only the visual face. Hitboxes stay on their final grid cells, so a
   fast second tap at the old location cannot hit the tile moving past it. */
.sliding-board .slide-tile:not(.empty){background:transparent;box-shadow:none}
.slide-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:#e7c878;box-shadow:0 3px 0 #cdb269;pointer-events:none}
.slide-tile.movable .slide-face{background:#e6cc8b;box-shadow:inset 0 0 0 2px #886d2f,0 3px 0 #bda05d}

/* 1.9 tactile puzzle feedback: real travel, with stationary input surfaces. */
.depth-board{isolation:isolate;background:radial-gradient(ellipse at 45% 25%,#547862,#294d40);border:1px solid #547361;border-radius:15px;box-shadow:inset 0 3px 10px #102f294d,0 2px 0 #c6c8ac;overflow:visible}
.depth-board .mahjong-pos{perspective:600px}
.depth-board .mahjong-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;min-width:0;padding:1px;border:1px solid #d3ccb1;border-bottom:1px solid #aeac86;border-radius:5px;background:linear-gradient(125deg,#fffdf0 12%,#f3eccf 85%);color:#365e48;box-shadow:1px 1px 0 #dfd9b7,2px 2px 0 #c9c7a4,3px 3px 0 #6e947c,4px 4px 0 #386a54,5px 5px 0 #315d4b,6px 7px 3px #143a2f80,inset 1px 1px 1px #fff;overflow:visible}
.depth-board .mahjong-tile.raised{box-shadow:1px 1px 0 #e7e0bd,2px 2px 0 #d7d0a9,3px 3px 0 #91b399,4px 4px 0 #558267,5px 5px 0 #416e59,7px 9px 5px #13382ea6;background:linear-gradient(125deg,#fffef5,#faf1d6)}
.depth-board .mahjong-tile.covered{background:#dfdcc8;color:#8c977f}
.depth-board .mahjong-tile.side-blocked{color:#365e48}
.depth-board .mahjong-tile.side-blocked:before,.depth-board .mahjong-tile.side-blocked:after{content:none}
.depth-board .mahjong-tile.selected{outline:2px solid #dcac4c!important;outline-offset:-2px;background:linear-gradient(#fff5ce,#ebd48f)}
.depth-board .mahjong-tile.hinted{outline:3px solid #d2a341;outline-offset:-3px}
.depth-board .mahjong-glyph{display:block;font-size:clamp(20px,4.8vw,32px);line-height:1.05;text-shadow:0 1px 0 #fff9}
.depth-board .mahjong-name{font:700 clamp(7px,1.7vw,10px)/1.35 Arial,sans-serif;display:block}
.tubes{position:relative}.water-flying{z-index:30;pointer-events:none;box-shadow:0 12px 15px #26413a38;will-change:transform}
.water-stream{position:absolute;z-index:31;width:6px;border-radius:5px;pointer-events:none;transform-origin:50% 0%;box-shadow:inset 2px 0 0 #ffffff66,1px 1px 2px #29423a33}
.arrow-board{position:relative;overflow:hidden}.arrow-flying{position:absolute;display:flex;align-items:center;justify-content:center;z-index:5;pointer-events:none;font-size:31px;line-height:1;color:#273e36;will-change:transform}
.tubes[data-motion="busy"],.arrow-board[data-motion="busy"]{cursor:wait}
@media(max-width:540px){.depth-board .mahjong-glyph{font-size:22px}.depth-board .mahjong-name{font-size:7px}}
@media(prefers-reduced-motion:reduce){.water-flying,.water-stream,.arrow-flying{display:none}}

.depth-board .mahjong-tile.covered .mahjong-glyph,.depth-board .mahjong-tile.covered .mahjong-name{visibility:hidden}

/* 2.0: tightly packed portrait tiles, using one uniform scale for all axes. */
.club-room .mahjong-board.depth-board{height:auto;aspect-ratio:var(--board-aspect);width:min(100%,calc((100svh - 345px)*var(--board-aspect)));min-width:min(250px,100%);max-width:450px;border-radius:12px}
.depth-board .mahjong-tile{border-radius:4px;box-shadow:1px 1px 0 #e0d8b7,1px 2px 0 #aaa780,2px 3px 0 #679077,2px 4px 0 #315c49,3px 5px 3px #16382d75,inset 1px 1px 1px #fff}
.depth-board .mahjong-tile.raised{box-shadow:1px 1px 0 #e7dfbd,1px 2px 0 #b6b28d,2px 3px 0 #719680,2px 4px 0 #3c6954,3px 6px 3px #12372d99}
.depth-board .mahjong-glyph{font-size:clamp(22px,4.8vw,30px);line-height:1.2}.depth-board .mahjong-name{font-size:clamp(8px,1.8vw,10px);line-height:1.5}
.arrow-board .arrow-flying{background:#fffef5;border-radius:8px;opacity:1;box-shadow:0 2px 2px #233e3218;min-height:0;padding:0;line-height:normal}
.arrow-board .arrow-flying:disabled{opacity:1}.arrow-flying>span{pointer-events:none}
.deal-strip{position:relative;display:flex;align-items:center;justify-content:space-between;padding:4px max(24px,calc((100vw - 1050px)/2));gap:10px;flex-shrink:0;font-size:11px;color:#b9cdbd;border-bottom:1px solid #e7cf9f15}
.deal-strip .deal-chip{min-height:32px;padding:5px 11px;color:#f3e5bc;background:#2c5140;border:1px solid #dfc88f55;border-radius:6px;font-size:12px}
.deal-dialog{width:min(100%,450px)}.deal-dialog .deal-choices{display:grid;gap:9px}.deal-choice{text-align:left;padding:12px 14px;border-radius:10px;min-height:66px;background:#fffaf0}.deal-choice strong{display:flex;justify-content:space-between;gap:12px;font-size:17px}.deal-choice strong span{font-weight:500;color:#5c704f}.deal-choice small{display:block;font-size:12px;color:#657358;margin-top:7px}.deal-choice.current-deal{border-color:#668260;box-shadow:inset 0 0 0 1px #668260}.deal-dialog .deal-rating-note{font-size:12px;line-height:1.5;margin:13px 0;color:#6b725f}.deal-dialog .menu-primary{width:100%}
@media(max-width:700px){.club-room .mahjong-board.depth-board{width:min(100%,calc((100svh - 320px)*var(--board-aspect)));min-width:min(245px,100%)}.deal-strip{padding:4px 15px;gap:6px}.deal-strip>span{font-size:9px}.deal-strip .deal-chip{font-size:11px;padding:5px 8px}.deal-dialog .deal-choice{min-height:61px;padding:10px 12px}}

/* Completion occupies the visible table area; the finished empty tableau no
   longer pushes the next-deal controls below the scroll fold. Undo restores it. */
.solitaire-room .board-wrap.is-won{display:flex;align-items:center;justify-content:center;padding:14px;overflow:hidden}
.solitaire-room .board-wrap.is-won .solitaire-scroll{display:none}
.solitaire-room .board-wrap.is-won .table-result{flex:0 1 490px;margin:0!important;max-height:100%;overflow-y:auto;overscroll-behavior:contain}
.deal-dialog .deal-choices{grid-template-columns:minmax(0,1fr);justify-content:stretch;width:100%}
@media(max-width:700px){.solitaire-room .board-wrap.is-won{padding:10px}.solitaire-room .board-wrap.is-won .table-result{padding:18px 16px}.table-result .win-suits{margin-bottom:10px}.table-result .result-stats{margin-bottom:15px}.table-result .table-kicker{margin-bottom:9px}}

/* Starter levels: one compact identity control, a clear next action at a win. */
.game-toolbar .level-chip,.deal-strip .level-chip{min-height:32px;padding:5px 10px;border:1px solid #b7bb91;border-radius:7px;background:#e9edd8;color:#3c593f;font-size:12px;white-space:nowrap}
.deal-strip .level-chip{color:#f3e5bc;background:#2c5140;border-color:#dfc88f55}
.level-extras{display:flex!important;justify-content:center!important;gap:8px;margin:10px 0 13px}.level-extras button{font-size:12px;flex:1;padding:8px;min-height:42px}
.deal-choice:disabled{opacity:.62;background:#ebe9df}.deal-choice:disabled strong span{font-size:12px}.deal-dialog .deal-choices{grid-template-columns:minmax(0,1fr)}
.club-room .result-board{min-height:330px;box-shadow:none;display:flex;justify-content:center;align-items:center}
.puzzle-result{width:100%;max-width:430px;margin:auto;padding:22px 14px;text-align:center}.puzzle-result h2{font:400 32px/1.15 Georgia,serif;color:#2b4b37;margin:0 0 13px}.puzzle-result>p{font-size:14px;line-height:1.6;color:#69775c;margin:0 0 20px}.puzzle-result .win-suits{font-size:38px;color:#6d8856;margin-bottom:18px}.puzzle-result .result-stats{color:#69775c;font-size:12px;margin-bottom:26px}.puzzle-result .result-stats b{color:#38543c;font-size:25px}.puzzle-result .menu-primary{width:100%;font-size:18px;min-height:51px}.puzzle-result .result-replay{color:#69805b}.result-announcement{min-height:0!important;margin:0!important}
@media(max-width:700px){.game-toolbar .level-chip{font-size:11px;min-height:32px;padding:5px 8px}.club-room .run-stats{gap:11px}.club-room .result-board{min-height:300px}.puzzle-result{padding:18px 8px}.puzzle-result h2{font-size:29px}.puzzle-result .result-stats{gap:22px}.level-extras button{font-size:11px}.deal-strip .level-chip{font-size:11px}.deal-dialog .deal-choice{min-height:66px}}

.solitaire-room .auto-card-ghost:disabled{opacity:1;pointer-events:none;will-change:transform}.solitaire-room .auto-card-ghost{transition:none}
.result-stats{flex-wrap:wrap}.table-result .result-stats{gap:14px 20px}

/* 1.11.3: visual card copies cannot redirect input away from the stock. */
.solitaire-room .solitaire-board{position:relative}
.solitaire-room .table-card-ghost{pointer-events:none!important;z-index:30;transition:none;will-change:transform}
/* On laptop-height desktop views, trim chrome rather than shrink boards/buttons. */
@media(min-width:701px) and (max-height:850px){
  .club-room .room-header{padding-top:8px;padding-bottom:8px}
  .club-room .play-layout{padding-top:0;padding-bottom:12px}
  .club-room .play-surface{padding-top:8px;padding-bottom:14px}
  .club-room .game-toolbar{margin-bottom:0;padding-bottom:0}
  .club-room .game-feedback{min-height:22px;margin-top:8px;margin-bottom:6px}
  .club-room .game-controls{padding-top:8px}
  .club-room .sudoku-status{margin-bottom:5px}
  .club-room .sudoku-tools{margin-top:8px}
  .club-room .sudoku .number-pad{margin-top:6px}
  .club-room .words .word-list{margin-top:9px;gap:6px 12px}
}

/* 1.12.1: puzzle pieces live on the clubhouse felt, not inside a page card.
   Paper remains only where it is the playing object (tiles, cells, dialogs). */
.club-room{--room-ink:#fff4d9;--room-muted:#d3dfc6;--room-accent:#f4d58e;--room-button:#234a39;--room-edge:#9db38b66}
.club-room .play-layout{max-width:780px}
.club-room .play-surface{background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--room-ink)}
.club-room .game-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;max-width:620px;width:100%;margin-left:auto;margin-right:auto}
.club-room .room-help{grid-column:3;justify-self:end}
.club-room .run-stats{color:var(--room-muted);white-space:nowrap}
.club-room .run-stats b{color:var(--room-ink)}
.club-room .game-toolbar .level-chip,.club-room .room-help{background:#173e31;border-color:#b6c49388;color:var(--room-ink);box-shadow:inset 0 1px 0 #ecf1c01a,0 2px 0 #0c2b2255}
.club-room .game-toolbar .level-chip{min-height:38px;padding:7px 12px;font-size:13px;border-radius:10px}
.club-room .game-feedback,.club-room .board-instruction,.club-room .game-extra,.club-room .placement-summary,.club-room .mahjong-key,.club-room .used-piece{color:var(--room-muted)}
.club-room .piece-no-space{color:#f2d5ac}
.club-room .puzzle-goal,.club-room .sudoku-status{color:var(--room-ink)}
.club-room .puzzle-goal strong{font-size:16px}
.club-room .puzzle-goal>span,.club-room .sudoku-status>span{color:var(--room-muted);font-size:13px}
.club-room .game-controls{max-width:540px;width:100%;margin:0 auto;border:0}
.club-room .game-controls button,.club-room .sudoku-tools button{background:linear-gradient(#315741,#204735);color:var(--room-ink);border:1px solid var(--room-edge);box-shadow:inset 0 1px 0 #ecf1c014,0 3px 0 #0c2b22}
.club-room .game-controls button:disabled{opacity:.45;box-shadow:none}
.club-room .sudoku-tools .pencil-toggle.active{background:#f4dfa8;color:#294431;border-color:#f2d189;box-shadow:inset 0 0 0 2px #b59451}
.club-room button:focus-visible{outline:3px solid var(--room-accent);outline-offset:3px}
.club-room .grid-board button:focus-visible{outline:3px solid #9b621c;outline-offset:-3px}
.club-room .block-piece.selected{outline-color:var(--room-accent)!important;background:#143e3080;border-radius:10px}
.club-room .placement-controls .primary{background:linear-gradient(#f2deab,#d8bc81);color:#294431;border-color:#ead6a7;box-shadow:0 3px 0 #aa8b56;border-radius:10px}

/* Board-sized material boundaries, with the surrounding felt left open. */
.club-room .sliding-board{background:linear-gradient(145deg,#775f3e,#514127);border:1px solid #c2a36d;box-shadow:inset 0 2px 9px #2b231d66,0 4px 8px #08251c40}
.club-room .slide-tile.empty{background:#382f2180;color:#e2ca95;border-color:#c5aa72;box-shadow:inset 0 2px 5px #241b184d}
.club-room .arrow-board{background:#153c30;border:1px solid #99b18a77;box-shadow:inset 0 2px 10px #09291f4d,0 3px 8px #0a2d2233}
.club-room .arrow-tile{color:#273e36;box-shadow:0 2px 0 #0c291f55}
.club-room .arrow-tile.empty{box-shadow:none}
.club-room .arrow-tile.exit-path{box-shadow:inset 0 0 0 2px #c9a584}
.club-room .arrow-tile.clear-path{box-shadow:inset 0 0 0 2px #a2bc86}
.club-room .arrow-tile.exit-blocker{box-shadow:inset 0 0 0 3px #9f5746}
.club-room .mahjong-board.depth-board{background:radial-gradient(ellipse at 45% 25%,#375e46,#214735);border-color:#aac09255;box-shadow:inset 0 2px 10px #102f294d,0 2px 0 #0b2f254d}
.club-room .mahjong-tile:focus-visible{outline:3px solid #986019;outline-offset:-3px}
.club-room .sudoku-board{border-color:#b3c394;box-shadow:0 3px 12px #0a281e66}
.club-room .word-board{padding:5px;background:#123c2f;border:1px solid #a6ba8d88;border-radius:8px;box-shadow:0 3px 12px #0a281e55}
.club-room .word-board .letter:not(.found):not(.word-trace):not(.word-trace-invalid){color:#273e36}
.club-room .words .word-list>span{background:#173e31;color:var(--room-ink);border:1px solid #91a67e55}
.club-room .words .word-list .found-word{background:#c3d4ac;color:#294c31;border-color:#c3d4ac}
.club-room .sudoku .number-pad button{color:#28462f;opacity:1}
.club-room .sudoku .number-pad button:disabled{background:#bacab2;color:#42573f;border-color:#9eb28f;opacity:.65}

/* Glass remains translucent on felt; selection is outlined without a white slab. */
.club-room .tube-glass{background:#d5e8dc1c;border-color:#c1d8cf;box-shadow:inset 3px 0 0 #f5fffa17,0 3px 8px #092e2555}
.club-room .tube-label{color:var(--room-muted);font-size:13px}
.club-room .tube-label small{font-size:11px}
.club-room .tube.selected{background:#123c31b3;outline-color:var(--room-accent);box-shadow:0 0 0 1px #183c31}
.club-room .tube.selected .tube-label{color:var(--room-ink)}
.club-room .tube.hint-destination{outline-color:var(--room-accent);background:#173e31}
.club-room .sorted-tube .tube-glass{border-color:#bad992;box-shadow:0 0 0 1px #152f244d,inset 0 0 0 1px #cce4a944}

/* Block sockets contrast with solid pieces, including transient drag previews. */
.club-room .block-board{background:#153b2e;border:1px solid #9eb58866;box-shadow:inset 0 2px 9px #09291f66,0 3px 8px #0b2c2333}
.club-room .block-cell{background:#315b47;box-shadow:inset 0 1px 3px #102f2480,inset 0 0 0 1px #79966b55;color:#fff4d9}
.club-room .block-cell.filled,.club-room .piece-grid i{background:#bbcc94;box-shadow:inset 0 1px 0 #dfebbf,inset 0 -3px 0 #81945f}
.club-room .block-cell.ghost-valid,.club-room .block-cell.drag-cell-valid{background:#dae3b6;box-shadow:inset 0 0 0 3px #8eaf68;color:#29452f}
.club-room .block-cell.ghost-invalid,.club-room .block-cell.drag-cell-invalid{background:#e8b6a2;box-shadow:inset 0 0 0 3px #a55e46;color:#6f3427}
.club-room .block-cell.clear-preview,.club-room .block-cell.drag-clear-preview{background:#e4d6a9;box-shadow:inset 0 0 0 3px #bb9140;color:#4b432b}
.puzzle-dragging .club-room .block-cell:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview){background:#315b47;box-shadow:inset 0 1px 3px #102f2480,inset 0 0 0 1px #79966b55;color:transparent}
.puzzle-dragging .club-room .block-cell.filled:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview){background:#bbcc94;box-shadow:inset 0 1px 0 #dfebbf,inset 0 -3px 0 #81945f}
.club-room .block-board .block-cell:focus-visible{outline-color:var(--room-accent)}

/* Quiet end states belong to the same scene. Dialogs keep their paper treatment. */
.club-room .pause-screen>span,.club-room .puzzle-result .win-suits{color:var(--room-accent)}
.club-room .pause-screen h2,.club-room .puzzle-result h2,.club-room .puzzle-result .result-stats b{color:var(--room-ink)}
.club-room .pause-screen p,.club-room .puzzle-result>p,.club-room .puzzle-result .result-stats,.club-room .puzzle-result .result-replay,.club-room .block-result>p{color:var(--room-muted)}
.club-room .block-result{border-color:#abc19144}
.club-room .round-end,.club-room .end-note{color:#f2d5ac}
@media(max-width:700px){
  .club-room .play-surface{padding-left:4px;padding-right:4px}
  .club-room .game-toolbar{gap:9px;max-width:430px;margin-bottom:12px}
  .club-room .run-stats{font-size:14px;gap:10px}
  .club-room .game-toolbar .level-chip{font-size:12px;min-height:36px;padding:6px 9px}
  .club-room .puzzle-goal strong{font-size:15px}
  .club-room .puzzle-goal>span,.club-room .sudoku-status>span{font-size:12px}
  .club-room .water .tubes{margin-top:12px;margin-bottom:8px}
  .club-room .words .word-list>span{font-size:12px}
}
@media(max-width:360px){
  .club-room .run-stats{font-size:12px;gap:8px}
  .club-room .game-toolbar{gap:7px}
}

/* Drag ghosts live directly under body, outside the room color scope. */
.puzzle-drag-ghost.drag-piece-outline .drag-outline-square{border-color:#f4d58e;background:#f4d58e22;box-shadow:0 1px 2px #09291f80}

.club-room .word-board .letter.word-trace-invalid{color:#673e26}

/* 1.12.2: unavailable Mahjong pieces are grey, from the same rule state used
   for selection. An exposed edge returns to ivory as soon as it is free. */
.club-room .depth-board .mahjong-tile:is(.covered,.side-blocked){background:linear-gradient(125deg,#cbd0c5,#aeb8aa);color:#354a3e;border-color:#adb6a6;filter:grayscale(1);box-shadow:1px 1px 0 #c2c8ba,1px 2px 0 #889781,2px 3px 0 #71866e,2px 4px 0 #405d49,3px 5px 3px #16382d75,inset 1px 1px 1px #e1e6d5}
.club-room .tube.selected{outline-color:var(--room-accent)!important}
.club-room .depth-board .mahjong-tile:is(.covered,.side-blocked):focus-visible{outline-color:#354a3e}
/* Retain full-size pieces/buttons while keeping the narrow HUD in view. */
@media(max-width:700px){
  .club-room .play-layout{padding-bottom:calc(13px + env(safe-area-inset-bottom))}
  .club-room .play-surface{padding-bottom:15px}
  .club-room .game-toolbar{margin-bottom:8px}
  .club-room .water .tubes{margin:3px auto}
}
/* Draw the pause mark in CSS so a missing Roman-numeral glyph cannot become tofu. */
.club-room .pause-screen>span{display:inline-block;width:24px;height:32px;font-size:0;background:linear-gradient(to right,var(--room-accent) 0 35%,transparent 35% 65%,var(--room-accent) 65% 100%);border-radius:2px}

/* WATER RASTER ART v1: generated glass/walnut, code-owned liquid and symbols.
   The four ordered drops and cloned glass box retain their controller contract.
   A single border-image master keeps rim/foot proportions; only walls stretch.
   Shelves are absolute decorations: no layout, hit-area or wrapping changes. */
.club-room .water .water-raster-board{--water-glass-height:180px;--water-ledge-bottom:33px;--water-ledge-first-top:180px;isolation:isolate}
.water-raster-board>.water-ledge{position:absolute;left:50%;height:22px;transform:translateX(-50%);z-index:0;pointer-events:none;border-style:solid;border-color:transparent;border-width:0 16px;border-image:url('./art/water/v1/walnut-ledge-960.webp') 0 98 fill stretch;width:min(100%,calc(var(--water-tube-count)*99px - 5px))}
.water-raster-board>.water-ledge-first{display:none;top:var(--water-ledge-first-top)}
.water-raster-board>.water-ledge-last{bottom:var(--water-ledge-bottom)}
.water-raster-board>.tube{position:relative;z-index:1}
.club-room .water .tube-glass.water-raster-glass{position:relative;display:block;border:0;padding:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible;isolation:isolate;container-type:inline-size}
/* A quiet structural outline remains if either material request is slow/blocked. */
.water-raster-glass:before{content:"";position:absolute;inset:4% 7.5% 3%;border:1px solid #b5c8be88;border-radius:9% 9% 46% 46% / 3% 3% 16% 16%;pointer-events:none}
.water-raster-glass>.water-cavity{position:absolute;left:11.538462%;right:11.538462%;top:34.615385cqw;bottom:17.307692cqw;display:flex;flex-direction:column;overflow:hidden;border-radius:0 0 50% 50% / 0 0 38.461538cqw 38.461538cqw;pointer-events:none}
.water-raster-glass .drop{position:relative;flex:0 0 25%;height:25%;min-height:0;border:0;border-radius:0;background:var(--liquid);color:#fff;font-size:17px;line-height:1;text-shadow:0 1px 1px #17382e99;pointer-events:none}
.water-raster-glass .water-symbol{position:relative;z-index:3;pointer-events:none}
.water-raster-glass .drop.water-surface:before{content:"";position:absolute;top:0;left:1px;right:1px;height:3px;border-bottom:1px solid #fff9e56b;border-radius:0 0 50% 50%;pointer-events:none}
.water-raster-glass>.water-glass-material{position:absolute;inset:0;z-index:2;pointer-events:none;border-style:solid;border-color:transparent;border-width:26.923077cqw 0 67.948718cqw;border-image:url('./art/water/v1/glass-master-156.webp') 42 0 106 fill stretch}
/* Suppress only the meniscus during flight; symbols stay on animated drops. */
.water-raster-board[data-motion="busy"] .drop.water-surface:before{display:none}
.club-room .water .water-raster-glass.water-flying{box-shadow:0 12px 15px #092e2538}
@media(min-width:821px) and (max-width:1050px){
 .water-raster-board:has(>.tube[data-value="5"])>.water-ledge-first{display:block;width:min(100%,490px)}
 .water-raster-board:has(>.tube[data-value="5"])>.water-ledge-last{width:min(100%,max(88px,calc((var(--water-tube-count) - 5)*99px - 5px)))}
}
@media(min-width:701px) and (max-width:820px){
 .club-room .water .water-raster-board{--water-glass-height:156px;--water-ledge-first-top:156px}
 .water-raster-board>.water-ledge-last{width:min(100%,calc(var(--water-tube-count)*79px + 2px))}
}
@media(max-width:700px){
 .club-room .water .water-raster-board{--water-glass-height:clamp(104px,calc((100svh - 424px)/2),140px);--water-ledge-bottom:25px;--water-ledge-first-top:calc(var(--water-glass-height) - 2px)}
 .water-raster-board>.water-ledge-first{display:block;width:min(100%,295px)}
 .water-raster-board>.water-ledge-last{width:min(100%,max(88px,calc((var(--water-tube-count) - 4)*73px + 3px)))}
}
/* Below the supported four-column width, keep glass and controls, omit rails. */
@media(max-width:319px){.water-raster-board>.water-ledge{display:none}}
/* END WATER RASTER ART v1 */

/* MAHJONG RASTER ART v1: decorative materials inside the unchanged tile boxes.
   Labels and fallback glyphs remain live DOM. Missing/slow art cannot conceal
   interactive pieces. Closed faces are grayscale; state and focus borders retain their colour. */
.club-room .mahjong-board.raster-board{background:#204f3d url('./art/mahjong/v1/tabletop-768.webp') center/cover;border-color:#597665;box-shadow:inset 0 2px 8px #092b2380,0 2px 0 #768673}
.club-room .depth-board .mahjong-tile.raster-tile{padding:0;border:0;border-radius:4px;background:transparent;color:#233b31;box-shadow:none;filter:none;outline:none!important;isolation:isolate;container-type:inline-size}
.raster-tile>.mahjong-ceramic,.raster-tile>.mahjong-raster,.raster-tile>.mahjong-state{position:absolute;pointer-events:none}
.raster-tile>.mahjong-ceramic{inset:3% 4% 9%;z-index:0;border:1px solid #d3c8a5;border-radius:3px;background:linear-gradient(125deg,#fffbed,#eadfbc);box-shadow:1px 2px 0 #315e49}
.depth-board .raster-tile>.mahjong-glyph{position:absolute;left:0;right:0;top:12%;z-index:1;font-size:18px;font-size:clamp(18px,64cqw,28px);line-height:1;text-align:center;pointer-events:none}
.raster-tile>.mahjong-raster{inset:0;z-index:2;background-size:100% 100%;background-repeat:no-repeat;background-position:center}
.depth-board .raster-tile.legacy-tile>.mahjong-glyph,.depth-board .raster-tile>.mahjong-glyph.unknown-face{z-index:3}
.depth-board .raster-tile>.mahjong-name{position:absolute;left:0;right:0;bottom:8%;z-index:3;font:700 8px/1 Arial,sans-serif;font-size:clamp(8px,18.5cqw,10px);letter-spacing:-.35px;text-align:center;white-space:nowrap;color:#233b31;text-shadow:none;pointer-events:none}
.raster-tile>.mahjong-state{inset:3% 4% 9%;z-index:5;border:2px solid transparent;border-radius:3px}
.club-room .depth-board .raster-tile:is(.side-blocked,.covered)>:is(.mahjong-raster,.mahjong-ceramic,.mahjong-glyph,.mahjong-name){filter:grayscale(1)}
.club-room .depth-board .raster-tile.side-blocked:before,.club-room .depth-board .raster-tile.side-blocked:after{content:"";position:absolute;top:33%;bottom:39%;width:2px;z-index:4;border-radius:1px;background:#536359;pointer-events:none}
.club-room .depth-board .raster-tile.side-blocked:before{left:1px}.club-room .depth-board .raster-tile.side-blocked:after{right:1px}
.club-room .depth-board .raster-tile.covered>.mahjong-glyph,.club-room .depth-board .raster-tile.covered>.mahjong-name{visibility:hidden}
.club-room .depth-board .raster-tile.selected>.mahjong-state{border-color:#d79517;box-shadow:inset 0 0 0 1px #fff3c1}
.club-room .depth-board .raster-tile.hinted>.mahjong-state{border-color:#175b49;border-style:dashed;box-shadow:inset 0 0 0 1px #fff3c1}
.club-room .depth-board .mahjong-tile.raster-tile:focus-visible{outline:2px solid #fff3b8!important;outline-offset:2px}
.club-room .depth-board .raster-tile:focus-visible>.mahjong-state{box-shadow:inset 0 0 0 2px #183e33}
/* END MAHJONG RASTER ART v1 */

/* Sudoku teaching stays beside its board, without overlays or smaller cells. */
.sudoku-workbench,.sudoku-play-grid{width:100%;min-width:0}
.sudoku-workbench{scroll-margin-top:8px}
.sudoku-board .sudoku-cell.hint-region{background:#e7edda}
.sudoku-board .sudoku-cell.hint-source{box-shadow:inset 0 0 0 3px #47724a;background:#f9e9b9}
.sudoku-board .sudoku-cell.hint-target{outline:2px dashed #8a4b20!important;outline-offset:-4px;background:#fff0dd}
.sudoku-board .sudoku-cell.hint-region.selected{background:#d0e3bc}
.sudoku-board .sudoku-cell.hint-source.selected{background:#f9e9b9}
.sudoku-board .sudoku-cell.conflict{background:#fae4db;color:#a03429;box-shadow:inset 0 0 0 2px #b9534c}
.sudoku-hint-panel{width:100%;max-width:390px;min-width:0;box-sizing:border-box;margin:8px auto 0;padding:12px 13px;background:#faf6e9;border:1px solid #b4c2a5;border-radius:9px;color:#294d39;font-size:13px;line-height:1.45;overflow-wrap:anywhere;text-align:left}
.sudoku-hint-heading strong{font-size:14px;line-height:1.35}
.sudoku-hint-heading small{display:block;font-size:11px;font-weight:400;color:#52654c}
.sudoku-hint-panel p{margin:7px 0}
.sudoku-hint-evidence{padding:7px 8px;background:#eef0dd;border-radius:5px;font-variant-numeric:tabular-nums}
.sudoku-hint-panel .sudoku-hint-note,.sudoku-hint-panel .sudoku-hint-key{font-size:11px;color:#52654c}
.sudoku-hint-actions{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.sudoku-hint-actions button,.sudoku-hint-return{min-height:44px;padding:8px 10px;font-size:12px;white-space:normal}
.sudoku-hint-actions .primary{flex:1}
.sudoku-hint-close{flex-shrink:0;background:#fffdf4;color:#355440}
.sudoku-hint-details>summary,.sudoku-hint-history>summary{cursor:pointer;padding:5px 0;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.sudoku-hint-proof{border-top:1px solid #d1d7bd;margin-top:5px;padding-top:3px}
.sudoku-hint-history ol{margin:5px 0;padding-left:20px;font-size:12px}
.sudoku-hint-history li+li{margin-top:8px}
.sudoku-hint-panel button:focus-visible,.sudoku-hint-panel summary:focus-visible{outline:3px solid #86611e;outline-offset:2px}
@media(min-width:900px){
  .club-room .play-layout:has(.sudoku-workbench.is-teaching){max-width:1040px}
  .sudoku-workbench.is-teaching{display:grid;grid-template-columns:minmax(0,390px) minmax(260px,340px);align-items:start;justify-content:center;gap:24px}
  .sudoku-workbench.is-teaching .sudoku-hint-panel{margin:0;max-width:none}
}
@media(max-width:899px){
  .sudoku-workbench.is-teaching :is(.sudoku-status,.sudoku-tools,.number-pad,.saved-layout-note){display:none}
  .sudoku-workbench.is-teaching .sudoku-hint-panel{padding:8px 10px;font-size:13px;line-height:1.35}
  .sudoku-workbench.is-teaching .sudoku-hint-heading strong{font-size:12px}
  .sudoku-workbench.is-teaching .sudoku-hint-heading small{display:inline;font-size:10px;margin-left:6px}
  .sudoku-workbench.is-teaching .sudoku-hint-copy{margin:5px 0}
  .sudoku-workbench.is-teaching .sudoku-hint-actions{margin-top:5px;gap:5px}
  .sudoku-workbench.is-teaching .sudoku-hint-actions button{min-height:36px;padding:7px 8px;font-size:11px}
  .sudoku-workbench.is-teaching .sudoku-hint-details>summary{padding:3px 0;font-size:11px}
}


/* BEGIN Block planning desktop layout r2: challenge-only explicit grid tracks. */
@media(min-width:1051px){
  .club-room .blocks .board-wrap:has(>.block-current-label){align-items:start}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.block-board{grid-row:2/7;align-self:start}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.block-current-label{grid-column:2;grid-row:2;display:grid;gap:3px;width:100%;margin:0}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.piece-tray{grid-row:3}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.block-next{grid-column:2;grid-row:4;flex-direction:column;align-items:stretch;gap:6px;width:100%;min-width:0;margin:0;padding:8px 10px}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.block-next>.block-next-shapes{min-width:0;width:100%;gap:6px}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.block-next>.block-next-shapes>.block-next-piece{flex:0 0 34px}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.block-next>strong{max-width:none;text-align:left}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.placement-controls{grid-row:5}
  .club-room .blocks .board-wrap:has(>.block-current-label)>.game-extra{grid-row:6}
}
/* END Block planning desktop layout r2. */

/* Block Garden planning mode: preserve the raster board and current-piece scale. */
.blocks .block-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 auto 12px;width:min(100%,520px);color:#f9f3df}
.blocks .block-mode-bar>div{display:grid;gap:4px;min-width:0}
.blocks .block-mode-bar strong{font:600 20px Georgia,serif}
.blocks .block-mode-bar span{font-size:12px;line-height:1.4}
.blocks .block-mode-bar button{flex:0 0 auto;max-width:48%;font-size:12px;line-height:1.3;background:#fff8e8;color:#273e36;border-color:#e1d2a9;padding:9px 12px}
.blocks .block-current-label{display:flex;justify-content:space-between;gap:8px;width:min(100%,390px);margin:12px auto 0;font-size:12px;color:#f9f3df}
.blocks .block-current-label span{white-space:nowrap}
.blocks .block-next{display:flex;align-items:center;justify-content:space-between;gap:10px;width:min(100%,390px);min-height:52px;margin:0 auto 10px;padding:8px 12px;border:1px solid #ded4ac;border-radius:10px;background:#eee8d4;color:#273e36;font-size:12px;line-height:1.35}
.blocks .block-next small{display:block;font-size:10px;margin-top:3px;color:#4d5b4a}
.blocks .block-next>strong{max-width:45%;font-size:11px;text-align:right}
.blocks .block-next-shapes{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:120px;pointer-events:none}
.blocks .block-next-piece{display:flex;align-items:center;justify-content:center;width:34px;min-height:30px;pointer-events:none}
.blocks .block-next .piece-grid{grid-template-columns:repeat(var(--pw),7px);grid-template-rows:repeat(var(--ph),7px);gap:1px}
.blocks .block-next .piece-grid i{border-radius:2px;box-shadow:inset 0 -1px 0 #5c7c6c}
@media(max-width:360px){.blocks .block-mode-bar{gap:8px}.blocks .block-mode-bar strong{font-size:18px}.blocks .block-mode-bar span{font-size:11px}.blocks .block-mode-bar button{padding:8px}.blocks .block-next{padding:7px 9px;gap:6px}.blocks .block-next-shapes{gap:7px;min-width:112px}}

/* BEGIN Block Garden raster materials v1 — presentation only. */
.club-room .blocks{
  --block-wood:url('art/blocks/v1/beech-surface.webp');
  --block-sage:url('art/blocks/v1/sage-block.webp');
  --block-well:#c6b695;
  --block-edge:#a08d6f;
  --block-preview:#dbe2cd;
  --block-preview-ink:#3f5d44;
}
.club-room .blocks .block-board{
  background-color:#e1cba8;
  background-image:var(--block-wood);
  background-size:350px 350px;
  border-color:#af9975;
  box-shadow:inset 0 1px 1px #fff3d8,0 3px 0 #8d7754,0 5px 9px #0c2c2540;
}
.club-room .blocks .block-cell{position:relative;isolation:isolate;color:#284d38}
.club-room .blocks .block-cell,
.club-room .blocks .block-cell.ghost-invalid,
.puzzle-dragging .club-room .blocks .block-cell.drag-cell-invalid,
.puzzle-dragging .club-room .blocks .block-cell.drag-clear-preview:not(.drag-cell-valid),
.puzzle-dragging .club-room .blocks .block-cell:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview){
  background-color:var(--block-well);
  background-image:linear-gradient(#ac997333,#d5c49f22),var(--block-wood);
  background-size:auto,350px 350px;
  background-blend-mode:multiply;
}
.club-room .blocks .block-cell,
.puzzle-dragging .club-room .blocks .block-cell:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview){box-shadow:inset 0 1px 2px #75654877,inset 0 0 0 1px #a08d6f88,0 1px 0 #fff1d077}
.club-room .blocks .block-cell.filled,
.club-room .blocks .block-cell.filled.ghost-invalid,
.puzzle-dragging .club-room .blocks .block-cell.filled.drag-cell-invalid,
.puzzle-dragging .club-room .blocks .block-cell.filled.drag-clear-preview:not(.drag-cell-valid),
.puzzle-dragging .club-room .blocks .block-cell.filled:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview),
.club-room .blocks .piece-grid i{
  background-color:#789888;
  background-image:var(--block-sage);
  background-size:100% 100%;
  background-blend-mode:normal;
}
.club-room .blocks .block-cell.filled,
.puzzle-dragging .club-room .blocks .block-cell.filled:not(.drag-cell-valid):not(.drag-cell-invalid):not(.drag-clear-preview),
.club-room .blocks .piece-grid i{box-shadow:none}
.club-room .blocks .block-cell::before,
.club-room .blocks .block-cell::after{pointer-events:none}
.club-room .blocks .block-piece{
  background-color:#d2bf9f;
  background-image:linear-gradient(#a18a631f,#fff5dc11),var(--block-wood);
  background-size:auto,240px 240px;
  border-radius:9px;
  box-shadow:inset 0 1px 3px #705d3a66,inset 0 0 0 1px #dbc8a8,0 1px 0 #fff0c33d;
  color:#3b5b43;
}
.club-room .blocks .block-piece.selected{
  background-color:#d2bf9f;
  outline-color:#f4d58e!important;
  box-shadow:inset 0 0 0 4px #fff0c566,0 0 0 1px #806d47;
}
.club-room .blocks .used-piece{color:#ead7ac}
.club-room .blocks .piece-no-space{color:#66452c;font-weight:600}
.club-room .blocks .block-cell.ghost-valid,
.puzzle-dragging .club-room .blocks .block-cell.drag-cell-valid{
  background:var(--block-preview);
  box-shadow:inset 0 0 0 1px #96aa83;
  color:var(--block-preview-ink);
}
.club-room .blocks .block-cell.ghost-valid::before,
.puzzle-dragging .club-room .blocks .block-cell.drag-cell-valid::before{
  content:'';position:absolute;inset:1px;border-radius:2px;
  background:
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) left top/7px 2px,
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) left top/2px 7px,
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) right top/7px 2px,
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) right top/2px 7px,
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) left bottom/7px 2px,
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) left bottom/2px 7px,
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) right bottom/7px 2px,
    linear-gradient(var(--block-preview-ink),var(--block-preview-ink)) right bottom/2px 7px;
  background-repeat:no-repeat;
}
.club-room .blocks .block-cell.clear-preview,
.puzzle-dragging .club-room .blocks .block-cell.drag-clear-preview{
  box-shadow:inset 0 0 0 2px #986923,inset 0 0 0 3px #f8e5ad;
}
.club-room .blocks .block-cell.clear-preview::after,
.puzzle-dragging .club-room .blocks .block-cell.drag-clear-preview::after{
  content:'';position:absolute;inset:1px;border:2px solid #986923;
  border-radius:3px;box-shadow:inset 0 0 0 1px #f8e5ad;
}
.club-room .blocks .block-cell.ghost-invalid,
.puzzle-dragging .club-room .blocks .block-cell.drag-cell-invalid{
  box-shadow:inset 0 0 0 2px #763f31;
}
.club-room .blocks .block-cell.ghost-invalid::after,
.puzzle-dragging .club-room .blocks .block-cell.drag-cell-invalid::after{
  content:'×';position:absolute;inset:0;display:grid;place-items:center;
  border:0;box-shadow:none;
  color:#fff9e9;text-shadow:0 1px 2px #593b22,0 0 2px #593b22;
  font:700 clamp(18px,4vw,28px)/1 Arial,sans-serif;
}
.puzzle-dragging .club-room .blocks .block-board .block-cell{color:transparent}
/* During pointer drag, ignore the old tap-preview marks as well as its fill. */
.puzzle-dragging .club-room .blocks .block-cell:not(.drag-cell-valid)::before,
.puzzle-dragging .club-room .blocks .block-cell:not(.drag-cell-invalid):not(.drag-clear-preview)::after{content:none}
.club-room .blocks .block-board .block-cell:focus-visible{
  outline:2px solid #254735;outline-offset:1px;z-index:1;
}
.club-room .blocks .block-piece:focus-visible{outline:3px solid #254735!important;outline-offset:-3px;box-shadow:inset 0 0 0 5px #fff0c5}
@media(forced-colors:active){
  .club-room .blocks .block-board,.club-room .blocks .block-piece{background:Canvas;box-shadow:inset 0 0 0 1px CanvasText}
  .club-room .blocks .block-cell{background:Canvas;box-shadow:inset 0 0 0 1px CanvasText}
  .club-room .blocks .block-cell.filled,.club-room .blocks .piece-grid i{background:Highlight}
  .club-room .blocks .block-cell.ghost-valid,.club-room .blocks .block-cell.drag-cell-valid{outline:2px dashed Highlight;outline-offset:-3px}
  .club-room .blocks .block-cell.ghost-invalid::after,.club-room .blocks .block-cell.drag-cell-invalid::after{color:CanvasText;text-shadow:none}
  .club-room .blocks .block-cell.clear-preview::after,.club-room .blocks .block-cell.drag-clear-preview::after{border-color:CanvasText;border-style:double;border-width:3px}
}
/* END Block Garden raster materials v1. */
