html.mahjong,body.mahjong.pp{overscroll-behavior:none}.pp-stage.mj-stage{-webkit-tap-highlight-color:transparent;flex:auto;align-items:stretch;min-height:0;padding:16px}.pp-card.mj-card{box-sizing:border-box;align-items:stretch;gap:14px;width:min(100%,760px);min-height:0;padding:20px}@media (width<=599px){.pp-stage.mj-stage{padding:12px 12px 10px}.pp-card.mj-card{background:0 0;border:none;border-radius:0;gap:12px;padding:0}}.mj-hud{flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 52px auto;gap:8px;height:52px;display:grid}@media (width>=600px){.mj-hud{grid-template-columns:140px 140px 1fr 52px auto}.pp-sound.mj-sound{grid-column:4}.pp-newgame.mj-new{grid-column:5}}.pp-stat.mj-stat{flex-direction:column;justify-content:center;min-width:0;padding:0 10px;display:flex}.mj-stat .pp-stat-value{font-variant-numeric:tabular-nums}.pp-newgame.mj-new{white-space:nowrap;touch-action:manipulation;padding:0 18px}.mj-viewport{--w:8;--h:7;--d:3;--pad:6px;--aspect:1.2973;--edge-k:.11;--lift-k:.1;--fit:min((100cqw - 2 * var(--pad)) / (var(--w) + (var(--d) - 1) * var(--lift-k)), (100cqh - 2 * var(--pad)) / (var(--h) * (var(--aspect) + var(--edge-k)) + (var(--d) - 1) * var(--lift-k)));--tw:min(var(--fit), 68px);touch-action:pan-x pan-y;overscroll-behavior:contain;scrollbar-width:thin;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:16px;flex:auto;min-height:0;display:flex;position:relative;overflow:auto;container-type:size}.mj-viewport.is-zoomed{--tw:max(var(--fit), 46px)}.mj-fit-probe{width:var(--fit);visibility:hidden;pointer-events:none;height:0;position:absolute;top:0;left:0}.mj-board{--fh:calc(var(--tw) * var(--aspect));--edge:calc(var(--tw) * var(--edge-k));--lift:calc(var(--tw) * var(--lift-k));--pitch:calc(var(--fh) + var(--edge));width:calc(var(--w) * var(--tw) + (var(--d) - 1) * var(--lift) + 2 * var(--pad));height:calc(var(--h) * var(--pitch) + (var(--d) - 1) * var(--lift) + 2 * var(--pad));flex:none;margin:auto;position:relative}.mj-tile{--t-face:#fffdf6;--t-side:#d9c7a5;--t-line:#e6d9c2}.mj-tile[data-tone=dots]{--t-face:#e9f0fa;--t-side:#b4c6e3;--t-line:#d2def1}.mj-tile[data-tone=bamboo]{--t-face:#e4f2e9;--t-side:#afd0bb;--t-line:#cbe4d4}.mj-tile[data-tone=characters]{--t-face:#fbe9e5;--t-side:#e6b8ad;--t-line:#f3d1c9}.mj-tile[data-tone=wind]{--t-face:#f2ebdd;--t-side:#cdbb9b;--t-line:#e4d8c2}.mj-tile[data-tone=red]{--t-face:#c0392b;--t-side:#8a2519;--t-line:#a93226}.mj-tile[data-tone=green]{--t-face:#24683f;--t-side:#174a2b;--t-line:#1e5a36}.mj-tile[data-tone=white]{--t-face:#fff;--t-side:#cdbb9b;--t-line:#e4d8c2}.mj-tile[data-tone=fruit]{--t-face:#fdecea;--t-side:#e8b9b1;--t-line:#f5d5cf}.mj-tile[data-tone=nature]{--t-face:#e6f3eb;--t-side:#afd0bb;--t-line:#cbe4d4}.mj-tile[data-tone=animals]{--t-face:#eaf0fa;--t-side:#b4c6e3;--t-line:#d2def1}.mj-tile[data-tone=sky]{--t-face:#fbf0d9;--t-side:#e3c993;--t-line:#f1e0bb}.mj-tile[data-tone=treasure]{--t-face:#f1eafb;--t-side:#cbb7e8;--t-line:#e2d5f4}.mj-board .mj-tile,.mj-board .mj-tile:hover{left:calc(var(--pad) + (var(--d) - 1 - var(--z)) * var(--lift) + var(--x) / 2 * var(--tw));top:calc(var(--pad) + (var(--d) - 1 - var(--z)) * var(--lift) + var(--y) / 2 * var(--pitch));box-sizing:border-box;width:var(--tw);height:var(--fh);border:1px solid var(--t-line);border-radius:calc(var(--tw) * .14);background:var(--t-face);box-shadow:0 var(--edge) 0 var(--t-side), 0 calc(var(--edge) + 1px) calc(var(--edge) * 1.4) #3c28144d;color:inherit;cursor:pointer;touch-action:manipulation;contain:size layout style;margin:0;padding:0;transition:translate .12s,box-shadow .12s;display:block;position:absolute}.mj-board .mj-tile[hidden]{display:none}.mj-face{pointer-events:none;width:100%;height:100%;display:block}.mj-board .mj-tile.is-blocked{cursor:default}.mj-board .mj-tile.is-blocked:after{content:"";border-radius:inherit;mix-blend-mode:multiply;pointer-events:none;background:#785f3c3d;position:absolute;inset:-1px}.mj-board .mj-tile.is-selected,.mj-board .mj-tile.is-selected:hover{z-index:2;translate:0 calc(var(--edge) * -.7);border-color:var(--game-accent);box-shadow:0 0 0 2px var(--game-accent), 0 var(--edge) 0 var(--game-accent), 0 calc(var(--edge) + 6px) 14px -2px #2b7a5a73}.mj-board .mj-tile.is-hint{z-index:1;animation:1s ease-in-out infinite mj-hint}@keyframes mj-hint{0%,to{box-shadow:0 0 0 3px #e0a526, 0 var(--edge) 0 var(--t-side), 0 var(--edge) 0 3px #e0a526}50%{box-shadow:0 0 0 5px #e0a5268c, 0 var(--edge) 0 var(--t-side), 0 var(--edge) 0 5px #e0a5268c}}.mj-board .mj-tile.is-clearing{z-index:3;pointer-events:none;animation:.28s ease-in forwards mj-clear}@keyframes mj-clear{0%{opacity:1;scale:1}35%{opacity:1;scale:1.12}to{opacity:0;scale:.55}}.mj-board .mj-tile.is-dropping{animation:.28s ease-out mj-drop}@keyframes mj-drop{0%{translate:0 calc(var(--tw) * -.35);opacity:0}to{opacity:1;translate:0}}.mj-board .mj-tile.is-nudged{animation:.32s ease-out mj-nudge}@keyframes mj-nudge{0%,to{translate:0}20%{translate:-5px}45%{translate:5px}70%{translate:-3px}85%{translate:2px}}.mj-board .mj-tile.is-blocker{z-index:2;animation:1.1s ease-out mj-blocker}@keyframes mj-blocker{0%,60%{box-shadow:0 0 0 3px #e0603a, 0 var(--edge) 0 var(--t-side), 0 var(--edge) 0 3px #e0603a}to{box-shadow:0 0 0 3px #e0603a00, 0 var(--edge) 0 var(--t-side), 0 var(--edge) 0 3px #e0603a00}}.mj-board.is-shuffling .mj-tile{animation:.45s ease-in-out mj-turn}@keyframes mj-turn{0%,to{scale:1}50%{scale:0 1}}.mj-board .mj-tile:focus-visible{z-index:2;outline:3px solid var(--game-accent);outline-offset:2px}.mj-tile-static{--tw:34px;box-sizing:border-box;width:var(--tw);height:calc(var(--tw) * 1.2973);border:1px solid var(--t-line);border-radius:calc(var(--tw) * .14);background:var(--t-face);box-shadow:0 calc(var(--tw) * .11) 0 var(--t-side), 0 calc(var(--tw) * .11 + 1px) calc(var(--tw) * .15) #3c28144d;flex:none;display:inline-block;position:relative}.mj-controls{flex:none;gap:8px;display:flex}.mj-tool,.mj-tool:hover{min-width:0;height:48px;box-shadow:none;color:#3d352c;cursor:pointer;touch-action:manipulation;background:#fff;border:1px solid #eadfce;border-radius:12px;flex:1 1 0;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-family:Instrument Sans,system-ui,sans-serif;font-size:15px;font-weight:600;transition:none;display:flex}.mj-tool.mj-zoom{flex:0 0 48px;padding:0}.mj-tool[hidden]{display:none}.mj-tool svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none}.mj-tool:disabled,.mj-tool:disabled:hover{color:#b9ad9c;cursor:default}.mj-tool[aria-pressed=true]{border-color:var(--game-accent);color:var(--game-accent)}.mj-tool:focus-visible{outline:3px solid var(--game-accent);outline-offset:2px}@media (hover:hover) and (pointer:fine){.mj-tool:hover:not(:disabled){border-color:var(--game-accent);color:#241f1a}}@media (width<=599px){.mj-controls{gap:6px}.mj-tool,.mj-tool:hover{flex-direction:column;gap:2px;height:52px;padding:0 2px;font-size:12px;line-height:1.2}.mj-tool.mj-zoom{flex-basis:52px}}.mj-hint{text-align:center;color:#6a5f52;flex:none;min-height:20px;margin:0;font-size:14px;line-height:20px}.mj-hint.is-note{color:#b4452a;font-weight:600}.mj-sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.mj-sprites,.mj-icons{width:0;height:0;position:absolute;overflow:hidden}.mj-picker{box-sizing:border-box;color:#241f1a;overscroll-behavior:contain;background:#fff;border:1px solid #eadfce;border-radius:24px;width:min(420px,100vw - 32px);max-height:min(600px,100dvh - 48px);padding:0;box-shadow:0 40px 90px -30px #28190a8c}.mj-picker[open]{display:flex}.mj-picker::backdrop{background:#1c16108c}.mj-picker-panel{flex-direction:column;flex:auto;min-height:0;padding:18px 18px 20px;display:flex;overflow-y:auto}.mj-picker-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.mj-picker-title{letter-spacing:-.02em;color:#241f1a;margin:0;font-family:Bricolage Grotesque,sans-serif;font-size:22px;font-weight:800}.mj-picker-close,.mj-picker-close:hover{width:44px;height:44px;box-shadow:none;color:#3d352c;cursor:pointer;touch-action:manipulation;background:#faf5ec;border:none;border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0;transition:none;display:flex}.mj-picker-close svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round}.mj-picker-note{color:#6a5f52;margin:6px 0 16px;font-size:15px;line-height:1.5}.mj-style-options{flex-direction:column;gap:10px;display:flex}.mj-style-option,.mj-style-option:hover{width:100%;box-shadow:none;color:#241f1a;text-align:left;cursor:pointer;touch-action:manipulation;background:#fff;border:1px solid #eadfce;border-radius:16px;align-items:center;gap:14px;margin:0;padding:14px 14px 16px;transition:none;display:flex}.mj-style-option[aria-pressed=true],.mj-style-option[aria-pressed=true]:hover{border-color:var(--game-accent);box-shadow:0 0 0 1px var(--game-accent);background:#eef6f1}.mj-style-option:focus-visible{outline:3px solid var(--game-accent);outline-offset:2px}@media (hover:hover) and (pointer:fine){.mj-style-option:hover:not([aria-pressed=true]){border-color:#bfae94}}.mj-style-tiles{flex:none;gap:5px;padding-bottom:4px;display:flex}.mj-style-text{flex-direction:column;gap:2px;min-width:0;display:flex}.mj-style-name{font-family:Instrument Sans,system-ui,sans-serif;font-size:16px;font-weight:600;line-height:1.3}.mj-style-desc{color:#6a5f52;font-size:14px;line-height:1.4}@media (width<=359px){.mj-style-tiles .mj-tile-static{--tw:28px}}.celebration-icon:has(.mj-go){background:0 0}.mj-go{justify-content:center;align-items:center;gap:6px;display:flex}.mj-go .mj-tile-static{--tw:40px}.mj-stuck-text{margin:0}body.pp.immersive .pp-stage.mj-stage{padding:72px 16px 24px}body.pp.immersive .pp-card.mj-card{background:#fff;border:1px solid #eadfce;border-radius:22px;height:100%;padding:16px}@media (orientation:landscape) and (aspect-ratio>=4/3){.pp-card.mj-card{grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) 240px;gap:12px 20px;width:min(100%,980px);display:grid}.mj-viewport{grid-area:1/1/4}.mj-hud{grid-area:1/2;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:auto}.mj-hud .mj-stat{height:56px}.mj-hud .pp-sound.mj-sound{grid-column:1;width:100%;height:48px}.mj-hud .pp-newgame.mj-new{grid-column:2;height:48px}.mj-controls{flex-wrap:wrap;grid-area:2/2;align-content:start;gap:8px}.mj-tool,.mj-tool:hover,.mj-tool.mj-zoom{flex-direction:row;flex:0 0 calc(50% - 4px);height:48px;font-size:15px}.mj-hint{text-align:left;grid-area:3/2;align-self:start}}@media (orientation:landscape) and (aspect-ratio>=4/3) and (height<=480px){.pp-card.mj-card{grid-template-columns:minmax(0,1fr) 220px;gap:10px 14px}.mj-hud .mj-stat{height:52px}.mj-tool,.mj-tool:hover,.mj-tool.mj-zoom{flex:0 0 calc(33.3333% - 5.33333px);height:44px}.mj-tool-label{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.mj-hint{display:none}}@media (prefers-reduced-motion:reduce){.mj-board .mj-tile,.mj-board .mj-tile:hover{transition:none}.mj-board .mj-tile.is-clearing{animation:.2s linear forwards mj-fade}.mj-board .mj-tile.is-dropping,.mj-board .mj-tile.is-nudged,.mj-board.is-shuffling .mj-tile{animation:none}.mj-board .mj-tile.is-hint{box-shadow:0 0 0 3px #e0a526, 0 var(--edge) 0 var(--t-side), 0 var(--edge) 0 3px #e0a526;animation:none}}@keyframes mj-fade{to{opacity:0}}
