.mahjong-board{aspect-ratio:1.38;isolation:isolate;background:#214c36 0 0/cover;border:18px solid #0000;border-radius:16px;padding:20px;position:relative;box-shadow:0 5px #d6dfcd}.mahjong-tile{color:#355b40;background:#fffbed;border:1px solid #e6d8b9;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:2px;width:14.4%;height:21%;padding:2px;display:flex;position:absolute;box-shadow:2px 4px #c8bc97,3px 6px 8px #10291b99}.mahjong-tile:disabled{cursor:default;color:#60705b;filter:brightness(.8);background:#ddd8c8}.mahjong-tile span{font-size:clamp(25px,4vw,47px);line-height:1.1}.mahjong-tile small{letter-spacing:-.1px;font-size:clamp(6px,1vw,9px)}.tile-face-1,.tile-face-4{color:#a15e3e}.tile-face-2,.tile-face-5{color:#466b86}.table-cleared{color:#fff8dd;flex-direction:column;justify-content:center;align-items:center;gap:15px;font-size:28px;display:flex;position:absolute;inset:0}.table-cleared span{font-size:13px}@media (max-width:760px){.mahjong-board{border-width:13px;border-radius:12px}.mahjong-tile span{font-size:32px}.mahjong-tile small{font-size:7px}}@media (max-width:430px){.mahjong-tile span{font-size:26px}.mahjong-tile small{font-size:6px}}.mahjong-board[data-difficulty="2"],.mahjong-board[data-difficulty="3"]{aspect-ratio:1}.mahjong-board[data-difficulty="2"] .mahjong-tile,.mahjong-board[data-difficulty="3"] .mahjong-tile{height:13%;min-height:38px}.table-mahjong .mahjong-viewport{overscroll-behavior:contain;scrollbar-color:#65806b #eee9df;background:#eee9df;border-radius:12px;max-width:100%;overflow:auto}.mahjong-camera{perspective:1400px;padding:12px 1.5% 28px}.game-is-fullscreen .mahjong-camera{width:var(--field-base);box-sizing:border-box}.table-mahjong .mahjong-board[data-difficulty]{aspect-ratio:calc(var(--columns) / (var(--rows) * 1.45));--tile-rise:clamp(4px, 1vw, 10px);--tile-shift:clamp(1px, .3vw, 3px);transform-style:preserve-3d;isolation:auto;background:radial-gradient(at 40% 15%,#376d53,#1b4837 85%);border:7px solid #795537;border-radius:13px;padding:0;transform:none;box-shadow:inset 0 2px 12px #082e2b88,0 1px #ba9468,0 5px #583d29,0 10px 15px #443b2726}.table-mahjong .mahjong-board:before{content:"";pointer-events:none;border:1px solid #d3b48170;border-radius:8px;position:absolute;inset:-4px}.table-mahjong .mahjong-board[data-difficulty] .mahjong-tile{width:calc(88% / var(--columns));height:calc(81% / var(--rows));color:#244e70;min-height:0;transform:translate3d(calc(var(--tile-layer) * var(--tile-shift)), calc(var(--tile-layer) * -1 * var(--tile-rise)), calc(3px + var(--tile-layer) * 13px));background-color:#0000;background-repeat:no-repeat;background-size:100% 100%;border:0;border-radius:9%;padding:0;transition:filter .14s,outline-color .14s;box-shadow:1px 3px #194a35,2px 6px #123b2b,3px 9px 7px #08291b80}.table-mahjong .mahjong-tile:disabled{filter:brightness(.94)saturate(.85);color:#244e70;background-color:#0000}.table-mahjong .mahjong-tile.selected,.table-mahjong .mahjong-tile.hinted{outline-offset:1px;filter:brightness(1.06);outline:3px solid #f4ce72}.table-mahjong .mahjong-tile:focus-visible{outline-offset:2px;outline:3px solid #fff5ac}.table-mahjong .highlight-free .mahjong-tile[data-free=true]:not(.selected):not(.hinted):not(:focus-visible){outline-offset:1px;filter:brightness(1.07);outline:2px solid #b5e7b7}.table-mahjong .highlight-free .mahjong-tile[data-free=false]{filter:brightness(.76)saturate(.7)}.mahjong-highlight-toggle{cursor:pointer;align-items:center;gap:9px;min-height:44px;padding:4px 8px;font-size:13px;display:inline-flex}.mahjong-highlight-toggle input{accent-color:#28664d;width:18px;height:18px}.mahjong-feedback{text-align:center;color:#3b654c;max-width:510px;min-height:24px;margin:12px auto 0;font-size:13px;line-height:1.5}.table-mahjong .table-subline{border-bottom:1px solid #b9c5ac;padding:10px 14px;font-size:13px}@media (hover:hover){.table-mahjong .mahjong-tile:not(:disabled):hover{filter:brightness(1.07)}}@media (max-width:540px){.mahjong-camera{padding:12px 1% 22px}.table-mahjong .mahjong-board[data-difficulty]{border-width:4px;border-radius:9px}.table-mahjong .mahjong-board[data-difficulty] .mahjong-tile{box-shadow:0 2px #194a35,1px 4px #123b2b,2px 6px 4px #08291b80}.mahjong-feedback{font-size:12px}}@media (prefers-reduced-motion:reduce){.table-mahjong .mahjong-board[data-difficulty] .mahjong-tile{transition:none}}.mahjong-scene{pointer-events:none;z-index:0;position:absolute;inset:0}.mahjong-scene canvas{border-radius:6px;width:100%;height:100%;display:block}.table-mahjong .mahjong-board:has(.mahjong-scene[data-ready=true]){transform:none}.table-mahjong .mahjong-board:has(.mahjong-scene[data-ready=true]) .mahjong-tile{box-shadow:none;filter:none;opacity:0;background-color:#0000;transform:none;background-image:none!important}.table-mahjong .mahjong-board:has(.mahjong-scene[data-ready=true]) .mahjong-tile:focus-visible{opacity:1;outline:3px solid #ffda72}.table-mahjong .mahjong-board:has(.mahjong-scene[data-ready=true]){box-shadow:none;background:radial-gradient(at 45% 35%,#557163,#263f35);border-color:#0000}.table-mahjong .mahjong-board:has(.mahjong-scene[data-ready=true]):before{display:none}.mahjong-scene[data-ready=false]{visibility:hidden}.table-mahjong .mahjong-board:has(.mahjong-scene[data-ready=true]) .mahjong-tile:is(.selected,.hinted){opacity:1;outline:none}.table-mahjong .mahjong-board:has(.mahjong-scene[data-ready=true]) .mahjong-tile.selected:focus-visible{outline:3px solid #fff4b8}.table-mahjong.game-is-fullscreen .classic-layout{width:100%}.table-mahjong.game-is-fullscreen .mahjong-viewport{width:100%;height:max(180px, calc(var(--game-view-height,100dvh) - 280px));max-height:none}.table-mahjong.game-is-fullscreen .mahjong-camera{width:100%}.table-mahjong.game-is-fullscreen .mahjong-viewport:has(.mahjong-scene[data-ready=true]) .mahjong-camera{height:100%;padding:0}.table-mahjong.game-is-fullscreen .mahjong-board:has(.mahjong-scene[data-ready=true]){aspect-ratio:auto;height:100%}@media (orientation:landscape) and (min-width:600px){.table-mahjong.game-is-fullscreen .classic-play{height:calc(var(--game-view-height,100dvh) - 76px);grid-template-rows:auto auto auto 1fr;grid-template-columns:minmax(0,1fr) 200px;gap:8px 12px;min-height:0;display:grid}.table-mahjong.game-is-fullscreen .classic-play>div:has(.mahjong-viewport){display:contents}.table-mahjong.game-is-fullscreen .table-score{display:none}.table-mahjong.game-is-fullscreen .mahjong-viewport{grid-area:1/1/6;height:100%;min-height:0}.table-mahjong.game-is-fullscreen .table-subline{flex-wrap:wrap;grid-area:1/2;gap:4px 10px}.table-mahjong.game-is-fullscreen .mahjong-feedback{grid-area:2/2;margin:0}.table-mahjong.game-is-fullscreen .table-actions{grid-area:3/2;margin:0}.table-mahjong.game-is-fullscreen .classic-toolbar{grid-area:4/2;align-self:start;margin:0}.table-mahjong.game-is-fullscreen .classic-message{grid-column:2}.table-mahjong.game-is-fullscreen .mahjong-highlight-toggle{font-size:12px}}[data-game-screen].table-mahjong:not(.game-is-fullscreen):not(.portal-game) .classic-layout{width:100%;max-width:none}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-viewport{width:100%}@media (min-width:900px){[data-game-screen].table-mahjong:not(.game-is-fullscreen):not(.portal-game){max-width:none;padding-inline:16px}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-play{grid-template-rows:auto repeat(5,min-content) 1fr;grid-template-columns:minmax(0,1fr) 230px;gap:12px 20px;display:grid}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-heading{grid-area:1/1/auto/-1;margin:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-play>div:has(.mahjong-viewport){display:contents}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-viewport{grid-area:2/1/8;height:max(360px,100svh - 225px)}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-viewport:has(.mahjong-scene[data-ready=true]) .mahjong-camera{height:100%;padding:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-board:has(.mahjong-scene[data-ready=true]){aspect-ratio:auto;height:100%}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .difficulty-controls{grid-area:2/2;margin:0;padding:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .difficulty-controls label{flex-wrap:wrap}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .table-subline{flex-wrap:wrap;grid-area:3/2;gap:6px;padding:0 0 10px}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-feedback{grid-area:4/2;margin:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .table-actions{grid-area:5/2;margin:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-toolbar{grid-area:6/2;margin:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .table-score{grid-area:7/2;align-self:start;margin:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) :is(.classic-message,.classic-controls,.table-notice){grid-column:1/-1}}@media (max-width:899px){[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-play{flex-direction:column;display:flex}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-play>*{order:2}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-heading{order:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-play>div:has(.mahjong-viewport){order:1}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-heading h1{font-size:24px}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .classic-heading .game-fullscreen-button span{display:none}}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-board:has(.mahjong-scene[data-ready=true]){width:100%;aspect-ratio:var(--mahjong-scene-aspect)}@media (max-width:899px){.table-mahjong:not(.game-is-fullscreen) .mahjong-camera{padding:0}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-board[data-difficulty]{width:100%;aspect-ratio:var(--mahjong-scene-aspect,var(--mahjong-layout-aspect))}[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-board[data-difficulty],[data-game-screen].table-mahjong:not(.game-is-fullscreen) .mahjong-board[data-difficulty] .mahjong-tile{transform:none}}@media (orientation:portrait){.table-mahjong.game-is-fullscreen.game-mobile-landscape .classic-play{height:calc(var(--game-view-height,100dvh) - 76px);grid-template-rows:auto auto auto 1fr;grid-template-columns:minmax(0,1fr) 200px;gap:8px 12px;min-height:0;display:grid}.table-mahjong.game-is-fullscreen.game-mobile-landscape .classic-play>div:has(.mahjong-viewport){display:contents}.table-mahjong.game-is-fullscreen.game-mobile-landscape .table-score{display:none}.table-mahjong.game-is-fullscreen.game-mobile-landscape .mahjong-viewport{grid-area:1/1/6;height:100%;min-height:0}.table-mahjong.game-is-fullscreen.game-mobile-landscape .table-subline{flex-wrap:wrap;grid-area:1/2;gap:4px 10px}.table-mahjong.game-is-fullscreen.game-mobile-landscape .mahjong-feedback{grid-area:2/2;margin:0}.table-mahjong.game-is-fullscreen.game-mobile-landscape .table-actions{grid-area:3/2;margin:0}.table-mahjong.game-is-fullscreen.game-mobile-landscape .classic-toolbar{grid-area:4/2;align-self:start;margin:0}.table-mahjong.game-is-fullscreen.game-mobile-landscape .classic-message{grid-column:2}.table-mahjong.game-is-fullscreen.game-mobile-landscape .mahjong-highlight-toggle{font-size:12px}}@media (max-width:540px){.table-mahjong:not(.game-is-fullscreen) .mahjong-camera{min-width:calc(var(--columns) * 46px);box-sizing:border-box}}.table-mahjong .mahjong-board:has(.mahjong-scene[data-settled=false]) .mahjong-tile{visibility:hidden;pointer-events:none}
