/* WECHILL FUN CORNER 4.3 — responsive game workspace. Loaded after V4.2 styles. */
:root{--v43-header-h:68px;--v43-gap:12px}
body.game-mode{height:100dvh;overflow:hidden;overscroll-behavior:none}
body.game-mode .app-shell{max-width:none;width:100%;height:100dvh;min-height:0;display:flex;flex-direction:column;padding:0 14px 12px}
body.game-mode .topbar{flex:none;height:var(--v43-header-h);min-height:0;gap:12px;padding:5px 3px}
body.game-mode .intro,body.game-mode footer{display:none}
body.game-mode .brand-wrap-logo{gap:7px;min-width:0}
body.game-mode .brand-logo{display:block;width:188px;max-width:100%;height:auto;max-height:56px;object-fit:contain;background:#f9fcff;border-radius:9px;padding:3px 7px;filter:none}
body.game-mode .brand-subline{display:none}
body.game-mode .header-actions{gap:7px;flex-wrap:nowrap;min-width:0}
.v43-header-button{display:inline-flex;justify-content:center;align-items:center;gap:5px;white-space:nowrap;border-radius:11px;min-height:37px;padding:7px 10px;border:1px solid #485271;background:#232841;color:#faf7ff;font-weight:800;font-size:11px;cursor:pointer;transition:background .2s}
.v43-header-button:hover{background:#374064}
.v43-header-button:focus-visible,.v43-stats-close:focus-visible{outline:3px solid #75dbff;outline-offset:2px}
body.game-mode .live-pill{padding:8px 10px}
body.game-mode .fx-audio-box{padding:4px 6px;gap:5px}
body.game-mode .fx-audio-box input[type=range]{width:58px}
body.game-mode .fx-volume-label{display:none}
body.game-mode .dashboard{display:flex;flex:1;flex-direction:column;min-height:0;width:100%;gap:0}
body.game-mode .arena-column{flex:1;min-height:0;width:100%;display:flex;flex-direction:column}
.game-workspace{min-width:0}
body.game-mode .game-workspace{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(325px,.86fr);gap:var(--v43-gap);height:100%;min-height:0;width:100%}
body.game-mode .arena-frame{height:100%;min-height:0;display:flex;flex-direction:column;border-radius:18px;box-shadow:0 12px 40px #02061750}
body.game-mode .arena-heading{flex:none;height:40px;padding:0 14px}
body.game-mode .battle-hud{flex:none;padding:8px 13px 7px}
body.game-mode .battle-track{height:10px;margin:5px 0 4px}
body.game-mode .battle-hud-footer{font-size:9px}
body.game-mode .stage{flex:1 1 auto;height:auto;min-height:0;overflow:hidden}
body.game-mode .arena-bottom{flex:none;min-height:55px;padding:8px 13px;gap:16px}
body.game-mode .arena-metric strong{font-size:18px}
body.game-mode .arena-metric div>span{font-size:8px}
body.game-mode .controls{margin:0;min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#687bb1 #1b203c;background:linear-gradient(160deg,#1c203c,#111628);border:1px solid #363858;border-radius:18px;padding:15px 14px 18px;box-shadow:0 12px 40px #02061750}
body.game-mode .controls::-webkit-scrollbar{width:7px}
body.game-mode .controls::-webkit-scrollbar-thumb{background:#60719a;border-radius:20px}
body.game-mode .section-row{margin:0 1px 13px;align-items:center}
body.game-mode .section-row h2{font-size:18px}
body.game-mode .controls-hint{font-size:9px;text-align:right;max-width:115px}
body.game-mode .action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.game-mode .action-card{min-width:0;min-height:83px;padding:10px 12px;flex-direction:row;align-items:center;gap:9px;border-radius:13px}
body.game-mode .action-art{font-size:28px;height:auto}
body.game-mode .action-copy{margin-top:0}
body.game-mode .action-copy strong{font-size:11px}
body.game-mode .action-copy small{font-size:9px}
body.game-mode .action-arrow{font-size:12px;bottom:7px;right:8px}
body.game-mode .ultimate-heading{margin-top:18px}
body.game-mode .ultimate-grid{grid-template-columns:1fr;gap:9px}
body.game-mode .ultimate-button{min-height:75px;padding:11px;border-radius:13px}
body.game-mode .boss-launch{display:flex;flex-direction:column;align-items:stretch;margin-top:13px;padding:13px;gap:10px}
body.game-mode .boss-launch button{width:100%}
body.game-mode .controls-note{font-size:10px}
/* Stats remain live in the DOM, but are tucked into a drawer while playing. */
body.game-mode .sidebar{display:flex;position:fixed;top:0;right:0;bottom:0;z-index:150;width:min(430px,100vw);height:100dvh;padding:64px 16px 24px;overflow-y:auto;overscroll-behavior:contain;background:#11172df7;box-shadow:-20px 0 70px #0009;transform:translateX(104%);visibility:hidden;pointer-events:none;transition:transform .24s ease,visibility .24s;gap:12px}
body.game-mode.stats-open .sidebar{transform:translateX(0);visibility:visible;pointer-events:auto}
.v43-stats-close{display:none}
body.game-mode .v43-stats-close{display:flex;align-items:center;justify-content:center;gap:8px;position:absolute;top:14px;right:16px;min-height:36px;border-radius:10px;border:1px solid #596586;background:#293454;color:#fff;font-weight:800;padding:8px 12px}
.v43-stats-backdrop{display:none}
body.game-mode.stats-open .v43-stats-backdrop{display:block;position:fixed;inset:0;z-index:145;background:#030513af;backdrop-filter:blur(2px)}
body.game-mode .sidebar .side-card{padding:14px;border-radius:15px}
body.game-mode .sidebar .admin-card{padding:0}
/* Better responsive stage scaling: center the character without clipping. */
@media(min-width:901px) and (max-height:820px){body.game-mode .character-wrap{top:50%;transform:translate(-50%,-47%) scale(.78)}}
@media(min-width:901px) and (max-height:690px){body.game-mode .character-wrap{top:50%;transform:translate(-50%,-48%) scale(.62)}}
@media(max-width:1150px){body.game-mode .game-workspace{grid-template-columns:minmax(0,1.15fr) minmax(290px,.9fr)}body.game-mode .header-actions{gap:5px}body.game-mode .brand-logo{width:170px}}
@media(max-width:900px){
  :root{--v43-header-h:57px}
  body.game-mode .app-shell{padding:0 7px 7px}
  body.game-mode .topbar{height:var(--v43-header-h);padding:4px 1px;gap:6px}
  body.game-mode .brand-logo{width:150px;padding:2px 4px;max-height:48px}
  body.game-mode .game-workspace{display:flex;flex-direction:column;gap:7px;height:100%;min-height:0}
  body.game-mode .arena-frame{flex:0 0 clamp(245px,43dvh,380px);min-height:0;border-radius:13px}
  body.game-mode .arena-heading{height:28px;padding:0 10px}
  body.game-mode .battle-hud{padding:5px 9px 4px}
  body.game-mode .battle-info{gap:8px}
  body.game-mode .battle-info strong{font-size:11px}
  body.game-mode .battle-info .battle-hp{font-size:12px}
  body.game-mode .battle-kicker{font-size:8px}
  body.game-mode .battle-track{height:7px;margin:3px 0}
  body.game-mode .battle-hud-footer{font-size:8px}
  body.game-mode .battle-hud-footer span:first-child{display:none}
  body.game-mode .stage{height:auto;min-height:0;flex:1}
  body.game-mode .stage .character-wrap{top:50%;transform:translate(-50%,-49%) scale(.57)}
  body.game-mode .arena-bottom{min-height:31px;height:31px;padding:3px 9px;gap:8px}
  body.game-mode .arena-metric{gap:5px}
  body.game-mode .arena-metric strong{font-size:11px}
  body.game-mode .metric-icon{width:23px;height:23px;font-size:11px}
  body.game-mode .arena-metric div>span{font-size:7px}
  body.game-mode .playing-as{gap:4px;padding-left:6px}
  body.game-mode .playing-as small{display:none}
  body.game-mode .playing-as strong{font-size:9px}
  body.game-mode .controls{flex:1 1 auto;height:auto;padding:11px 10px 14px;border-radius:12px}
  body.game-mode .action-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  body.game-mode .action-card{flex-direction:column;align-items:center;justify-content:center;min-height:73px;padding:8px 2px 7px;gap:3px;text-align:center;border-radius:10px}
  body.game-mode .action-art{font-size:22px}
  body.game-mode .action-copy strong{font-size:9px;line-height:1.15}
  body.game-mode .action-copy small,.game-mode .action-arrow{display:none}
  body.game-mode .action-copy{margin:0}
  body.game-mode .section-row{margin:0 0 8px}
  body.game-mode .section-row h2{font-size:14px}
  body.game-mode .controls-hint{font-size:8px}
  body.game-mode .ultimate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.game-mode .ultimate-button{min-height:70px;gap:6px;padding:9px 7px}
  body.game-mode .ultimate-button .ultimate-icon{font-size:22px}
  body.game-mode .ultimate-button strong{font-size:9px}
  body.game-mode .ultimate-button small{font-size:8px}
  body.game-mode .ultimate-button em{display:none}
  body.game-mode .boss-launch{margin-top:10px}
  body.game-mode .speech-bubble{top:8px;right:4%;font-size:10px;max-width:140px;z-index:11}
  body.game-mode .wall-badge{top:40px;font-size:11px}
  body.game-mode .badge-right{font-size:14px}
  body.game-mode .badge-right span{font-size:12px}
  body.game-mode .fx-announcer{font-size:clamp(17px,6vw,36px)}
}
@media(max-width:620px){
  body.game-mode .brand-logo{width:clamp(105px,34vw,138px)}
  body.game-mode .v43-button-label{display:none}
  body.game-mode .v43-header-button{width:32px;height:32px;min-height:32px;padding:3px;font-size:15px}
  body.game-mode .header-actions{gap:4px}
  body.game-mode .live-pill{padding:6px 8px;font-size:10px;gap:3px}
  body.game-mode .live-pill>span:last-child{display:none}
  body.game-mode .live-dot{width:7px;height:7px}
  body.game-mode .fx-audio-box{padding:1px;border:0;background:none}
  body.game-mode .fx-audio-box input[type=range]{display:none}
  body.game-mode .fx-mode-button{display:none}
  body.game-mode .icon-button{width:31px;height:31px;padding:0;font-size:16px}
  body.game-mode .entrance-replay{font-size:0;padding:5px;min-width:30px}
  body.game-mode .entrance-replay::first-letter{font-size:16px}
  body.game-mode .arena-heading .section-heading-quiet{display:none}
  body.game-mode .battle-info strong{font-size:10px}
  body.game-mode .stage .character-wrap{transform:translate(-50%,-49%) scale(.56)}
  body.game-mode .bottom-marquee{font-size:7px}
  body.game-mode .section-row h2{font-size:14px}
}
@media(max-width:390px){body.game-mode .stage .character-wrap{transform:translate(-50%,-49%) scale(.52)}body.game-mode .action-grid{gap:4px}body.game-mode .action-copy strong{font-size:8px}body.game-mode .brand-logo{width:103px}body.game-mode .topbar{gap:3px}}
@media(max-height:620px) and (max-width:900px){body.game-mode .arena-frame{flex-basis:clamp(205px,42dvh,270px)}body.game-mode .stage .character-wrap{transform:translate(-50%,-49%) scale(.42)}body.game-mode .arena-heading{display:none}}
@media(orientation:landscape) and (max-height:500px) and (max-width:900px){body.game-mode .game-workspace{flex-direction:row}body.game-mode .arena-frame{flex:1 1 48%;height:100%}body.game-mode .controls{flex:1 1 52%;height:100%}body.game-mode .action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){body.game-mode .sidebar{transition:none}}
/* Small phones: keep the full cartoon body inside the reduced-height stage. */
@media(max-width:620px) and (max-height:720px){body.game-mode .stage .character-wrap{transform:translate(-50%,-49%) scale(.45)}}
body.game-mode .controls,body.game-mode .sidebar{-webkit-overflow-scrolling:touch}
