.mj-page{--scene-unit:clamp(.75px,.0625vw,1px);--dock:86px;isolation:isolate;color:#fff4da;background:#64321d;height:100dvh;min-height:680px;font-family:Georgia,Times New Roman,serif;position:relative;overflow:hidden}@media (pointer:coarse) and (max-width:650px) and (orientation:portrait){#mobile-game-shell .mj-page:not(.mj-choosing) .mj-header{grid-template-rows:44px 44px 44px;grid-template-columns:48px minmax(0,1fr);gap:6px 8px;height:156px;display:grid}#mobile-game-shell .mj-page:not(.mj-choosing) .mj-home{grid-area:1/1}#mobile-game-shell .mj-page:not(.mj-choosing) .mj-brand{grid-area:1/2}#mobile-game-shell .mj-page:not(.mj-choosing) .table-theme-game-header{grid-area:2/1/auto/3;justify-self:start;margin:0}#mobile-game-shell .mj-page:not(.mj-choosing) .mj-session{grid-area:3/1/auto/3;justify-self:start;margin:0}#mobile-game-shell .mj-page:not(.mj-choosing) .mj-main{top:168px}}.mj-page:before{content:"";z-index:-1;pointer-events:none;background:url(/mahjong/table-straight-v2.webp) 50%/cover no-repeat;position:absolute;inset:0}.mj-header{color:#412611;background:linear-gradient(110deg,#fffaf0,#f0e4d2);border:1px solid #d2b692;border-radius:14px;align-items:center;gap:16px;height:72px;padding:4px 16px;display:flex;position:absolute;top:12px;left:28px;right:28px;box-shadow:0 3px 8px #2f180c66}.mj-home{color:#764c2c;background:#fff8e8;border-radius:50%;flex-shrink:0;place-items:center;width:42px;height:42px;display:grid;box-shadow:0 2px 5px #45291130}.mj-brand{align-items:center;gap:12px;display:flex}.mj-brand>span{color:#a02923;font-family:KaiTi,SimSun,serif;font-size:40px}.mj-brand h1{margin:0;font-size:38px;font-weight:700;line-height:1}.mj-brand small{margin-top:5px;font-size:16px;font-style:italic;font-weight:400;display:block}.mj-session{white-space:nowrap;align-items:center;gap:25px;margin-left:auto;font-size:26px;font-weight:700;display:flex}.mj-session>span{align-items:center;gap:7px;display:flex}.mj-session small{font-size:20px;font-weight:400}.mj-main{top:94px;bottom:var(--dock);grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:24px;min-height:0;padding:8px 16px 10px;display:grid;position:absolute;left:40px;right:40px}.mj-play{flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.mj-layout-picker{flex-direction:column;flex:1;gap:10px;min-height:0;display:flex}.mj-board-viewport{isolation:isolate}.mj-dock[inert]{opacity:.5}.mj-layout-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.mj-layout-heading h2{margin:0;font-size:clamp(17px,1.7vw,25px)}.mj-layout-heading .mj-button{min-height:36px;padding:4px 10px;font-size:16px}.mj-layout-grid{overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#d1b181 #124934;flex:1;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:calc(33.3333% - 6.66667px);gap:10px;min-height:0;padding:3px;display:grid;overflow:hidden auto}.mj-layout-card{cursor:pointer;background:#123e3099;border:1px solid #b99b6d;border-radius:10px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:stretch;gap:8px;min-width:0;min-height:0;padding:10px;transition:transform .15s,background .15s;display:grid;box-shadow:0 3px 7px #001e1a66,inset 0 1px #e8d4a533}.mj-layout-card:hover{background:#245a43b3;transform:scale(1.015)}.mj-layout-card:focus-visible{outline-offset:2px;outline:3px solid #f2cf78}.mj-layout-preview{pointer-events:none;justify-content:center;align-items:center;width:100%;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.mj-layout-info{text-align:left;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;min-width:0;display:flex}.mj-layout-card small{color:#e6d6b4;margin-left:10px;font-size:14px}.mj-picker-rules{color:#f1e4c8;margin:0;font:13px/1.4 Arial,sans-serif}.mj-layout-name{font-size:clamp(15px,1.25vw,20px);font-weight:700}.mj-layout-reward{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:7px;font:700 13px/1.3 Arial,sans-serif;display:flex}.mj-layout-reward strong{color:#ffe09a;white-space:nowrap}.mj-difficulty{color:#fff8e9;background:#205840;border:1px solid #dfcca1;border-radius:20px;padding:3px 8px}.mj-difficulty-hard{background:#735025}.mj-difficulty-expert{background:#75402c}.mj-difficulty-master{background:#57385e}@media (max-width:1200px) and (min-width:901px){.mj-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:calc(25% - 7.5px)}}@media (max-width:600px){.mj-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:130px}.mj-brand .mj-current-level{font-size:12px;line-height:1.2;display:block}}@media (min-width:601px) and (max-width:900px){.mj-brand .mj-current-level{font-size:13px;display:block}}@media (max-width:600px){.mj-layout-card small{display:none}.mj-layout-grid{gap:6px}.mj-layout-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px}.mj-layout-info{gap:6px}.mj-layout-name{font-size:14px}.mj-layout-reward{gap:4px;font-size:11px}.mj-difficulty{padding:2px 5px}.mj-layout-heading{flex-wrap:wrap}.mj-layout-heading .mj-button{font-size:14px}.mj-layout-card{padding:3px}}@media (prefers-reduced-motion:reduce){.mj-layout-card{transition:none}.mj-layout-card:hover{transform:none}}.mj-ad-rail{border-left:1px solid #dfcca13b;flex-direction:column;align-items:stretch;gap:16px;min-width:0;min-height:0;padding:0 20px 20px;display:flex}.mj-ad-rail>.mj-zoom{align-self:flex-start}.mj-feedback{overflow-wrap:anywhere;margin:0;font:16px/1.4 Arial,sans-serif}.mj-feedback:empty{display:none}.mj-ad-rail .mj-ad{flex-direction:column;flex:0 auto;justify-content:center;align-items:center;gap:14px;width:100%;min-width:0;height:65%;min-height:300px;max-height:600px;margin-block:auto;padding:32px 20px;display:flex;box-shadow:0 8px 24px #001c1640}.mj-ad-rail .mj-ad strong{font-size:clamp(24px,2.1vw,34px)}.mj-ad-rail .mj-ad span{font-size:16px}.mj-ad-rail .mj-ad small{font-size:13px;top:12px;right:14px}.mj-topline{color:#e6d9b8;justify-content:space-between;align-items:center;gap:12px;min-height:44px;font-size:18px;display:flex}.mj-zoom{color:#593822;background:#f5e8d2;border:2px solid #bc9670;border-radius:13px;flex-shrink:0;display:flex;overflow:hidden}.mj-zoom button{cursor:pointer;place-items:center;min-width:44px;min-height:42px;padding:3px 10px;font-size:20px;font-weight:700;display:grid}.mj-zoom button:first-child,.mj-zoom button:last-child{color:#fff4d9;background:linear-gradient(#a26a3e,#754529)}.mj-zoom small{font:12px Arial,sans-serif;display:block}.mj-zoom button:disabled{opacity:.5}.mj-board-viewport{overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-color:#d1b181 #124934;scrollbar-width:auto;scrollbar-gutter:stable;flex:1;min-height:0;display:flex;position:relative;overflow:auto}.mj-board-viewport:focus-visible{outline-offset:-3px;outline:3px solid #efc966}.mj-board-size{isolation:isolate;-webkit-user-select:none;user-select:none;flex:none;margin:auto;position:relative}.mj-tile{color:#234b3b;cursor:pointer;touch-action:pan-x pan-y;isolation:isolate;background:0 0;border:0;border-radius:12%;padding:0;scroll-margin:12px;position:absolute}.mj-tile:before{content:"";pointer-events:none;z-index:-1;background:url(/mahjong/shadow-v1.webp) 0 0/100% 100% no-repeat;width:190%;height:170%;position:absolute;top:0;left:0}.mj-roman-bridge-board .mj-tile:before{opacity:.6}.mj-bridge-ground-shadow{pointer-events:none;z-index:-1;position:absolute;top:0;left:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#000 0% 88%,#0000 100%),linear-gradient(#000 0% 86%,#0000 100%);mask-image:linear-gradient(90deg,#000 0% 88%,#0000 100%),linear-gradient(#000 0% 86%,#0000 100%);-webkit-mask-composite:source-in;mask-composite:intersect}@media (max-width:600px){.mj-page.mj-bridge-game .mj-board-viewport{min-height:0}.mj-page.mj-bridge-game .mj-lens-controls{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;max-width:100%;display:grid}.mj-page.mj-bridge-game .mj-lens-controls .mj-button{white-space:normal;justify-content:center;min-width:0;padding:6px;font-size:15px}}.mj-tile-image{pointer-events:none;width:127.49%;max-width:none;height:auto;display:block;position:absolute;top:0;left:0;transform:translate(-10.9375%,-6.61765%)}.mj-tile[aria-disabled=true]{cursor:default}.mj-tile.is-selected:after,.mj-tile.is-hint:after{content:"";pointer-events:none;border:3px solid #f3cf70;border-radius:12%;position:absolute;inset:1px}.mj-face{pointer-events:none;width:100%;height:100%;font-family:KaiTi,STKaiti,SimSun,Noto Serif CJK SC,serif;display:block}.mj-tile:focus-visible{outline-offset:2px;outline:4px solid #fff8ce}.mj-bottomline{justify-content:space-between;align-items:center;gap:16px;min-height:66px;display:flex}.mj-bottomline p{max-width:750px;margin:0;font:16px/1.4 Arial,sans-serif}.mj-ad{color:#3f543c;text-align:center;background:#f1e4cc;border:2px solid #cab38b;border-radius:10px;flex:0 0 270px;padding:8px 14px;position:relative}.mj-ad strong{font-size:20px;display:block}.mj-ad span{font:13px Arial,sans-serif}.mj-ad small{font:11px Arial,sans-serif;position:absolute;top:4px;right:6px}.mj-button{color:#56381f;cursor:pointer;background:linear-gradient(#fffaf0,#eddfc8);border:2px solid #cfb697;border-radius:13px;justify-content:center;align-items:center;gap:10px;min-height:56px;padding:8px 16px;font-family:Georgia,Times New Roman,serif;font-size:23px;font-weight:700;display:inline-flex;box-shadow:0 3px 4px #3f210e70,inset 0 1px #fff}.mj-button svg{flex-shrink:0;width:28px;height:28px}.mj-button:hover{filter:brightness(1.06)}.mj-button:disabled{opacity:.5;cursor:default}.mj-primary{color:#fff4df;background:linear-gradient(#28745b,#124e3c);border-color:#4e8469}.mj-icon{padding:8px}.mj-dock{grid-template-columns:1fr 1.15fr 1fr 1.4fr 62px 62px 62px;gap:10px;height:62px;display:grid;position:absolute;bottom:14px;left:40px;right:40px}.mj-obscured .mj-main{filter:blur(28px);pointer-events:none;-webkit-user-select:none;user-select:none}.mj-obscured .mj-tile{visibility:hidden}.mj-dialog{color:#4a321d;max-height:90dvh;font-size:19px;overflow:auto;background:#fff7e9!important;border:2px solid #b49b76!important}.mj-dialog [data-slot=dialog-title]{font:700 29px Georgia,serif}.mj-dialog [data-slot=dialog-description]{color:#725a40;font-size:18px;line-height:1.5}.mj-setting{justify-content:space-between;align-items:center;gap:16px;display:flex}.mj-dialog [data-slot=slider]{margin-block:16px}.mj-victory,.mj-blocked{color:#4f321c;text-align:center;z-index:10;background:#fff3db;border:4px double #a67d4d;border-radius:16px;width:300px;padding:24px;position:absolute;top:20%;right:28px;box-shadow:0 8px 30px #0008}.mj-victory>svg{color:#b98036;width:72px;height:72px;margin:auto}.mj-victory h2{font-size:44px}.mj-victory p{margin-block:16px;font-size:20px}.mj-victory>strong{font-size:32px}.mj-blocked{width:340px;top:35%}.mj-blocked strong,.mj-blocked span{margin-bottom:16px;display:block}.mj-blocked strong{font-size:24px}.mj-page a:focus-visible{outline-offset:3px;outline:3px solid #efc966}.mj-button:focus-visible{outline-offset:3px;outline:3px solid #efc966}.mj-zoom button:focus-visible{outline-offset:3px;outline:3px solid #efc966}@media (max-width:1200px){.mj-session{gap:16px;font-size:23px}.mj-session small{font-size:17px}.mj-brand h1{font-size:30px}.mj-brand>span{display:none}.mj-dock{grid-template-columns:1fr 1.1fr 1fr 1.4fr 50px 50px 50px;gap:8px}.mj-dock .mj-button{gap:7px;padding-inline:8px;font-size:19px}.mj-dock .mj-button svg{width:24px;height:24px}}@media (max-width:900px){.mj-page{--scene-unit:.75px;--dock:148px;min-height:740px}.mj-page:before{left:-80px}.mj-header{background:#fff4df;border-radius:12px;flex-wrap:wrap;gap:6px;height:78px;padding:6px 10px;top:12px;left:28px;right:12px}.mj-brand small{display:none}.mj-brand h1{font-size:29px}.mj-session{gap:12px;font-size:21px}.mj-session .mj-button{min-height:42px;padding:4px 10px;font-size:20px}.mj-main{padding:6px;top:108px;left:22px;right:12px}.mj-dock{grid-template-columns:repeat(4,1fr);gap:8px;height:128px;left:18px;right:14px}.mj-dock .mj-button{font-size:18px}.mj-dock .mj-icon{min-height:48px}.mj-ad{flex-basis:200px}.mj-ad strong{font-size:17px}.mj-bottomline p{font-size:14px}.mj-topline>span{font-size:15px}.mj-board-size{margin-inline:auto}}@media (max-width:600px){.mj-page{--dock:196px;min-height:820px}.mj-session{justify-content:space-between;gap:7px;width:100%;font-size:19px}.mj-session small{font-size:15px}.mj-session>span:nth-child(3){display:none}.mj-home{width:34px;height:34px}.mj-header{height:82px}.mj-dock{grid-template-columns:repeat(3,1fr);height:176px}.mj-dock .mj-button{gap:5px;padding-inline:4px;font-size:16px}.mj-dock .mj-button:nth-child(4){grid-column:span 2}.mj-topline{flex-wrap:wrap;justify-content:flex-end}.mj-topline>span{margin-right:auto}.mj-bottomline{flex-direction:column;align-items:stretch;gap:8px}.mj-ad{flex-basis:auto;padding:4px 12px}.mj-ad span{display:none}.mj-ad strong{font-size:16px}.mj-victory,.mj-blocked{width:calc(100% - 16px);max-width:330px;right:8px}.mj-board-viewport{min-height:330px}}@media (prefers-reduced-motion:reduce){.mj-tile{transition:none}}@media (max-width:600px){.mj-header{row-gap:3px;height:96px}.mj-brand{gap:8px;min-width:0}.mj-brand h1{font-size:24px}.mj-brand .mj-current-level{margin-top:2px;font-size:11px}.mj-session{font-size:17px}.mj-session .mj-button{min-height:32px;padding:2px 8px;font-size:16px}.mj-session .mj-button svg{width:20px;height:20px}}@media (max-width:900px){.mj-main{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);gap:8px}.mj-ad-rail{border-left:0;flex-flow:wrap;align-items:center;gap:8px;padding:0}.mj-ad-rail .mj-ad{width:auto;height:auto;min-height:64px;max-height:none;box-shadow:none;flex:180px;gap:4px;padding:12px 20px}.mj-feedback{flex-basis:100%}.mj-ad-rail .mj-ad strong{font-size:20px}.mj-ad-rail .mj-ad span{font-size:14px}.mj-bottomline{min-height:48px}}.game-document .mj-page :is(.mj-board-viewport,.mj-layout-grid,.mj-level-grid){overscroll-behavior-y:auto}
