/* V35 semantic typography. Shared by both modes and both wardrobe documents.
   Body/help/status = Hei; display/action/category = Jiran. Digits retain Jiran.
   Main wordmark sizes/outlines are deliberately untouched. */
@import url('./maze-hei-fonts.css?v=ui43');
:root{--ui-body:'Jiran Digits','Bomber Hei','Tournament Latin',sans-serif;--ui-display:'Jiran UI','Tournament Latin',sans-serif;--ui-readable:clamp(14px,1.25vw,16px)}
body *{font-family:inherit!important}
html,body,input,textarea{font-family:var(--ui-body)!important;font-style:normal!important;font-synthesis:none}
p,li,dd,dt,label,small,[role='status'],[role='alert'],.guide-tip,.music-setting-note,.match-detail-note,.player-state,.player-power,.result-row small{font-family:var(--ui-body)!important;font-style:normal!important;font-weight:600;line-height:1.55}
button,select,summary,h1:not(#opening-title),h2,h3,h4,.shared-mode-home,.palette-group-heading{font-family:var(--ui-display)!important;font-synthesis:none}
button,select,summary{min-height:44px}
button:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #a62277;outline-offset:3px}
/* Descriptions and long rules can wrap naturally, never squeeze glyphs. */
#home-outfit,#home-avatar-status,#opening-status,#opening-error,#music-status,#music-help,#music-loading-status,#music-loading-detail,#music-loading-tracks,#music-loading-tracks small,.music-loading-note,#mode-transition-message,#rotate-description,#rotate-note,#game-alert,#appearance-notice,#results-note,#round-result-note,.scene-selection p,.guide-tip,.guide-rule-grid p,.powerup-guide-grid p,.comic-dialog>p:not(.eyebrow),.music-setting-note{font-family:var(--ui-body)!important;font-style:normal!important;font-size:var(--ui-readable)!important;line-height:1.55;overflow-wrap:anywhere}
.guide-rule-grid b,.powerup-guide-grid b{font-family:var(--ui-display)!important;font-size:17px;line-height:1.4}
.guide-content{line-height:1.55}.comic-dialog button,.result-actions button,.dialog-actions button,#home-settings,#home-rules,#home-wardrobe,.shared-mode-home,#settings-close,#characters-close{font-size:clamp(16px,1.45vw,19px)!important;line-height:1.3}
#settings-dialog label{font-size:17px}.music-loading-tracks small{font-size:14px!important}
/* Compact live HUD uses legible Hei labels without enlarging score/clock boxes. */
#status,#round-label,#spectator-label,#power-stats,#pickup-notice,.chip-label,.player-state,.player-power,.result-row small,.match-detail-note{font-family:var(--ui-body)!important;font-style:normal!important;line-height:1.4}
#status,#round-label,#spectator-label,#power-stats{font-size:12px!important}
#pickup-notice,.result-row small{font-size:14px!important}.result-row strong,.standard-player>span{font-family:var(--ui-display)!important}
#countdown,#match-score,.result-row b,.loot-popup,.score-popup{font-family:'Jiran UI','Tournament Latin',sans-serif!important}
.level-loading strong{font-family:var(--ui-body)!important;font-style:normal!important;font-size:18px}.level-loading p{font-size:15px}.level-loading button{font-size:18px}
/* Screenshot green: outer wardrobe bar and all action/category labels. */
#characters-dialog[open]{grid-template-rows:minmax(60px,auto) minmax(0,1fr)}
.wardrobe-dialog-bar{gap:12px;min-height:60px;flex-wrap:wrap}.wardrobe-dialog-bar b,.wardrobe-dialog-bar strong,.wardrobe-dialog-bar span,.wardrobe-dialog-bar small{font-family:var(--ui-display)!important;line-height:1.4}.wardrobe-dialog-bar b,.wardrobe-dialog-bar strong{font-size:20px!important}.wardrobe-dialog-bar span,.wardrobe-dialog-bar small{font-size:15px!important}#characters-close{min-width:86px;min-height:44px}
/* Inner wardrobe: preserve giant heading; enlarge the explicit green note. */
.dressing-room{grid-template-rows:minmax(76px,auto) minmax(0,1fr) minmax(78px,auto)}
.dressing-room h1{font-family:var(--ui-display)!important}
.dressing-room .local-note{font-family:var(--ui-display)!important;font-size:clamp(14px,1.3vw,17px)!important;line-height:1.5;flex-shrink:0}
.dressing-room .eyebrow{font-family:var(--ui-display)!important}
.dressing-room .tabs{gap:8px;overflow-x:auto;overflow-y:hidden;padding:3px 4px 10px;scroll-padding:5px}
.dressing-room .tabs button{flex:1 0 72px;min-width:72px;min-height:48px;padding:8px 10px;font-size:clamp(17px,1.6vw,21px)!important;line-height:1.25;letter-spacing:.02em;background:#efedf5;color:#171321;border:2px solid #171321}
.dressing-room .tabs button[aria-pressed=true]{background:#ffe337;color:#11101b;outline:2px solid #11101b;outline-offset:1px}
.dressing-room .option{font-size:15px;line-height:1.35;overflow-wrap:anywhere}.dressing-room .character-grid .option{font-family:var(--ui-display)!important;font-size:clamp(16px,1.55vw,20px)!important;line-height:1.4;gap:9px}
/* Red screenshot exception: only blue bomber's name uses Hei, not its icon. */
.dressing-room #characters [data-option='rival']{font-family:var(--ui-body)!important;font-style:normal!important;font-weight:900}
.dressing-room .character-symbol{font-family:var(--ui-display)!important;flex-shrink:0}
#preview-status,.dressing-room .rotation span,#selection-note,#save-status{font-family:var(--ui-body)!important;font-style:normal!important;font-size:clamp(14px,1.25vw,16px)!important;line-height:1.5;font-weight:600}
#preview-status{padding:6px;background:#fffdf4f5;color:#172331}#selection-note,#save-status{color:#34404f;overflow-wrap:anywhere}
.dressing-room .motions button,.dressing-room .footer-actions button,.dressing-room .reset{font-family:var(--ui-display)!important;font-size:clamp(16px,1.5vw,20px)!important;line-height:1.3;min-height:46px}
.dressing-room .footer-actions button{padding:8px 15px}.dressing-room .reset{color:#243343}.dressing-room footer{gap:12px}.dressing-room .palette-group-heading{font-size:17px}
@media(max-height:500px) and (min-width:601px){
 .dressing-room{grid-template-columns:minmax(150px,.72fr) minmax(0,1.28fr);grid-template-rows:minmax(0,1fr) minmax(68px,auto);gap:9px;padding:9px}
 .dressing-room .tabs button{min-height:44px;min-width:62px;flex-basis:62px;font-size:16px!important;padding:6px}
 .dressing-room .character-symbol{width:48px;height:48px;font-size:26px}.dressing-room .character-grid .option{font-size:16px!important;padding:7px}
 .dressing-room .option-grid:not(.character-grid):not(.face-grid):not(.eye-color-grid){grid-template-columns:repeat(3,minmax(0,1fr))}
 .dressing-room #selection-note{font-size:13px!important;max-height:3.1em;overflow:auto}.dressing-room #save-status{font-size:13px!important}
 .dressing-room .footer-actions button,.dressing-room .reset{font-size:16px!important;padding:6px 10px}.dressing-room .primary{min-width:100px}
}
@media(max-width:600px){
 /* Small iframe/portrait: one scrollable column, not undersized two columns. */
 html:has(.dressing-room),body:has(.dressing-room){height:auto;min-height:100%;overflow:auto}
 .dressing-room{height:auto;min-height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 300px minmax(300px,auto) auto;gap:14px;padding:12px}
 .dressing-room header{display:flex;gap:10px}.dressing-room h1{font-size:24px}.dressing-room .local-note{font-size:14px!important}
 .dressing-room .preview-panel{grid-template-rows:minmax(0,1fr) 44px 44px}.dressing-room .rotation{display:flex}.dressing-room .rotation span{display:block}.dressing-room .motions{display:flex}.dressing-room .compact-motion{display:none}
 .dressing-room .choices{padding:8px;max-height:510px;min-height:300px}.dressing-room .tabs button{font-size:17px!important;min-width:62px;flex-basis:62px;min-height:46px}
 .dressing-room .character-symbol{width:64px;height:64px}.dressing-room .character-grid .option{font-size:16px!important}.dressing-room .option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dressing-room .character-grid,.dressing-room .eye-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dressing-room footer{position:static;grid-template-columns:minmax(0,1fr);padding:10px;gap:9px}.dressing-room #save-status{display:block;grid-column:1;grid-row:2;text-align:center;font-size:14px!important}.dressing-room .footer-actions{grid-row:3;justify-content:stretch}.dressing-room .footer-actions button{flex:1;min-width:0}.dressing-room .reset{grid-row:1}
 .wardrobe-dialog-bar{gap:6px}.wardrobe-dialog-bar b,.wardrobe-dialog-bar strong{font-size:18px!important}.wardrobe-dialog-bar span,.wardrobe-dialog-bar small{font-size:14px!important}
 .comic-dialog{max-width:calc(100vw - 20px);overflow:auto}.lobby-utility{flex-wrap:wrap;min-width:0}.lobby-utility button,.shared-mode-home{white-space:normal}
}

@media(max-width:600px){.wardrobe-dialog-bar>div{min-width:0;flex:1}.wardrobe-dialog-bar small{display:block;margin-left:0}.wardrobe-dialog-bar{flex-wrap:nowrap;padding:6px 8px}}
/* Home mode choices are display categories, not explanatory body copy. */
.mode-select,.mode-choice,.mode-choice span,.mode-choice strong,.mode-choice b{font-family:var(--ui-display)!important}
.mode-choice{font-size:clamp(16px,1.5vw,20px)!important;line-height:1.35;min-height:46px;white-space:normal}
.mode-choice.active,.mode-choice[aria-current='page'],.mode-choice[aria-pressed='true']{background:#ffe337;color:#11101b}
.mode-choice small{font-family:var(--ui-body)!important;font-size:12px;line-height:1.4}
.mode-choice:has(>span[aria-hidden]){padding-right:28px}
/* V35 second reference: green display labels versus red explanatory copy. */
.lobby-menu{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.lobby-menu>.mode-select,.lobby-menu>.match-mode,.lobby-menu>.scene-selection,.lobby-menu>.home-quick-menu,.lobby-menu>.music-background-panel{flex-shrink:0}
.mode-choice>b{font-family:var(--ui-display)!important;font-size:clamp(19px,1.7vw,24px)!important;line-height:1.3;overflow-wrap:anywhere}
.lobby-menu .match-mode{display:flex;align-items:center}.match-mode p{min-width:0;font-family:var(--ui-display)!important;font-size:clamp(20px,1.8vw,25px)!important;line-height:1.35;font-weight:900}
.match-mode p small{display:block!important;font-family:var(--ui-body)!important;font-style:normal!important;font-size:var(--ui-readable)!important;line-height:1.55;font-weight:600}
.scene-selection>strong{font-family:var(--ui-display)!important;font-size:clamp(19px,1.65vw,23px)!important;line-height:1.35}
.scene-selection p,#music-background-status,#opening-status{display:block;font-family:var(--ui-body)!important;font-style:normal!important;font-size:var(--ui-readable)!important;line-height:1.55;font-weight:600;overflow-wrap:anywhere}
#home-rules,#home-powerups{min-height:54px;font-family:var(--ui-display)!important;font-size:clamp(18px,1.7vw,23px)!important;line-height:1.3}
#home-rules>span:not([aria-hidden]),#home-powerups>span:not([aria-hidden]){min-width:0;font-family:var(--ui-display)!important;font-size:inherit!important;line-height:1.3;overflow-wrap:anywhere}
#home-rules small,#home-powerups small{font-family:'Tournament Latin',sans-serif!important;font-size:10px!important;line-height:1.4;letter-spacing:.06em}
@media(max-width:600px){.mode-choice>b{font-size:19px!important}.match-mode p{font-size:20px!important}.scene-selection>strong{font-size:19px!important}#home-rules,#home-powerups{font-size:18px!important}}
/* V35 live-layout correction: the enlarged menu lives in the middle grid track,
   never vertically centers its intrinsic content across the Logo/header track. */
#opening-screen .opening-shell{min-height:0;grid-template-rows:max-content minmax(0,1fr) max-content}
#opening-screen .lobby-header{min-width:0;min-height:0;position:relative;z-index:2}
#opening-screen .lobby-layout{min-height:0;min-width:0;align-items:stretch}
#opening-screen .lobby-menu{align-self:stretch;height:100%;max-height:100%;min-height:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden}
#opening-screen .home-player-panel{max-height:100%;min-height:0;box-sizing:border-box}
#opening-screen .lobby-footer{min-width:0;min-height:0;position:relative;z-index:2}
#opening-screen .match-mode small{color:#374151!important}
@media(orientation:portrait){
 #opening-screen .opening-shell{height:auto;grid-template-rows:max-content auto max-content}
 #opening-screen .lobby-menu{height:auto;max-height:none;align-self:start}
 #opening-screen .home-player-panel{max-height:none}
}
/* V37: substantially larger GREEN-reference display text. Red explanatory
   copy, the blue robot name, all font assets, and main Logo metrics stay intact.
   Prefer scrolling/wrapping over shrinking these genuine Jiran glyphs. */
.dressing-room .tabs{gap:6px;padding:5px 5px 12px;scroll-padding:6px}
.dressing-room .tabs button{font-size:clamp(21.375px,2.052vw,25.65px)!important;min-width:92px;flex:1 0 92px;min-height:62px;padding:10px 12px;line-height:1.3;letter-spacing:0}
.dressing-room .character-grid .option{font-size:clamp(20.52px,1.92375vw,23.94px)!important;line-height:1.4;overflow-wrap:anywhere}
.dressing-room .local-note{font-size:clamp(17.1px,1.6245vw,20.52px)!important;line-height:1.5}
.dressing-room .motions button,.dressing-room .footer-actions button,.dressing-room .reset{font-size:clamp(20.52px,1.881vw,23.94px)!important;min-height:60px;line-height:1.35;padding:8px 12px}
.dressing-room .palette-group-heading{font-size:20.52px;line-height:1.4}
.dressing-room{grid-template-rows:minmax(96px,auto) minmax(0,1fr) minmax(96px,auto)}
.dressing-room footer{gap:16px;padding:10px 12px}.dressing-room .footer-actions{gap:10px;flex-shrink:0}.dressing-room .primary{min-width:144px}
.dressing-room .preview-panel{grid-template-rows:minmax(0,1fr) 44px 60px}
#characters-dialog[open]{grid-template-rows:minmax(78px,auto) minmax(0,1fr)}
.wardrobe-dialog-bar b,.wardrobe-dialog-bar strong{font-size:23.94px!important;line-height:1.4}.wardrobe-dialog-bar span,.wardrobe-dialog-bar small{font-size:17.955px!important;line-height:1.4}
#characters-close{font-size:clamp(20.52px,1.881vw,23.94px)!important;min-width:112px;min-height:60px;padding:8px 12px}
.mode-choice>b{font-size:clamp(23.085px,2.052vw,29.07px)!important;line-height:1.35}
.match-mode p{font-size:clamp(23.94px,2.1375vw,29.925px)!important;line-height:1.4}
.scene-selection>strong{font-size:clamp(23.085px,1.9665vw,27.36px)!important;line-height:1.4}
#home-rules,#home-powerups{font-size:clamp(22.23px,2.052vw,28.215px)!important;min-height:74px;line-height:1.35}
#home-rules>span:not([aria-hidden]),#home-powerups>span:not([aria-hidden]){font-size:inherit!important;line-height:1.35}
#home-wardrobe,#home-settings,.shared-mode-home,.comic-dialog button,.result-actions button,.dialog-actions button,#settings-close{font-size:clamp(20.52px,1.881vw,23.94px)!important;min-height:58px;line-height:1.35}
/* Top-layer menus retain scroll access as their display labels grow. */
.comic-dialog h2{font-size:clamp(32.49px,2.9925vw,37.62px);line-height:1.3}
.home-quick-menu{align-items:stretch}.mode-choice{padding-top:14px;padding-bottom:14px}
@media(max-height:500px) and (min-width:601px){
 .dressing-room{grid-template-rows:minmax(0,1fr) minmax(86px,auto)}
 .dressing-room .tabs button{font-size:20.52px!important;min-width:94px;flex-basis:94px;min-height:58px;padding:8px 10px}
 .dressing-room .character-grid .option{font-size:20.52px!important}
 .dressing-room .footer-actions button,.dressing-room .reset{font-size:20.52px!important;min-height:56px;padding:8px 10px}
 .dressing-room .primary{min-width:132px}.dressing-room footer{gap:12px}
 .dressing-room .preview-panel{grid-template-rows:minmax(0,1fr) 52px}
 .rotation #preview-motion-cycle{height:52px;min-height:52px;font-size:18.81px;line-height:1.3}
}
@media(max-width:600px){
 .dressing-room{grid-template-rows:auto 330px minmax(360px,auto) auto}
 .dressing-room header{align-items:flex-start;flex-wrap:wrap}.dressing-room .local-note{font-size:17.1px!important;text-align:left}
 .dressing-room .choices{max-height:600px;min-height:360px}
 .dressing-room .tabs button{font-size:21.375px!important;min-width:96px;flex-basis:96px;min-height:60px;padding:9px 12px}
 .dressing-room .character-grid .option{font-size:20.52px!important}
 .dressing-room .preview-panel{grid-template-rows:minmax(0,1fr) 44px 60px}
 .dressing-room .footer-actions button,.dressing-room .reset{font-size:20.52px!important;min-height:60px;padding:8px}
 .dressing-room .primary{min-width:0}.dressing-room footer{gap:12px;padding:10px}
 .wardrobe-dialog-bar b,.wardrobe-dialog-bar strong{font-size:22.23px!important}.wardrobe-dialog-bar small{font-size:17.1px!important}
 #characters-close{font-size:20.52px!important;min-width:102px;min-height:58px;padding:6px 8px}
 .mode-choice>b{font-size:23.085px!important}.match-mode p{font-size:23.94px!important}.scene-selection>strong{font-size:23.085px!important}
 #home-rules,#home-powerups{font-size:22.23px!important}
 /* Stack two wide mode cards in narrow menus rather than clip enlarged names. */
 #opening-screen .mode-select{grid-template-columns:minmax(0,1fr)}
 .home-player-footer{flex-wrap:wrap}.home-player-footer>div{max-width:100%}
}

/* V38: wrap whole semantic chunks, never leave a final Chinese glyph alone. */
.ui-label-chunk{display:inline-block;white-space:nowrap}
#opening-screen .mode-select,#opening-screen .home-quick-menu{align-items:stretch}
#opening-screen .mode-choice{height:100%;box-sizing:border-box}

/* V39 user refinement: green display sizes are 90% of V37; red MiSans and Logo unchanged. */

/* Text chunks must not inherit the historical mode-arrow absolute positioning. */
#opening-screen .mode-choice>b>.ui-label-chunk{position:static;inset:auto;transform:none}

/* V41: green sizes reduced a further 5 percent from V40; all other styles unchanged. */

/* V42 user override: blue robot uses the same display family and weight as Baltan. */
.dressing-room #characters [data-option='rival']{font-family:var(--ui-display)!important;font-style:normal!important;font-weight:900}
/* V43 scoped reference: only live HUD and match results. V42 lobby/wardrobe
   display sizes remain unchanged. Red zones use MiSans for ALL scripts. */
body.game-running #power-stats,body.game-running #round-label,body.game-running #status,body.game-running #spectator-label,
#results #final-ranking .result-row,#results #final-ranking .result-row *{font-family:'MiSans UI',sans-serif!important;font-style:normal!important;font-weight:600!important;font-synthesis:none;letter-spacing:0}
#results #results-title{font-family:'Jiran Result Latin','Jiran UI','Tournament Latin',sans-serif!important}
html body.game-running .standard-top{height:auto;grid-template-columns:minmax(0,1fr) 148px 188px;grid-template-rows:auto auto;gap:8px 12px;align-items:start}
html body.game-running .standard-identity,html body.game-running .standard-top .standard-clock{display:contents}
html body.game-running .hud-chips{grid-column:1;grid-row:1;display:flex;flex-wrap:wrap;gap:8px;min-width:0}
html body.game-running .standard-top .clock-face{grid-column:2;grid-row:1;width:148px;min-height:44px;padding:6px 9px;gap:7px;justify-self:end;box-sizing:border-box}
html body.game-running .standard-top #countdown{font-family:'Jiran UI','Tournament Latin',sans-serif!important;font-size:26px!important;line-height:1.1;min-width:4em;white-space:nowrap}
html body.game-running .chip-face{min-height:44px;padding:6px 10px;box-sizing:border-box}
html body.game-running .chip-label,html body.game-running .score-label{font-family:'Jiran UI','Tournament Latin',sans-serif!important;font-size:14px!important;line-height:1.2}
html body.game-running .chip-face b{font-family:'Jiran UI','Tournament Latin',sans-serif!important;font-size:22px!important;line-height:1.15}
html body.game-running .score-card b{font-size:32px!important}html body.game-running .score-card{max-width:100%;box-sizing:border-box}
html body.game-running .standard-top nav{grid-column:3;grid-row:1;justify-self:end}
html body.game-running #power-stats{position:static;grid-column:1;grid-row:2;width:auto;max-width:none;margin:0;padding:4px 6px;font-size:16px!important;line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;background:#142333df;border-radius:6px}
html body.game-running #round-label{grid-column:2/4;grid-row:2;justify-self:end;max-width:100%;margin:0;padding:4px 6px;font-size:16px!important;line-height:1.5;white-space:normal;text-align:right;overflow-wrap:anywhere;background:#142333df;border-radius:6px}
#results #final-ranking .result-row{font-size:18px;line-height:1.55;overflow-wrap:anywhere}
#results #final-ranking .result-row strong,#results #final-ranking .result-row b,#results #final-ranking .result-place{font-size:20px!important}
#results #final-ranking .result-row small{font-size:15px!important;line-height:1.5}
#results .result-actions button,#results #result-again,#results #result-home,#results #result-next{font-family:'Jiran UI','Tournament Latin',sans-serif!important;font-size:30px!important;line-height:1.4;min-height:64px;padding:10px 16px;white-space:normal;overflow-wrap:anywhere}
#results .result-actions{display:flex;flex-wrap:wrap;gap:12px}#results .result-actions button{flex:1 1 200px}
@media(max-width:760px){
 html body.game-running .standard-top{grid-template-columns:minmax(0,1fr) 188px;gap:8px}
 html body.game-running .standard-top .clock-face{grid-column:2;grid-row:1}
 html body.game-running .standard-top nav{grid-column:2;grid-row:3}
 html body.game-running #power-stats{grid-column:1/-1;grid-row:2}
 html body.game-running #round-label{grid-column:1;grid-row:3;justify-self:start;text-align:left}
}
@media(max-width:520px){
 html body.game-running .standard-top{grid-template-columns:minmax(0,1fr) 92px}
 html body.game-running .hud-chips{grid-column:1/-1;grid-row:1;flex-wrap:wrap}
 html body.game-running .standard-top .clock-face{grid-column:1;grid-row:2;justify-self:start}
 html body.game-running .standard-top nav{grid-column:2;grid-row:2}
 html body.game-running #power-stats{grid-column:1/-1;grid-row:3;font-size:15px!important}
 html body.game-running #round-label{grid-column:1/-1;grid-row:4;font-size:15px!important}
 #results #final-ranking{grid-template-columns:1fr}
 #results #final-ranking .result-row{font-size:17px}
 #results .result-actions button,#results #result-again,#results #result-home,#results #result-next{font-size:28px!important;min-height:62px}
}

/* V48 screenshot-only HUD ability strip: preserve all typography and content. */
html body.game-running #power-stats{background:rgba(20,35,51,.15);text-shadow:0 1px 2px rgba(5,14,24,.95),0 0 1px rgba(5,14,24,.95)}

/* V50: presentation-only controls for following surviving CPU contestants. */
html body.game-running #spectator-label[data-spectating="true"]{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px;white-space:normal;text-align:center;pointer-events:auto;background:rgba(20,35,51,.82);padding:8px 12px;border-radius:12px;color:#fff;z-index:8}
html body.game-running #spectator-label[hidden]{display:none!important}
#spectator-label .spectator-copy{font-family:var(--ui-body)!important;font-size:14px!important;line-height:1.35;overflow-wrap:anywhere}
#spectator-label .spectator-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
#spectator-label .spectator-actions button{font-family:'Jiran UI',sans-serif!important;font-weight:900;min-height:44px;padding:7px 12px;font-size:18px!important;line-height:1.25;background:#ffe247;color:#17293d;border:2px solid #17293d;border-radius:8px;white-space:nowrap;text-shadow:none}
#spectator-label .spectator-actions button:disabled{opacity:.45;cursor:default}
body.game-running[data-spectating="true"] .standard-controls{visibility:hidden;pointer-events:none}
