.mj-deal-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;isolation:isolate;contain:layout style;container-type:inline-size}
.mj-deal-scene-title{position:absolute;left:50%;top:30.5%;transform:translate(-50%,-50%);font-size:clamp(12px,3.5vw,18px);font-weight:700;letter-spacing:.2em;color:#fbe19a;text-shadow:0 2px 8px #001228,0 0 18px #001228;white-space:nowrap}
.mj-deal-scene-felt-glow{position:absolute;left:11%;top:36%;width:78%;height:6%;border-radius:50%;background:radial-gradient(ellipse,#5daeff24,transparent 68%);filter:blur(5px)}
.mj-deal-scene-tile{position:absolute;aspect-ratio:160/188;transform-style:preserve-3d;transform-origin:center center;will-change:transform,left,top;backface-visibility:visible;filter:drop-shadow(0 2px 1px #00102980)}
.mj-deal-scene-tile>.mj-solid-tile{position:relative;z-index:1}
.mj-deal-scene-shadow{position:absolute;left:14%;right:7%;bottom:4%;height:21%;border-radius:50%;background:#000b;filter:blur(2px);transform:translateY(7px);opacity:.55}
.mj-deal-scene[data-reduced-motion="true"] .mj-deal-scene-tile{will-change:auto}
@media(prefers-reduced-motion:reduce){.mj-deal-scene-tile{will-change:auto}}
.mahjong24-root .mj-tabletop-canvas{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.mahjong24-root .mj-tabletop-status{position:absolute;left:50%;top:27%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;white-space:nowrap;color:#ffe29a;text-shadow:0 2px 7px #00132e}
.mahjong24-root .mj-tabletop-status>strong{font-size:16px;letter-spacing:2px}
.mahjong24-root .mj-tabletop-status>span{display:flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #6ca7cd80;border-radius:18px;background:#051b35c9;color:#cceaff;font-size:13px;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-tabletop-status svg{width:14px;height:14px}
.mahjong24-root .mj-tabletop-canvas[data-viewer="player"][data-dealing="true"] .mj-tabletop-status{top:58%}
.mahjong24-root .mj-tabletop-row{position:absolute;inset:0}
.mahjong24-root .mj-tabletop-group-label{position:absolute;left:29%;top:73%;transform:translateY(-50%);font-size:10px;color:#f5df9d;text-shadow:0 1px 4px #001029}
.mahjong24-root .mj-tabletop-group-label.is-lower{top:81%}
.mahjong24-root .mj-tabletop-row-banker .mj-tabletop-group-label{top:34%}
.mahjong24-root .mj-tabletop-row-banker .mj-tabletop-group-label.is-lower{top:42%}
.mahjong24-root .mj-tabletop-piece{position:absolute;aspect-ratio:160/188;min-width:0;transform:translate(-50%,-50%);transform-origin:center;filter:drop-shadow(0 5px 2px #0009);transition:left 1000ms cubic-bezier(.4,0,.2,1),top 1000ms cubic-bezier(.4,0,.2,1)}
.mahjong24-root .mj-tabletop-row.is-editable .mj-tabletop-piece{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;border-radius:6px;transition:left 220ms ease,top 220ms ease}
.mahjong24-root .mj-tabletop-row.is-editable .mj-tabletop-piece>*{pointer-events:none}
.mahjong24-root .mj-tabletop-piece.is-picked,.mahjong24-root .mj-tabletop-piece.is-drop-target,.mahjong24-root .mj-tabletop-piece:focus-visible{outline:2px solid #ffda77;outline-offset:3px;filter:drop-shadow(0 0 7px #f2c354a0)}
.mahjong24-root .mj-tabletop-piece.is-dragging{z-index:20;cursor:grabbing;transition:none!important;filter:drop-shadow(0 10px 8px #0009)}
.mahjong24-root .mj-tabletop-slot-label{position:absolute;left:50%;top:100%;transform:translateX(-50%);white-space:nowrap;color:#e5efff;font-size:9px;line-height:13px;text-shadow:0 1px 3px #00152d}
.mahjong24-root .mj-tabletop-arrange-hint{position:absolute;top:66%;left:5%;right:5%;text-align:center;color:#b7d9ef;font-size:11px;line-height:1.5;text-shadow:0 1px 4px #001029}
.mahjong24-root .mj-tabletop-arrange-hint.is-error{color:#ffd391;background:#152842e8;border:1px solid #e6b55170;border-radius:8px;padding:4px 7px}
.mahjong24-root .mj-tabletop-tools{position:absolute;top:58%;left:8%;right:8%;display:flex;flex-direction:row;justify-content:center;gap:10px;pointer-events:auto}
.mahjong24-root .mj-tabletop-tools>button{min-height:40px;min-width:104px;padding:6px 14px;font-size:13px;gap:6px;white-space:nowrap;background:#0a315bcf;backdrop-filter:blur(4px)}
.mahjong24-root .mj-tabletop-tools svg{width:16px;height:16px;flex:none}
.mahjong24-root .mj-tabletop-tools>.mj-tabletop-lock{background:linear-gradient(#b99653e6,#71512bea);border-color:#e4c780;color:#fff2cd}
.mahjong24-root .mj-tabletop-wait{position:absolute;top:87%;left:0;right:0;display:flex;justify-content:center;gap:5px;color:#a8cce5;font-size:11px}
.mahjong24-root .mj-tabletop-wait svg{width:14px;height:14px}
.mahjong24-root.mj-game[data-tabletop="true"]>.mj-table{overflow:visible;max-height:none;pointer-events:none}
.mahjong24-root.mj-game[data-tabletop="true"]>.mj-topbar{z-index:6}
.mahjong24-root.mj-game[data-tabletop="true"]>.mj-actions{margin-top:auto;position:relative;z-index:5}
.mahjong24-root.mj-game[data-tabletop="true"][data-settled="true"] .mj-tabletop-status{top:25%}
.mahjong24-root.mj-game[data-tabletop="true"][data-settled="true"]>.mj-actions{position:absolute;top:52%;left:3%;right:3%;max-height:17%;margin:0;padding:6px 9px;border-radius:12px}
.mahjong24-root.mj-game[data-tabletop="true"][data-settled="true"]>.mj-actions>.mj-section-heading{display:none}
.mahjong24-root.mj-game[data-tabletop="true"][data-settled="true"]>.mj-actions>.mj-phase-box{min-height:0;padding:0}
@media(prefers-reduced-motion:reduce){.mahjong24-root .mj-tabletop-piece{transition:none}}
/* Fixed overlay only; the game page owns its existing document scroll lock. */
.mahjong24-root .mj-hand-modal{position:fixed;z-index:80;inset:0;width:min(100%,580px);height:100dvh;box-sizing:border-box;margin:0 auto;padding:calc(8px + env(safe-area-inset-top,0px)) 10px calc(10px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px;overflow:hidden;overscroll-behavior:none;isolation:isolate;outline:none;color:#dfedf9;background:radial-gradient(ellipse at 50% 45%,#133d6c,#06162c 70%);box-shadow:0 0 80px #000b}
.mahjong24-root .mj-hand-modal-header{flex:none;min-height:40px;display:flex;justify-content:center;align-items:center}
.mahjong24-root .mj-hand-modal-timer{display:flex;align-items:center;gap:7px;min-width:116px;justify-content:center;padding:4px 12px;border:1px solid #5794bb;border-radius:24px;background:#061a30b8;font-size:12px;color:#bbd6e9;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-hand-modal-timer svg{width:17px;height:17px;color:#8ad8ff}
.mahjong24-root .mj-hand-modal-timer strong{font-size:22px;line-height:1.15;color:#ffe195;min-width:1.8ch;text-align:center}
.mahjong24-root .mj-hand-modal-timer.is-urgent{border-color:#dfb465}
.mahjong24-root .mj-hand-modal-timer.is-urgent strong{color:#ffc383}
.mahjong24-root .mj-hand-modal-cards{flex:1 1 auto;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:visible}
.mahjong24-root .mj-hand-modal .mj-own-hand{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:calc(var(--mj-modal-card-width,140px) * 2 + 12px);max-width:100%;padding:0;margin:0;flex:none}
.mahjong24-root .mj-hand-modal .mj-own-card{width:100%;max-width:none;min-width:0;height:auto;touch-action:none}
.mahjong24-root .mj-hand-modal .mj-own-card .mj-tile{display:block;width:100%;height:auto;max-width:none;aspect-ratio:160/188;flex:none}
.mahjong24-root .mj-hand-modal .mj-own-group-label{box-sizing:border-box;height:24px;min-height:24px;margin:0;padding:2px 0;line-height:18px;font-size:11px;letter-spacing:2px}
.mahjong24-root .mj-hand-modal[data-mode="reveal"] .mj-own-group-label{visibility:hidden}
.mahjong24-root .mj-hand-modal-feedback{flex:none;margin:0;padding:4px 8px;max-height:42px;overflow:auto;overscroll-behavior:contain;color:#ffdaa0;background:#59401a66;border:1px solid #b28f4a55;border-radius:8px;font-size:10px;line-height:1.5;text-align:center}
.mahjong24-root .mj-hand-modal-footer{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px}
.mahjong24-root .mj-hand-modal-actions{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.mahjong24-root .mj-hand-modal-actions>button,.mahjong24-root .mj-hand-modal-actions .mj-own-actions>button{min-height:42px;padding:7px 12px;font-size:12px;border-radius:9px}
.mahjong24-root .mj-hand-modal-close{flex:none;display:grid;place-items:center;width:42px;min-width:42px;height:42px;min-height:42px;padding:8px;border:1px solid #578eae;border-radius:50%;background:#123653;color:#cce8ff}
.mahjong24-root .mj-hand-modal-close svg{width:22px;height:22px}
@media(max-width:360px){.mahjong24-root .mj-hand-modal{padding-left:6px;padding-right:6px}.mahjong24-root .mj-hand-modal-actions>button,.mahjong24-root .mj-hand-modal-actions .mj-own-actions>button{padding:6px 8px;font-size:11px}}
@media(max-height:480px){.mahjong24-root .mj-hand-modal{gap:4px;padding-top:calc(4px + env(safe-area-inset-top,0px));padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}.mahjong24-root .mj-hand-modal-header{min-height:32px}.mahjong24-root .mj-hand-modal-timer strong{font-size:18px}}
.mahjong24-root .mj-personal-layer{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:14px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom));background:#020916a8;backdrop-filter:blur(5px);isolation:isolate}
.mahjong24-root .mj-personal-result{--personal-accent:#76e9d0;position:relative;box-sizing:border-box;display:flex;flex-direction:column;width:min(100%,424px);max-height:calc(100dvh - max(14px,env(safe-area-inset-top)) - max(14px,env(safe-area-inset-bottom)));overflow:hidden;border:1px solid #e7c57696;border-radius:24px;background:radial-gradient(ellipse at 50% 0,#17559b54,transparent 55%),linear-gradient(145deg,#12213a,#07111f 70%);box-shadow:0 28px 95px #000b,inset 0 1px #fff2;color:#f0f5ff;text-align:left;font-family:inherit;animation:mj-personal-appear .2s ease-out}
.mahjong24-root .mj-personal-result.loss{--personal-accent:#ff96a6}.mahjong24-root .mj-personal-result.draw{--personal-accent:#efd28c}
.mahjong24-root .mj-personal-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;padding:17px 15px 13px;border-bottom:1px solid #b8d9ff19}
.mahjong24-root .mj-personal-header>div{min-width:0}.mahjong24-root .mj-personal-header>div>span{display:block;color:#b1c5e0;font-size:9px;letter-spacing:1px;overflow-wrap:anywhere}
.mahjong24-root .mj-personal-header h2{display:flex;align-items:center;gap:7px;margin:7px 0 0;color:#f2d698;font-size:19px;font-weight:700;line-height:1.35}.mahjong24-root .mj-personal-header h2>svg{width:20px;height:20px}
.mahjong24-root .mj-personal-close{display:grid;place-items:center;flex:none;width:42px;height:42px;min-height:42px;padding:0;border:1px solid #b8d9ff22;border-radius:50%;background:#ffffff08;color:#c9d9ed;cursor:pointer}.mahjong24-root .mj-personal-close>svg{width:19px;height:19px}
.mahjong24-root .mj-personal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 15px 12px;scrollbar-width:thin;scrollbar-color:#405779 transparent}
.mahjong24-root .mj-personal-summary{text-align:center;padding:17px 0 12px}.mahjong24-root .mj-personal-summary-line{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0 0 9px}.mahjong24-root .mj-personal-outcome{display:inline-flex;align-items:center;gap:6px;padding:3px 13px;border:1px solid #9ac3f02c;border-radius:99px;background:#508bcb14;color:#d5e9ff;font-size:11px;white-space:nowrap}.mahjong24-root .mj-personal-summary-line>p{margin:0;color:#afc0d7;font-size:12px;white-space:nowrap}.mahjong24-root .mj-personal-summary small{font-size:10px;color:#d5bd88}
.mahjong24-root .mj-personal-outcome.is-win{color:#76e9b1;border-color:#76e9b14d;background:#37ba7d1a}.mahjong24-root .mj-personal-outcome.is-loss{color:#ff8585;border-color:#ff85854d;background:#ef53501a}.mahjong24-root .mj-personal-outcome.is-draw{color:#f0ce83;border-color:#f0ce834d;background:#d1a33e1a}
.mahjong24-root .mj-personal-summary>strong{display:block;min-width:0;color:var(--personal-accent);font-size:34px;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.8px;line-height:1.2;overflow-wrap:anywhere;text-shadow:0 0 25px #90baff15}
.mahjong24-root .mj-personal-amounts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 13px;padding:10px 6px;border-block:1px solid #aacbff15}.mahjong24-root .mj-personal-amounts>div{flex:1 1 75px;min-width:0;text-align:center}.mahjong24-root .mj-personal-amounts dt{color:#93a9c6;font-size:10px}.mahjong24-root .mj-personal-amounts dd{margin:5px 0 0;color:#e1eafa;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.mahjong24-root .mj-personal-hand{padding:10px;margin:9px 0;border:1px solid #7eacdb2b;border-radius:15px;background:linear-gradient(135deg,#12386357,#09172a90)}.mahjong24-root .mj-personal-hand>header{display:flex;align-items:center;gap:6px;min-width:0;margin-bottom:11px;color:#ecd190;font-size:12px}.mahjong24-root .mj-personal-hand>header>svg{width:15px;height:15px;flex:none}.mahjong24-root .mj-personal-hand>header>strong{flex:none;font-size:12px}.mahjong24-root .mj-personal-hand>header>span:last-child{min-width:0;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aebfd6;font-size:10px}.mahjong24-root .mj-personal-self{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#448bc82b;color:#b7e5ff;font-size:10px}
.mahjong24-root .mj-personal-groups{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.mahjong24-root .mj-personal-group{min-width:0}.mahjong24-root .mj-personal-tiles{display:flex;justify-content:center;gap:6px;min-width:0;padding:0 1px 3px}.mahjong24-root .mj-personal-tiles>.mj-tile{flex:0 1 56px;width:calc((100% - 6px)/2);max-width:56px;min-width:0}.mahjong24-root .mj-personal-group>p{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px 6px;margin:5px 0 0;text-align:center;font-size:10px;line-height:1.5}.mahjong24-root .mj-personal-group>p>span{color:#a0b3d0}.mahjong24-root .mj-personal-group>p>b{color:#eacf98;font-weight:550;white-space:nowrap}
.mahjong24-root .mj-personal-group>p>.mj-personal-group-status{display:inline-flex;align-items:center;justify-content:center;flex:none;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:14px;line-height:1}
.mahjong24-root .mj-personal-tile-fallback{display:grid;place-items:center;width:48px;min-height:58px;border:1px solid #bcdfff;border-radius:6px;background:#eff7ff;color:#142d4e;font-size:12px}
.mahjong24-root .mj-personal-immune{margin:8px 0 0;text-align:center;color:#f0d493;font-size:10px}.mahjong24-root .mj-personal-missing{margin:15px 0;color:#92a9c7;text-align:center;font-size:11px}
.mahjong24-root .mj-personal-watered{margin:0 0 10px;padding:9px 10px;border:1px solid #71c5ed35;border-radius:10px;background:#2f80ab12;color:#b2e6ff;font-size:11px;line-height:1.7;text-align:center}.mahjong24-root .mj-personal-watered>span:last-child{color:#a6c5e2;font-variant-numeric:tabular-nums}.mahjong24-root .mj-personal-snapshot-note{margin:11px 0 0;color:#839bb9;font-size:9px;line-height:1.5;text-align:center}
.mahjong24-root .mj-personal-footer{flex-shrink:0;padding:10px 15px 12px;border-top:1px solid #b8d9ff19;background:#07112088;text-align:center}.mahjong24-root .mj-personal-footer>button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:42px;border:1px solid #a6d1ff55;border-radius:11px;background:linear-gradient(180deg,#174776,#0b294b);color:#e3f1ff;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.mahjong24-root .mj-personal-footer>button>span{font-size:20px;line-height:1}.mahjong24-root .mj-personal-footer>p{margin:8px 0 0;color:#879ebd;font-size:10px}.mahjong24-root .mj-personal-footer>p:first-child{margin-top:0}
.mahjong24-root .mj-personal-result button:focus-visible,.mahjong24-root .mj-personal-body:focus-visible{outline:2px solid #f0d28e;outline-offset:2px}.mahjong24-root .mj-personal-progress{position:absolute;right:0;bottom:0;left:0;height:2px;background:linear-gradient(90deg,#4facff,#f1d18d,#4facff);transform-origin:left;animation:mj-personal-countdown 10s linear forwards}
@keyframes mj-personal-countdown{to{transform:scaleX(0)}}@keyframes mj-personal-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.mahjong24-root .mj-personal-layer{padding-right:10px;padding-left:10px}.mahjong24-root .mj-personal-header{padding-right:11px;padding-left:11px}.mahjong24-root .mj-personal-header h2{font-size:17px}.mahjong24-root .mj-personal-body{padding-right:10px;padding-left:10px}.mahjong24-root .mj-personal-summary>strong{font-size:30px}.mahjong24-root .mj-personal-groups{gap:9px}.mahjong24-root .mj-personal-hand{padding:8px}.mahjong24-root .mj-personal-footer{padding-right:11px;padding-left:11px}}
@media(prefers-reduced-motion:reduce){.mahjong24-root .mj-personal-result,.mahjong24-root .mj-personal-progress{animation:none}.mahjong24-root .mj-personal-layer{backdrop-filter:none}}
.mahjong24-root .mj-round-activity{box-sizing:border-box;width:calc(100% - 24px);max-width:100%;min-width:0;max-height:220px;margin:14px 12px 18px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #426f8c80;border-radius:14px;background:linear-gradient(145deg,#0a2944e8,#06192de8);box-shadow:0 7px 18px #0004;text-align:left}
.mahjong24-root .mj-round-activity-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px 8px;border-bottom:1px solid #426f8c55;flex:none;min-width:0}
.mahjong24-root .mj-round-activity-header>div{min-width:0}
.mahjong24-root .mj-round-activity-header small{display:block;margin-bottom:1px;color:#8fb5cf;font-size:9px;line-height:1.2}
.mahjong24-root .mj-round-activity-header h2{margin:0;color:#e8d69e;font-size:15px;line-height:1.25}
.mahjong24-root .mj-round-activity-header>b{flex:none;color:#bad3e5;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.mahjong24-root .mj-round-activity-list{box-sizing:border-box;list-style:none;width:100%;max-width:100%;min-width:0;min-height:0;margin:0;padding:0 10px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.mahjong24-root .mj-round-activity-row{box-sizing:border-box;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;max-width:100%;min-width:0;min-height:44px;padding:6px 0;border-bottom:1px solid #42667e45}
.mahjong24-root .mj-round-activity-row:last-child{border-bottom:0}
.mahjong24-root .mj-round-activity-row .mj-result-avatar{width:30px;height:30px;flex:0 0 30px}
.mahjong24-root .mj-round-activity-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d7e8f5;font-size:12px}
.mahjong24-root .mj-round-activity-row>strong{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#ffe0a0;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.mahjong24-root .mj-round-activity-empty{box-sizing:border-box;width:100%;min-height:58px;margin:0;padding:20px 11px;text-align:center;color:#9ebbd1;font-size:11px}
@media(max-width:360px){.mahjong24-root .mj-round-activity{width:calc(100% - 20px);margin-left:10px;margin-right:10px}.mahjong24-root .mj-round-activity-header{padding-inline:9px}.mahjong24-root .mj-round-activity-list{padding-inline:8px}.mahjong24-root .mj-round-activity-row{grid-template-columns:28px minmax(0,1fr) auto;gap:6px}.mahjong24-root .mj-round-activity-row .mj-result-avatar{width:28px;height:28px;flex-basis:28px}.mahjong24-root .mj-round-activity-row>strong{font-size:10px}}
.mahjong24-root.mj-game{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
.mahjong24-root .mj-chat-scrim{position:fixed;inset:0;z-index:34;background:#0005;backdrop-filter:blur(2px)}
.mahjong24-root .mj-chat-dock{position:fixed;z-index:35;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,580px);max-height:var(--mj-chat-viewport,100dvh);display:flex;flex-direction:column;background:linear-gradient(135deg,#122d47f5,#07192dfc);border-top:1px solid #5b8cab;box-shadow:0 -8px 28px #0005;backdrop-filter:blur(18px);padding-bottom:env(safe-area-inset-bottom,0px);isolation:isolate}
.mahjong24-root .mj-chat-dock:has(.mj-panel){border-radius:20px 20px 0 0;overflow:hidden}
.mahjong24-root .mj-chat-dock .mj-panel{position:relative;width:100%;height:min(62dvh,540px);max-height:calc(var(--mj-chat-viewport,100dvh) - 78px - env(safe-area-inset-bottom,0px));min-height:0;padding:0;border:0;border-bottom:1px solid #42627d;border-radius:20px 20px 0 0;box-shadow:none;flex:1 1 auto;animation:mj24-chat-up .2s ease-out}
.mahjong24-root .mj-chat-composer{display:flex;align-items:center;gap:7px;padding:10px max(10px,env(safe-area-inset-right,0px)) 10px max(10px,env(safe-area-inset-left,0px));flex:none;margin:0;min-width:0}
.mahjong24-root .mj-chat-composer input{flex:1;width:0;min-width:0;min-height:42px;border:1px solid #6a90ad70;border-radius:22px;padding:9px 13px;background:#f3f8ff12;color:#f5faff;font-size:16px;line-height:22px;box-sizing:border-box;outline:none}
.mahjong24-root .mj-chat-composer input::placeholder{color:#9eb6ca}
.mahjong24-root .mj-chat-composer input:focus{border-color:#76c8f3;box-shadow:0 0 0 2px #5dcaff26}
.mahjong24-root .mj-chat-composer button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:#c4e4fb}
.mahjong24-root .mj-chat-composer button svg{width:23px;height:23px}
.mahjong24-root .mj-chat-composer .mj-chat-expand{border-color:#77acc57a;background:linear-gradient(140deg,#265271,#12334c);box-shadow:inset 0 1px #b8e7ff22}
.mahjong24-root .mj-chat-expand svg{transition:transform .2s ease}
.mahjong24-root .mj-chat-expand.is-open svg{transform:rotate(180deg)}
.mahjong24-root .mj-chat-composer .mj-chat-send{background:linear-gradient(135deg,#218acd,#125789);border-color:#6abbec80;color:#f5fbff}
.mahjong24-root .mj-chat-composer button:focus-visible,.mahjong24-root .mj-chat-emojis button:focus-visible{outline:2px solid #bde9ff;outline-offset:2px}
.mahjong24-root .mj-chat-emojis{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:10px;overflow:auto;overscroll-behavior:contain;max-height:160px;flex:0 1 auto;min-height:0;border-bottom:1px solid #42627d}
.mahjong24-root .mj-chat-emojis button{border:0;background:transparent;padding:6px 0;min-height:36px;border-radius:9px;font-size:23px;line-height:1.2}
@keyframes mj24-chat-up{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.mahjong24-root .mj-chat-composer{gap:4px;padding-left:7px;padding-right:7px}.mahjong24-root .mj-chat-composer button{width:38px;flex-basis:38px}.mahjong24-root .mj-chat-emojis{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.mahjong24-root .mj-chat-dock .mj-panel{animation:none}.mahjong24-root .mj-chat-expand svg{transition:none}}
/* Scoped, selection-only betting panel; no global form or page overrides. */
.mahjong24-root .mj-bet-controls{width:100%;min-width:0;text-align:left;margin:10px 0 8px;padding:11px;border:1px solid #386a8c;border-radius:13px;background:linear-gradient(130deg,#0d365766,#04192c99)}
.mahjong24-root .mj-bet-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:11px;color:#b9d5e8}
.mahjong24-root .mj-bet-heading strong{font-size:15px;color:#ffe1a1;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-bet-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.mahjong24-root .mj-bet-presets>button{min-width:0;min-height:48px;display:flex;flex-direction:column;gap:3px;padding:7px 3px;border:1px solid #467a9e;border-radius:9px;background:linear-gradient(#103b5e,#071f39);color:#d8edfc;touch-action:manipulation}
.mahjong24-root .mj-bet-presets>button b{font-size:13px;line-height:1.2;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-bet-presets>button small{font-size:9px;line-height:1.2;color:#9dc6e2;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-bet-presets>button[aria-pressed="true"]{border-color:#edcb83;background:linear-gradient(#765828,#322713);box-shadow:inset 0 1px #ffeac844,0 0 10px #ddb95822;color:#fff0ca}
.mahjong24-root .mj-bet-presets>button[aria-pressed="true"] small{color:#ffe2a4}
.mahjong24-root .mj-bet-presets>button:disabled{opacity:.4;cursor:default;box-shadow:none}
.mahjong24-root .mj-bet-custom{margin-top:11px}
.mahjong24-root .mj-bet-custom>label{display:block;font-size:11px;color:#b7d1e5;margin-bottom:6px}
.mahjong24-root .mj-bet-input-wrap{display:flex;align-items:center;min-width:0;min-height:44px;border:1px solid #477da5;border-radius:9px;background:#03162a;overflow:hidden}
.mahjong24-root .mj-bet-input-wrap:focus-within{border-color:#74cfff;box-shadow:0 0 0 2px #61c3f933}
.mahjong24-root .mj-bet-input-wrap>span{padding-left:12px;color:#e5c687;font-size:12px;flex:none}
.mahjong24-root .mj-bet-input-wrap>input{width:0;min-width:0;flex:1;min-height:44px;padding:10px;border:0;background:transparent;color:#f0f7ff;font-size:16px;border-radius:0;outline-offset:-3px}
.mahjong24-root .mj-bet-input-wrap>input:focus-visible{outline:none}
.mahjong24-root .mj-bet-input-wrap>input::placeholder{font-size:12px;color:#7497b3}
.mahjong24-root .mj-bet-input-wrap>input[aria-invalid="true"]{color:#ffcea0;box-shadow:inset 0 -2px #db985f}
.mahjong24-root .mj-bet-input-wrap>input:disabled{opacity:.5}
.mahjong24-root .mj-bet-controls .mj-bet-hint{font-size:9px;line-height:1.5;color:#9cb5c9;margin:8px 0 0;overflow-wrap:anywhere}
.mahjong24-root .mj-bet-controls .mj-bet-error{font-size:10px;line-height:1.5;color:#ffd19a;margin:7px 0 0}
@media(max-width:360px){.mahjong24-root .mj-bet-controls{padding:9px}.mahjong24-root .mj-bet-presets{gap:6px}.mahjong24-root .mj-bet-presets>button{min-height:46px}.mahjong24-root .mj-bet-presets>button b{font-size:12px}}
/* The amount is a draft until the explicit confirmation button is pressed. */
.mahjong24-root .mj-bid-controls{min-width:0}
.mahjong24-root .mj-bid-option[aria-pressed="true"]{border-color:#fff0bb;box-shadow:inset 0 0 15px var(--tint),0 0 0 1px #ffdc88,0 0 12px #efc37744}
.mahjong24-root .mj-bid-entry{margin-top:10px;text-align:left}
.mahjong24-root .mj-bid-entry>label{display:block;margin-bottom:5px;font-size:11px;color:#c4dcea}
.mahjong24-root .mj-bid-entry-row{display:flex;align-items:stretch;gap:8px;min-width:0;padding-right:24px}
.mahjong24-root .mj-bid-input-wrap{display:flex;align-items:center;flex:1;min-width:0;border:1px solid #477da5;border-radius:9px;background:#03162a;overflow:hidden}
.mahjong24-root .mj-bid-input-wrap:focus-within{border-color:#74cfff;box-shadow:0 0 0 2px #61c3f933}
.mahjong24-root .mj-bid-input-wrap>span{padding-left:10px;color:#e5c687;font-size:12px;flex:none}
.mahjong24-root .mj-bid-input-wrap>input{width:0;min-width:0;flex:1;min-height:44px;padding:9px;border:0;background:transparent;color:#f0f7ff;font-size:16px;outline-offset:-3px}
.mahjong24-root .mj-bid-input-wrap>input:focus-visible{outline:none}
.mahjong24-root .mj-bid-input-wrap>input::placeholder{font-size:11px;color:#7497b3}
.mahjong24-root .mj-bid-input-wrap>input[aria-invalid="true"]{color:#ffcea0;box-shadow:inset 0 -2px #db985f}
.mahjong24-root .mj-bid-input-wrap>input:disabled{opacity:.5}
.mahjong24-root .mj-bid-entry-row>.mj-bid-confirm{flex:none;white-space:nowrap;min-height:44px;border-radius:9px}
.mahjong24-root .mj-bid-input-hint{margin:6px 0 0;font-size:9px;line-height:1.5;color:#9cb5c9;overflow-wrap:anywhere}
.mahjong24-root .mj-bid-input-error{margin:5px 0 0;font-size:10px;line-height:1.5;color:#ffd19a}
@media(max-width:360px){.mahjong24-root .mj-bid-entry-row{gap:6px}.mahjong24-root .mj-bid-entry-row>.mj-bid-confirm{padding:8px 10px}}
.mahjong24-root .mj-table-dice{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden;--die-size:clamp(26px,7vw,38px);--die-half:calc(var(--die-size)/2)}
.mahjong24-root.mj-game[data-dice-phase="true"]>.mj-table{overflow:visible;max-height:none;pointer-events:none}
.mj-table-die{position:absolute;width:var(--die-size);height:var(--die-size);perspective:650px;isolation:isolate}
.mj-table-die-0{left:38%;top:38%;--twist:-14deg;--from-x:85px;--from-y:-220px}
.mj-table-die-1{left:58%;top:43%;--twist:12deg;--from-x:-65px;--from-y:-270px}
.mj-die-flight{position:absolute;inset:0;transform-style:preserve-3d;animation:mj-dice-land 2600ms both;animation-delay:var(--dice-delay)}
.mj-die-solid{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateZ(var(--twist)) rotateX(-58deg) rotateY(-24deg);animation:mj-dice-tumble 2600ms both;animation-delay:var(--dice-delay)}
.mj-die-face{position:absolute;inset:0;box-sizing:border-box;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:9%;padding:14%;border-radius:16%;border:1px solid #d7d8cf;background:linear-gradient(135deg,#fffffc,#eceee2);box-shadow:inset 0 1px 3px #fff,inset 0 -2px 4px #969e9780;backface-visibility:hidden}
.mj-die-face i{display:block;border-radius:50%;background:radial-gradient(circle at 65% 70%,#24394f,#071523 70%);box-shadow:inset 1px 2px 2px #0009,0 1px 0 #fff}
.mj-die-face.is-red i{background:radial-gradient(circle at 65% 70%,#e44239,#9f161d 75%)}
.mj-die-face-0{transform:translateZ(var(--die-half))}
.mj-die-face-1{transform:rotateY(180deg) translateZ(var(--die-half))}
.mj-die-face-2{transform:rotateY(90deg) translateZ(var(--die-half));background:linear-gradient(135deg,#e4e8df,#b9c1b6)}
.mj-die-face-3{transform:rotateY(-90deg) translateZ(var(--die-half))}
.mj-die-face-4{transform:rotateX(90deg) translateZ(var(--die-half));background:#fffff6}
.mj-die-face-5{transform:rotateX(-90deg) translateZ(var(--die-half))}
.mj-die-shadow{position:absolute;left:-7%;top:65%;width:120%;height:55%;border-radius:50%;background:radial-gradient(ellipse,#0009,transparent 72%);filter:blur(3px);transform:rotate(var(--twist));animation:mj-dice-shadow 2600ms both;animation-delay:var(--dice-delay)}
.mahjong24-root .mj-dice-caption{position:absolute;left:0;right:0;top:56%;text-align:center;color:#f6df9e;font-size:13px;letter-spacing:2px;text-shadow:0 2px 5px #000}
.mahjong24-root .mj-dice-confirm{display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 8px;color:#f3deb0;text-align:center}
.mahjong24-root .mj-dice-confirm small{font-size:11px;color:#a9c3d8}
.mahjong24-root .mj-dice-confirm-buttons{display:flex;gap:12px;width:min(100%,320px)}
.mahjong24-root .mj-dice-confirm-buttons button{flex:1;min-height:44px;font-weight:700}
.mahjong24-root .mj-dice-confirm-buttons button:first-child{color:#ffc2bb;border-color:#9e4e4e;background:#401f2b}
@keyframes mj-dice-land{0%{transform:translate(var(--from-x),var(--from-y)) scale(1.5);opacity:0;animation-timing-function:ease-in}8%{opacity:1}30%{transform:translate(-18px,0) scale(1);animation-timing-function:ease-out}45%{transform:translate(16px,-65px) scale(1.12);animation-timing-function:ease-in}60%{transform:translate(9px,0) scale(1);animation-timing-function:ease-out}72%{transform:translate(-7px,-23px);animation-timing-function:ease-in}83%{transform:translate(-3px,0);animation-timing-function:ease-out}91%{transform:translate(2px,-5px)}100%{transform:translate(0,0);opacity:1}}
@keyframes mj-dice-tumble{0%{transform:rotateZ(-170deg) rotateX(-740deg) rotateY(540deg)}30%{transform:rotateZ(65deg) rotateX(-390deg) rotateY(220deg)}60%{transform:rotateZ(-25deg) rotateX(-145deg) rotateY(65deg)}83%{transform:rotateZ(var(--twist)) rotateX(-70deg) rotateY(-32deg)}100%{transform:rotateZ(var(--twist)) rotateX(-58deg) rotateY(-24deg)}}
@keyframes mj-dice-shadow{0%{opacity:0;scale:1.7}30%,60%,83%,100%{opacity:1;scale:1}45%{opacity:.3;scale:1.5}72%{opacity:.55;scale:1.25}}
@media(prefers-reduced-motion:reduce){.mj-die-flight,.mj-die-solid,.mj-die-shadow{animation:none}}
/* All game styles are isolated from the existing lobby, wallet and admin. */
html.mj-no-swipe-back,body.mj-no-swipe-back{overscroll-behavior-x:none;touch-action:pan-y pinch-zoom}
html.mj-no-swipe-back,body.mj-no-swipe-back{height:100%;overflow:hidden;overscroll-behavior:none}
.mahjong24-root .mj-back-button,.mahjong24-root .mj-connect-back{touch-action:none}
.mahjong24-root.mj-game,.mahjong24-root.mj-connecting{overscroll-behavior-x:none;touch-action:pan-y pinch-zoom}
.mahjong24-root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#eef5ff;color-scheme:dark;font-synthesis:none;line-height:1.4;text-align:left;isolation:isolate}
.mahjong24-root,.mahjong24-root *{box-sizing:border-box}
.mahjong24-root button,.mahjong24-root input{font:inherit;-webkit-tap-highlight-color:transparent}
.mahjong24-root button{display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;color:inherit;border:1px solid #38617e;background:#0c2642;border-radius:10px;min-height:42px;padding:8px 12px;touch-action:manipulation;line-height:1.25;letter-spacing:0;box-shadow:none}
.mahjong24-root button:disabled{cursor:default;opacity:.42}
.mahjong24-root button:not(:disabled):active{transform:translateY(1px)}
.mahjong24-root button:focus-visible,.mahjong24-root input:focus-visible{outline:2px solid #ffe091;outline-offset:3px}
.mahjong24-root svg.lucide{display:block;flex-shrink:0;width:20px;height:20px;stroke-width:1.7}
.mahjong24-root p{line-height:1.7}
.mahjong24-root.mj-game{--gold:#f6d786;--blue:#38b7ff;position:fixed;top:0;left:0;right:0;width:min(100%,580px);height:100dvh;min-height:0;margin:0 auto;display:flex;flex-direction:column;background:linear-gradient(180deg,#00122e00 20%,#02132b08 65%,#020a1c45),url('/assets/mahjong24/table-background-two-tables-20260930.png') center top/100% 100% no-repeat,#020c20;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px));box-shadow:0 0 100px #0008;overflow:hidden}
.mahjong24-root .mj-topbar{height:calc(55px + env(safe-area-inset-top));padding:calc(7px + env(safe-area-inset-top)) 9px 7px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:center;background:linear-gradient(100deg,#001329ed,#082341e8);border-bottom:1px solid #51b8f780;box-shadow:0 3px 16px #009cff30;position:relative;z-index:2}
.mahjong24-root .mj-brand-slot{display:flex;align-items:center;gap:4px;min-width:0}
.mahjong24-root .mj-back-button{padding:0;width:24px;min-height:42px;flex:none;background:none;border:0;border-radius:8px}
.mahjong24-root .mj-brand{min-width:0;white-space:nowrap}
.mahjong24-root .mj-brand>span{display:flex;align-items:center;gap:3px;font-size:17px;font-weight:850;letter-spacing:1px;text-shadow:0 0 13px #408bff}
.mahjong24-root .mj-brand>span svg{color:#64cfff;width:20px;height:20px;filter:drop-shadow(0 0 5px #00a3ff)}
.mahjong24-root .mj-brand>small{display:block;letter-spacing:2px;font-size:6px;color:#95b7d4;margin-top:3px;padding-left:25px}
.mahjong24-root .mj-wallet{margin-left:auto;white-space:nowrap;text-align:right;min-width:0}
.mahjong24-root .mj-wallet small{display:block;color:#9cb4cf;font-size:8px;font-weight:400;letter-spacing:1px;margin-bottom:3px}
.mahjong24-root .mj-wallet strong{font-size:14px;letter-spacing:-.3px}
.mahjong24-root .mj-wallet em{font-size:9px;font-style:normal;color:#f0ce85}
.mahjong24-root .mj-table{position:relative;padding:9px 14px 0}
.mahjong24-root .mj-roundline{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:nowrap;text-align:center;color:#d6e8f6;font-size:9px;letter-spacing:1px;text-shadow:0 1px 3px #000}
.mahjong24-root .mj-online{display:flex;align-items:center;gap:5px;font-size:9px;letter-spacing:0}
.mahjong24-root .mj-online i{width:5px;height:5px;border-radius:50%;background:#27e6ae;box-shadow:0 0 7px #27ddb9}
.mahjong24-root .mj-online.is-offline i{background:#f5b356;box-shadow:none}
.mahjong24-root .mj-banker{position:relative;display:flex;align-items:center;flex-direction:column;width:max-content;max-width:85%;margin:13px auto 0}
.mahjong24-root .mj-crown{position:absolute;color:#ffe195;width:26px;height:26px;z-index:1;top:-18px;filter:drop-shadow(0 0 7px #e99c1f);fill:#bb7b2238}
.mahjong24-root .mj-avatar{width:55px;height:55px;display:grid;place-items:center;border:3px double #ffdf8e;background:radial-gradient(circle at 45% 28%,#2b4d66,#031020 70%);border-radius:50%;box-shadow:0 0 0 3px #79571f,0 0 18px #eeb65375;font-size:24px;color:#c2d7e7;overflow:hidden}
.mahjong24-root .mj-avatar img{width:100%;height:100%;object-fit:cover}
.mahjong24-root .mj-avatar svg{width:30px;height:30px;stroke-width:1.2}
.mahjong24-root .mj-banker>strong{font-size:11px;color:#ffe4a6;border:1px solid #cca455;background:linear-gradient(#172b3d,#040d17);min-width:91px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;border-radius:12px;margin-top:-7px;padding:2px 12px;z-index:1}
.mahjong24-root .mj-banker>span:last-child{padding:5px 13px;font-size:11px;background:linear-gradient(#0a2948,#001026);border:1px solid #caaa68;border-radius:8px;margin-top:4px;box-shadow:0 2px 14px #0009;font-weight:500;color:#b9cee4}
.mahjong24-root .mj-banker>span:last-child b{color:#f0f5ff;font-size:13px}
.mahjong24-root .mj-banker-hand{display:flex;gap:23px;justify-content:center;margin:0 auto;width:78%}
.mahjong24-root .mj-pair{min-width:0;flex:1;max-width:155px}
.mahjong24-root .mj-pair-tiles{display:flex;gap:6px;justify-content:center;position:relative;padding-bottom:6px}
.mahjong24-root .mj-pair-tiles:after{content:"";position:absolute;bottom:0;left:-7px;right:-7px;height:25px;border:2px solid #efd282;border-top:0;transform:perspective(80px) rotateX(25deg);border-radius:7px;box-shadow:0 2px 7px #ffce767f;pointer-events:none}
.mahjong24-root .mj-tile{position:relative;aspect-ratio:1159/1358;width:100%;max-width:53px;overflow:hidden;background:#eef2f7;border-radius:6px;box-shadow:0 3px 7px #000b;user-select:none;flex:1;z-index:1}
.mahjong24-root .mj-tile>img{width:100%;height:100%;display:block;object-fit:fill}
.mahjong24-root .mj-tile.mj-back{background:#002369;border:1px solid #95dcff;box-shadow:0 0 5px #34a7ff,0 4px 7px #000a}

.mahjong24-root .mj-pair-label{display:block;text-align:center;margin:5px 4px 0;padding:2px 4px;border:1px solid #a2bce575;border-radius:5px;font-size:10px;letter-spacing:4px;background:linear-gradient(90deg,#082b5399,#154d80b0,#082b5399)}
.mahjong24-root .mj-leader{padding:6px 10px;display:flex;align-items:center;gap:7px;background:linear-gradient(115deg,#031529f2,#0a2b4ee8);border:1px solid #d9b56d;border-radius:13px 13px 8px 8px;box-shadow:0 0 18px #007fff35}
.mahjong24-root .mj-leader-badge{display:flex;flex:none}
.mahjong24-root .mj-leader-badge .mj-avatar{width:32px;height:32px;border:1px solid #d9b56d;box-shadow:0 0 6px #b7812440;font-size:16px}
.mahjong24-root .mj-leader-badge .mj-avatar svg{width:20px;height:20px}
.mahjong24-root .mj-leader>div:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.mahjong24-root .mj-leader small{font-size:8px;color:#dfcc98;letter-spacing:1px}
.mahjong24-root .mj-leader strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:118px}
.mahjong24-root .mj-leader>b{display:flex;align-items:center;gap:3px;margin-left:auto;font-size:13px;color:#ffe3a1;white-space:nowrap}
.mahjong24-root .mj-leader>b svg{width:13px;height:13px}
.mahjong24-root .mj-actions{position:relative;margin:0 9px;padding:8px 10px 6px;border:1px solid #389fda;background:linear-gradient(130deg,#031c37f5,#050f26fa);border-radius:13px;box-shadow:inset 0 0 0 3px #06223d,0 0 0 2px #06132b,0 6px 20px #0008}
.mahjong24-root.mj-game[data-bidding-docked="true"]{padding-bottom:var(--mj-bid-reserved,400px)}
.mahjong24-root.mj-game[data-bidding-docked="true"]>.mj-actions{position:fixed;z-index:20;left:50%;transform:translateX(-50%);bottom:var(--mj-bid-bottom,78px);width:calc(min(100%,580px) - 18px);margin:0;max-height:var(--mj-bid-max-height,calc(100dvh - 94px));overflow-y:auto;overscroll-behavior-y:contain}
.mahjong24-root .mj-section-heading{display:flex;justify-content:center;gap:12px;align-items:center;margin-bottom:8px}
.mahjong24-root .mj-section-heading>div{min-width:0}
.mahjong24-root .mj-section-heading>div>span{display:block;font-size:6px;color:#83b9d7;letter-spacing:2px;margin-bottom:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mahjong24-root .mj-section-heading h1{font-size:18px;line-height:1.2;margin:0;letter-spacing:2px;font-weight:800}
.mahjong24-root .mj-timer{flex:none;white-space:nowrap;display:flex;align-items:center;gap:4px;font-size:14px;color:#a3d6ff;background:#031228;border:1px solid #326996;border-radius:30px;padding:3px 8px;box-shadow:inset 0 0 10px #044d8a40}
.mahjong24-root .mj-timer svg{width:16px;height:16px;color:#89ceff;fill:#1c57996b}
.mahjong24-root .mj-timer>span{font-size:10px;color:#cadaec}
.mahjong24-root .mj-timer b{font-size:17px;color:#ffe398;min-width:23px;text-align:center;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-timer.is-urgent{border-color:#d49b5e}
.mahjong24-root .mj-timer.is-urgent b{color:#ffb77f}
.mahjong24-root .mj-bid-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.mahjong24-root .mj-bid-option{display:flex;flex-direction:column;gap:0;align-items:center;padding:6px 2px 7px;border:1px solid var(--option);border-radius:10px;background:radial-gradient(ellipse at top,var(--tint),#06152b 85%);box-shadow:inset 0 0 14px var(--tint);min-width:0}
.mahjong24-root .option-0{--option:#e5bd63;--tint:#86581e77}.mahjong24-root .option-1{--option:#3b9ded;--tint:#0060d15c}.mahjong24-root .option-2{--option:#b374f6;--tint:#7433ab5c}.mahjong24-root .option-3{--option:#f28660;--tint:#c4341c5c}
.mahjong24-root .mj-bid-option>svg{width:22px;height:22px;color:var(--option);fill:var(--tint);filter:drop-shadow(0 0 6px var(--option));margin-bottom:4px}
.mahjong24-root .mj-bid-option>strong{border:1px solid var(--option);border-radius:20px;width:94%;padding:4px 0;font-size:11px;box-shadow:0 0 7px var(--tint);font-weight:600;text-align:center;white-space:nowrap}
.mahjong24-root .mj-bid-option>small{margin-top:4px;font-size:11px;white-space:nowrap;color:#edf4ff}
.mahjong24-root .mj-hint{display:flex;gap:4px;align-items:flex-start;font-size:8px;line-height:1.7;margin-top:8px;color:#94acc3}
.mahjong24-root .mj-hint svg{width:12px;height:12px;color:#c3b486}
.mahjong24-root .mj-bid-history{border-top:1px solid #1a3e5b;margin-top:6px;padding-top:5px;min-height:24px}
.mahjong24-root .mj-bid-history>div{display:flex;align-items:center;gap:8px;font-size:10px;padding:4px 2px}
.mahjong24-root .mj-bid-history>div:first-child{color:#f8d481}
.mahjong24-root .mj-bid-history>div>span{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mahjong24-root .mj-bid-history svg{width:13px;height:13px}
.mahjong24-root .mj-bid-history small{color:#91aac2;margin-left:auto;white-space:nowrap}
.mahjong24-root .mj-bid-history b{font-size:11px;min-width:89px;text-align:right;white-space:nowrap}
.mahjong24-root .mj-bid-history p{margin:4px;font-size:10px;text-align:center;color:#97acc2}
.mahjong24-root .mj-phase-box{min-height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:3px 0 4px}
.mahjong24-root .mj-phase-box>strong{font-size:13px;letter-spacing:.3px;color:#fae2a4}
.mahjong24-root .mj-phase-box p{font-size:10px;color:#a7bfd5;margin:5px 0 7px}
.mahjong24-root .mj-primary{background:linear-gradient(115deg,#286db5,#075397);border:1px solid #69c8f5;box-shadow:inset 0 1px #b9e5ff55,0 3px 15px #008cff26;color:#f2fbff;padding:10px 22px;font-weight:700;font-size:13px;min-height:42px}
.mahjong24-root .mj-button-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.mahjong24-root .mj-button-row>button{padding:9px 20px;font-size:12px}
.mahjong24-root .mj-link{min-height:34px;margin-top:5px;color:#9bcefa;border:0;background:none;font-size:11px;padding:5px 10px}
.mahjong24-root .mj-link svg{width:15px;height:15px}
.mahjong24-root .mj-arrange-note{font-size:11px;color:#a3dafe;border:1px solid #295078;border-radius:8px;padding:5px 10px;background:#09284466}
.mahjong24-root .mj-arrange-note.is-warning{color:#f5d490;border-color:#736031}
.mahjong24-root .mj-success{display:flex;align-items:center;gap:5px;font-size:11px;color:#aee0cc}
.mahjong24-root .mj-success svg{width:15px;height:15px}
.mahjong24-root .mj-own-section{padding:13px 22px 10px;background:linear-gradient(180deg,#00112405,#02102760)}
.mahjong24-root .mj-own-section h2{font-size:15px;margin:0;display:flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}
.mahjong24-root .mj-own-section h2>svg{color:#b9dfff;width:19px;height:19px;filter:drop-shadow(0 0 6px #029bff)}
.mahjong24-root .mj-own-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:5px;border-bottom:1px solid #62b3e12b}
.mahjong24-root .mj-own-actions{display:flex;align-items:center;gap:6px;flex:none}
.mahjong24-root .mj-own-actions>button{min-height:42px;padding:6px 8px;gap:4px;font-size:11px;border-radius:8px;white-space:nowrap}
.mahjong24-root .mj-own-actions>button svg{width:14px;height:14px}
.mahjong24-root .mj-own-actions>.mj-lock{background:linear-gradient(#d8b766,#806025);border-color:#f1d58d;color:#fff9df;font-weight:700}
.mahjong24-root .mj-own-state{margin:5px 0 0;font-size:10px;line-height:1.4;color:#e4ca90;letter-spacing:1px}
.mahjong24-root .mj-own-backs{display:flex;gap:27px;justify-content:center;margin:auto;width:82%}
.mahjong24-root .mj-own-backs .mj-tile{max-width:45px}
.mahjong24-root .mj-own-hand{display:flex;gap:9px;justify-content:center}
.mahjong24-root .mj-own-card{width:22%;max-width:59px;position:relative}
.mahjong24-root .mj-own-card .mj-tile{max-width:none}
.mahjong24-root .mj-own-card.selected .mj-tile{box-shadow:0 0 0 1px #ffdc81,0 0 13px #d9b65560}
.mahjong24-root .mj-own-card>button{width:100%;min-height:42px;font-size:11px;margin-top:6px;border-radius:6px;padding:4px}
.mahjong24-root .mj-own-card.selected>button{border-color:#caab65;color:#ffe6a9;background:linear-gradient(#4d3d22,#251e14)}
.mahjong24-root .mj-own-caption{text-align:center;color:#b1c4d9;font-size:9px;margin:8px 0 0;text-shadow:0 1px 3px #000}

.mahjong24-root .mj-scratch-hit{touch-action:none;pointer-events:all}



.mahjong24-root .mj-adjust{color:#bee3ff;background:linear-gradient(#0c467d,#082b4a);border-color:#58bafa}
.mahjong24-root .mj-toast{position:fixed;z-index:45;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(90%,420px);display:flex;align-items:center;gap:8px;padding:10px 12px;background:#102d48fa;border:1px solid #d0a464;border-radius:12px;color:#ffe3b8;font-size:12px;box-shadow:0 8px 25px #000b}
.mahjong24-root .mj-toast button{margin-left:auto;min-height:28px;padding:3px;border:0;background:none}.mahjong24-root .mj-toast button svg{width:17px;height:17px}
.mahjong24-root .mj-panel{position:relative;width:min(92vw,430px);height:100%;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);background:linear-gradient(150deg,#0b2949,#030f23);border-left:1px solid #527f9d;display:flex;flex-direction:column;box-shadow:-15px 0 60px #0008;animation:mj24-panel-in .18s ease}
.mahjong24-root .mj-panel>header{display:flex;gap:7px;padding:14px 10px;border-bottom:1px solid #365571;flex-shrink:0}
.mahjong24-root .mj-panel>header button{background:none;border:0;font-size:13px;white-space:nowrap;padding:8px}
.mahjong24-root .mj-panel>header button.active{color:#ffe092;border-bottom:2px solid #dbb66a;border-radius:0}
.mahjong24-root .mj-panel>header button:last-child{margin-left:auto;padding:7px}
.mahjong24-root .mj-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 16px}
.mahjong24-root .mj-messages .mj-chat-message{display:flex;align-items:flex-start;gap:9px;margin-bottom:18px}
.mahjong24-root .mj-chat-message .mj-chat-avatar{width:36px;height:36px;flex:0 0 36px;border:1px solid #6095b7;box-shadow:0 2px 8px #0005;font-size:16px}
.mahjong24-root .mj-chat-message .mj-chat-avatar svg{width:22px;height:22px}
.mahjong24-root .mj-chat-content{min-width:0;flex:1}
.mahjong24-root .mj-chat-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px}
.mahjong24-root .mj-chat-meta strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:11px;color:#c3dded}
.mahjong24-root .mj-chat-meta time,.mahjong24-root .mj-chat-time-unknown{flex:none;white-space:nowrap;color:#97b1c9;font-size:10px;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-messages article p{background:linear-gradient(120deg,#1a405e,#13334f);padding:10px 12px;border:1px solid #315d7e;border-radius:0 12px 12px;margin:5px 0 0;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}
.mahjong24-root .mj-results,.mahjong24-root .mj-rules{padding:22px 18px;overflow:auto;overscroll-behavior:contain;font-size:13px;min-height:0}
.mahjong24-root .mj-result-heading{text-align:center;padding:10px 0 18px;border-bottom:1px solid #2f506e}
.mahjong24-root .mj-result-heading h3{display:flex;align-items:center;justify-content:center;gap:8px}
.mahjong24-root .mj-result-heading h3>svg{color:#edce80;width:25px;height:25px;flex:none}
.mahjong24-root .mj-result-heading>small{letter-spacing:3px;font-size:9px;color:#8ab9d8}
.mahjong24-root .mj-results h3{font-size:22px;color:#ffe29c;margin:7px 0 10px}
.mahjong24-root .mj-result-heading p{font-size:11px;color:#b9cee2;margin:0}.mahjong24-root .mj-result-heading p b{color:#f1d591;margin-left:5px}
.mahjong24-root .mj-results article{margin:16px 0;border:1px solid #355774;border-radius:13px;padding:14px;background:linear-gradient(135deg,#17375199,#0c223c66)}
.mahjong24-root .mj-results article>div:first-child{display:flex;justify-content:space-between;gap:10px}
.mahjong24-root .mj-results article small{font-size:10px;color:#aec2d6;display:block;margin-top:9px}
.mahjong24-root .mj-results article p{font-size:11px;color:#ffc978}
.mahjong24-root .mj-result-tiles{display:flex;gap:5px;margin-top:12px}.mahjong24-root .mj-result-tiles img{width:37px;border-radius:3px}.mahjong24-root .mj-result-tiles img:nth-child(2){margin-right:10px}
.mahjong24-root .mj-win{color:#f5d081}.mahjong24-root .mj-loss{color:#f194a2}.mahjong24-root .mj-muted{color:#a5bbcf;font-size:11px}
.mahjong24-root .mj-empty{color:#a9c0d6;font-size:12px;text-align:center;margin:55px 0}.mahjong24-root .mj-empty>svg{width:37px;height:37px;margin:0 auto 14px;color:#779dbd}
.mahjong24-root .mj-rules h2{color:#f4d591;font-size:26px;margin:10px 0 22px}.mahjong24-root .mj-rules h3{font-size:14px;color:#c7e9ff;margin:25px 0 8px}.mahjong24-root .mj-rules p{margin:12px 0;color:#b6cce0;font-size:12px}.mahjong24-root .mj-eyebrow{letter-spacing:3px;color:#76b6dc;font-size:9px}
.mahjong24-root .mj-jump{position:absolute;bottom:85px;left:50%;transform:translateX(-50%);border-radius:30px;padding:7px 14px;min-height:35px;font-size:11px;border-color:#7396ae;background:#183f5de8;box-shadow:0 5px 20px #0007}.mahjong24-root .mj-jump svg{width:14px;height:14px}
.mahjong24-root .mj-connection-status{position:absolute;top:65px;left:50%;transform:translateX(-50%);z-index:4;white-space:nowrap;font-size:10px;min-height:30px;padding:6px 12px;border-color:#aa9556;background:#352d1beF;color:#ffdfa1;border-radius:20px}
.mahjong24-root.mj-connecting{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;min-height:100dvh;background:radial-gradient(ellipse at 50% 35%,#123964,#030f23 70%);padding:25px;max-width:580px;margin:auto}
.mahjong24-root .mj-connect-back{position:absolute;top:calc(16px + env(safe-area-inset-top));left:15px;border:0;background:none;color:#bad8f0;font-size:12px}
.mahjong24-root .mj-connection-emblem{width:min(90%,340px);filter:drop-shadow(0 0 25px #156ba13a)}.mahjong24-root .mj-connection-emblem img{width:100%;display:block}
.mahjong24-root.mj-connecting h1{font-size:27px;color:#e2f0ff;letter-spacing:5px;margin:25px 0 10px}.mahjong24-root.mj-connecting p{color:#afc8df;font-size:12px;margin:10px 0 20px}
.mahjong24-root .mj-loading-line{height:3px;width:95px;border-radius:3px;background:linear-gradient(90deg,#3673aa30,#aedcfc,#3673aa30);animation:mj24-load 1.3s ease-in-out infinite}
@keyframes mj24-load{50%{opacity:.25;transform:scaleX(.65)}}@keyframes mj24-panel-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(min-width:500px){.mahjong24-root .mj-topbar{height:calc(65px + env(safe-area-inset-top));padding:calc(9px + env(safe-area-inset-top)) 14px 9px}.mahjong24-root .mj-brand>span{font-size:25px}.mahjong24-root .mj-brand>small{font-size:8px}.mahjong24-root .mj-wallet strong{font-size:19px}.mahjong24-root .mj-wallet small{font-size:10px}.mahjong24-root .mj-table{padding-top:14px}.mahjong24-root .mj-banker{margin-top:20px}.mahjong24-root .mj-avatar{width:70px;height:70px}.mahjong24-root .mj-banker>strong{font-size:13px}.mahjong24-root .mj-banker>span:last-child{font-size:13px;padding:5px 16px}.mahjong24-root .mj-banker>span:last-child b{font-size:16px}.mahjong24-root .mj-tile{max-width:70px}.mahjong24-root .mj-leader{padding:9px 14px}.mahjong24-root .mj-leader strong{font-size:14px;max-width:180px}.mahjong24-root .mj-leader small{font-size:10px}.mahjong24-root .mj-leader>b{font-size:18px}.mahjong24-root .mj-actions{padding:14px;margin:0 12px}.mahjong24-root .mj-bid-option>svg{width:35px;height:35px}.mahjong24-root .mj-bid-option>strong,.mahjong24-root .mj-bid-option>small{font-size:14px}.mahjong24-root .mj-hint{font-size:10px}.mahjong24-root .mj-bid-history>div{font-size:12px}.mahjong24-root .mj-bid-history b{font-size:13px}.mahjong24-root .mj-own-section h2{font-size:17px}.mahjong24-root .mj-own-actions>button{font-size:12px;padding:6px 10px}.mahjong24-root .mj-roundline{font-size:11px}.mahjong24-root .mj-online{font-size:11px}}
@media(max-width:360px){.mahjong24-root .mj-topbar{gap:6px;padding-left:7px;padding-right:7px}.mahjong24-root .mj-brand>span{font-size:14px;gap:3px}.mahjong24-root .mj-brand>span svg{width:14px;height:14px}.mahjong24-root .mj-brand>small{font-size:5px;padding-left:19px;letter-spacing:1.7px}.mahjong24-root .mj-wallet strong{font-size:12px}.mahjong24-root .mj-table{padding-left:10px;padding-right:10px}.mahjong24-root .mj-avatar{width:49px;height:49px}.mahjong24-root .mj-banker-hand{width:79%;gap:20px}.mahjong24-root .mj-tile{max-width:45px}.mahjong24-root .mj-leader{padding:6px 7px}.mahjong24-root .mj-leader strong{max-width:90px;font-size:10px}.mahjong24-root .mj-leader>b{font-size:11px}.mahjong24-root .mj-actions{margin:0 7px;padding:10px 7px 8px}.mahjong24-root .mj-bid-grid{gap:5px}.mahjong24-root .mj-bid-option>strong,.mahjong24-root .mj-bid-option>small{font-size:9px}.mahjong24-root .mj-bid-option>svg{width:23px;height:23px}.mahjong24-root .mj-hint{font-size:7px}.mahjong24-root .mj-own-section h2{font-size:14px;gap:4px}.mahjong24-root .mj-own-section h2>svg{width:16px;height:16px}.mahjong24-root .mj-own-actions{gap:5px}.mahjong24-root .mj-own-actions>button{padding:6px;font-size:10px;gap:3px}.mahjong24-root .mj-timer{padding:4px 7px;gap:5px}.mahjong24-root .mj-section-heading h1{font-size:20px}.mahjong24-root .mj-phase-box>strong{font-size:13px}}
/* Keep the bid leader in flow: translated names, wide balances and tablet tile
   sizes must never paint over either banker group label. */
.mahjong24-root .mj-table{display:flex;flex-direction:column;height:auto;min-height:279px}
.mahjong24-root .mj-banker-hand{flex:none;margin-top:14px}
.mahjong24-root .mj-leader{position:relative;left:auto;right:auto;bottom:auto;flex:none;width:80%;margin:11px auto 9px}
@media(max-width:360px){.mahjong24-root .mj-table{min-height:263px}.mahjong24-root .mj-banker-hand{margin-top:14px}.mahjong24-root .mj-leader{width:84%}}
@media(min-width:500px){.mahjong24-root .mj-table{min-height:378px}.mahjong24-root .mj-banker-hand{margin-top:20px}.mahjong24-root .mj-leader{margin-top:11px;margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){.mahjong24-root *,.mahjong24-root *:before,.mahjong24-root *:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}}

/* A single projected, bevelled body includes both material and inlaid artwork.
   No extra CSS slabs or framed whole-tile photographs sit on top of it. */
.mahjong24-root .mj-tile{overflow:visible;background:transparent;border:0;border-radius:8%;box-shadow:none;isolation:isolate;transform-origin:center center}
.mahjong24-root .mj-tile:before,.mahjong24-root .mj-tile:after{content:none}
.mahjong24-root .mj-tile>.mj-solid-tile{filter:drop-shadow(0 4px 3px #0008)}
.mahjong24-root .mj-tile .mj-tile-surface{overflow:hidden}
.mahjong24-root .mj-is-turning>.mj-solid-tile{visibility:hidden;pointer-events:none}
.mahjong24-root .mj-tile.mj-back{background:transparent;border:0;box-shadow:none}


.mahjong24-root .mj-own-card.selected .mj-tile{box-shadow:none;filter:drop-shadow(0 0 4px #f4c86c88)}
.mahjong24-root .mj-result-tiles>.mj-tile{width:38px;max-width:38px;flex:0 0 38px}
.mahjong24-root .mj-result-tiles>.mj-tile:nth-child(2){margin-right:10px}

/* Current banker pool remains distinct from participant bets and the bid. */
.mahjong24-root .mj-banker-pool{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;width:86%;margin:4px auto 0;padding:10px 15px;border:1px solid #c3a6669c;border-radius:12px;background:linear-gradient(#0a2948,#001026);box-shadow:inset 0 1px #ffe3a42b,0 4px 16px #0004}
.mahjong24-root .mj-banker-pool>span{display:flex;align-items:center;gap:6px;font-size:11px;color:#e7cc95}
.mahjong24-root .mj-banker-pool svg{width:16px;height:16px;color:#eccc80}
.mahjong24-root .mj-banker-pool>strong{grid-column:2;grid-row:1/3;font-size:20px;letter-spacing:.2px;color:#ffe3a0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}
.mahjong24-root .mj-banker-pool>small{font-size:8px;letter-spacing:1px;color:#a4b9cd;padding-left:22px}
.mahjong24-root .mj-pool-waiting{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.mahjong24-root .mj-pool-waiting>small{font-size:11px;line-height:1.3;font-weight:400;letter-spacing:0;color:#fff}
.mahjong24-root .mj-table>.mj-leader{width:86%;margin:4px auto 0}
@media(max-width:360px){.mahjong24-root .mj-table>.mj-leader{width:94%}}
.mahjong24-root .mj-betting-box{width:100%}
.mahjong24-root .mj-betting-box:not(.is-selecting)>.mj-bet-edit{width:auto;min-height:36px;padding:6px 12px;margin-top:6px;font-size:12px;border-radius:8px;white-space:nowrap}
.mahjong24-root .mj-bet-confirm{width:100%;margin-top:6px}
.mahjong24-root .mj-betting-box.is-selecting>strong,.mahjong24-root .mj-betting-box.is-selecting>p{display:none}
.mahjong24-root .mj-actions .mj-betting-box .mj-bet-controls{margin:0;padding:0;border:0;background:none}
.mahjong24-root .mj-betting-box .mj-bet-heading{display:none}
.mahjong24-root .mj-betting-box .mj-bet-presets{gap:5px}
.mahjong24-root .mj-betting-box .mj-bet-presets>button{min-height:42px;padding:5px 3px;gap:2px}
.mahjong24-root .mj-betting-box .mj-bet-presets>button b{font-size:11px}
.mahjong24-root .mj-betting-box .mj-bet-presets>button small{font-size:8px}
.mahjong24-root .mj-betting-box .mj-bet-custom{margin-top:8px}
.mahjong24-root .mj-bet-custom.has-confirm{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:stretch}
.mahjong24-root .mj-bet-custom.has-confirm>label{grid-column:1 / -1}
.mahjong24-root .mj-bet-custom.has-confirm>.mj-bet-confirm{width:auto;min-width:80px;min-height:44px;margin:0;padding:8px 12px;font-size:12px;white-space:nowrap}
.mahjong24-root .mj-result-banker{padding-top:16px}
.mahjong24-root .mj-results .mj-score-row{margin:0 0 9px;padding:12px}
.mahjong24-root .mj-results .mj-score-row small{margin-top:4px;font-size:9px}
.mahjong24-root .mj-results .mj-score-row p{font-size:9px;color:#96aec6}
.mahjong24-root .mj-results .mj-score-row-top{justify-content:initial;align-items:center;gap:9px}
.mahjong24-root .mj-results .mj-score-columns{padding-top:10px}
@media(max-width:360px){.mahjong24-root .mj-banker-pool{width:94%;padding:9px 12px}.mahjong24-root .mj-banker-pool>strong{font-size:17px}}

/* The table now emphasizes participation; large own tiles have room to breathe. */
.mahjong24-root .mj-table{min-height:0;padding-bottom:8px}
.mahjong24-root .mj-bet-count{display:flex;align-items:center;justify-content:flex-start;gap:14px;width:86%;margin:8px auto 4px;padding:10px 17px;border:1px solid #82cafa8c;border-radius:16px;background:radial-gradient(ellipse at 30% 0,#0c5ca589,transparent 70%),linear-gradient(130deg,#041c38ed,#02142ef5);box-shadow:inset 0 1px #d1efff28,0 8px 24px #0004;text-align:left}
.mahjong24-root .mj-bet-count-icon{display:grid;place-items:center;width:45px;height:45px;border:1px solid #4998d39e;border-radius:50%;background:#0d3b61;color:#a5e5ff}
.mahjong24-root .mj-bet-count-icon svg{width:25px;height:25px}
.mahjong24-root .mj-bet-count-values{display:flex;flex-direction:column}
.mahjong24-root .mj-bet-count small{display:block;font-size:10px;color:#a2bfd8;letter-spacing:1px}
.mahjong24-root .mj-bet-count strong{font-size:32px;line-height:1.1;color:#ffe2a0;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-bet-count em{font-style:normal;font-size:12px;margin-left:7px;color:#c3d4e4}
.mahjong24-root .mj-bet-count>span:last-child{margin-left:auto;font-size:11px;color:#d6e7f8;text-align:right;white-space:nowrap}
.mahjong24-root .mj-bet-count>span:last-child small{margin-top:5px;font-size:9px}
.mahjong24-root .mj-bettors-backdrop{position:fixed;inset:0;z-index:55;display:grid;place-items:center;padding:16px;background:#0009;backdrop-filter:blur(4px)}
.mahjong24-root .mj-bettors-dialog{width:min(100%,350px);max-height:70dvh;display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid #608fad;border-radius:15px;background:linear-gradient(145deg,#0b2b47,#041427);box-shadow:0 16px 55px #0008;text-align:left}
.mahjong24-root .mj-bettors-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px 9px;border-bottom:1px solid #46718b70;flex:none}
.mahjong24-root .mj-bettors-dialog h2{display:flex;align-items:center;gap:7px;margin:0;font-size:16px;color:#e8d69e}
.mahjong24-root .mj-bettors-dialog h2 svg{width:18px;height:18px}
.mahjong24-root .mj-bettors-dialog>header p{margin:4px 0 0;font-size:10px;color:#9ebbd1}
.mahjong24-root .mj-bettors-dialog>header button{width:42px;height:42px;padding:8px;flex:none;background:#08243c;border-color:#49738f}
.mahjong24-root .mj-bettors-list{list-style:none;margin:0;padding:0 12px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.mahjong24-root .mj-bettor-row{display:flex;align-items:center;gap:9px;min-height:48px;padding:8px 0;border-bottom:1px solid #42667e50}
.mahjong24-root .mj-bettor-row:last-child{border-bottom:0}
.mahjong24-root .mj-bettor-row .mj-result-avatar{width:30px;height:30px;flex:0 0 30px}
.mahjong24-root .mj-bettor-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#d5e7f6}
.mahjong24-root .mj-bettor-row strong{flex:none;font-size:12px;color:#ffe0a0;font-variant-numeric:tabular-nums;white-space:nowrap}
.mahjong24-root .mj-bettors-empty{padding:26px 12px;margin:0;text-align:center;font-size:12px;color:#a8c3d8}

/* Only the non-banker view has this second hand area. Its four tiles share
   the same solid model, while the banker's own-hand controls stay below. */
.mahjong24-root .mj-opponent-section{width:86%;margin:12px auto 8px;padding:9px 12px 10px;border:1px solid #80b6e647;border-radius:13px;background:linear-gradient(130deg,#051c38bb,#04214678)}
.mahjong24-root .mj-opponent-section>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.mahjong24-root .mj-opponent-section h2{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#efd79c;margin:0}
.mahjong24-root .mj-opponent-section h2>svg{width:14px;height:14px}
.mahjong24-root .mj-opponent-section>header>span{font-size:9px;color:#b3c8dc}
.mahjong24-root .mj-opponent-section .mj-banker-hand{width:100%;gap:20px;margin:0 auto}
.mahjong24-root .mj-opponent-section .mj-pair-label{font-size:9px;letter-spacing:1px;white-space:nowrap}
@media(max-width:360px){.mahjong24-root .mj-opponent-section{width:94%;padding:8px 10px}.mahjong24-root .mj-opponent-section .mj-banker-hand{gap:16px}}
@media(min-width:500px){.mahjong24-root .mj-opponent-section h2{font-size:12px}.mahjong24-root .mj-opponent-section>header>span{font-size:10px}}
.mahjong24-root .mj-own-section{padding:14px 12px 18px}
.mahjong24-root .mj-own-hand{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;width:100%;max-width:300px;margin:0 auto;position:relative;isolation:isolate;padding:10px 0 5px}
.mahjong24-root .mj-own-card{width:100%;max-width:none;min-width:0;flex:none;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline:none;transition:filter .16s,box-shadow .16s}
.mahjong24-root .mj-own-hand.is-adjusting .mj-own-card{cursor:grab}
.mahjong24-root .mj-own-card:focus-visible{outline:2px solid #ffe29c;outline-offset:5px;border-radius:8px}
.mahjong24-root .mj-own-card.is-dragging{z-index:9;cursor:grabbing;filter:drop-shadow(0 13px 9px #000b);transition:none}
.mahjong24-root .mj-own-card.is-drop-target .mj-tile,.mahjong24-root .mj-own-card.is-picked .mj-tile{filter:drop-shadow(0 0 7px #ffe1a5);outline:2px dashed #ffe1a5;outline-offset:4px;border-radius:7px}
.mahjong24-root .mj-own-group-label{display:block;text-align:center;font-size:11px;color:#b5d4eb;border:1px solid #5784ac75;background:#082340b3;border-radius:6px;padding:5px 2px;margin-top:9px;pointer-events:none}
.mahjong24-root .mj-own-card.selected .mj-own-group-label{color:#ffe6b0;border-color:#c6a658a3;background:#3b2f1594}
.mahjong24-root .mj-own-backs{flex-direction:column;width:100%;max-width:300px;gap:18px;padding-top:10px}
.mahjong24-root .mj-own-backs .mj-pair{width:100%;max-width:none}
.mahjong24-root .mj-own-backs .mj-pair-tiles{gap:16px}
.mahjong24-root .mj-own-backs .mj-tile{max-width:none}
.mahjong24-root .mj-own-caption{font-size:10px;min-height:18px;margin-top:10px}
.mahjong24-root .mj-adjust.is-active{border-color:#ffe196;color:#ffe8ad;box-shadow:0 0 12px #ffd36c33;background:linear-gradient(#664d22,#302713)}
.mahjong24-root .mj-score-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:18px 12px;background:#000b;backdrop-filter:blur(6px)}
.mahjong24-root .mj-score-dialog{display:flex;flex-direction:column;width:min(100%,440px);max-height:calc(100dvh - 36px);min-height:0;border:1px solid #d4b475;border-radius:21px;overflow:hidden;background:radial-gradient(ellipse at 50% 0,#124d82 0,transparent 45%),linear-gradient(150deg,#08213b,#020d20);box-shadow:inset 0 1px #ffe6aa66,0 20px 80px #000c}
.mahjong24-root .mj-score-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 12px;flex:none}
.mahjong24-root .mj-score-dialog>header span{font-size:8px;letter-spacing:3px;color:#91b9d7}
.mahjong24-root .mj-score-dialog h2{display:flex;align-items:center;gap:10px;font-size:24px;letter-spacing:3px;color:#ffe2a0;margin:6px 0 0}
.mahjong24-root .mj-score-dialog h2 svg{width:28px;height:28px;color:#ffd273}
.mahjong24-root .mj-score-dialog>header button{width:42px;padding:8px;background:#061a2f;border-color:#52718a}
.mahjong24-root .mj-score-summary{display:flex;justify-content:space-between;gap:10px;margin:0 20px 14px;padding-bottom:12px;border-bottom:1px solid #47718c80;font-size:11px;color:#b4cbe0;flex:none}
.mahjong24-root .mj-score-summary b{font-weight:500;color:#e4d099}
.mahjong24-root .mj-score-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 20px}
.mahjong24-root .mj-score-banker{display:flex;align-items:center;gap:10px;background:linear-gradient(110deg,#8b66212e,#071c3366);border:1px solid #cba76770;border-radius:12px;padding:12px}
.mahjong24-root .mj-result-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px}
.mahjong24-root .mj-result-avatar-image{display:grid;place-items:center;width:100%;height:100%;overflow:hidden;border-radius:50%;border:1px solid #6597b4;background:radial-gradient(circle at 35% 25%,#306083,#0a203a);color:#d2eafa;box-shadow:0 2px 6px #0005;font-size:14px;font-weight:600}
.mahjong24-root .mj-result-avatar-image img{display:block;width:100%;height:100%;object-fit:cover}
.mahjong24-root .mj-result-avatar-image>span{display:grid;place-items:center}
.mahjong24-root .mj-result-avatar-image svg{width:21px;height:21px}
.mahjong24-root .mj-result-avatar.is-banker .mj-result-avatar-image{border:2px solid #f3d382;box-shadow:0 0 0 2px #8c652d,0 0 12px #d5a94b45}
.mahjong24-root .mj-result-avatar .mj-result-avatar-crown{position:absolute;top:-11px;left:50%;transform:translateX(-50%);width:20px;height:16px;stroke:#ffe5a1;fill:#ae7b29;filter:drop-shadow(0 1px 2px #000b)}
.mahjong24-root .mj-result-amount{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;flex:none;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-result-status{font-size:16px;line-height:1;flex:none}
.mahjong24-root .mj-tie{color:#c3d8e8}
.mahjong24-root .mj-score-banker>div{min-width:0;flex:1}
.mahjong24-root .mj-score-banker small{font-size:9px;color:#d3b677;display:block}
.mahjong24-root .mj-score-banker strong{font-size:12px;overflow-wrap:anywhere}
.mahjong24-root .mj-score-banker>b{font-size:13px;white-space:nowrap}
.mahjong24-root .mj-score-fee{font-size:9px;color:#9db5cc;margin:8px 0}
.mahjong24-root .mj-score-banker-tiles{margin-bottom:12px}
.mahjong24-root .mj-score-columns{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#7e9bb7;padding:17px 3px 8px}
.mahjong24-root .mj-score-row{border:1px solid #315471;border-radius:12px;padding:12px;margin-bottom:9px;background:linear-gradient(120deg,#163b5866,#081d3280)}
.mahjong24-root .mj-score-row.is-me{border-color:#59b9e5;box-shadow:inset 3px 0 #59b9e5}
.mahjong24-root .mj-score-row-top{display:flex;gap:9px;align-items:center}
.mahjong24-root .mj-score-row-top>div{min-width:0;flex:1}
.mahjong24-root .mj-score-row-top strong{font-size:12px;overflow-wrap:anywhere;display:block}
.mahjong24-root .mj-score-row-top em{font-size:8px;padding:1px 4px;border:1px solid #54bbea;border-radius:4px;color:#a4e3ff;margin-left:5px;font-style:normal}
.mahjong24-root .mj-score-row-top small{display:block;font-size:9px;color:#a3bad0;margin-top:4px}
.mahjong24-root .mj-score-row-top>b{font-size:14px;white-space:nowrap}
.mahjong24-root .mj-score-row .mj-result-tiles{padding-left:43px}
.mahjong24-root .mj-result-group-list{gap:16px}
.mahjong24-root .mj-result-group{width:81px;min-width:0;flex:0 1 81px}
.mahjong24-root .mj-result-group-tiles{display:flex;justify-content:center;gap:5px;min-height:49px}
.mahjong24-root .mj-result-group-tiles>.mj-tile{width:38px;max-width:38px;flex:0 0 38px}
.mahjong24-root .mj-result-group-caption{display:flex;justify-content:center;align-items:center;gap:3px;min-height:24px;margin-top:5px;border-top:1px solid #54738c66;color:#c8ddeb;font-size:9px;white-space:nowrap}
.mahjong24-root .mj-result-group-caption>span:first-child{flex:none;text-align:center}
.mahjong24-root .mj-result-group-status{flex:none;font-size:11px;line-height:1}
.mahjong24-root .mj-result-banker-group-statuses{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:3px;padding:4px 0;white-space:nowrap}
.mahjong24-root .mj-result-banker-group-status{display:inline-flex;align-items:center;gap:1px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:10px;line-height:1;white-space:nowrap}
.mahjong24-root .mj-result-banker-group-status small{font-family:inherit;font-size:8px;color:#c8ddeb;font-variant-numeric:tabular-nums}
.mahjong24-root .mj-result-group-missing{display:grid;place-items:center;color:#91abc0;font-size:9px}
.mahjong24-root .mj-result-immune-note{margin:5px 0 0 43px;font-size:9px;color:#c7ddec}
.mahjong24-root .mj-score-row p{font-size:9px;color:#96aec6;margin:9px 0 0 43px}
.mahjong24-root .mj-score-note{font-size:9px;text-align:center;color:#8ca9c2;padding:5px 0}
.mahjong24-root .mj-score-dialog>footer{padding:12px 20px 18px;border-top:1px solid #254561;flex:none}
.mahjong24-root .mj-score-dialog>footer button{width:100%;border-color:#dcc282;background:linear-gradient(#c3a15c,#745326);color:#fff7df;min-height:44px}
@media(min-width:500px){.mahjong24-root .mj-table{min-height:0}.mahjong24-root .mj-bet-count{padding:12px 22px;margin-top:8px}.mahjong24-root .mj-bet-count strong{font-size:38px}}
@media(max-width:360px){.mahjong24-root .mj-table{min-height:0}.mahjong24-root .mj-bet-count{width:94%;gap:9px;padding:10px 12px}.mahjong24-root .mj-bet-count strong{font-size:28px}.mahjong24-root .mj-own-section{padding-left:10px;padding-right:10px}.mahjong24-root .mj-score-dialog>header{padding:16px 14px 10px}.mahjong24-root .mj-score-dialog h2{font-size:21px}.mahjong24-root .mj-score-body{padding:0 12px}.mahjong24-root .mj-score-summary{margin:0 14px 12px}.mahjong24-root .mj-score-row-top>b{font-size:12px}}

/* Compact the center status panel only; hand sizes and result dialogs stay intact. */
.mahjong24-root .mj-actions .mj-primary{font-size:12px;padding:8px 16px;min-height:42px}
.mahjong24-root .mj-actions .mj-bet-controls{margin:6px 0;padding:8px}
.mahjong24-root .mj-actions .mj-bet-heading{margin-bottom:6px}
@media(min-width:500px){.mahjong24-root .mj-actions{padding:10px}.mahjong24-root .mj-bid-option>svg{width:27px;height:27px}.mahjong24-root .mj-bid-option>strong,.mahjong24-root .mj-bid-option>small{font-size:12px}}
@media(max-width:360px){.mahjong24-root .mj-actions{padding:8px 7px 6px}.mahjong24-root .mj-timer{padding:3px 7px;gap:4px}.mahjong24-root .mj-section-heading h1{font-size:18px}.mahjong24-root .mj-bid-option>svg{width:20px;height:20px}}


.mahjong24-root .mj-arrange-feedback {
  margin: 4px auto 6px;
  padding: 5px 9px;
  max-width: 360px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  color: #f3d99b;
  background: rgba(18, 32, 48, .86);
  border-radius: 6px;
  text-align: center;
  overflow-wrap: anywhere;
}

/* The table/background stay fixed; only bounded content regions may scroll. */
.mahjong24-root.mj-game{background-size:100% 100dvh;background-position:center top;background-origin:border-box;background-clip:border-box}
/* Extend only the lower table's depth by 10%, anchored at its lower rim.
   Blend across the empty floor; upper scenery and interactive elements stay put. */
.mahjong24-root.mj-game::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:inherit;background-size:100% 110dvh;background-position:center -11dvh;-webkit-mask-image:linear-gradient(to bottom,transparent 59%,#000 62%);mask-image:linear-gradient(to bottom,transparent 59%,#000 62%)}
.mahjong24-root.mj-game>.mj-own-section{background:transparent}
.mahjong24-root.mj-game>.mj-topbar{flex:none}
.mahjong24-root.mj-game>.mj-table{flex:0 0 auto;min-height:0;max-height:30%;overflow-y:auto;overscroll-behavior:contain}
.mahjong24-root.mj-game>.mj-round-activity{flex:0 1 auto;min-height:0;max-height:220px}
.mahjong24-root.mj-game>.mj-round-activity>.mj-round-activity-list{flex:1 1 auto;min-height:0}
/* Bidding reserves the bottom controls separately: keep the full pool visible
   and let the list use the remaining space, scrolling only its player rows. */
.mahjong24-root.mj-game[data-bidding-docked="true"]>.mj-table{max-height:none;overflow:visible}
.mahjong24-root.mj-game[data-bidding-docked="true"]>.mj-round-activity{flex:1 1 0;max-height:none;margin-bottom:0}
.mahjong24-root.mj-game[data-bidding-docked="true"]>.mj-round-activity>.mj-round-activity-empty{flex:1 1 auto;min-height:0;display:grid;place-items:center}
.mahjong24-root.mj-game>.mj-own-section{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.mahjong24-root.mj-game:not([data-bidding-docked="true"])>.mj-actions{flex:0 0 auto;min-height:0;max-height:55%;overflow-y:auto;overscroll-behavior:contain}

/* Hand-play status replaces the reserve card, leaving the lower table for cards. */
.mahjong24-root .mj-table>.mj-hand-phase-panel{flex:none;width:90%;margin:8px auto 0;padding:6px 9px;border-radius:10px}
.mahjong24-root .mj-hand-phase-panel .mj-section-heading{gap:8px;margin-bottom:4px}
.mahjong24-root .mj-hand-phase-panel .mj-section-heading>div>span{display:none}
.mahjong24-root .mj-hand-phase-panel .mj-section-heading h1{font-size:15px;letter-spacing:1px}
.mahjong24-root .mj-hand-phase-panel .mj-timer{padding:2px 7px}
.mahjong24-root .mj-hand-phase-panel .mj-timer b{font-size:15px}
.mahjong24-root .mj-hand-phase-panel .mj-phase-box{min-height:0;padding:0;gap:3px}
.mahjong24-root .mj-hand-phase-panel .mj-phase-box>strong{font-size:11px}
.mahjong24-root .mj-hand-phase-panel .mj-phase-box p{font-size:9px;margin:0}
.mahjong24-root .mj-hand-phase-panel .mj-arrange-note{font-size:10px;padding:2px 7px}
.mahjong24-root .mj-hand-phase-panel .mj-primary{min-height:42px;padding:4px 12px;font-size:11px}

.mahjong24-root .mj-renewal-layout{position:absolute;inset:0;z-index:5;pointer-events:none}
.mahjong24-root .mj-renewal-main{position:absolute;top:30%;left:6%;right:6%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;text-shadow:0 2px 5px #001029}
.mahjong24-root .mj-renewal-main>strong{font-size:13px;color:#fae2a4}
.mahjong24-root .mj-renewal-main>p{margin:0;font-size:10px;color:#b5cee2}
.mahjong24-root .mj-renewal-layout[data-viewer="player"] .mj-renewal-main{top:33%;left:67%;right:4%;align-items:flex-start;text-align:left}
.mahjong24-root .mj-renewal-main .mj-button-row{gap:8px;flex-wrap:nowrap;margin:3px 0 0}
.mahjong24-root .mj-renewal-main .mj-button-row>button{font-size:12px;padding:7px 18px;min-height:36px;white-space:nowrap;pointer-events:auto}
.mahjong24-root .mj-renewal-results{position:absolute;top:57%;left:6%;right:6%;display:flex;flex-direction:row;justify-content:center;gap:10px}
.mahjong24-root .mj-renewal-results>button{flex:1;max-width:190px;min-width:0;min-height:42px;padding:8px 6px;font-size:11px;white-space:nowrap;pointer-events:auto;background:linear-gradient(#103956e8,#072440ef);border-color:#5789a8}
.mahjong24-root .mj-renewal-results>button svg{width:14px;height:14px;flex:none}
/* Opt-in multiplayer skin. No selectors touch the four-player room or lobby. */
.mahjong24-root.mj-game.mj-galaxy-game{width:min(100%,630px);height:100dvh;display:grid;grid-template-rows:minmax(42px,5dvh) minmax(0,1fr) 72px calc(128px + env(safe-area-inset-bottom,0px));padding:0;background:#111b25;container-type:inline-size}
.mahjong24-root.mj-game.mj-galaxy-game::before{display:none}
.mahjong24-root.mj-game.mj-galaxy-game[data-bidding-docked]{padding:0}
.mahjong24-root.mj-game.mj-galaxy-game>.mj-topbar{height:auto;min-height:0;grid-template-columns:minmax(0,1fr) auto auto;padding:3px 9px;background:linear-gradient(#202831,#10161e);border-color:#c1a46c70;box-shadow:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-brand>span{color:#f7d796;font-size:clamp(12px,3.2cqw,18px);text-shadow:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-brand>span svg{display:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-brand>small{padding:0;font-size:7px;color:#bd9d62}
.mahjong24-root.mj-game.mj-galaxy-game .mj-wallet{display:flex;align-items:center;justify-content:flex-end;align-self:stretch}
.mahjong24-root.mj-game.mj-galaxy-game .mj-wallet small{display:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-wallet strong{display:flex;align-items:baseline;gap:4px;font-size:clamp(14px,4cqw,20px);line-height:28px;letter-spacing:-.3px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-wallet em{font-size:clamp(12px,3.3cqw,17px);line-height:inherit}
.mahjong24-root.mj-game.mj-galaxy-game .mj-roundline{font-size:9px;letter-spacing:0}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-arena{position:relative;min-height:0;isolation:isolate;overflow:hidden;background:#121d29}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-background{position:absolute;inset:0;z-index:-2;background:url('/assets/mahjong24/galaxy-table-20261015.png') center -14px/auto 145% no-repeat}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-background::after{content:"";position:absolute;inset:0;background:linear-gradient(#0004,transparent 45%,#0001)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-arena .mj-tabletop-canvas .mj-tabletop-status{display:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-countdown{position:absolute;right:5%;bottom:3%;z-index:8;display:flex;flex-direction:row;align-items:center;gap:8px;pointer-events:none;color:#f6d999}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-countdown>strong{font-size:10px;line-height:16px;text-shadow:0 1px 3px #000;font-weight:600}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-countdown-ring{position:relative;width:58px;height:58px;border-radius:50%;background:#102131dc;box-shadow:0 2px 10px #0005}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-countdown-ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:3}
.mahjong24-root.mj-game.mj-galaxy-game .mj-countdown-track{stroke:#d8bd7738}
.mahjong24-root.mj-game.mj-galaxy-game .mj-countdown-progress{stroke:#f4cf7c;stroke-linecap:round;transition:stroke-dashoffset 1s linear}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-countdown-ring>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:2px;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-countdown-ring small{font-size:8px;font-weight:400;margin-top:8px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-countdown.is-urgent{color:#ffbda2}
.mahjong24-root.mj-game.mj-galaxy-game .is-urgent .mj-countdown-progress{stroke:#ff926d}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-sidebar{position:absolute;top:12px;bottom:24%;z-index:7;display:flex;flex-direction:column;min-height:0;background:linear-gradient(110deg,#111d26ee,#111923e8);border:1px solid #aa8e5680;border-radius:10px;box-shadow:0 5px 16px #0006;backdrop-filter:blur(6px);overflow:hidden}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-latest{left:4px;width:calc(16% - 4px)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-scores{right:4px;width:calc(26% - 4px)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-sidebar.is-collapsed{display:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-sidebar h2{flex:none;margin:0;padding:8px 1px;border-bottom:1px solid #c9aa5844;color:#f0d59e;font-size:clamp(9px,2.2cqw,12px);text-align:center;font-weight:500}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-sidebar h2 button{display:block;width:100%;min-height:0;padding:0;border:0;background:none;font-size:inherit;border-radius:0}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-sidebar h2 small{display:block;font-size:8px;color:#b0a68e}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-side-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-portrait{width:clamp(26px,7cqw,38px);height:clamp(26px,7cqw,38px);border-radius:50%;border:1px solid #ccb582;background:linear-gradient(135deg,#8a7f78,#3e4f64);display:inline-flex;align-items:center;justify-content:center;font-size:14px;overflow:hidden;flex:none;color:#fff3d6}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-portrait img{width:100%;height:100%;object-fit:cover}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-person{display:flex;flex-direction:column;align-items:center;padding:10px 2px;gap:3px;border-bottom:1px solid #ffffff0b}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-person strong{max-width:100%;font-size:10px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-person b{color:#f0d59e;font-size:10px;font-weight:500}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-person small{font-size:8px;color:#8a9b9c}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px;padding:9px 4px;border-bottom:1px solid #ffffff0b}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result .mj-galaxy-portrait{width:25px;height:25px;font-size:10px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:500}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result b{font-size:9px;font-weight:500;display:block}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result .is-win{color:#8bd6be}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result .is-loss{color:#f7b0ae}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result-tiles{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-result-tiles>span{aspect-ratio:160/188;min-width:0}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-empty{font-size:9px;color:#a4adb1;text-align:center;padding:18px 2px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-toggle{position:absolute;top:37%;z-index:8;min-height:0;display:flex;flex-direction:column;gap:2px;padding:5px 1px;border-color:#ab925c77;background:#172431ed;border-radius:4px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-toggle.is-left{left:16%}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-toggle.is-right{right:26%}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-toggle.is-left.is-closed{left:0}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-toggle.is-right.is-closed{right:0}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-toggle svg{width:11px;height:11px}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-toggle span{writing-mode:vertical-rl;font-size:9px;letter-spacing:2px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-arena>.mj-table{position:absolute;left:19%;top:4%;width:26%;height:28%;padding:0;z-index:4;overflow:visible;min-height:0;max-height:none;pointer-events:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-banker{margin:18px auto 0;max-width:100%}
.mahjong24-root.mj-game.mj-galaxy-game .mj-banker .mj-avatar{width:clamp(38px,10cqw,64px);height:clamp(38px,10cqw,64px);font-size:22px;box-shadow:0 0 0 3px #c5a86528;border:2px solid #d7b66d}
.mahjong24-root.mj-game.mj-galaxy-game .mj-banker>strong{border:0;background:none;min-width:0;width:100%;max-width:100%;padding:3px 0;margin-top:2px;font-size:12px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-banker-pool{position:absolute;left:112%;top:40px;width:145%;padding:8px 6px;margin:0;border:1px solid #c9aa5855;border-radius:8px;background:linear-gradient(125deg,#102434ed,#0c1825e6);box-shadow:0 3px 12px #0004;text-align:center;display:flex;flex-direction:column;gap:4px;align-items:center}
.mahjong24-root.mj-game.mj-galaxy-game .mj-banker-pool>span{font-size:8px;color:#c8b993}.mahjong24-root.mj-game.mj-galaxy-game .mj-banker-pool svg,.mahjong24-root.mj-game.mj-galaxy-game .mj-banker-pool>small{display:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-banker-pool>strong{font-size:12px;color:#ffe1a0}.mahjong24-root.mj-game.mj-galaxy-game .mj-pool-waiting{font-size:10px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-leader{padding:3px;border:0;background:#0d1e2cdd;font-size:9px;display:flex;flex-wrap:wrap;justify-content:center;gap:3px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-leader-badge{display:none}.mahjong24-root.mj-game.mj-galaxy-game .mj-leader>b{margin:0;font-size:10px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-status,.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase,.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-canvas[data-viewer="player"][data-dealing="true"] .mj-tabletop-status,.mahjong24-root.mj-game.mj-galaxy-game[data-settled="true"] .mj-tabletop-status{position:absolute;top:44%;left:45%;transform:translateX(-50%);width:52%;display:flex;align-items:center;justify-content:space-between;gap:4px;border:1px solid #ceb27170;background:#11212eea;border-radius:7px;padding:5px 8px;color:#f0d8a6;z-index:5}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-status>strong,.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase>strong{font-size:11px;letter-spacing:0;white-space:nowrap}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-status>span,.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase>span{display:flex;align-items:center;gap:3px;padding:0;border:0;background:none;color:#ffe29a;font-size:16px;font-weight:700;white-space:nowrap}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-status svg,.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase svg{display:none}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase small{font-size:8px;font-weight:400}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-group-label{left:26%;top:68%;font-size:10px}.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-group-label.is-lower{top:79%}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-row-banker .mj-tabletop-group-label{display:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-piece{filter:drop-shadow(2px 4px 1px #0008)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-tile-shadow{position:absolute;left:7%;right:-9%;bottom:-3%;height:19%;background:radial-gradient(ellipse,#000a,transparent 72%);transform:skewX(-24deg);filter:blur(2px);pointer-events:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-tools{top:63%;bottom:15%;left:61%;right:27%;display:flex;flex-direction:column;justify-content:space-around;gap:5px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-tools>button{min-width:0;min-height:26px;padding:4px 3px;gap:2px;font-size:clamp(9px,2cqw,12px);border-radius:6px;background:#122638e8}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-tools svg{width:11px;height:11px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-tools>.mj-tabletop-lock{color:#302717;background:linear-gradient(135deg,#f4ddb0,#d5ad63);border-color:#f5d795}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-canvas .mj-tabletop-arrange-hint{top:68%;bottom:auto;left:62%;right:4%;transform:none;font-size:9px;line-height:1.6;text-align:left;white-space:normal;overflow-wrap:anywhere;margin:0;padding:5px 7px;border-radius:6px;background:#102334b8;pointer-events:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-wait{top:82%;left:18%;right:27%;font-size:10px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-table-die-0{left:35%;top:68%}.mahjong24-root.mj-game.mj-galaxy-game .mj-table-die-1{left:52%;top:72%}.mahjong24-root.mj-game.mj-galaxy-game .mj-dice-caption{top:83%;left:16%;right:26%;font-size:11px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-controls{position:relative;grid-row:3;min-height:0;padding:5px 8px;background:linear-gradient(#23313e,#131c26);border-top:1px solid #b19a6c;border-bottom:1px solid #b19a6c66;z-index:8}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-balance{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:9px;color:#b5c3cc;margin-bottom:5px}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-balance b{color:#e9cf95;font-size:11px;margin-left:5px}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-balance small{font-size:8px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-control-row{display:flex;gap:7px;align-items:center;min-width:0}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-chip{--chip-light:#50baff;--chip-color:#1978d2;--chip-dark:#08417c;position:relative;isolation:isolate;width:clamp(34px,9cqw,46px);height:clamp(34px,9cqw,46px);min-height:0;flex:none;padding:0;border:1px solid #e5f2ffbc;border-radius:50%;background:radial-gradient(circle at 35% 23%,#ffffff70,transparent 47%),repeating-conic-gradient(from -12deg,#f4f8ff 0deg 17deg,var(--chip-color) 17deg 60deg);box-shadow:0 3px 0 var(--chip-dark),0 4px 0 #06131e,0 5px 7px #0009,inset 0 0 0 1px #ffffff73;color:#fff;font-size:10px;font-weight:800;text-shadow:0 1px 2px #0008;transition:transform .12s,filter .12s;display:inline-flex;align-items:center;justify-content:center}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-chip::before{content:"";position:absolute;inset:5px;border:1px solid #ffffffbc;border-radius:50%;background:radial-gradient(circle at 32% 20%,var(--chip-light),var(--chip-color) 58%,var(--chip-dark));box-shadow:0 0 0 1px var(--chip-dark),inset 0 1px 2px #ffffff70,inset 0 -2px 3px #0004;z-index:-1}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-chip:nth-child(2){--chip-light:#5bdfb0;--chip-color:#139367;--chip-dark:#06583e}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-chip:nth-child(3){--chip-light:#ff8c91;--chip-color:#d93849;--chip-dark:#831a2b;font-size:8px;letter-spacing:-.35px;white-space:nowrap}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-chip:active:not(:disabled){transform:translateY(2px);filter:brightness(1.12)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-chip:focus-visible{outline:2px solid #ffe0a0;outline-offset:4px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-control-row input{min-width:0;width:0;flex:1;height:30px;border:1px solid #806a434f;border-radius:6px;background:#0d151f;color:#fff;text-align:center;font-size:16px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-submit{min-height:30px;padding:5px 9px;font-size:11px;white-space:nowrap;background:linear-gradient(#e5cca0,#b7985e);color:#1d242b;border-color:#deba7e;border-radius:6px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-hand-actions{display:flex;align-items:center;justify-content:center;gap:10px;min-height:32px;color:#e9cf95;font-size:12px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-hand-actions>button{flex:1;max-width:180px;min-height:30px;padding:5px 14px;border-radius:7px;font-size:12px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-recommend{background:linear-gradient(#244764,#142c42);border:1px solid #8faec66b;color:#e5effa}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-cancel{position:absolute;bottom:0;right:8px;min-height:18px;padding:0 4px;font-size:9px;border:0;background:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-input-error{position:absolute;bottom:100%;left:19%;right:27%;padding:5px;background:#352c20ee;border:1px solid #c7a86b;border-radius:5px;font-size:10px;color:#ffe0aa}
.mahjong24-root.mj-game.mj-galaxy-game .mj-dice-confirm{padding:0;gap:3px;font-size:10px}.mahjong24-root.mj-game.mj-galaxy-game .mj-dice-confirm small{font-size:8px}.mahjong24-root.mj-game.mj-galaxy-game .mj-dice-confirm-buttons{gap:5px}.mahjong24-root.mj-game.mj-galaxy-game .mj-dice-confirm-buttons button{min-height:27px;padding:3px 8px;font-size:11px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-layout{position:relative;inset:auto;grid-row:3;display:flex;align-items:center;justify-content:space-around;gap:6px;padding:5px 8px;background:#172634;border-top:1px solid #b19a6c;z-index:8}
.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-main,.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-layout[data-viewer="player"] .mj-renewal-main{position:static;align-items:center;text-align:center;gap:2px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-main>strong{font-size:11px}.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-main>p{font-size:9px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-main .mj-button-row>button{min-height:26px;padding:3px 10px;font-size:10px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-results{position:static;flex-direction:column;gap:3px}.mahjong24-root.mj-game.mj-galaxy-game .mj-renewal-results>button{min-height:25px;padding:3px 6px;font-size:9px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock.is-inline{position:relative;grid-row:4;left:auto;bottom:auto;width:100%;height:100%;transform:none;max-height:none;border:0;border-radius:0;background:linear-gradient(120deg,#18232d,#101922);z-index:9;box-shadow:none;padding-bottom:env(safe-area-inset-bottom,0px)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock.is-inline.is-expanded{position:absolute;grid-area:auto;inset:auto 0 0;height:min(calc(352px + env(safe-area-inset-bottom,0px)),calc(100dvh - 48px));box-shadow:0 -8px 28px #0006;border-top:1px solid #b19a6c66}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-inline-scrim{position:absolute;inset:0;z-index:8;width:100%;height:100%;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;cursor:default}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-inline-toggle{flex:0 0 28px;min-height:28px;width:100%;padding:3px 8px;display:flex;align-items:center;justify-content:center;gap:5px;border:0;border-bottom:1px solid #ffffff12;border-radius:0;background:#1b2937;color:#e7d4ac;font-size:10px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-inline-toggle svg{width:12px;height:12px;transform:rotate(0deg)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-inline-toggle svg.is-expanded{transform:rotate(180deg)}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock.is-inline .mj-panel{height:auto;max-height:none;min-height:0;flex:1;border:0;border-radius:0;animation:none;background:transparent;display:flex;flex-direction:column}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock .mj-panel>header{height:29px;flex:none;min-height:0;padding:0 9px;border-bottom:1px solid #ffffff12}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock .mj-panel>header button{min-height:26px;padding:3px 7px;font-size:10px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock .mj-panel>header button[aria-label="收起聊天和成绩榜"],.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer .mj-chat-expand{display:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-messages{flex:1;min-height:0;overflow:auto;padding:5px 9px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-message{gap:7px;margin:0 0 7px}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-avatar{width:26px;height:26px;min-width:26px;max-width:26px;flex:0 0 26px;aspect-ratio:1;border-radius:50%;overflow:hidden;padding:0;box-shadow:none;border:1px solid #c9b380;font-size:12px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-avatar img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-meta strong{font-size:10px}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-meta time{font-size:8px}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-content p{font-size:11px;padding:5px 8px;margin-top:3px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-meta{min-height:18px;line-height:18px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-content p{line-height:16px;padding:4px 8px;width:fit-content;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;white-space:pre-wrap}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer{padding:4px 8px;gap:5px}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer input{min-height:30px;height:30px;line-height:20px;padding:4px 10px;font-size:16px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer button{width:30px;height:30px;min-height:30px;flex-basis:30px}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer button svg{width:18px;height:18px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer .mj-chat-send{background:#b99d68;color:#15202a;border-color:#b99d68}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer input{grid-area:1/1;width:100%;box-sizing:border-box;padding-right:38px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer .mj-chat-emoji-toggle{grid-area:1/1;justify-self:end;z-index:1;margin-right:3px;width:26px;height:26px;min-height:26px;padding:3px;border:0;border-radius:50%;background:transparent;box-shadow:none}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-composer .mj-chat-send{grid-area:1/2}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-emojis{position:absolute;bottom:42px;left:0;right:0;background:#182b3df5;max-height:140px;z-index:2}
.mahjong24-root.mj-game.mj-galaxy-game .mj-results,.mahjong24-root.mj-game.mj-galaxy-game .mj-rules{min-height:0;flex:1;overflow:auto}
.mahjong24-root .mj-score-dialog .mj-result-group-caption{display:flex;justify-content:center;align-items:center;gap:3px;font-size:9px;white-space:nowrap}
.mahjong24-root .mj-score-dialog .mj-result-banker-group-statuses{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:3px;white-space:nowrap}
.mahjong24-root .mj-score-dialog .mj-result-banker-group-status{font-size:10px;gap:1px;white-space:nowrap}
.mahjong24-root .mj-score-dialog .mj-result-banker-group-status small{font-size:8px}
.mahjong24-root .mj-score-dialog .mj-result-group-status{font-size:11px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar{position:relative;flex:0 0 72px;min-height:0;background:#162432}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar>.mj-galaxy-controls,.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar>.mj-renewal-layout{height:100%;box-sizing:border-box;padding-right:66px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar .mj-galaxy-countdown{right:6px;top:0;bottom:0;justify-content:center;flex-direction:column;gap:1px;width:52px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar .mj-galaxy-countdown>strong{font-size:9px;line-height:12px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar .mj-galaxy-countdown-ring{width:38px;height:38px}
.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar .mj-galaxy-countdown-ring>span{font-size:15px}
@media(max-height:650px){.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase-bar{flex-basis:64px}}
.mahjong24-root.mj-game.mj-galaxy-game:not([data-legacy-layout]){grid-template-rows:minmax(42px,5dvh) minmax(0,1fr) 0 calc(200px + env(safe-area-inset-bottom,0px))}
.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock.is-inline>.mj-galaxy-controls,.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock.is-inline>.mj-renewal-layout{flex:0 0 72px;box-sizing:border-box;width:100%;grid-row:auto}
.mahjong24-root.mj-game.mj-galaxy-game:not([data-legacy-layout]) .mj-chat-dock.is-inline.is-expanded{height:min(calc(424px + env(safe-area-inset-bottom,0px)),calc(100dvh - 48px))}
@media(max-height:650px){.mahjong24-root.mj-game.mj-galaxy-game:not([data-legacy-layout]){grid-template-rows:38px minmax(0,1fr) 0 calc(184px + env(safe-area-inset-bottom,0px))}.mahjong24-root.mj-game.mj-galaxy-game:not([data-legacy-layout]) .mj-chat-dock.is-inline>.mj-galaxy-controls,.mahjong24-root.mj-game.mj-galaxy-game:not([data-legacy-layout]) .mj-chat-dock.is-inline>.mj-renewal-layout{flex-basis:64px}}
@media(max-height:650px){.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-dock.is-inline.is-expanded{height:min(calc(304px + env(safe-area-inset-bottom,0px)),calc(100dvh - 44px))}}
@media(max-height:650px){.mahjong24-root.mj-game.mj-galaxy-game{grid-template-rows:38px minmax(0,1fr) 64px calc(120px + env(safe-area-inset-bottom,0px))}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-message{margin-bottom:5px}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-meta{min-height:16px;line-height:16px}.mahjong24-root.mj-game.mj-galaxy-game .mj-chat-content p{font-size:10px;line-height:14px;padding:3px 7px;margin-top:2px}.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-tools>button{min-height:23px}.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-status,.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-phase{padding:3px 6px}.mahjong24-root.mj-game.mj-galaxy-game .mj-galaxy-arena>.mj-table{top:1%}.mahjong24-root.mj-game.mj-galaxy-game .mj-banker .mj-avatar{height:30px;width:30px}.mahjong24-root.mj-game.mj-galaxy-game .mj-tabletop-arrange-hint{bottom:16%}}
/*$vite$:1*/