.mahjong-toolbar{gap:10px;width:100%;max-width:920px;margin-inline:auto;display:grid}.mahjong-deal-form,.mahjong-actions,.mahjong-progress,.mahjong-board-tools,.mahjong-confirm-actions{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.mahjong-deal-form label,.mahjong-board-tools label{gap:3px;font-size:.78rem;font-weight:700;display:grid}.mahjong-deal-form input,.mahjong-deal-form select,.mahjong-board-tools select{color:#142c24;min-height:44px;font:inherit;background:#fffdf6;border:1px solid #7c8c83;border-radius:6px;padding:7px 10px;font-size:.9rem}.mahjong-deal-form input{width:105px}.mahjong-deal-form input:disabled{color:#465950;opacity:1;background:#e7ece7}.mahjong-deal-form button,.mahjong-actions button,.mahjong-board-tools button,.mahjong-confirm-actions button{min-height:44px;padding:8px 12px}.mahjong-current-deal{color:#213e32;flex-wrap:wrap;gap:5px 16px;font-size:.85rem;display:flex}.mahjong-current-deal strong{white-space:nowrap}.mahjong-progress{color:#243d32;align-items:center;gap:8px 20px;font-size:.82rem}.mahjong-progress strong{font-variant-numeric:tabular-nums}.mahjong-actions{align-items:center}.mahjong-input-error{color:#8a211b;flex-basis:100%;margin:0;font-weight:700}.mahjong-play-area{width:100%;max-width:920px;margin-inline:auto}.mahjong-board-tools{justify-content:center;align-items:center}.mahjong-board-tools label{align-items:center;gap:8px;display:flex}.mahjong-board-instructions,.mahjong-live-message,.mahjong-session-note{color:#243d32;max-width:900px;margin:8px auto;padding-inline:8px;font-size:.82rem;line-height:1.45}.mahjong-live-message{min-height:2.9em;font-weight:600}.mahjong-storage-warning,.mahjong-result{color:#493414;background:#fff7da;border:1px solid #9d6b14;border-radius:8px;max-width:900px;margin:10px auto;padding:12px}.mahjong-result h2{margin:0 0 5px;font-size:1.15rem}.mahjong-result p{margin:0}.mahjong-board-viewport{overscroll-behavior:contain;scrollbar-color:#acc5ae #244e40;background:#244e40;border-radius:10px;max-width:100%;padding:10px 4px 12px;overflow:auto}.mahjong-board{--tile-size:clamp(28px, min(calc((100vw - 64px) / 12), calc((100dvh - 330px) / 10.72)), 58px);width:calc(var(--tile-size) * 12);height:calc(var(--tile-size) * 10.72 + 5px);margin-inline:auto;position:relative}.mahjong-zoom-comfortable{--tile-size:54px}.mahjong-zoom-large{--tile-size:72px}.mahjong-tile{left:calc(var(--x) * var(--tile-size));top:calc(var(--y) * var(--tile-size) * 1.34);width:calc(var(--tile-size) - 2px);height:calc(var(--tile-size) * 1.34 - 3px);color:#24372d;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:linear-gradient(120deg,#fffef1,#eee6c8);border:1px solid #8c896d;border-radius:4px;padding:2px;position:absolute;box-shadow:1px 3px #b4aa83,2px 4px 1px #132b2580}.mahjong-tile.is-free{outline-offset:-2px;border-color:#1a476b;outline:2px solid #83caff}.mahjong-tile-mark{color:#762800;font-size:calc(var(--tile-size) * .28);font-weight:900;line-height:1;position:absolute;top:0;right:1px}.mahjong-face{color:#143b58;flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex;overflow:hidden}.mahjong-face svg{width:91%;height:72%}.mahjong-rank{font-size:calc(var(--tile-size) * .23);align-self:flex-start;padding-left:1px;font-weight:800;line-height:1}.mahjong-family{font-size:calc(var(--tile-size) * .16);letter-spacing:-.02em;font-weight:900;line-height:1.2}.mahjong-symbol{font-size:calc(var(--tile-size) * .6);font-weight:800;line-height:1.4}.mahjong-face-bamboo{color:#18512d}.mahjong-face-characters,.mahjong-colour-red{color:#9f231b}.mahjong-face-wind{color:#28342f}.mahjong-colour-green{color:#13522c}.mahjong-colour-white{color:#263d4d}.mahjong-face-flower{color:#87245d}.mahjong-face-season{color:#714b08}.mahjong-face-season .mahjong-symbol{font-size:calc(var(--tile-size) * .44)}.mahjong-empty-board{text-align:center;color:#fff9e7;font-size:1.2rem;position:absolute;inset:35% 10% auto}.mahjong-free-list{background:#f6f7ed;border:1px solid #769282;border-radius:8px;margin-top:14px;padding:12px}.mahjong-free-list h2{margin:0 0 4px;font-size:1rem}.mahjong-free-list p{font-size:.85rem}.mahjong-free-buttons{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;display:grid}.mahjong-list-tile{color:#203d30;text-align:left;background:#fffdf3;border:1px solid #517367;border-radius:6px;gap:3px;min-height:56px;padding:9px;display:grid}.mahjong-list-tile span{font-size:.72rem}.mahjong-list-tile[aria-pressed=true]{background:#fff0c2;outline:3px solid #b63d08}.mahjong-list-tile.is-hinted{border:3px dashed #75266f}.mahjong-list-tile:focus-visible{outline-offset:2px;outline:3px solid #1c64a0}@media (width<=400px){.mahjong-deal-form label:first-child{flex:1;min-width:140px}.mahjong-deal-form label:first-child select{width:100%}.mahjong-deal-form button{flex-basis:100%}.mahjong-progress{gap:5px 12px}.mahjong-actions{justify-content:space-between}.mahjong-actions button{padding-inline:9px}.mahjong-board-tools{align-items:stretch}.mahjong-board-tools button{flex:1}.mahjong-free-buttons{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.mahjong-tile{transition:none}}.mahjong-deal-buttons{flex-wrap:wrap;gap:8px;display:flex}@media (width<=400px){.mahjong-deal-buttons{flex-basis:100%}.mahjong-deal-buttons button{flex:1}}[data-game-id=mahjong-solitaire] .game-toolbar{background:#162c25}[data-game-id=mahjong-solitaire] .game-board-frame{background:#142e26;min-width:0;min-height:0}.mahjong-current-deal,.mahjong-progress,.mahjong-board-instructions,.mahjong-live-message,.mahjong-session-note{color:var(--text)}.mahjong-play-area,.mahjong-board-viewport{min-width:0}.mahjong-free-list,.mahjong-free-list h2,.mahjong-free-list p{color:#203d30}.mahjong-result p,.mahjong-storage-warning{color:#493414}.mahjong-input-error{color:#ffc5b8}.mahjong-actions button,.mahjong-board-tools button,.mahjong-deal-buttons button,.mahjong-confirm-actions button{color:#f6f1e6;cursor:pointer;background:#263f35;border:1px solid #759285;border-radius:6px;font-weight:650}.mahjong-deal-buttons .primary-button,.mahjong-confirm-actions .primary-button{color:#1c2b24;background:#e2bf6d;border-color:#e2bf6d}.mahjong-actions button:hover:not(:disabled),.mahjong-board-tools button:hover,.mahjong-deal-buttons button:hover,.mahjong-confirm-actions button:hover{filter:brightness(1.1)}.mahjong-actions button:disabled{color:#b7c3ba;opacity:.7;cursor:default}.mahjong-family{font-size:max(7px, calc(var(--tile-size) * .16))}.mahjong-board:focus-visible{outline-offset:-3px;outline:3px solid #ffdb47}.mahjong-deal-picker summary{color:#1c2b24;cursor:pointer;background:#e2bf6d;border:1px solid #e2bf6d;border-radius:6px;align-items:center;min-height:44px;padding:8px 13px;font-weight:750;list-style:none;display:inline-flex}.mahjong-deal-picker summary:after{content:" ▾";margin-left:8px}.mahjong-deal-picker[open] summary:after{content:" ▴"}.mahjong-deal-picker .mahjong-deal-form{border-top:1px solid #759285;margin-top:10px;padding-top:10px}.mahjong-deal-picker summary:focus-visible,.mahjong-controls-help summary:focus-visible{outline-offset:3px;outline:3px solid #ffdb47}.mahjong-controls-help{color:var(--text);margin-top:8px;font-size:.85rem}.mahjong-controls-help summary{cursor:pointer;min-height:44px;padding:10px 8px}.mahjong-controls-help p{color:var(--text);padding-inline:8px}.mahjong-board-tools select{max-width:135px}@media (width>=900px){.mahjong-toolbar{grid-template-columns:minmax(0,1fr) auto}.mahjong-deal-picker{grid-area:1/2/4;align-self:start}.mahjong-deal-picker[open]{grid-area:1/1/auto/-1}.mahjong-current-deal,.mahjong-progress,.mahjong-actions{grid-column:1}}@media (width<=400px){.mahjong-board-tools{flex-wrap:nowrap;gap:6px}.mahjong-board-tools label{gap:5px}.mahjong-board-tools select{width:123px;padding-inline:6px}.mahjong-board-tools button{white-space:nowrap;flex:1;padding-inline:8px}}.mahjong-family{letter-spacing:-.06em}[data-game-id=mahjong-solitaire].game-page-shell,.mahjong-toolbar,.mahjong-play-area{max-width:none}.mahjong-board-viewport{background:radial-gradient(at top,#326551,#1c4436);padding:12px}.mahjong-board-stage{--tile-size:clamp(18px, min(calc((100vw - 86px) / 12), calc((100dvh - 320px) / 10.72)), 140px);width:calc(var(--tile-size) * var(--view-width,12));height:calc(var(--tile-size) * var(--view-height,10.72));margin-inline:auto;position:relative}.mahjong-board-stage.mahjong-zoom-comfortable{--tile-size:54px}.mahjong-board-stage.mahjong-zoom-large{--tile-size:72px}.mahjong-board{--tile-size:inherit;width:calc(var(--tile-size) * 12);height:calc(var(--tile-size) * 10.72);transform:translate(-50%, -50%) rotate(var(--view-angle,0deg));margin:0;position:absolute;top:50%;left:50%}.mahjong-tile{border-radius:max(3px, calc(var(--tile-size) * .08));background:linear-gradient(135deg,#fffef7 0%,#faf5df 68%,#e9dfbd 100%);border:1px solid #c5bb97;box-shadow:inset 1px 1px 1px #fff,inset -1px -2px 1px #d6c99e,1px 2px #c6b88c,2px 4px #9d8f64,3px 5px 2px #102a27a6}.mahjong-tile.is-blocked{background:linear-gradient(135deg,#f7f0dc,#ded3ad)}.mahjong-tile.is-free{outline-offset:-3px;border-color:#a5b5a0;outline-width:1px}.mahjong-tile.is-selected{outline-offset:-4px;background:#fff0c2;outline:4px solid #b63d08}.mahjong-tile.is-hinted{outline-offset:-3px;outline:3px dashed #75266f}.mahjong-tile:focus-visible{outline-offset:1px;outline:4px solid #ffdb47}.mahjong-view-controls{gap:6px;display:flex}.mahjong-view-controls button[aria-pressed=true]{color:#1c2b24;background:#e2bf6d}.mahjong-board-tools{flex-wrap:wrap;gap:8px 16px}@media (width>=900px){[data-game-id=mahjong-solitaire] .game-primary{margin-top:6px}.mahjong-toolbar{grid-template-columns:minmax(0,1fr) auto auto;gap:5px 16px}.mahjong-current-deal{grid-row:1}.mahjong-progress{grid-row:2}.mahjong-actions{grid-area:1/2/3}.mahjong-deal-picker{grid-area:1/3/3}.mahjong-deal-picker[open]{grid-area:3/1/auto/-1}.mahjong-live-message{max-width:none;min-height:1.45em;margin-block:4px}.mahjong-board-instructions{margin-block:4px}}@media (width<=400px){.mahjong-view-controls{width:100%}.mahjong-view-controls button{flex:1}}[data-game-id=mahjong-solitaire] .game-board-frame{border-top:1px solid var(--line);border-radius:8px;padding:6px}.mahjong-play-area{grid-template-columns:minmax(0,1fr);align-items:start;gap:10px;display:grid}.mahjong-sidebar{min-width:0;color:var(--text);background:#162c25;border:1px solid #527364;border-radius:8px;padding:12px}.mahjong-sidebar .mahjong-toolbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:0;border-radius:0;grid-template-columns:minmax(0,1fr);gap:10px;min-height:0;padding:0;display:grid}.mahjong-sidebar .mahjong-current-deal,.mahjong-sidebar .mahjong-progress,.mahjong-sidebar .mahjong-actions,.mahjong-sidebar .mahjong-deal-picker,.mahjong-sidebar .mahjong-deal-picker[open]{grid-area:auto}.mahjong-sidebar .mahjong-current-deal{gap:6px;display:grid}.mahjong-sidebar .mahjong-current-deal strong{white-space:normal}.mahjong-sidebar .mahjong-progress{gap:6px 16px}.mahjong-sidebar .mahjong-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.mahjong-sidebar .mahjong-actions button:last-child{grid-column:1/-1}.mahjong-sidebar .mahjong-board-tools{justify-content:start;margin-top:12px}.mahjong-sidebar .mahjong-view-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;display:grid}.mahjong-sidebar .mahjong-view-controls button{white-space:normal;padding-inline:4px;font-size:.78rem}.mahjong-sidebar .mahjong-board-instructions,.mahjong-sidebar .mahjong-live-message,.mahjong-sidebar .mahjong-session-note{margin-block:10px;padding:0}.mahjong-sidebar .mahjong-live-message{min-height:0}.mahjong-sidebar .mahjong-free-buttons{grid-template-columns:minmax(0,1fr)}.mahjong-sidebar .mahjong-controls-help summary{padding-inline:0}@media (width>=900px){.mahjong-play-area{grid-template-columns:minmax(0,1fr) 272px}.mahjong-sidebar{scrollbar-gutter:stable;max-height:calc(100dvh - 80px);position:static;overflow-y:auto}[data-game-id=mahjong-solitaire].game-page-shell{padding-inline:10px}}@media (width<=899px){.mahjong-play-area{gap:8px}[data-game-id=mahjong-solitaire].game-page-shell{padding-top:6px}}[data-game-id=mahjong-solitaire].game-page-shell{padding-inline:0}[data-game-id=mahjong-solitaire] .game-board-frame{background:0 0;border:0;border-radius:0;padding:0}.mahjong-board-viewport{background:0 0;border:0;border-radius:0;padding:6px}.mahjong-board-stage{margin-inline:0}.mahjong-play-area{grid-template-columns:minmax(0,1fr);gap:12px}.mahjong-sidebar{scrollbar-gutter:auto;background:0 0;border:0;border-radius:0;max-height:none;padding:0;position:static;overflow:visible}.mahjong-sidebar-controls{background:#162c25;border:1px solid #527364;border-radius:8px;padding:12px}.mahjong-sidebar>.works-ad-preview{margin-bottom:24px}@media (width>=1024px){.mahjong-play-area{grid-template-columns:minmax(0,1fr) 300px;gap:16px}.mahjong-sidebar{max-height:none;overflow:visible}[data-game-id=mahjong-solitaire] .mahjong-sidebar>.works-ad-preview{background:0 0;width:300px;margin:0 0 24px;padding:0;position:static}.mahjong-sidebar .works-ad-preview-creative{gap:12px;width:300px;height:250px;padding:20px}.mahjong-sidebar .works-ad-preview-size:after{content:"300 x 250"}.mahjong-sidebar .works-ad-preview--tall .works-ad-preview-creative{height:600px}.mahjong-sidebar .works-ad-preview--tall .works-ad-preview-size:after{content:"300 x 600"}.app-shell.is-focus-play:has([data-game-id=mahjong-solitaire]){--focus-ad-reserve:0px}}.mahjong-family-compact{display:none}@media (width<=900px) and (orientation:portrait){:is(.app-shell:has(.game-page-shell) .mahjong-play-area,.app-shell:has(.game-page-shell) .mahjong-board-viewport){height:100%}.app-shell:has(.game-page-shell) .mahjong-board-viewport{align-items:center;display:flex}.mahjong-board-stage{height:calc(var(--tile-size) * var(--view-height,10.72) * var(--tile-stretch,1));flex:none}.mahjong-board{transform:translate(-50%,-50%) scaleY(var(--tile-stretch,1)) rotate(var(--view-angle,0deg))}.mahjong-family,.mahjong-rank,.mahjong-tile-mark{font-size:9px}.mahjong-tile{padding:0}.mahjong-face{padding-block:1px}.mahjong-family{white-space:nowrap;flex-shrink:0;max-width:100%;line-height:1.3}.mahjong-family-full{display:none}.mahjong-family-compact{display:inline}.mahjong-rank{flex-shrink:0;line-height:1.3}.mahjong-tile-mark{line-height:1.3;top:1px}.mahjong-symbol{font-size:max(9px,calc(var(--tile-size) * .5));line-height:1.25}.mahjong-face svg{min-height:0}}
