/* Reference felt and polygon racks; compact three-layer rivers share one camera. */
.mj-table{--self-tile:4.9cqw;--public-tile-width:3.37cqw;--public-tile-aspect:1.28;--public-tile-thickness:.59;--small-tile:var(--public-tile-width);--river-tile:var(--public-tile-width);--river-gap:.06cqw;--river-span:calc(var(--river-tile)*6 + var(--river-gap)*5);--compass-size:22cqw;--center-y:50%;container-type:inline-size;width:100%;max-width:none;margin:auto;gap:6px}
.mj-head{padding:5px 8px;background:#102039e8;border:1px solid #5c72984f;border-radius:4px;color:#d7e7f1;font-size:11px}
.mj-arena{padding:0 0 7px;perspective:none;container-type:inline-size;width:100%;max-width:100%;margin-inline:auto;flex:none}
.mj-soul.mj-table-surface{display:block;position:relative;width:100%;aspect-ratio:1672/941;min-height:0;padding:0;border:0;border-radius:0;transform:none;background:transparent;box-shadow:none;overflow:visible;isolation:isolate}
.mj-soul.mj-table-surface::before,.mj-soul.mj-table-surface::after,.mj-plane::before,.mj-plane::after{content:none}
.mj-soul>.mj-plane{position:absolute;inset:0;z-index:2;transform:none;transform-style:flat;background:none;border:0;box-shadow:none}
/* Fixed camera height equals the ORIGINAL landscape strip in both orientations. */
.mj-table-camera{position:absolute;left:0;right:0;top:0;height:56.2799cqw;transform-origin:0 0;transform:none;transform-style:preserve-3d;pointer-events:none}
/* Logical player owners have one rack each. */
.mj-soul .mj-seat{display:contents}
.mj-soul .mj-rack{position:absolute;display:flex;align-items:flex-end;justify-content:center;width:max-content;max-width:none;gap:1.8cqw;padding:0;z-index:4;transform-style:preserve-3d}
.mj-soul .mj-seat-north>.mj-rack{left:54%;top:-7%;transform:translateX(-50%) rotate(180deg) scale(var(--rack-fit,1))}
.mj-soul .mj-seat-west>.mj-rack{left:13%;top:51%;transform:translate(-50%,-50%) rotate(90deg) scale(var(--rack-fit,1))}
.mj-soul .mj-seat-east>.mj-rack{left:87%;top:51%;transform:translate(-50%,-50%) rotate(-90deg) scale(var(--rack-fit,1))}
.mj-soul .mj-seat-south>.mj-rack{left:5%;bottom:4%;width:90%;justify-content:center;transform:none}
.mj-soul .mj-self.mj-seat-south>.mj-rack{justify-content:flex-start;transform:perspective(120cqw) rotateX(48deg) scale3d(.92,1.15,1);transform-origin:left bottom}
.mj-soul .mj-seat .mj-seat-hand,.mj-soul .mj-front-rack .mj-seat-hand{position:relative;display:flex;flex-flow:row nowrap;align-items:flex-end;justify-content:flex-start;width:max-content;max-width:none;min-height:0;margin:0;padding:0;gap:.14cqw;transform:none;grid-template-columns:none;flex:none;transform-style:preserve-3d}
/* Height-project three equal rounded planes before clipping their six-sided
   envelope. Local standing hands retain a four-corner rectangular envelope. */
.mj-soul .mj-tile,.mj-soul .mj-tile.sm,.mj-soul .mj-seat .mj-tile{--tile-w:var(--public-tile-width);--tile-length:calc(var(--tile-w)*var(--public-tile-aspect));--tile-depth:calc(var(--tile-w)*var(--public-tile-thickness));position:relative;display:block;flex:none;width:var(--tile-w);height:var(--tile-length);min-height:0;aspect-ratio:auto;margin:0!important;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:0;outline-offset:0;transform:none!important;transform-origin:center;transform-style:preserve-3d;opacity:1;filter:none;overflow:visible;line-height:0;user-select:none;touch-action:manipulation;isolation:auto}
.mj-soul .mj-tile svg{filter:none;border-radius:0}
.mj-soul .mj-tile-frame{z-index:1;position:absolute;display:block;overflow:hidden;isolation:isolate;transform-style:flat;pointer-events:none;line-height:0;background:transparent}
.mj-soul{--mj-back-gold:#cf8021;--mj-side-gold:#ff9e29}
.mj-soul .mj-tile .mj-tile-frame>.mj-symbol{position:absolute;display:grid;place-items:center;padding:0;border:0;transform:none;backface-visibility:visible;font-family:'Table Mahjong','Segoe UI Symbol',serif;font-size:calc(var(--tile-w)*1.35);font-weight:400;line-height:1;letter-spacing:0;background:var(--surface-art) center/111% 111% no-repeat #f7f6ee;box-shadow:none;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);z-index:3}
.mj-soul .mj-tile-frame>.mj-symbol.dragon-1,.mj-soul .mj-front-rack .mj-hand .mj-tile-frame>.mj-symbol.dragon-1{font-family:'Table Mahjong','Segoe UI Symbol',serif;font-size:calc(var(--tile-w)*1.27)}
.mj-soul .mj-symbol .mj-ink,.mj-soul .mj-symbol.dragon-1 .mj-ink{transform:none}
.mj-soul .mj-tile-frame>.mj-symbol::before,.mj-soul .mj-tile-frame>.mj-symbol::after,.mj-soul .mj-tile::before,.mj-soul .mj-tile::after{content:none}
.mj-soul .mj-tile-frame>.mj-layer-core,.mj-soul .mj-tile-frame>.mj-body-bottom{position:absolute;display:block;right:auto;bottom:auto;pointer-events:none;border:0;transform:none;box-shadow:none}
.mj-soul .mj-tile-frame>.mj-layer-core{background:linear-gradient(#bfc4c2d9,#bfc4c2d9),var(--surface-art) center/100% 100% #bfc4c2;z-index:2}
.mj-soul .mj-tile-frame>.mj-body-bottom{background:var(--mj-side-gold);z-index:0}
.mj-soul .mj-layer-bridge{position:absolute;inset:0;display:block;max-width:none;z-index:1;overflow:visible;pointer-events:none}
.mj-soul .mj-tile-rim{position:absolute;inset:0;display:block;max-width:none;z-index:4;overflow:visible;pointer-events:none}
.mj-soul .mj-tile-rim>path{fill:none;stroke:#505b56;stroke-opacity:1;stroke-linejoin:round}
.mj-soul.is-rim-off .mj-tile-rim,.mj-soul.is-rim-off .mj-standing-art [data-piece='edge']{display:none}
.mj-soul .mj-tile-outline{position:absolute;inset:0;display:none;width:100%;height:100%;max-width:none;z-index:5;overflow:visible;pointer-events:none}
.mj-soul .mj-tile-outline>path{stroke:#9dd6e5;stroke-width:clamp(3.6px,.44cqw,6px);stroke-linejoin:round;stroke-linecap:round;fill:none}
.mj-soul .mj-anchor-probes,.mj-soul .mj-volume-probes{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;transform-style:preserve-3d}
.mj-soul .mj-front-rack[data-pose='laid'] .mj-volume-probes{transform:none}
.mj-soul .mj-projection-point{position:absolute;display:block;width:0;height:0;margin:0;padding:0;border:0;pointer-events:none}
.mj-soul .mj-tile .mj-tile-frame>.mj-symbol-back{font-size:0;color:transparent;background:var(--mj-back-gold)}
.mj-soul .mj-meld .is-back .mj-layer-core{background:var(--mj-side-gold)}
.mj-soul .mj-meld .is-back .mj-body-bottom{background:#bdc2bf}
/* Four-tone concealed cuboids share the table camera and one six-edge clip. */
.mj-soul .mj-seat .mj-backs{gap:0;border-radius:0;box-shadow:none}
.mj-soul .mj-backs>.mj-tile{--standing-height:var(--tile-length);width:var(--tile-w);height:var(--tile-depth);transform:none!important}
.mj-soul .mj-backs>.mj-tile.is-remote-drawn{margin-left:.7cqw!important}
.mj-soul .mj-standing-frame{position:absolute;display:block;overflow:hidden;pointer-events:none;transform-style:flat;isolation:isolate}
.mj-soul .mj-standing-art{display:block;width:100%;height:100%;max-width:none;overflow:visible}
.mj-soul .mj-standing-probes{position:absolute;display:block;inset:0;transform-style:preserve-3d;pointer-events:none}
/* Orthographic local rack; its upper edge is about one third of the old thickness. */
.mj-soul .mj-front-rack{position:absolute;left:calc(11% + var(--self-tile));right:auto;bottom:.5%;z-index:10;width:71%;max-width:90%;transform:none;perspective:none}
.mj-soul .mj-front-rack[hidden]{display:none}
.mj-soul .mj-front-rack[data-pose='laid']{--self-tile:var(--small-tile);top:86%;bottom:auto;transform-style:preserve-3d}
/* The unclipped hit box must not inherit generic button hover/active paint. */
.mj-soul .mj-front-rack .mj-hand>.mj-tile{--tile-w:var(--self-tile);height:calc(var(--tile-w)*1.34);border-radius:0;background:transparent;box-shadow:none!important;transform:none!important}
.mj-soul .mj-front-rack .mj-hand>.is-drawn{margin-left:.7cqw!important}

.mj-soul button.mj-tile:disabled{cursor:default;opacity:1;filter:none}
.mj-soul button.mj-tile:disabled .mj-symbol{filter:saturate(.78) contrast(.96)}
.mj-soul .mj-front-rack[data-revealed='true'] button.mj-tile:disabled .mj-symbol{filter:none}
.mj-soul button.mj-tile:focus-visible{outline:0}
.mj-soul .mj-front-rack button.mj-tile>.mj-tile-frame{pointer-events:auto}
.mj-soul .mj-front-rack .mj-tile>.mj-tile-frame>.mj-tile-outline{display:none!important}
.mj-soul .mj-front-rack .mj-hand>.mj-tile{transition:translate .12s ease}
.mj-soul .mj-front-rack .mj-hand>.mj-tile:is(:hover,:focus-visible,.is-selected){translate:0 -33.333333%;z-index:100000000!important}
/* The transparent original hit area joins the lifted face, avoiding hover chatter. */
.mj-soul .mj-front-rack .mj-tile::after{content:'';position:absolute;inset:0;bottom:-33.333333%;background:none;border:0;box-shadow:none;pointer-events:none}
.mj-soul .mj-front-rack .mj-tile:is(:hover,:focus-visible,.is-selected)::after{pointer-events:auto}
/* Open sets follow the hand in a single row. */
.mj-soul .mj-meld-row{position:absolute;left:50%;top:50%;width:max-content;z-index:4;display:flex;flex-flow:row-reverse nowrap;align-items:flex-end;justify-content:flex-start;gap:0;max-width:none;min-width:0;transform:none;flex:none;transform-style:preserve-3d}
.mj-soul .mj-meld-row:empty{display:none}
.mj-soul .mj-meld-row .mj-meld{display:flex;flex:none;flex-flow:row nowrap;gap:0;margin:0;padding:0;border:0;background:none;border-radius:0;transform-style:preserve-3d}
.mj-soul .mj-meld-kind{display:none}
/* The rivers are tightly packed, parallel three-layer rectangles in one camera. */
.mj-soul .mj-center{position:absolute;inset:0;display:block;min-height:0;padding:0;margin:0;border:0;background:none;pointer-events:none;z-index:2;transform-style:preserve-3d;--river-clearance:max(calc(var(--compass-size)/2 + 1.55cqw),calc(var(--river-span)/2 + .75cqw))}
.mj-soul .mj-center>.mj-river{position:absolute;display:block;width:max-content;max-width:none;min-width:0;padding:0;margin:0;gap:0;border:0;background:none;transform-style:preserve-3d}
.mj-soul .mj-river-name{display:none}
.mj-soul .mj-river-tiles{display:grid;grid-template-columns:repeat(6,var(--river-tile));gap:var(--river-gap);width:max-content;max-width:none;transform:none;transform-origin:center;transform-style:preserve-3d}
.mj-soul .mj-river-north{left:50%;top:calc(var(--center-y) - var(--river-clearance));transform:translate(-50%,-100%)}
.mj-soul .mj-river-north .mj-river-tiles{transform:rotate(180deg)}
.mj-soul .mj-river-south{left:50%;top:calc(var(--center-y) + var(--river-clearance));transform:translateX(-50%)}
.mj-soul .mj-river-east{left:calc(50% + var(--river-clearance));top:var(--center-y);transform:translateY(calc(var(--river-span)/2))}
.mj-soul .mj-river-east .mj-river-tiles{transform:rotate(-90deg);transform-origin:top left}
.mj-soul .mj-river-west{left:calc(50% - var(--river-clearance));top:var(--center-y);transform:translate(-100%,calc(var(--river-span)/2))}
.mj-soul .mj-river-west .mj-river-tiles{transform:rotate(90deg);transform-origin:top right}
.mj-soul .mj-river-tiles>.mj-tile.sm{--tile-w:var(--river-tile);transform:none!important;transform-style:preserve-3d;isolation:auto}
.mj-soul .mj-river-tiles>.is-last>.mj-tile-frame>.mj-tile-outline{display:block}

/* Pink enamel reaction plates with brush-style text, independent of the table camera. */
.mj-actions{position:absolute;right:2.5%;bottom:15%;z-index:20;width:95%;display:flex;flex-flow:row nowrap;align-items:flex-end;justify-content:flex-end;gap:.5cqw;padding:0;min-width:0;transform-origin:right bottom;pointer-events:none}
.mj-actions:empty{display:none}
.mj-actions .mj-btn{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:0 0 12cqw;min-width:0;min-height:0;height:6.9cqw;padding:0;transform:none;overflow:visible;cursor:pointer;line-height:1;pointer-events:auto}
.mj-actions .mj-btn::before,.mj-actions .mj-btn::after{content:none}
.mj-actions .mj-action-plate{position:absolute;inset:0 0 auto;width:100%;height:5.6cqw;overflow:visible;z-index:-1;pointer-events:none}
.mj-actions .mj-action-label{display:grid;place-items:center;height:5.1cqw;font:700 clamp(14px,3.3cqw,46px)/1.05 'Table Catalogue Cursive','BoYi WenKai','STKaiti',serif;letter-spacing:.02em;transform:rotate(-6deg);-webkit-text-stroke:.07cqw #fff0f5;paint-order:stroke fill;text-shadow:1px 2px #7b2457,-1px -1px #74204c,0 0 .25cqw #f76eb299;white-space:nowrap}
.mj-actions .mj-action-detail{font:500 clamp(7px,1.05cqw,13px)/1.3 'BoYi Interface',sans-serif;max-width:100%;white-space:nowrap;color:#fce4ee;text-shadow:0 1px 2px #102039;min-height:1.3cqw;margin-top:.1cqw}
.mj-actions .mj-action-pass{flex-basis:14cqw}.mj-actions .mj-action-pass .mj-action-label{font-size:clamp(12px,2.6cqw,36px)}
.mj-actions .mj-btn:hover .mj-action-plate{filter:brightness(1.18)}

.mj-actions .mj-btn:focus-visible{outline:2px solid #f9d7ed;outline-offset:2px}
.mj-soul>.mj-result{position:absolute;right:calc(var(--room-crop-right,0px) + 3.5%);bottom:24%;z-index:12;display:flex;flex-direction:column;align-items:flex-end;width:min(48%,360px);height:clamp(56px,5.1cqw,64px);max-height:31%;pointer-events:none}
#app .game-area:has(>.round-hands-panel .round-hands-actions>button) .mj-soul>.mj-result{
  bottom:calc(25% + 32 * var(--standard-button-unit,1px) + 7px);
}
.mj-result:empty{display:none}
.mj-soul .mj-result .mj-banner,.mj-soul .mj-result .mj-result-toggle{box-sizing:border-box;flex:0 0 auto;width:fit-content;max-width:100%;height:auto;min-width:0;margin:0;border:1px solid #8ca8bf66;border-radius:4px;color:#e4edf4;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center;font-family:'BoYi Interface',sans-serif;font-weight:400}
.mj-soul .mj-result .mj-banner{flex:1 1 auto;width:100%;min-height:0;display:grid;align-content:safe center;padding:clamp(3px,.63cqw,8px) clamp(5px,.95cqw,12px);overflow:auto;background:#1f3551;font-size:clamp(11px,1.1cqw,15px);line-height:1.4;pointer-events:auto}
.mj-hint{font-size:10px}
/* Original console artwork stays intact; one homography projects all live values. */
.mj-soul .mj-compass{position:absolute;left:0;top:0;width:var(--console-size,360px);height:var(--console-size,360px);min-height:0;transform:none;transform-origin:0 0;transform-style:flat;display:block;padding:0;border:0;outline:0;border-radius:0;background:none;box-shadow:none;pointer-events:none;z-index:5}
.mj-soul .mj-compass::before,.mj-soul .mj-compass::after{content:none}
.mj-center-readout{position:absolute;inset:33% 31%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);align-items:center;justify-items:center;min-width:0;gap:0;overflow:hidden;color:#6dccd7;text-shadow:0 1px #10232d}
.mj-center-readout>b,.mj-center-readout>strong{width:max-content;max-width:none;min-width:0;justify-self:center;white-space:nowrap}
.mj-center-readout>b{font:400 36px/1 'Table Catalogue Cursive',serif;color:#66cdd7;white-space:nowrap}
.mj-center-readout>strong{display:flex;align-items:center;gap:3px;font:400 34px/1 'Table Catalogue Cursive',serif;color:#75c9d5;font-variant-numeric:tabular-nums}
.mj-center-readout>strong>small{font:inherit}.mj-center-readout>small{display:none}
.mj-compass-score{position:absolute;display:block;width:36%;height:10%;margin:0;font:400 30px/1 'Table Catalogue Cursive',serif;color:#ebbf6c;text-align:center;white-space:nowrap;text-shadow:0 1px #111826;font-variant-numeric:tabular-nums}
.mj-compass-score>b{display:block;width:100%;height:100%;font-weight:400;transform-origin:center}.mj-center-readout>b,.mj-center-readout>strong{transform-origin:center}
.mj-score-svg{display:block;width:100%;height:100%;overflow:hidden;fill:currentColor}.mj-score-ink{font-family:'Table Catalogue Cursive',serif;font-weight:400}
.mj-compass-score-south{left:50%;top:79.5%;transform:translate(-50%,-50%)}
.mj-compass-score-north{left:50%;top:20.5%;transform:translate(-50%,-50%) rotate(180deg)}
.mj-compass-score-east{left:79%;top:50%;transform:translate(-50%,-50%) rotate(-90deg)}
.mj-compass-score-west{left:21%;top:50%;transform:translate(-50%,-50%) rotate(90deg)}
/* Fixed pad geometry, optically centred rotating ink, inset red enamel. */
.mj-compass-wind{position:absolute;left:0;top:0;width:100px;height:100px;padding:0;border:0;border-radius:11px;background:transparent;box-shadow:none;color:#e4e2de;font:400 100px/1 'Table Mahjong','Segoe UI Symbol',serif;transform-origin:0 0;overflow:hidden}
.mj-wind-ink{display:block;width:100%;height:100%;overflow:visible;fill:currentColor;font-family:'Table Mahjong','Segoe UI Symbol',serif}
.mj-wind-ink text{font-family:'Table Mahjong','Segoe UI Symbol',serif;font-weight:400}
.mj-compass-wind.is-dealer{color:#fff0d8}
.mj-soul .mj-seat-north .mj-revealed{gap:var(--river-gap)}
.mj-compass-turn{position:absolute;display:block;width:26%;height:5%;left:37%;background:none;clip-path:polygon(0 0,100% 0,82% 100%,18% 100%)}
.mj-compass-turn-south{bottom:11%}.mj-compass-turn-north{top:11%;transform:rotate(180deg)}
.mj-compass-turn-east{left:auto;right:11%;top:37%;width:5%;height:26%;clip-path:polygon(0 0,82% 18%,100% 82%,18% 100%)}
.mj-compass-turn-west{left:11%;top:37%;width:5%;height:26%;clip-path:polygon(18% 18%,100% 0,82% 100%,0 82%)}
.mj-compass[data-turn='south']>.mj-compass-turn-south,.mj-compass[data-turn='north']>.mj-compass-turn-north,.mj-compass[data-turn='east']>.mj-compass-turn-east,.mj-compass[data-turn='west']>.mj-compass-turn-west{background:linear-gradient(#fffde0 0 13%,#fff482 30%,#ffd33e 72%,#c17a23);box-shadow:inset 0 1px #fffef5;filter:drop-shadow(0 0 2px #fff28fbb)}
.mj-soul .mj-player-huds{
  /* Inset from the centered 1.6:1 region by 1% of its height. */
  --mj-side-avatar-inset:calc(50% - (80% - 1%) * 941 / 1672);
  position:absolute;inset:0;pointer-events:none;z-index:8;
}
.mj-soul .mj-player-hud{--avatar-width:var(--mahjong-avatar-width,8.441985645933014cqw);--avatar-height:var(--avatar-width);--name-size:var(--mahjong-name-size,1.042220450115187cqw);position:absolute;display:flex;flex-direction:column;align-items:center;gap:0;width:var(--avatar-width);max-width:none;padding:0;border:0;background:none;box-shadow:none;white-space:normal;transform:none;color:#f4efdf}
.mj-soul .mj-player-hud .mj-player-avatar{box-sizing:border-box;flex:none;width:var(--avatar-width);height:var(--avatar-height);display:grid;place-items:center;border:2px solid #dbc382;border-radius:2px;box-shadow:0 0 0 1px #131c29;font:32px/1 system-ui,sans-serif}
.mj-soul .mj-player-hud .mj-player-avatar.is-reference{background-image:var(--surface-art);background-size:2086.9565% 1148.9362%;background-position:74.9453% 5.4767%;background-repeat:no-repeat}
.mj-soul .mj-player-hud .mj-seat-name{box-sizing:border-box;display:block;width:100%;max-width:100%;margin:0;padding:0 calc(var(--avatar-width)/81);font:500 var(--name-size)/1.35 'BoYi Interface',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;background:#0b101bbd;border-top:1px solid #c9b47b70}
.mj-soul .mj-player-hud .mj-player-avatar{position:relative}
.mj-soul .mj-player-hud.is-winner .mj-player-avatar{border-color:#ffe58b;box-shadow:0 0 0 1px #7e5829,0 0 .7cqw #ffce5466}
.mj-soul .mj-player-hud.is-win-source .mj-player-avatar{border-color:#f18e83;box-shadow:0 0 0 1px #773c40}
.mj-win-badge{position:absolute;left:0;right:0;bottom:0;padding:1px 0;background:#553910ed;color:#fff1b3;font:400 var(--name-size)/1.25 'Table Catalogue Cursive',serif;text-align:center;white-space:nowrap;text-shadow:0 1px #241808}
.is-win-source .mj-win-badge{background:#70272fed;color:#ffe4e0;text-shadow:0 1px #381018}
.mj-soul .mj-seat-hand>.is-winning-tile .mj-tile-outline,.mj-soul .mj-front-rack .mj-tile.is-winning-tile .mj-tile-frame>.mj-tile-outline{display:block!important}
.mj-soul .mj-player-hud[data-seat='south']{left:19.5%;top:63%}
.mj-soul .mj-player-hud[data-seat='north']{left:61%;top:10%}
.mj-soul .mj-player-hud[data-seat='west']{left:var(--mj-side-avatar-inset);top:17%}
.mj-soul .mj-player-hud[data-seat='east']{right:var(--mj-side-avatar-inset);top:17%}
.mj-round-hud{position:absolute;left:4.1%;top:1%;z-index:9;display:flex;flex-direction:column;align-items:stretch;gap:.3cqw;width:max-content;margin:0;padding:.4cqw;border:2px solid #b18e59;border-radius:5px;background:#142438f5;box-shadow:inset 0 0 0 2px #355475,0 0 0 2px #151d2d;transform-style:flat}

.mj-indicator-rack{display:flex;gap:.16cqw;padding-top:max(6px,.795cqw);transform-style:flat}
.mj-round-counters{display:flex;align-items:center;justify-content:space-around;gap:.5cqw;padding-top:.3cqw;border-top:1px solid #43556c;font:600 1.1cqw/1.4 system-ui,sans-serif;color:#f4f1e8;white-space:nowrap}
.mj-soul .mj-indicator-rack>.mj-tile{--tile-w:2.65cqw;width:var(--tile-w);height:calc(var(--tile-w)*1.08);flex:none}
.mj-soul .mj-indicator-rack .mj-symbol{font-family:'Table Mahjong','Segoe UI Symbol',serif}
.mj-soul .mj-indicator-rack .is-back .mj-symbol-back{font-size:0;background:var(--mj-back-gold)}
.mj-soul .mj-indicator-rack .is-back .mj-layer-core{background:var(--mj-side-gold)}
.mj-soul .mj-indicator-rack .is-back .mj-body-bottom{background:var(--indicator-top-grey,#dedfde)}

.mj-table-tools{position:absolute;right:1.5%;top:2%;display:flex;gap:1cqw;z-index:10}.mj-table-tools>button,.mj-table-chat{display:grid;place-items:center;padding:0;width:4cqw;height:4cqw;min-width:0;border:2px solid #435a83;border-radius:7px;background:#122441cf;color:#6d8fbf;font:2.5cqw/1 system-ui;box-shadow:inset 0 0 0 1px #0e172a}
.mj-table-tools>button:hover,.mj-table-chat:hover{background:#253c5b;color:#c6dce6}.mj-table-tools>button:disabled,.mj-table-chat:disabled{opacity:.55;cursor:default}
.mj-table-chat{position:absolute;right:0;top:47%;z-index:10;width:3.1cqw;height:9cqw;border-radius:6px 0 0 6px;color:#d9a65a;border-color:#a58044;font-size:2.5cqw;background:#18263ee6}

@media(max-width:700px){
 .mj-table{--river-gap:.08cqw;--compass-size:22cqw;--center-y:50%}
 .mj-soul.mj-table-surface{aspect-ratio:4/5}
 .mj-soul .mj-seat-north>.mj-rack{left:50%;top:-7%}.mj-soul .mj-seat-south>.mj-rack{bottom:9%}
 .mj-soul .mj-seat-west>.mj-rack{left:20%;top:48%}.mj-soul .mj-seat-east>.mj-rack{left:80%;top:48%}
 .mj-soul .mj-front-rack{left:calc(11% + var(--self-tile));right:auto;max-width:90%}
 .mj-table-tools>button,.mj-table-chat{width:6.2cqw;height:6.2cqw;min-height:22px;border-width:1px;font-size:4cqw}.mj-table-chat{top:45%;width:5cqw;height:15cqw}
 .mj-actions{gap:4px;padding:6px 0}.mj-actions .mj-btn{flex-basis:66px;min-width:0;min-height:70px;padding:2px 4px 0}.mj-actions .mj-action-label{font-size:30px;min-height:46px}.mj-actions .mj-action-detail{font-size:9px;margin-top:3px;min-height:15px}.mj-actions .mj-action-pass{flex-basis:78px;min-width:0}.mj-actions .mj-action-pass .mj-action-label{font-size:25px}.mj-actions .mj-btn::before{bottom:19px}.mj-actions .mj-btn::after{bottom:23px}
}

@media(max-width:700px){.mj-soul .mj-seat[data-hand-mode="hidden"].mj-seat-north>.mj-rack{top:calc(50% - 27cqw)}.mj-soul .mj-seat[data-hand-mode="hidden"].mj-seat-west>.mj-rack{left:15%;top:46%}.mj-soul .mj-seat[data-hand-mode="hidden"].mj-seat-east>.mj-rack{left:85%;top:46%}}

/* Sample only the ivory interior. Shape and thickness come from geometry,
   never the bitmap's baked bevel, transparency or grey outside border. */
.mj-soul .mj-tile .mj-tile-frame>.mj-symbol:not(.mj-symbol-back){background-size:140% 140%;background-position:50% 47%}
/* A continuous cap underneath the rounded planes seals their antialiased seams.
   Its face cutout preserves the white front all the way to the bottom. */
.mj-soul .mj-front-rack[data-pose='standing'] .mj-layer-bridge{display:block}
/* Keep the same camera and landscape strip in portrait. No stretched outpaint. */
@media(orientation:portrait){
 .mj-soul.mj-table-surface{aspect-ratio:1672/941}
 .mj-soul .mj-seat[data-hand-mode='hidden'].mj-seat-north>.mj-rack{top:-16%;left:53%}
 .mj-soul .mj-seat[data-hand-mode='hidden'].mj-seat-west>.mj-rack{top:42%;left:16%}
 .mj-soul .mj-seat[data-hand-mode='hidden'].mj-seat-east>.mj-rack{top:42%;left:84%}
 .mj-soul .mj-front-rack{left:calc(11% + var(--self-tile));right:auto;max-width:90%}
}

@media(max-width:700px){
 .mj-actions{gap:.5cqw;padding:0}.mj-actions .mj-btn{flex-basis:12cqw;height:6.9cqw;min-height:0;padding:0}.mj-actions .mj-action-label{height:5.1cqw;min-height:0;font-size:clamp(14px,3.3cqw,46px)}.mj-actions .mj-action-detail{font-size:clamp(7px,1.05cqw,13px);margin-top:.1cqw;min-height:1.3cqw}.mj-actions .mj-action-pass{flex-basis:14cqw;min-width:0}.mj-actions .mj-action-pass .mj-action-label{font-size:clamp(12px,2.6cqw,36px)}
}

.mj-public-unit{position:absolute;left:0;top:0;display:block;width:var(--public-tile-width);height:calc(var(--public-tile-width)*var(--public-tile-aspect));visibility:hidden;pointer-events:none}


/* Portrait size and position keep one fixed ratio to the table. */

.mj-score-delta{font:700 14px/1 sans-serif;fill:currentColor;text-shadow:0 1px 2px #000}.mj-score-delta.is-gain{color:#b8f2c4}.mj-score-delta.is-loss{color:#ffb8a6}

/* Trimmed at the wooden outer edges, registered to the original console plane. */
.mj-bg-trapezoid{position:absolute;left:0;top:0;width:105.5023923444976%;height:auto;max-width:none;transform-origin:0 0;z-index:0;pointer-events:none;user-select:none}

.mj-dealer-background[hidden]{display:none}
