.game-portal.mahjong{background:radial-gradient(ellipse at 70% 10%,#55a88580,transparent 60%),linear-gradient(145deg,#153e35,#245e4d 60%,#be944a);min-height:200px}.game-portal.mahjong:after{content:'東 中 發';position:absolute;right:20px;top:25px;letter-spacing:10px;font:bold 38px Georgia,serif;color:#fff6dd;transform:rotate(12deg)}
.mj-root{--mj-green:#173f35;--mj-cream:#fff8e8;--mj-gold:#e4bd74;color:#263d33;max-width:1080px;margin:auto}.mj-root *{box-sizing:border-box}.mj-root button{touch-action:manipulation}.mj-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.mj-heading h2{font:800 28px Georgia,'Noto Serif TC',serif;margin:2px 0}.mj-eyebrow{letter-spacing:.16em;font-size:11px;color:#597563;font-weight:800}.mj-badge{background:#224c3e;color:#fff4d1;border:1px solid #c9ac67;padding:6px 10px;border-radius:30px;white-space:nowrap;font-size:12px}.mj-facts{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 16px}.mj-facts span{background:#f3eddb;border:1px solid #ded3b5;padding:6px 10px;border-radius:9px;font-size:12px}.mj-lobby-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mj-lobby-card{background:linear-gradient(150deg,#244f40,#153c31);border:2px solid #b99b5d;border-radius:22px;padding:16px;color:#fff7dd;box-shadow:0 8px 20px #173e3520}.mj-lobby-card header{display:flex;justify-content:space-between;align-items:center}.mj-lobby-card h3{margin:0;font-size:18px}.mj-lobby-card small{color:#d0dec9}.mj-mini-seats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.mj-mini-seats button{background:#ffffff12;color:#fff9e6;border:1px solid #ffffff40;border-radius:10px;min-height:50px;font-size:12px;padding:6px;overflow:hidden;text-overflow:ellipsis}.mj-mini-seats button:hover:enabled{background:#e4bd74;color:#193e31}.mj-visit{width:100%;background:#f9ebc9!important;color:#244c3b!important;min-height:40px}.mj-message{min-height:23px;font-size:13px;padding:2px 4px;color:#4a6356}.mj-message[data-error=true]{background:#fff0dc;color:#974323;border-radius:9px;padding:10px}.mj-message:empty{display:none}.mj-table{position:relative;isolation:isolate;height:600px;border:13px solid #90633d;border-radius:72px;background:radial-gradient(ellipse at 50% 40%,#397c5b,#1c553e 65%,#123d31);box-shadow:inset 0 0 0 3px #d0ad68,inset 0 0 70px #061c2780,0 16px 32px #26382935;overflow:hidden;margin:12px 0 0;color:#fff8dd}.mj-table:before{content:'';position:absolute;inset:22px;border:1px solid #bda16b55;border-radius:48px;pointer-events:none}.mj-seat{position:absolute;z-index:3;display:flex;align-items:center;gap:7px;max-width:160px;background:#102f27ed;border:1px solid #c2b07977;border-radius:13px;padding:8px 11px;color:#fff6df;box-shadow:0 5px 12px #001b2433}.mj-seat.is-turn{border-color:#ffe092;box-shadow:0 0 0 2px #efc15e,0 0 20px #eccc704d}.mj-seat.me{background:#f5e8c4;color:#254536}.mj-seat .mj-avatar{height:32px;width:32px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#426b4d;font-size:21px;flex:none}.mj-seat b{display:block;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.mj-seat small{display:block;font-size:10px;opacity:.85;margin-top:3px}.mj-seat.pos-0{bottom:17px;left:50%;transform:translateX(-50%)}.mj-seat.pos-1{right:8px;top:43%;flex-direction:column;padding:8px;max-width:90px;text-align:center}.mj-seat.pos-2{top:15px;left:50%;transform:translateX(-50%)}.mj-seat.pos-3{left:8px;top:43%;flex-direction:column;padding:8px;max-width:90px;text-align:center}.mj-bubble{position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);background:#fffbeb;color:#31503a;border-radius:10px;padding:6px 9px;font-size:12px;white-space:nowrap;box-shadow:0 4px 8px #0002}.mj-bubble:after{content:'';position:absolute;bottom:-5px;left:50%;border-top:6px solid #fffbeb;border-inline:5px solid transparent}.mj-center{position:absolute;top:39%;left:50%;transform:translate(-50%,-50%);width:112px;height:100px;border:1px solid #e2c17880;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#173d30d9;text-align:center;box-shadow:inset 0 0 18px #f7d0810a}.mj-center strong{font-size:21px;color:#f8e3ae}.mj-center small{font-size:11px;color:#dbe7c9;margin-top:4px}.mj-clock{font-variant-numeric:tabular-nums;font-size:20px;color:#ffe098;font-weight:800}.mj-river{position:absolute;display:flex;flex-wrap:wrap;gap:2px;align-content:flex-start;justify-content:center;width:156px;max-height:95px;overflow:auto;scrollbar-width:thin}.mj-river.pos-0{bottom:90px;left:50%;transform:translateX(-50%)}.mj-river.pos-2{top:87px;left:50%;transform:translateX(-50%)}.mj-river.pos-1{right:92px;top:48%;width:74px;max-height:145px}.mj-river.pos-3{left:92px;top:48%;width:74px;max-height:145px}.mj-tile{display:inline-flex;position:relative;flex-direction:column;align-items:center;justify-content:center;border:1px solid #c7b995;border-bottom:4px solid #c0b183;border-radius:5px;background:linear-gradient(120deg,#fffef4,#f2ebd2);color:#214c39;box-shadow:0 2px 3px #09261b40;font-family:Georgia,'Noto Serif TC',serif;font-weight:800;user-select:none;padding:0}.mj-tile .mj-rank{font-size:22px;line-height:1.05}.mj-tile .mj-suit{font-size:13px;line-height:1.1}.mj-tile[data-suit=wan]{color:#a9272d}.mj-tile[data-suit=tong]{color:#254c88}.mj-tile[data-suit=honor]{color:#246543}.mj-tile[data-suit=dragon]{color:#b23037}.mj-tile.small{width:23px;height:32px;border-bottom-width:2px;border-radius:3px;box-shadow:none}.mj-tile.small .mj-rank{font-size:15px}.mj-tile.small .mj-suit{font-size:9px}.mj-tile.claimed{opacity:.25}.mj-tile.back{background:linear-gradient(130deg,#437d57,#245039);border-color:#afc190;color:#c4d5ab}.mj-melds{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:8px 0}.mj-melds>span{display:flex;gap:2px;padding:4px;background:#e9e2cf;border-radius:6px}.mj-melds small{font-size:11px;color:#45634d}.mj-hand-zone{background:linear-gradient(#fff9e8,#f0e6cc);border:1px solid #d9c69d;border-radius:22px;padding:15px;margin-top:12px;box-shadow:0 8px 20px #483d2512}.mj-hand-header{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:14px}.mj-hand-header strong{color:#355f40}.mj-hand{display:grid;grid-template-columns:repeat(17,minmax(0,1fr));gap:4px;align-items:end;min-height:60px}.mj-hand .mj-tile{width:100%;aspect-ratio:.65;min-height:55px;max-height:87px;cursor:pointer;transition:transform .13s,box-shadow .13s}.mj-hand .mj-tile[aria-pressed=true]{transform:translateY(-8px);box-shadow:0 0 0 3px #cb9738,0 8px 12px #55350e40}.mj-hand .mj-tile:focus-visible{outline:3px solid #aa740d;outline-offset:3px}.mj-drawn{position:absolute;top:-10px;right:-3px;padding:2px 4px;font:700 9px sans-serif;border-radius:4px;background:#9b362f;color:#fff}.mj-hand-note{font-size:11px;color:#6f715c;margin:12px 0 0}.mj-overlay{position:absolute;z-index:6;bottom:76px;left:7%;right:7%;padding:17px;border:2px solid #dec082;border-radius:20px;background:#fff9e9f7;color:#294737;box-shadow:0 18px 45px #001d2b99;max-height:66%;overflow:auto}.mj-overlay header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.mj-overlay h3{margin:0;font-size:17px}.mj-overlay .mj-close{border:0;background:transparent!important;color:#5a6658!important;padding:5px;font-size:12px;min-height:36px}.mj-action-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.mj-action-buttons button{flex:1 1 85px;min-height:48px;border-radius:11px;font-size:16px;background:#315c42;color:#fff6dd;border:1px solid #315c42;padding:9px}.mj-action-buttons .primary{background:#ba4a31;color:white;border-color:#a8432c}.mj-action-buttons .secondary{background:#ede8d5;color:#315139;border-color:#cfc9b2}.mj-action-buttons .mj-chi{display:flex;justify-content:center;align-items:center;gap:3px}.mj-action-buttons button:disabled{opacity:.48}.mj-overlay p{font-size:12px;line-height:1.65;margin:9px 0 0}.mj-open-controls{position:absolute;z-index:7;bottom:88px;left:50%;transform:translateX(-50%);border-radius:22px;background:#f9e0a3;color:#2b4a36;box-shadow:0 7px 18px #092d2b80;padding:12px 22px;white-space:nowrap}.mj-waiting{position:absolute;top:30%;left:20%;right:20%;text-align:center;line-height:1.8;color:#e5ecd6;font-size:14px}.mj-waiting b{font-size:21px;display:block;color:#f2ddb0}.mj-footer{display:flex;justify-content:space-between;gap:10px;margin:12px 0}.mj-footer button{font-size:12px;min-height:40px}.mj-rules,.mj-history{background:#fff8e9;border:1px solid #dccfac;border-radius:15px;padding:13px 16px;margin-top:13px;font-size:13px;line-height:1.8}.mj-rules summary,.mj-history summary{cursor:pointer;font-weight:800;color:#365442}.mj-history{background:#203e35;border-color:#61735a;color:#f7f1df}.mj-history summary{color:#f8e4ab}.mj-history-row{padding:10px 0;border-top:1px solid #ffffff22}.mj-history-row:first-child{border:0}.mj-history-row b{color:#f3d990}.mj-score{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:5px 0}.mj-score .positive{color:#d7eea6}.mj-score .negative{color:#f4b99b}.mj-empty{text-align:center;padding:30px;color:#718271}.mj-settings-panel input[type=number]{width:100%}.mj-settings-panel .section-save-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.mj-perf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.mj-perf-grid>div{padding:10px;border:1px solid #ded7c4;border-radius:10px;background:#faf6ec}.mj-perf-grid b{display:block;font-size:18px}.mj-perf-grid small{font-size:11px}.mj-admin-rooms{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.mj-admin-rooms button{font-size:12px}.mj-connection{color:#a9502b;font-size:12px}
@media(max-width:700px){.mj-lobby-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mj-table{height:570px;border-width:9px;border-radius:55px}.mj-heading h2{font-size:24px}.mj-hand{grid-template-columns:repeat(9,minmax(0,1fr));gap:5px 4px}.mj-hand .mj-tile{max-height:66px;min-height:48px}.mj-hand-zone{padding:13px 10px}.mj-hand .mj-rank{font-size:24px}.mj-hand .mj-suit{font-size:14px}.mj-seat.pos-1{right:5px;max-width:63px;padding:7px 5px}.mj-seat.pos-3{left:5px;max-width:63px;padding:7px 5px}.mj-seat.pos-1 b,.mj-seat.pos-3 b{max-width:52px;font-size:11px}.mj-river.pos-1{right:71px;width:50px}.mj-river.pos-3{left:71px;width:50px}.mj-river.pos-0,.mj-river.pos-2{width:145px}.mj-river .mj-tile.small{width:22px;height:31px}.mj-center{top:40%;width:92px;height:89px}.mj-center strong{font-size:18px}.mj-overlay{left:4%;right:4%;padding:13px;bottom:82px}.mj-perf-grid{grid-template-columns:1fr 1fr}}
@media(max-width:390px){.mj-lobby-grid{grid-template-columns:1fr}.mj-table{height:545px}.mj-river.pos-1{right:64px;width:44px}.mj-river.pos-3{left:64px;width:44px}.mj-river .mj-tile.small{width:20px;height:29px}.mj-hand .mj-rank{font-size:21px}.mj-hand .mj-suit{font-size:12px}.mj-facts{gap:5px}.mj-facts span{font-size:11px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){.mj-root *{transition:none!important;animation:none!important}}
.mj-mini-seats button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.mj-mini-seats button b{font-size:16px}.mj-mini-seats button span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.mj-heading{margin-top:6px}.mj-badge{font-size:10px}.mj-eyebrow{display:none}
@media(max-width:700px){.mj-lobby-grid{grid-template-columns:1fr;gap:10px}.mj-lobby-card{padding:11px 13px;border-radius:17px;box-shadow:0 4px 10px #173e3517}.mj-lobby-card h3{font-size:17px}.mj-lobby-card header small{font-size:11px}.mj-mini-seats{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0;gap:7px}.mj-mini-seats button{min-height:45px;padding:4px}.mj-mini-seats button b{font-size:15px}.mj-visit{min-height:34px;font-size:12px;padding:6px}.mj-facts{margin:8px 0 11px}.mj-heading h2{font-size:23px}}
.mj-table{scroll-margin-top:76px}.mj-public-toggle{position:absolute;z-index:4;top:17px;right:12px;padding:7px!important;font-size:10px!important;background:#193e30!important;color:#efe2bc!important;border:1px solid #c1a770;border-radius:8px}.mj-public-panel{position:absolute;z-index:8;inset:70px 15px 60px;overflow:auto;background:#fff9e9;color:#254737;border:2px solid #d1b573;border-radius:16px;padding:13px;box-shadow:0 10px 25px #102d2680}.mj-public-panel header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.mj-public-panel header button{background:transparent!important;color:#3f5948!important;font-size:12px;padding:8px}.mj-public-player{padding:5px 0;border-top:1px solid #dbd0b5;font-size:12px}.mj-public-player .mj-melds{margin:5px 0}.mj-public-player .mj-melds>span{padding:2px}
@media(max-width:700px){.mj-table{height:clamp(335px,calc(100svh - 360px),510px);border-radius:40px}.mj-table:before{inset:12px;border-radius:27px}.mj-seat.pos-2{top:9px}.mj-seat.pos-0{bottom:9px}.mj-seat.pos-1,.mj-seat.pos-3{top:35%}.mj-seat{padding:5px 8px}.mj-seat .mj-avatar{width:25px;height:25px;font-size:17px}.mj-river.pos-2{top:67px;max-height:45px}.mj-river.pos-0{bottom:63px;max-height:65px}.mj-river.pos-1,.mj-river.pos-3{top:52%;max-height:105px}.mj-center{top:41%;height:67px;width:79px}.mj-center strong{font-size:16px}.mj-center small{font-size:10px}.mj-clock{font-size:17px}.mj-overlay{bottom:61px;max-height:77%;padding:10px}.mj-overlay header{margin-bottom:6px;gap:5px}.mj-overlay h3{font-size:14px}.mj-overlay p{margin-top:5px;font-size:11px}.mj-overlay .mj-close{font-size:10px;padding:4px}.mj-action-buttons button{min-height:44px;font-size:14px;padding:7px}.mj-waiting{top:25%;font-size:12px}.mj-waiting b{font-size:17px}.mj-hand-zone{padding:10px 9px;margin-top:9px;border-radius:15px}.mj-hand-header{font-size:11px;margin-bottom:10px}.mj-hand-note{margin-top:7px;font-size:10px}.mj-hand .mj-tile{min-height:46px;max-height:55px}.mj-hand .mj-rank{font-size:22px}.mj-hand .mj-suit{font-size:12px}.mj-open-controls{bottom:65px;padding:10px 15px;font-size:12px}.mj-public-toggle{right:7px;top:10px;font-size:9px!important;padding:5px!important}.mj-hand-zone .mj-melds:empty{display:none}.mj-hand-zone .mj-melds:not(:empty){max-height:42px;overflow:auto;flex-wrap:nowrap}.mj-hand-zone .mj-melds>span{flex:none}}

.mj-process-details{margin:16px 0;overflow:auto}.mj-process-details table{width:100%;border-collapse:collapse;font-size:13px}.mj-process-details th,.mj-process-details td{text-align:left;padding:8px;border-bottom:1px solid #d9dece;white-space:nowrap}.mj-process-details p{font-size:12px;color:#52634f}

/* Table-specific rules and independent owner forms. */
.mj-table-facts{display:grid;gap:5px;margin:10px 0;color:#eee7dc;font-size:13px}.mj-table-facts strong{font-size:16px;color:#f5d69a}.mj-rule-values,.mj-tai-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mj-rule-values>span,.mj-tai-values>span{display:flex;justify-content:space-between;gap:8px;padding:7px;border-radius:6px;background:#ffffff0a}.mj-rule-values b,.mj-tai-values b{white-space:nowrap;color:#ffe2a9}.mj-lobby-card .mj-rules{margin:8px 0;font-size:12px}.mj-lobby-card .mj-rule-values{grid-template-columns:1fr}.mj-table-settings{margin:12px 0;border:1px solid #ddd;border-radius:10px;padding:12px}.mj-table-settings>summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer}.mj-table-settings>summary span{font-size:13px}.mj-table-settings form{margin-top:16px}.mj-table-settings .section-save-bar{position:static;margin-top:14px}.mj-table-settings .section-save-bar span{flex:1;min-width:0}@media(max-width:380px){.mj-rule-values{grid-template-columns:1fr}.mj-table-settings>summary{flex-wrap:wrap}}
.mj-root .mj-rules{color:#294737}.mj-root .mj-rule-values>span,.mj-root .mj-tai-values>span{background:#315c4209}.mj-root .mj-rule-values b,.mj-root .mj-tai-values b{color:#654715}
.mj-root .mj-table{height:490px;overflow:hidden}.mj-root .mj-seat.pos-2{top:14px}.mj-root .mj-seat.pos-0{bottom:14px}.mj-root .mj-seat.pos-1,.mj-root .mj-seat.pos-3{top:30%}.mj-root .mj-bubble{white-space:normal;min-width:64px;max-width:150px;text-align:center;overflow-wrap:anywhere}.mj-root .mj-seat.pos-2 .mj-bubble{bottom:auto;top:calc(100% + 5px)}.mj-root .mj-seat.pos-2 .mj-bubble:after{bottom:auto;top:-5px;border-top:0;border-bottom:6px solid #fffbeb}.mj-root .mj-seat.pos-1 .mj-bubble{left:auto;right:0;transform:none}.mj-root .mj-seat.pos-3 .mj-bubble{left:0;transform:none}.mj-root .mj-river{display:block;max-height:none;overflow:visible;width:166px;height:auto;text-align:center;z-index:1}.mj-river>small{display:block;font-size:10px;color:#dbe7c9;margin-bottom:4px}.mj-river>div{display:grid;grid-template-columns:repeat(6,24px);gap:3px;justify-content:center}.mj-root .mj-river .mj-tile.small{width:24px;height:34px;min-height:34px;flex:none;margin:0;padding:2px;border-bottom-width:3px}.mj-root .mj-river.pos-2{top:84px;bottom:auto}.mj-root .mj-river.pos-0{bottom:80px;top:auto}.mj-root .mj-river.pos-1,.mj-root .mj-river.pos-3{top:49%;width:78px;max-height:none}.mj-root .mj-river.pos-1{right:14px}.mj-root .mj-river.pos-3{left:14px}.mj-river.pos-1>div,.mj-river.pos-3>div{grid-template-columns:repeat(3,24px)}.mj-root .mj-center{top:44%;width:80px;height:70px;z-index:2}.mj-root .mj-public-toggle{top:auto;bottom:10px;right:10px;max-width:84px;white-space:normal}.mj-controls-dock{position:sticky;top:74px;z-index:12;scroll-margin-top:90px}.mj-controls-dock:empty{display:none}.mj-root .mj-controls-dock .mj-overlay{position:relative;inset:auto;max-height:42svh;overflow:auto;margin:10px 0 0;box-shadow:0 5px 16px #173d3033}.mj-root .mj-controls-dock .mj-open-controls{position:relative;inset:auto;transform:none;display:block;width:100%;margin:10px 0 0}.mj-all-discards{display:flex;flex-wrap:wrap;gap:4px}.mj-all-discards .mj-tile{flex:none}.mj-public-player p{margin:7px 0 4px}.mj-root .mj-hand-zone .mj-melds:not(:empty){max-height:none;overflow:visible;flex-wrap:wrap}.mj-footer{align-items:center;flex-wrap:wrap}.mj-footer span{font-size:12px;color:#53664f}.mj-seat-reminder{padding:12px;border:1px solid #c7ad72;background:#fff3d5;border-radius:12px;margin-bottom:12px}.mj-seat-reminder button{margin-left:8px}@media(max-width:700px){.mj-root .mj-table{height:440px;min-height:440px}.mj-root .mj-river.pos-2{top:72px}.mj-root .mj-river.pos-0{bottom:70px}.mj-root .mj-river.pos-1{right:6px}.mj-root .mj-river.pos-3{left:6px}.mj-root .mj-seat.pos-1,.mj-root .mj-seat.pos-3{top:29%}.mj-root .mj-center{width:74px;height:67px}.mj-root .mj-public-toggle{font-size:9px!important;bottom:5px;right:5px;max-width:65px}.mj-controls-dock{top:70px}.mj-root .mj-controls-dock .mj-overlay{max-height:40svh}.mj-root .mj-hand{scroll-margin-top:210px}}
.mj-root .mj-river.pos-1,.mj-root .mj-river.pos-3{top:53%}

/* 2026-09: human table matching and a readable, deliberate decision tray.
   Root specificity also overrides the older shared table-experience sheet. */
#mahjongRoot{--mj-ink:#203e32;--mj-hint:#f4ead1;--mj-accent:#a13e2e}
#mahjongRoot .mj-quick-start{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;margin:10px 0 14px;background:linear-gradient(115deg,#f8eed5,#e7efd9);border:1px solid #c8b275;border-radius:18px;box-shadow:0 5px 15px #173e350d}
#mahjongRoot .mj-quick-start b{font-size:19px;color:var(--mj-ink)}
#mahjongRoot .mj-quick-start p{font-size:13px;line-height:1.6;margin:6px 0 0;color:#526346}
#mahjongRoot .mj-quick-start>button{flex:none;min-height:48px;padding:12px 22px;background:#254f3b;color:#fff4d4;border:1px solid #173e2b;border-radius:12px;font-weight:800}
#mahjongRoot .mj-quick-start>button:disabled{opacity:.5;cursor:default}
#mahjongRoot .mj-lobby-card.recommended{border-color:#efcb77;box-shadow:0 0 0 2px #e4bd7433,0 7px 20px #173e3520}
#mahjongRoot .mj-recommended{display:inline-block;font:700 10px sans-serif;color:#263f2e;background:#f4d38b;border-radius:4px;padding:3px 5px;margin-left:6px;vertical-align:middle}
#mahjongRoot .mj-daily-task{display:flex;flex-wrap:wrap;gap:5px 14px;margin:0 0 14px;padding:10px 13px;border-left:3px solid #719857;background:#edf3e4;border-radius:0 9px 9px 0;font-size:12px;line-height:1.6}
#mahjongRoot .mj-daily-task b{color:#355b36}
#mahjongRoot .mj-beginner ol{padding-left:20px;margin:10px 0}
#mahjongRoot .mj-beginner li{margin:9px 0}
#mahjongRoot .mj-ready-count{font-size:12px;white-space:nowrap;color:#56674b}
#mahjongRoot .mj-turn-label{display:inline-block;background:#a13e2e;color:#fff8eb;padding:4px 7px;border-radius:6px;margin-right:6px;font-size:11px}
#mahjongRoot .mj-wait-action small{display:block;font-size:11px;line-height:1.5;margin-top:3px;color:#697458}
#mahjongRoot.mj-playing{padding-bottom:410px}
#mahjongRoot.mj-playing .mj-player-dock{display:flex;flex-direction:column;max-height:calc(100dvh - var(--safe-bottom,74px) - 130px);overflow:hidden;width:min(900px,calc(100% - 16px));border-radius:18px}
#mahjongRoot .mj-player-dock>[data-mj=hand]{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#mahjongRoot .mj-player-dock>.mj-controls-dock{flex:none;max-height:42dvh;overflow:auto}
#mahjongRoot .mj-hand-zone{padding:13px 12px 8px}
#mahjongRoot .mj-hand-header{font-size:12px;margin-bottom:13px;flex-wrap:wrap;gap:6px}
#mahjongRoot .mj-hand{grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:5px;min-height:0;padding-top:4px}
#mahjongRoot .mj-hand>.mj-tile{min-width:0;min-height:56px;max-height:76px;aspect-ratio:.69;border-bottom-width:4px;touch-action:manipulation}
#mahjongRoot .mj-hand>.mj-tile:disabled{opacity:1;cursor:default}
#mahjongRoot .mj-hand>.mj-tile.is-drawn{outline:2px solid #9b362f;outline-offset:1px}
#mahjongRoot .mj-hand>.mj-tile[aria-pressed=true]{transform:translateY(-6px);box-shadow:0 0 0 3px #c28b2c,0 6px 12px #55350e40;background:#fff0bb}
#mahjongRoot .mj-hand-help{font-size:11px;line-height:1.65;color:#536248;margin-top:9px;border-top:1px solid #e3d9bf;padding-top:5px}
#mahjongRoot .mj-hand-help summary{cursor:pointer;min-height:30px;display:list-item;align-content:center;font-weight:700}
#mahjongRoot .mj-hand-help p{margin:6px 0}
#mahjongRoot .mj-hand-help small{font-size:10px}
#mahjongRoot .mj-selected-preview{display:flex;align-items:center;gap:10px;padding:9px 10px;margin:0 0 10px;border-radius:11px;background:#fff9e9;border:1px solid #d9c697}
#mahjongRoot .mj-selected-preview>.mj-tile{width:34px;height:47px;flex:none}
#mahjongRoot .mj-selected-preview>span{flex:1;min-width:0;font-size:13px}
#mahjongRoot .mj-selected-preview small{display:block;font-size:11px;line-height:1.5;color:#58694d;margin-top:3px}
#mahjongRoot .mj-selected-preview>button{flex:none;font-size:11px;padding:7px;min-height:40px;background:transparent;color:#5e694d;border:1px solid #d0c4a2;border-radius:8px}
#mahjongRoot .mj-player-dock .mj-action-buttons>button{min-height:48px;min-width:72px;font-size:15px}
#mahjongRoot .mj-action-buttons button>small{display:block;font-size:10px;line-height:1.3;margin-top:3px;font-weight:400}
#mahjongRoot .mj-action-buttons .mj-chi{min-width:135px;padding-top:12px}
#mahjongRoot.mj-playing .mj-player-dock .mj-action-buttons>.mj-chi{min-width:135px;flex:1 1 135px}
#mahjongRoot .mj-chi .mj-tile.small{width:26px;height:36px;min-height:36px;flex:none}
#mahjongRoot .mj-tile.is-incoming{outline:2px solid #bd8a38;outline-offset:1px}
#mahjongRoot .mj-player-dock .mj-overlay .mj-pass-warning{font-size:12px;line-height:1.55;color:#8f3727;background:#fff2dc;border-left:3px solid #b75a38;padding:8px;border-radius:0 6px 6px 0}
#mahjongRoot .mj-player-dock .mj-overlay p{font-size:11px;line-height:1.5}
@media(max-width:700px){
 #mahjongRoot .mj-quick-start{align-items:stretch;flex-direction:column;gap:10px;padding:14px}
 #mahjongRoot .mj-quick-start>button{width:100%}
 #mahjongRoot .mj-lobby-card header{gap:8px;flex-wrap:wrap}
 #mahjongRoot .mj-mini-seats button{min-height:48px}
 #mahjongRoot .mj-hand{grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:11px 5px}
 #mahjongRoot .mj-hand>.mj-tile{height:56px;min-height:56px;max-height:56px}
 #mahjongRoot .mj-hand-zone{padding:11px 10px 6px}
 #mahjongRoot .mj-hand-header{font-size:11px}
 #mahjongRoot .mj-player-dock .mj-overlay{padding:9px}
 #mahjongRoot .mj-player-dock .mj-overlay header{align-items:flex-start}
 #mahjongRoot .mj-selected-preview{gap:7px;padding:7px;margin-bottom:8px}
 #mahjongRoot .mj-selected-preview small{display:none}
 #mahjongRoot .mj-selected-preview>button{font-size:10px;max-width:49px}
 #mahjongRoot .mj-ready-count{font-size:11px}
 #mahjongRoot.mj-playing{padding-bottom:480px}
}
@media(max-height:600px){
 #mahjongRoot.mj-playing .mj-player-dock{max-height:calc(100dvh - var(--safe-bottom,74px) - 82px)}
 #mahjongRoot .mj-player-dock>.mj-controls-dock{max-height:45dvh}
 #mahjongRoot .mj-selected-preview small{display:none}
}
@media(prefers-reduced-motion:reduce){#mahjongRoot .mj-hand>.mj-tile{transition:none}}

/* An active table reserves separate board and hand regions at every viewport. */
#mahjongRoot .mj-compact-cancel{display:none}
#mahjongRoot>[data-mj=orientation]{display:none}
#mahjongRoot .mj-orientation-hint{margin:5px 0 10px;font-size:12px;line-height:1.5;color:#426045}
#mahjongRoot .mj-last-empty{display:grid;place-items:center;width:37px;height:50px;border:1px dashed #d6c48766;border-radius:5px;color:#e1d0a2;font-size:18px}
.mj-guide-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:15px;border:2px solid #c7ac72;border-radius:18px;background:#fff9e9;color:#294737;overflow:auto}
.mj-guide-dialog::backdrop{background:#102a2bbf}
.mj-guide-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mj-guide-dialog>header button{min-height:40px;padding:8px 13px;background:#315c42;color:#fff8e9}
.mj-guide-dialog .mj-rule-values b,.mj-guide-dialog .mj-tai-values b{color:#654715}
.mj-guide-dialog .mj-rule-values>span,.mj-guide-dialog .mj-tai-values>span{background:#315c4209}
.mj-settlement[open] .mj-result-own{display:inline-flex;align-items:center;gap:7px;margin:8px 0 0;padding:5px 12px;border:1px solid #e5cd8c66;border-radius:20px;background:#ffffff12;color:#fff2c8;font-size:13px}
.mj-settlement[open] .mj-result-own strong{font-size:17px;font-variant-numeric:tabular-nums}
@media all{
 #mahjongRoot.mj-playing{position:fixed;inset:0;z-index:110;max-width:none;margin:0;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:38px auto minmax(0,1fr) auto;grid-template-areas:"toolbar" "message" "table" "dock";gap:6px;background:#f6f0e0;overflow:hidden}
 #mahjongRoot.mj-playing>.mj-heading,#mahjongRoot.mj-playing>[data-mj=facts],#mahjongRoot.mj-playing>[data-mj=ready],#mahjongRoot.mj-playing>[data-mj=rules],#mahjongRoot.mj-playing>[data-mj=history]{display:none}
 #mahjongRoot.mj-playing>[data-mj=footer]{grid-area:toolbar;align-self:center;min-width:0;margin-right:77px}
 #mahjongRoot.mj-playing .mj-footer{margin:0;gap:5px;flex-wrap:nowrap;justify-content:flex-start}
 #mahjongRoot.mj-playing .mj-footer>span{display:none}
 #mahjongRoot.mj-playing .mj-footer button{min-height:36px;padding:7px 9px;font-size:11px;white-space:nowrap}
 #mahjongRoot.mj-playing>[data-mj=sound]{grid-area:toolbar;justify-self:end;align-self:center;z-index:5}
 #mahjongRoot.mj-playing .mj-sound{position:relative;margin:0;padding:0;border:0;background:transparent;font-size:11px}
 #mahjongRoot.mj-playing .mj-sound summary{min-height:36px;align-content:center;padding:7px 4px}
 #mahjongRoot.mj-playing .mj-sound>div{position:absolute;right:0;top:37px;width:min(300px,80vw);padding:12px;background:#fff8e9;border:1px solid #c7ad72;border-radius:10px;box-shadow:0 5px 18px #173d3044}
 #mahjongRoot.mj-playing .mj-sound>p{display:none}
 #mahjongRoot.mj-playing>[data-mj=message]{grid-area:message;margin:0;min-height:0;max-height:64px;overflow:auto;font-size:11px;padding:0 4px}
 #mahjongRoot.mj-playing>[data-mj=main]{grid-area:table;min-width:0;min-height:0}
 #mahjongRoot.mj-playing .mj-table{height:100%;min-height:0;margin:0;border-radius:30px;border-width:7px;scroll-margin:0}
 #mahjongRoot.mj-playing .mj-center{top:45%;left:44%;height:65px;width:82px}
 #mahjongRoot.mj-playing .mj-last-discard{top:2px;left:calc(100% + 7px)}
 #mahjongRoot.mj-playing .mj-last-discard>.mj-tile,#mahjongRoot.mj-playing .mj-last-empty{width:31px;height:43px;min-height:43px}
 #mahjongRoot.mj-playing .mj-player-dock{grid-area:dock;position:static;inset:auto;transform:none;width:100%;max-height:60dvh;min-height:0;display:flex;flex-direction:column;align-items:stretch;border-radius:13px;box-shadow:0 3px 12px #173d301a}
 #mahjongRoot.mj-playing .mj-player-dock>[data-mj=hand]{width:100%;max-height:none;min-width:0;min-height:0;overflow:auto}
 #mahjongRoot.mj-playing .mj-player-dock>.mj-controls-dock{width:100%;max-height:35dvh;border-left:0;overflow:auto}
 #mahjongRoot.mj-playing .mj-hand-zone{padding:9px 10px 5px}
 #mahjongRoot.mj-playing .mj-hand-header{margin-bottom:8px;gap:4px;font-size:11px}
 #mahjongRoot.mj-playing .mj-hand-help{margin-top:4px;padding-top:0}
 #mahjongRoot.mj-playing .mj-hand-help summary{min-height:26px}
 #mahjongRoot.mj-playing .mj-selected-preview{display:none}
 #mahjongRoot.mj-playing .mj-compact-cancel{display:block;flex:0 0 60px;min-width:60px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-overlay{padding:8px 9px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-overlay header{margin-bottom:5px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-overlay h3{font-size:13px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-action-buttons>button{min-height:44px;font-size:14px}
 #mahjongRoot.mj-playing.mj-claiming .mj-hand-help{display:none}
 #mahjongRoot.mj-playing.mj-claiming .mj-hand-zone{padding-top:5px;padding-bottom:4px}
 #mahjongRoot.mj-playing.mj-claiming .mj-hand-header{margin-bottom:5px}
 #mahjongRoot.mj-playing.mj-claiming .mj-player-dock .mj-chi{padding:4px 3px}
 #mahjongRoot.mj-playing.mj-claiming .mj-player-dock .mj-pass-warning{font-size:11px;line-height:1.35;padding:4px 6px}
}
@media(max-width:700px) and (orientation:portrait){
 #mahjongRoot>[data-mj=orientation]{display:block}
 #mahjongRoot.mj-playing{grid-template-rows:38px auto auto minmax(0,1fr) auto;grid-template-areas:"toolbar" "orientation" "message" "table" "dock"}
 #mahjongRoot.mj-playing>[data-mj=orientation]{grid-area:orientation;min-height:0}
 #mahjongRoot.mj-playing .mj-orientation-hint{margin:0;font-size:11px}
}
@media(min-width:701px) and (min-height:501px){
 #mahjongRoot.mj-playing{padding:16px 20px;grid-template-columns:minmax(300px,1.3fr) minmax(0,1fr);grid-template-rows:42px auto minmax(0,1fr);grid-template-areas:"toolbar toolbar" "message message" "table dock";gap:10px 18px}
 #mahjongRoot.mj-playing>[data-mj=main]{height:min(100%,760px);align-self:center}
 #mahjongRoot.mj-playing .mj-table{border-radius:44px;border-width:10px}
 #mahjongRoot.mj-playing .mj-player-dock{align-self:center;max-height:100%;border-radius:18px}
 #mahjongRoot.mj-playing .mj-player-dock>[data-mj=hand]{flex:1 1 auto}
 #mahjongRoot.mj-playing .mj-player-dock>.mj-controls-dock{max-height:42dvh}
 #mahjongRoot.mj-playing .mj-hand-zone{padding:16px 14px 10px}
 #mahjongRoot.mj-playing .mj-hand-header{font-size:13px;margin-bottom:14px}
 #mahjongRoot.mj-playing .mj-hand{gap:10px 6px}
 #mahjongRoot.mj-playing .mj-hand-help{font-size:12px;margin-top:12px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-overlay{padding:13px 14px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-overlay h3{font-size:16px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-action-buttons>button{min-height:48px;font-size:16px}
 #mahjongRoot.mj-playing .mj-player-dock .mj-overlay p{font-size:12px}
 #mahjongRoot.mj-playing .mj-footer button{min-height:40px;font-size:13px;padding:8px 13px}
 #mahjongRoot.mj-playing .mj-center{width:102px;height:88px}
 #mahjongRoot.mj-playing .mj-center strong{font-size:20px}
 #mahjongRoot.mj-playing .mj-center small{font-size:12px}
 #mahjongRoot.mj-playing .mj-center .mj-clock{font-size:20px}
 #mahjongRoot.mj-playing .mj-last-discard{top:8px;left:calc(100% + 14px)}
 #mahjongRoot.mj-playing .mj-last-discard>.mj-tile,#mahjongRoot.mj-playing .mj-last-empty{width:37px;height:50px;min-height:50px}
}
@media(max-height:500px) and (min-width:600px){
 #mahjongRoot.mj-playing{grid-template-columns:minmax(260px,40%) minmax(0,1fr);grid-template-rows:36px auto minmax(0,1fr);grid-template-areas:"toolbar toolbar" "message message" "table dock";gap:6px 8px}
 #mahjongRoot.mj-playing .mj-player-dock{max-height:100%;height:100%;display:flex}
 #mahjongRoot.mj-playing .mj-player-dock>[data-mj=hand]{flex:1 1 auto;max-height:none}
 #mahjongRoot.mj-playing .mj-player-dock>.mj-controls-dock{max-height:52dvh;flex:none}
 #mahjongRoot.mj-playing .mj-player-dock .mj-close{display:none}
 #mahjongRoot.mj-playing.mj-claiming .mj-player-dock .mj-overlay{padding:6px 9px}
 #mahjongRoot.mj-playing.mj-claiming .mj-player-dock .mj-action-buttons>button{line-height:1.15;padding:4px 6px}
 #mahjongRoot.mj-playing.mj-claiming .mj-player-dock .mj-chi .mj-tile.small{height:34px;min-height:34px;width:24px}
 #mahjongRoot.mj-playing.mj-claiming .mj-turn-label{padding:2px 4px;line-height:1.3}
 #mahjongRoot.mj-playing .mj-hand{gap:7px 5px;grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
 #mahjongRoot.mj-playing .mj-hand>.mj-tile{height:56px;min-height:56px;max-height:56px}
 #mahjongRoot.mj-playing .mj-hand-header{font-size:10px;margin-bottom:8px}
 #mahjongRoot.mj-playing .mj-turn-label{font-size:10px;padding:3px 5px}
 #mahjongRoot.mj-playing .mj-hand-help summary{min-height:22px}
 #mahjongRoot.mj-playing .mj-table .mj-seat{padding:4px 6px}
 #mahjongRoot.mj-playing .mj-table .mj-seat.pos-1,#mahjongRoot.mj-playing .mj-table .mj-seat.pos-3{top:30%;max-width:67px}
 #mahjongRoot.mj-playing .mj-table .mj-seat b{font-size:11px;max-width:67px}
 #mahjongRoot.mj-playing .mj-table .mj-seat .mj-avatar{width:24px;height:24px;font-size:16px}
 #mahjongRoot.mj-playing .mj-table .mj-river.pos-2{top:63px}
 #mahjongRoot.mj-playing .mj-table .mj-river.pos-0{bottom:62px}
 #mahjongRoot.mj-playing .mj-table .mj-river.pos-1{right:7px}
 #mahjongRoot.mj-playing .mj-table .mj-river.pos-3{left:7px}
 #mahjongRoot.mj-playing .mj-table .mj-river .mj-tile.small{width:21px;height:29px;min-height:29px}
 #mahjongRoot.mj-playing .mj-table .mj-river>div{grid-template-columns:repeat(6,21px);gap:2px}
 #mahjongRoot.mj-playing .mj-table .mj-river.pos-1>div,#mahjongRoot.mj-playing .mj-table .mj-river.pos-3>div{grid-template-columns:repeat(3,21px)}
 #mahjongRoot.mj-playing .mj-table .mj-center{top:44%;left:44%}
 #mahjongRoot.mj-playing .mj-table .mj-center strong{font-size:15px}
 #mahjongRoot.mj-playing .mj-table .mj-center small{font-size:9px}
 #mahjongRoot.mj-playing .mj-table .mj-center .mj-clock{font-size:16px}
 #mahjongRoot.mj-playing .mj-player-dock.is-collapsed{height:auto;align-self:end}
}

/* Shared table stage. Mobile portrait composition is defined in mobile-tables.css. */
#mahjongRoot.mj-root.mj-landscape{
 --mj-stage-w:100dvw;--mj-stage-h:100dvh;--mj-tile-h:clamp(48px,16dvh,80px);
 position:fixed;inset:0;z-index:120;width:var(--mj-stage-w);height:var(--mj-stage-h);max-width:none;
 margin:0;padding:6px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));
 display:flex;flex-direction:column;gap:6px;overflow:hidden;isolation:isolate;
 background:radial-gradient(ellipse at 45% 0,#285847,#102e28 75%);color:#fff1cf;
 font-family:system-ui,-apple-system,'Noto Sans TC',sans-serif;overscroll-behavior:none;
}
#mahjongRoot.mj-root.mj-landscape button{font-family:inherit;cursor:pointer;touch-action:manipulation;transition:background .12s,box-shadow .12s;line-height:1.25}
#mahjongRoot.mj-root.mj-landscape button:disabled{cursor:default}
#mahjongRoot.mj-root.mj-landscape button:focus-visible{outline:3px solid #ffd97e;outline-offset:2px}
#mahjongRoot.mj-root.mj-landscape .mj-topbar{height:38px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}
#mahjongRoot.mj-root.mj-landscape .mj-topbar>[data-mj=footer]{margin:0;min-width:0;flex:0 1 auto}
#mahjongRoot.mj-root.mj-landscape .mj-footer{display:flex;gap:6px;margin:0;flex-wrap:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-footer button{min-height:34px;padding:6px 10px;border:1px solid #b5c8ae4d;border-radius:8px;background:#ffffff0d;color:#f7e8c8;font-size:12px;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-heading{display:flex;gap:9px;align-items:center;margin:0;min-width:0}
#mahjongRoot.mj-root.mj-landscape .mj-heading h2{font:700 19px Georgia,'Noto Serif TC',serif;color:#ffe0a4;margin:0;white-space:nowrap;letter-spacing:.06em}
#mahjongRoot.mj-root.mj-landscape .mj-badge{padding:3px 7px;font-size:10px;background:transparent;border-color:#a6c0a44d}
#mahjongRoot.mj-root.mj-landscape .mj-sound{position:relative;margin:0;padding:0;border:0;background:transparent;color:#dedfc9;font-size:11px}
#mahjongRoot.mj-root.mj-landscape .mj-sound summary{min-height:34px;align-content:center;cursor:pointer;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-sound>div{position:absolute;z-index:20;right:0;top:36px;width:270px;padding:14px;background:#fff6e0;color:#244c3b;border:1px solid #d1b778;border-radius:12px;box-shadow:0 12px 30px #061b2999}
#mahjongRoot.mj-root.mj-landscape .mj-sound>p{display:none}
#mahjongRoot.mj-root.mj-landscape>[data-mj=message]{position:absolute;z-index:25;top:47px;left:50%;transform:translateX(-50%);width:max-content;max-width:80%;max-height:80px;overflow:auto;pointer-events:none;margin:0;padding:8px 14px;background:#fff7dc;color:#244b39;border-radius:10px;box-shadow:0 3px 15px #061e3266;font-size:12px}
#mahjongRoot.mj-root.mj-landscape>[data-mj=message]:empty{display:none}
#mahjongRoot.mj-root.mj-landscape>[data-mj=message][data-error=true]{background:#ffefdf;color:#9c361d}
#mahjongRoot.mj-root.mj-landscape>[data-mj=orientation]{display:none}
#mahjongRoot.mj-root.mj-landscape .mj-layout{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-width:0;min-height:0;gap:14px}
#mahjongRoot.mj-root.mj-landscape .mj-layout>[data-mj=main]{min-width:0;min-height:0;height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#b9b381 transparent}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar{display:none;min-width:0;min-height:0;overflow:auto;padding:0 2px 2px}
#mahjongRoot.mj-root.mj-landscape.mj-at-table:not(.mj-playing) .mj-layout{grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr)}
#mahjongRoot.mj-root.mj-landscape.mj-at-table:not(.mj-playing) .mj-table-sidebar{display:block}
#mahjongRoot.mj-root.mj-landscape.mj-playing .mj-layout>[data-mj=main]{overflow:hidden}
#mahjongRoot.mj-root.mj-landscape .mj-facts{margin:0 0 8px;gap:5px}
#mahjongRoot.mj-root.mj-landscape .mj-facts>span{font-size:11px;padding:6px 8px;border-color:#9caa7b55;background:#ffffff0a;color:#e9e8ce}
#mahjongRoot.mj-root.mj-landscape .mj-quick-start{margin:2px 0 9px;padding:12px 16px;min-height:65px;border-radius:13px;border:1px solid #b1c99b66;background:linear-gradient(105deg,#f8edce,#e6edd7);flex-direction:row;align-items:center;gap:16px}
#mahjongRoot.mj-root.mj-landscape .mj-quick-start b{font-size:19px}
#mahjongRoot.mj-root.mj-landscape .mj-quick-start p{font-size:12px;margin:4px 0 0;line-height:1.5}
#mahjongRoot.mj-root.mj-landscape .mj-quick-start>button{width:auto;min-height:43px;padding:9px 20px;border-radius:9px;background:#a54c2d;border-color:#903c21;box-shadow:0 3px 0 #71351c;color:#fff8e6}
#mahjongRoot.mj-root.mj-landscape .mj-daily-task{margin:0 0 9px;padding:5px 10px;border-color:#e8be73;background:#ffffff09;color:#c4d4bd;font-size:11px;border-radius:0 5px 5px 0}
#mahjongRoot.mj-root.mj-landscape .mj-daily-task b{color:#f7dea6}
#mahjongRoot.mj-root.mj-landscape .mj-lobby-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#mahjongRoot.mj-root.mj-landscape .mj-lobby-card{border:1px solid #899d705e;border-radius:14px;padding:13px;background:linear-gradient(155deg,#315e49,#183e31);box-shadow:none}
#mahjongRoot.mj-root.mj-landscape .mj-lobby-card.recommended{border-color:#e9c77c;background:linear-gradient(145deg,#476b4b,#214432);box-shadow:inset 0 2px 0 #e9c77c}
#mahjongRoot.mj-root.mj-landscape .mj-lobby-card header{gap:6px;flex-wrap:wrap}
#mahjongRoot.mj-root.mj-landscape .mj-lobby-card h3{font-size:17px}
#mahjongRoot.mj-root.mj-landscape .mj-lobby-card header small{font-size:10px}
#mahjongRoot.mj-root.mj-landscape .mj-table-facts{font-size:11px;gap:4px;margin:9px 0}
#mahjongRoot.mj-root.mj-landscape .mj-table-facts strong{font-size:13px;color:#f4d48c}
#mahjongRoot.mj-root.mj-landscape .mj-mini-seats{grid-template-columns:repeat(4,minmax(0,1fr));margin:9px 0;gap:5px}
#mahjongRoot.mj-root.mj-landscape .mj-mini-seats button{padding:4px;min-height:45px;border-radius:8px}
#mahjongRoot.mj-root.mj-landscape .mj-mini-seats button b{font-size:15px}
#mahjongRoot.mj-root.mj-landscape .mj-mini-seats button span{font-size:10px}
#mahjongRoot.mj-root.mj-landscape .mj-lobby-card .mj-rules{font-size:11px;padding:7px 9px;margin:8px 0;border-radius:8px}
#mahjongRoot.mj-root.mj-landscape .mj-visit{min-height:36px;padding:6px;font-size:12px;border-radius:8px}
#mahjongRoot.mj-root.mj-landscape .mj-table{height:100%;min-height:0;margin:0;border:6px solid #927347;border-radius:25px;background:radial-gradient(ellipse at 50% 35%,#367754,#1b563d 62%,#153d2e);box-shadow:inset 0 0 0 2px #c5ad6b,inset 0 0 60px #051e2270,0 3px 8px #091a2333;scroll-margin:0}
#mahjongRoot.mj-root.mj-landscape .mj-table:before{inset:13px;border-radius:15px;border-color:#c3b76c33}
#mahjongRoot.mj-root.mj-landscape .mj-seat{border-radius:10px;max-width:150px;padding:5px 9px;gap:6px;background:#12382ff2;border-color:#b2bf8b66;box-shadow:0 3px 10px #082d2440}
#mahjongRoot.mj-root.mj-landscape .mj-seat b{font-size:12px;max-width:90px}
#mahjongRoot.mj-root.mj-landscape .mj-seat small{font-size:10px;margin-top:2px}
#mahjongRoot.mj-root.mj-landscape .mj-seat .mj-avatar{width:27px;height:27px;font-size:19px}
#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-2{top:7px}
#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-0{bottom:7px}
#mahjongRoot.mj-root.mj-landscape.mj-playing .mj-seat.pos-0{display:none}
#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-1,#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-3{top:50%;transform:translateY(-50%);flex-direction:column;max-width:92px;min-width:68px;padding:7px}
#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-1{right:10px}
#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-3{left:10px}
#mahjongRoot.mj-root.mj-landscape .mj-seat.is-turn{background:#315e3b;border-color:#f5d180;box-shadow:0 0 0 2px #ecc666,0 0 18px #dec96f33}
#mahjongRoot.mj-root.mj-landscape .mj-seat.me{color:#1d4334;background:#f7e7b9}
#mahjongRoot.mj-root.mj-landscape .mj-center{top:55%;left:50%;width:204px;height:81px;display:grid;grid-template-columns:minmax(0,1fr) 55px;grid-template-rows:23px 19px 27px;align-content:center;padding:5px 10px;border-radius:12px;background:#0c352ad6;border-color:#cfb57477;box-shadow:none}
#mahjongRoot.mj-root.mj-landscape .mj-center strong{grid-column:1;font-size:17px;line-height:1.2}
#mahjongRoot.mj-root.mj-landscape .mj-center>small{grid-column:1;font-size:10px;margin:0;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-center .mj-clock{grid-column:1;font-size:20px;line-height:1.2}
#mahjongRoot.mj-root.mj-landscape .mj-last-discard{position:static;grid-column:2;grid-row:1/4;display:flex;flex-direction:column;align-items:center;gap:3px;width:auto}
#mahjongRoot.mj-root.mj-landscape .mj-last-discard>.mj-tile,#mahjongRoot.mj-root.mj-landscape .mj-last-empty{width:39px;height:54px;min-height:54px;flex:none}
#mahjongRoot.mj-root.mj-landscape .mj-last-discard>small{font-size:9px;margin:0;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-river{max-height:66px;width:145px;overflow:auto;gap:2px}
#mahjongRoot.mj-root.mj-landscape .mj-river>small{font-size:9px;width:100%;text-align:center;opacity:.75}
#mahjongRoot.mj-root.mj-landscape .mj-river>div{display:grid;grid-template-columns:repeat(6,21px);gap:2px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-2{top:9px;left:calc(50% + 155px);transform:translateX(-50%)}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-0{bottom:7px;left:calc(50% - 155px);transform:translateX(-50%)}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-1,#mahjongRoot.mj-root.mj-landscape .mj-river.pos-3{top:50%;transform:translateY(-50%);width:69px;max-height:104px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-1{right:111px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-3{left:111px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-1>div,#mahjongRoot.mj-root.mj-landscape .mj-river.pos-3>div{grid-template-columns:repeat(3,21px)}
#mahjongRoot.mj-root.mj-landscape .mj-river .mj-tile.small{width:21px;height:29px;min-height:29px}
#mahjongRoot.mj-root.mj-landscape .mj-waiting{top:50%;left:20%;right:20%;transform:translateY(-50%);font-size:12px;line-height:1.8}
#mahjongRoot.mj-root.mj-landscape .mj-waiting b{font-size:19px;margin-bottom:5px}
#mahjongRoot.mj-root.mj-landscape .mj-public-toggle{top:7px;bottom:auto;right:9px;width:auto;max-width:none;min-height:28px;white-space:nowrap;padding:6px 9px!important;font-size:10px!important;border-radius:7px;background:#0a3029dd!important}
#mahjongRoot.mj-root.mj-landscape .mj-public-panel{inset:6px;z-index:10;padding:10px 14px;border-radius:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
#mahjongRoot.mj-root.mj-landscape .mj-public-panel>header{grid-column:1/-1;margin:0;position:sticky;top:-10px;z-index:1;background:#fff9e9}
#mahjongRoot.mj-root.mj-landscape .mj-public-player{min-width:0}
#mahjongRoot.mj-root.mj-landscape .mj-player-dock{display:none;position:static;inset:auto;transform:none;align-self:stretch;width:100%;max-height:none;height:auto;min-height:0;flex:none;padding:0;border:1px solid #c5ad6b66;border-radius:13px;box-shadow:0 3px 12px #061f2a22;background:linear-gradient(#fdf2d8,#e5d5ad);overflow:visible;color:#244637}
#mahjongRoot.mj-root.mj-landscape.mj-playing .mj-player-dock{display:flex;flex-direction:column}
#mahjongRoot.mj-root.mj-landscape .mj-player-dock.is-collapsed{height:auto;max-height:none}
#mahjongRoot.mj-root.mj-landscape .mj-player-dock.is-collapsed>[data-mj=hand]{display:block}
#mahjongRoot.mj-root.mj-landscape .mj-player-dock>[data-mj=hand]{flex:none;width:100%;max-height:none;min-height:0;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-player-dock>.mj-controls-dock{flex:0 0 68px;width:100%;height:68px;min-height:68px;max-height:none;overflow:visible;border:0;background:#fff8e74d;display:flex;align-items:center}
#mahjongRoot.mj-root.mj-landscape .mj-controls-dock>.mj-overlay,#mahjongRoot.mj-root.mj-landscape .mj-controls-dock>.mj-wait-action{width:100%}
#mahjongRoot.mj-root.mj-landscape .mj-overlay{position:static;inset:auto;margin:0;padding:6px 10px 4px;border:0;border-radius:12px;background:transparent;box-shadow:none;max-height:none;overflow:visible;display:grid;grid-template-columns:130px minmax(0,1fr);gap:2px 10px;align-items:center}
#mahjongRoot.mj-root.mj-landscape .mj-overlay header{margin:0;display:flex;align-items:center;gap:9px;min-width:0}
#mahjongRoot.mj-root.mj-landscape .mj-overlay h3{font-size:12px;line-height:1.5;white-space:nowrap;margin:0}
#mahjongRoot.mj-root.mj-landscape .mj-action-focus [data-mj-clock]{color:#a9472c;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
#mahjongRoot.mj-root.mj-landscape .mj-action-focus>.mj-tile{height:44px;min-height:44px;width:31px;flex:none}
#mahjongRoot.mj-root.mj-landscape .mj-turn-marker{display:grid;place-items:center;width:33px;height:38px;background:#a9472c;color:#fff4d5;border-radius:9px;font:700 22px Georgia,serif;flex:none}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons{display:flex;gap:6px;flex-wrap:nowrap;align-items:stretch;justify-content:flex-end;min-width:0}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>button{flex:0 1 auto;min-width:54px;min-height:44px;padding:5px 13px;border:1px solid #b5b88d;border-radius:9px;font-size:14px;box-shadow:0 2px 0 #223d3a20}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-confirm-discard{min-width:190px;background:#a8442b;border-color:#963722;color:#fffaf0;font-size:17px;letter-spacing:.03em}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-confirm-discard:disabled{background:#b3b59d;border-color:#a4ab91;color:#fdf9e9;opacity:1}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-compact-cancel{display:block;flex:0 0 58px;min-width:58px;background:#f0ead8;color:#3a5843}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move{display:flex;align-items:center;justify-content:center;gap:5px;padding:4px 8px;min-width:60px;border:0;color:#fff9e8}
#mahjongRoot.mj-root.mj-landscape .mj-move>b{font:800 24px Georgia,'Noto Serif TC',serif;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-move>small{font-size:9px;line-height:1.4;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-hu{order:-2;background:#b8412c;box-shadow:0 2px 0 #7f2e20,inset 0 0 0 1px #ffcf8577;min-width:68px}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-pung{background:#31677d}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-kong{background:#735076}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-chi{background:#386b44;min-width:104px;flex:0 1 auto}
#mahjongRoot.mj-root.mj-landscape .mj-move-tiles{display:flex;gap:2px;align-items:center}
#mahjongRoot.mj-root.mj-landscape .mj-move-tiles .mj-tile.small{width:21px;height:31px;min-height:31px;flex:none}
#mahjongRoot.mj-root.mj-landscape .mj-move-tiles .mj-drawn{top:-7px;right:-1px;font-size:7px;padding:1px 2px}
#mahjongRoot.mj-root.mj-landscape .mj-move-pung>small{display:none}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-pass{order:5;box-shadow:none;background:#ede7d4;color:#4c6351;min-width:52px}
#mahjongRoot.mj-root.mj-landscape .mj-overlay>p{grid-column:1/-1;margin:0;text-align:right;font-size:10px;line-height:1.4;color:#637053}
#mahjongRoot.mj-root.mj-landscape .mj-overlay>.mj-pass-warning{padding:0;border:0;background:none;color:#a4412b;font-size:10px;line-height:1.4}
#mahjongRoot.mj-root.mj-landscape .mj-overlay.mj-sending .mj-action-focus{opacity:.75}
#mahjongRoot.mj-root.mj-landscape .mj-wait-action{display:flex;align-items:center;gap:10px;min-height:54px;padding:6px 12px;background:transparent;color:#375941}
#mahjongRoot.mj-root.mj-landscape .mj-wait-action>span:nth-child(2){font-size:13px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mahjongRoot.mj-root.mj-landscape .mj-wait-action small{font-size:10px;margin:2px 0 0}
#mahjongRoot.mj-root.mj-landscape .mj-wait-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#8b9d67;box-shadow:0 0 0 4px #8b9d6722}
#mahjongRoot.mj-root.mj-landscape .mj-wait-clock{font-size:17px;font-weight:700;color:#607454;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-wait-action button{min-height:34px;padding:6px 10px;font-size:11px;background:#eee8d5;color:#37563e;border:1px solid #c5c8a5;border-radius:8px}
#mahjongRoot.mj-root.mj-landscape .mj-hand-zone{position:relative;margin:0;padding:4px 10px 8px;border:0;border-top:1px solid #c2ac7866;border-radius:0 0 13px 13px;background:transparent;box-shadow:none;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-hand-header{margin:0 0 7px;min-height:25px;gap:8px;font-size:10px;line-height:1.4;flex-wrap:nowrap;color:#617456}
#mahjongRoot.mj-root.mj-landscape .mj-hand-header strong{font-size:11px;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-turn-label{padding:2px 5px;border-radius:4px;font-size:9px;line-height:1.4;margin-right:5px;background:#a9462c}
#mahjongRoot.mj-root.mj-landscape .mj-hand{display:grid;grid-template-columns:repeat(var(--mj-count,17),minmax(0,1fr));gap:4px;min-height:0;padding:4px 0 0;max-width:calc(var(--mj-count,17) * 60px);margin:auto;align-items:end;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-hand>.mj-tile{height:var(--mj-tile-h);min-height:var(--mj-tile-h);max-height:var(--mj-tile-h);width:100%;min-width:0;aspect-ratio:auto;border-radius:5px;border-bottom-width:5px;transition:transform .09s,box-shadow .09s;background:linear-gradient(110deg,#fffff6,#f2ebd2);color:#214c39;box-shadow:0 3px 3px #352e2033}
#mahjongRoot.mj-root.mj-landscape .mj-hand>.mj-tile .mj-tile-face{height:100%;max-width:100%}
#mahjongRoot.mj-root.mj-landscape .mj-hand>.mj-tile[aria-pressed=true]{transform:translateY(-6px);background:#fff0b3;box-shadow:0 0 0 2px #ae7d20,0 7px 8px #352e2040;z-index:2}
#mahjongRoot.mj-root.mj-landscape .mj-hand>.mj-tile.is-drawn{outline:1px solid #ae7840;outline-offset:1px;margin-left:3px;width:calc(100% - 3px)}
#mahjongRoot.mj-root.mj-landscape .mj-hand>.mj-tile:disabled{opacity:1;cursor:default}
#mahjongRoot.mj-root.mj-landscape .mj-hand .mj-drawn{font-size:8px;top:-7px;right:0;padding:1px 4px}
#mahjongRoot.mj-root.mj-landscape .mj-hand-note{position:absolute;right:10px;top:3px;font-size:10px;margin:0;background:#eee0bd}
#mahjongRoot.mj-root.mj-landscape .mj-own-exposed{position:static;flex:1;display:flex;justify-content:center;min-width:0;max-width:none;pointer-events:none}
#mahjongRoot.mj-root.mj-landscape .mj-own-exposed .mj-melds{flex-wrap:nowrap;margin:0;gap:5px;max-height:none;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-own-exposed .mj-melds>span{padding:2px;background:#102e28b3}
#mahjongRoot.mj-root.mj-landscape .mj-own-exposed .mj-tile.small{width:18px;height:25px;min-height:25px}
#mahjongRoot.mj-root.mj-landscape .mj-bubble{top:4px;bottom:auto;left:calc(100% + 7px);transform:none;padding:5px 7px;font-size:11px;max-width:130px;white-space:nowrap}
#mahjongRoot.mj-root.mj-landscape .mj-bubble:after{display:none}
#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-1 .mj-bubble{left:auto;right:calc(100% + 7px)}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-overlay{display:block;background:#fff6df;padding:12px;border:1px solid #c1ab73;border-radius:12px}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-overlay header{display:block;margin-bottom:10px}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-overlay h3{font-size:15px;white-space:normal;margin-bottom:7px}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-ready-count{font-size:12px;color:#607451}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-action-buttons button{width:100%;flex:1;min-height:44px;background:#a94a2b;color:#fff9e9;border:0;font-size:14px}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-overlay p{font-size:11px;text-align:left;line-height:1.7;margin-top:9px}
#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-rules,#mahjongRoot.mj-root.mj-landscape .mj-table-sidebar .mj-history{font-size:11px;padding:8px 10px;border-radius:9px;margin-top:9px}
.mj-guide-dialog{max-width:none;width:min(720px,calc(100dvw - 30px));max-height:calc(100dvh - 24px);font-size:13px}
.mj-guide-dialog .mj-hand-help{font-size:14px;line-height:1.8}
.mj-settlement[open]{max-width:none;width:min(850px,calc(100dvw - 24px));max-height:calc(100dvh - 18px)}
@media(max-height:450px) and (orientation:landscape),(max-width:450px) and (orientation:portrait){
 #mahjongRoot.mj-root.mj-landscape .mj-topbar{height:32px;gap:8px}
 #mahjongRoot.mj-root.mj-landscape .mj-heading h2{font-size:16px}
 #mahjongRoot.mj-root.mj-landscape .mj-badge{display:none}
 #mahjongRoot.mj-root.mj-landscape .mj-footer button{min-height:31px;padding:5px 8px;font-size:11px}
 #mahjongRoot.mj-root.mj-landscape .mj-overlay{grid-template-columns:116px minmax(0,1fr);gap:2px 6px;padding:4px 9px 3px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>button{padding:4px 8px;min-height:43px;font-size:13px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-confirm-discard{min-width:175px;font-size:16px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move{padding:3px 6px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-chi{min-width:98px}
 #mahjongRoot.mj-root.mj-landscape .mj-move>b{font-size:22px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-pung .mj-move-tiles{display:none}
 #mahjongRoot.mj-root.mj-landscape .mj-hand-header{margin-bottom:5px}
 #mahjongRoot.mj-root.mj-landscape .mj-hand-zone{padding:3px 9px 6px}
 #mahjongRoot.mj-root.mj-landscape .mj-center{top:70%;height:66px;grid-template-rows:19px 15px 22px}
 #mahjongRoot.mj-root.mj-landscape .mj-center .mj-last-discard>.mj-tile,#mahjongRoot.mj-root.mj-landscape .mj-center .mj-last-empty{height:48px;min-height:48px;width:35px}
 #mahjongRoot.mj-root.mj-landscape .mj-seat.pos-1,#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-3{top:60%}
 #mahjongRoot.mj-root.mj-landscape .mj-center strong{font-size:16px}
 #mahjongRoot.mj-root.mj-landscape .mj-wait-action{min-height:50px}
}
@media(max-width:740px) and (orientation:landscape),(max-height:740px) and (orientation:portrait){
 #mahjongRoot.mj-root.mj-landscape .mj-overlay{grid-template-columns:103px minmax(0,1fr);gap:2px 4px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-focus{gap:5px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-focus h3{font-size:11px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons{gap:4px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move{min-width:40px;padding:3px 4px;gap:3px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-hu{min-width:46px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-chi{min-width:87px}
 #mahjongRoot.mj-root.mj-landscape .mj-action-buttons>.mj-move-pass{min-width:44px;padding:4px 6px}
 #mahjongRoot.mj-root.mj-landscape .mj-move>b{font-size:19px}
 #mahjongRoot.mj-root.mj-landscape .mj-move>small{display:none}
 #mahjongRoot.mj-root.mj-landscape .mj-move-tiles .mj-tile.small{width:18px;height:28px;min-height:28px}
 #mahjongRoot.mj-root.mj-landscape .mj-hand{gap:2px}
 #mahjongRoot.mj-root.mj-landscape .mj-heading h2{font-size:14px}
 #mahjongRoot.mj-root.mj-landscape .mj-center{width:170px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-1{right:95px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-3{left:95px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-2{left:calc(50% + 124px);max-width:110px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-0{left:calc(50% - 124px);max-width:110px}
 #mahjongRoot.mj-root.mj-landscape>[data-mj=orientation]{display:none}
}
@media(prefers-reduced-motion:reduce){#mahjongRoot.mj-root.mj-landscape *{transition:none!important;animation:none!important}}

/* The stage has explicit rows. Legacy fixed/percentage hand trays must not
   compete with the table's available height or squeeze its contents. */
#mahjongRoot.mj-root.mj-landscape{
 --mj-tile-h:clamp(46px,calc(var(--mj-stage-h) * .16),76px);
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:38px minmax(0,1fr) auto;
 grid-template-areas:"toolbar" "table" "dock";gap:8px;padding:8px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));
}
#mahjongRoot.mj-root.mj-landscape>.mj-topbar{grid-area:toolbar;height:auto;min-height:0}
#mahjongRoot.mj-root.mj-landscape>.mj-layout{grid-area:table;height:100%;min-height:0;align-self:stretch}
#mahjongRoot.mj-root.mj-landscape>.mj-player-dock{grid-area:dock;position:static;height:auto;min-height:0;max-height:none;align-self:stretch;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-layout>[data-mj=main]{height:100%;max-height:none;align-self:stretch;min-height:0}
#mahjongRoot.mj-root.mj-landscape .mj-table{height:100%;min-height:0;max-height:none}
#mahjongRoot.mj-root.mj-landscape .mj-player-dock>.mj-controls-dock{position:static;top:auto;flex:none;height:auto;min-height:58px;max-height:none;padding:2px 0;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-player-dock>[data-mj=hand]{flex:none;max-height:none;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-hand-zone{padding:3px 10px 8px;max-height:none;overflow:visible}
#mahjongRoot.mj-root.mj-landscape .mj-hand-header{min-height:22px;margin-bottom:5px}
#mahjongRoot.mj-root.mj-landscape .mj-hand{max-width:calc(var(--mj-count,17) * 52px);gap:3px}
#mahjongRoot.mj-root.mj-landscape .mj-hand>.mj-tile{flex:none;min-height:var(--mj-tile-h);max-height:var(--mj-tile-h);height:var(--mj-tile-h)}
#mahjongRoot.mj-root.mj-landscape .mj-overlay{position:relative;grid-template-columns:130px minmax(0,1fr);padding:5px 10px;gap:3px 10px}
#mahjongRoot.mj-root.mj-landscape .mj-action-buttons{flex-wrap:wrap;justify-content:flex-end;gap:5px}
#mahjongRoot.mj-root.mj-landscape .mj-overlay>p{min-height:14px;line-height:1.3}
#mahjongRoot.mj-root.mj-landscape .mj-chi-options{position:absolute;z-index:15;bottom:calc(100% + 6px);left:8px;right:8px;display:flex;justify-content:center;gap:8px;padding:9px;background:#fff5d8;border:1px solid #c2a96a;border-radius:12px;box-shadow:0 5px 15px #061e2680}
#mahjongRoot.mj-root.mj-landscape .mj-chi-options[hidden]{display:none}
#mahjongRoot.mj-root.mj-landscape .mj-chi-options>button{display:flex;align-items:center;gap:5px;min-height:44px;min-width:0;padding:5px 10px;background:#315c42;color:#fff8e6;border-radius:8px;border:1px solid #8ba175}
#mahjongRoot.mj-root.mj-landscape .mj-chi-options .mj-move-tiles{display:flex;gap:2px}
#mahjongRoot.mj-root.mj-landscape .mj-choose-chi>small{display:block}
#mahjongRoot.mj-root.mj-landscape .mj-river{max-height:96px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-2{top:65px;left:50%;width:145px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-0{bottom:12px;left:50%;width:145px}
#mahjongRoot.mj-root.mj-landscape .mj-center{top:52%;left:50%}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-1,#mahjongRoot.mj-root.mj-landscape .mj-river.pos-3{top:50%;max-height:110px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-1{right:105px}
#mahjongRoot.mj-root.mj-landscape .mj-river.pos-3{left:105px}
@media(max-height:500px) and (orientation:landscape),(max-width:500px) and (orientation:portrait){
 #mahjongRoot.mj-root.mj-landscape{grid-template-rows:30px minmax(0,1fr) auto;gap:5px;padding:5px max(9px,env(safe-area-inset-right)) 6px max(9px,env(safe-area-inset-left))}
 #mahjongRoot.mj-root.mj-landscape .mj-topbar{height:30px}
 #mahjongRoot.mj-root.mj-landscape .mj-player-dock>.mj-controls-dock{min-height:54px;padding:0}
 #mahjongRoot.mj-root.mj-landscape .mj-hand-zone{padding:2px 8px 5px}
 #mahjongRoot.mj-root.mj-landscape .mj-hand-header{min-height:20px;margin-bottom:3px;font-size:9px}
 #mahjongRoot.mj-root.mj-landscape .mj-overlay{grid-template-columns:110px minmax(0,1fr);gap:2px 5px;padding:3px 8px}
 #mahjongRoot.mj-root.mj-landscape .mj-overlay>p{font-size:9px;min-height:12px}
 #mahjongRoot.mj-root.mj-landscape .mj-center{top:54%;width:174px;height:64px;grid-template-rows:18px 15px 22px;padding:3px 8px}
 #mahjongRoot.mj-root.mj-landscape .mj-center .mj-last-discard>.mj-tile,#mahjongRoot.mj-root.mj-landscape .mj-center .mj-last-empty{height:43px;min-height:43px;width:31px}
 #mahjongRoot.mj-root.mj-landscape .mj-seat.pos-1,#mahjongRoot.mj-root.mj-landscape .mj-seat.pos-3{top:50%;min-width:60px;max-width:75px;padding:4px}
 #mahjongRoot.mj-root.mj-landscape .mj-seat.pos-2{top:5px;padding:3px 7px}
 #mahjongRoot.mj-root.mj-landscape .mj-seat .mj-avatar{width:23px;height:23px}
 #mahjongRoot.mj-root.mj-landscape .mj-seat small{font-size:9px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-2{top:7px;left:calc(50% + 150px);max-height:62px;width:136px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-0{bottom:7px;left:calc(50% - 150px);max-height:62px;width:136px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-1{right:95px}
 #mahjongRoot.mj-root.mj-landscape .mj-river.pos-3{left:95px}
}
