/* The embedded game is a single centred stage. The world supplies its backdrop. */
@font-face{font-family:'Commissioner';font-style:normal;font-weight:100 900;font-display:swap;src:url('assets/commissioner-cyrillic-wght-normal.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Commissioner';font-style:normal;font-weight:100 900;font-display:swap;src:url('assets/commissioner-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body.embedded{min-width:0;background:#12221c;overflow:hidden;font-family:'Commissioner',Arial,sans-serif}
/* Browsing, paused and results states leave touch scrolling to the page. */
#game{touch-action:auto}
body.game-active #game{touch-action:none}
body.embedded .site-shell{max-width:none;padding:0}
body.embedded .header,body.embedded footer,body.embedded .intro>h1,body.embedded .selected-heading,body.embedded .member-desc,body.embedded .record,body.embedded .howto,body.embedded .portrait-mark,body.embedded .portrait-orbit,body.embedded .arena-caption{display:none}
body.embedded .play-layout{position:relative;isolation:isolate;overflow:clip;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px) minmax(0,1fr);gap:clamp(18px,3vw,48px);align-items:center;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:28px clamp(16px,3vw,48px)}
body.embedded .play-layout:before{content:'';position:absolute;inset:-64px;z-index:-2;background-image:var(--selected-map-image);background-size:100% auto;background-position:center bottom;filter:blur(34px) saturate(.8) brightness(.55);pointer-events:none}
body.embedded .play-layout:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b181756,transparent 38%,transparent 62%,#0b181756);pointer-events:none}
body.embedded .intro,body.embedded .details{display:block;width:100%;max-width:220px;min-width:0;justify-self:center;align-self:center;padding:0;container-type:normal}
body.embedded .map-heading,body.embedded .skin-heading{display:flex;align-items:center;justify-content:space-between;border:0;font:500 11px/1.3 'Commissioner',sans-serif;letter-spacing:.08em;color:#d4e2d9;margin:0 0 13px;padding:0}
body.embedded #selected-map,body.embedded #skin-count{display:none}
body.embedded .map-grid{display:grid;grid-template-columns:1fr;gap:8px;margin:0;padding:0}
body.embedded .map-card{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:60px;padding:5px;background:#10201c70;border:1px solid #c0e8d224;border-radius:7px;box-shadow:none}
body.embedded .map-card canvas{width:68px;height:48px;object-fit:cover;border-radius:3px;flex:none}
body.embedded .map-card>span{font:450 12px/1.2 'Commissioner',sans-serif;letter-spacing:0;text-align:left;color:#d4dfd8}
body.embedded .map-card[aria-pressed=true],body.embedded .skin-card[aria-pressed=true]{border-color:#7dd9aa;background:#376c4c66;box-shadow:0 0 0 1px #7dd9aa20}
body.embedded .map-card:hover:not(:disabled),body.embedded .skin-card:hover:not(:disabled){background:#4d806955}
body.embedded .map-card:disabled,body.embedded .skin-card:disabled{cursor:default;opacity:.5}
body.embedded .map-card[aria-pressed=true]:disabled,body.embedded .skin-card[aria-pressed=true]:disabled{opacity:1}
body.embedded .portrait-wrap{height:210px;margin:0 0 8px}
body.embedded .portrait-wrap:before{width:180px;height:180px;background:radial-gradient(ellipse,#a5e7c52b,transparent 65%)}
body.embedded #portrait{width:190px;height:200px;max-width:100%}
body.embedded .member-name{font:550 13px/1.3 'Commissioner',sans-serif;letter-spacing:.03em;text-align:center;margin:0 0 29px;color:#ecf4ee}
body.embedded .character-choices{width:100%;min-width:0}
body.embedded .skin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible;padding:0}
body.embedded .skin-card{height:70px;min-width:0;padding:4px 1px 8px;background:#10201c70;border:1px solid #c0e8d224;border-radius:6px;box-shadow:none;gap:3px}
body.embedded .skin-card:after{display:none}
body.embedded .skin-card canvas{width:45px;height:47px;max-width:100%}
body.embedded .skin-card span,body.embedded .skin-card:nth-child(5) span{font:450 7px/1 'Commissioner',sans-serif;letter-spacing:0;color:#dae5dd}
body.embedded .arena-column{display:block;width:100%;max-width:none;height:auto;align-self:center;justify-self:center}
body.embedded .arena{width:100%;max-width:none;height:auto;aspect-ratio:2/3;border:1px solid #96c0ab69;border-radius:9px;box-shadow:0 22px 60px #0007,0 0 0 5px #d2f2df08;flex:none}
body.embedded .arena-bottom{display:flex;justify-content:center;align-items:center;width:100%;min-height:42px;margin:8px 0 0;font:400 11px/1.4 'Commissioner',sans-serif;letter-spacing:0}
body.embedded #play-status:empty{display:none}
body.embedded #play-status:not(:empty){max-width:50%;color:#d4e2d9;font-size:10px}
body.embedded #fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:8px 14px;border:1px solid #c0e8d22b;border-radius:6px;background:#0c211c50;color:#edf6f0;font:450 12px/1.3 'Commissioner',sans-serif;letter-spacing:0;white-space:nowrap}
body.embedded #fullscreen:hover{background:#376c4c80;border-color:#7dd9aa}
body.embedded #fullscreen>span{font-size:19px;line-height:1;margin:0}
body.embedded .lobby-card{width:calc(100% - 64px);max-width:330px;padding:28px;background:linear-gradient(145deg,#102b22e3,#101e20e3);border:1px solid #a0d6bd42;border-radius:8px;box-shadow:0 15px 50px #0003;backdrop-filter:blur(12px);margin:0}
body.embedded .lobby-card h2{font-size:clamp(46px,5.5vw,70px);line-height:.92;font-weight:650;letter-spacing:-.045em;margin:0 0 22px}
body.embedded .lobby-card p{font-size:12px;line-height:1.5;margin:0 0 22px;color:#c4d8cc}
body.embedded .primary{font-family:inherit;font-weight:550;min-height:48px;border-radius:5px;border-bottom-width:1px;box-shadow:none}
body.embedded .start-hint{font:400 10px/1.5 'Commissioner',sans-serif;letter-spacing:0;white-space:normal;color:#a8c3b3;margin-top:14px}
body.embedded .height strong,body.embedded .item-count b{font-family:'Commissioner',sans-serif;font-variant-numeric:tabular-nums}
body.embedded .height strong{font-size:32px;font-weight:600;letter-spacing:-.05em}
body.embedded .height>span{font-family:'Commissioner',sans-serif;font-size:8px}
body.embedded .hud{padding:18px}
body.embedded:not(.playing) .hud{opacity:.65}
body.embedded .touch-controls{display:none}
body.embedded .in-game-sound{display:grid}
body.embedded .modal-card{font-family:inherit;max-height:calc(100% - 32px);overflow-y:auto;overscroll-behavior:contain}
@media(min-width:821px) and (max-width:1000px){
 body.embedded .play-layout{grid-template-columns:minmax(0,1fr) minmax(0,380px) minmax(0,1fr);gap:22px;padding-inline:22px}
 body.embedded .skin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.embedded .portrait-wrap{height:166px}
 body.embedded #portrait{width:150px;height:158px}
}
/* On smaller screens the game comes first; both choice rows remain outside it. */
@media(max-width:820px){
 body.embedded .play-layout{display:flex;flex-direction:column;gap:24px;padding:20px 16px 26px}
 body.embedded .arena-column{order:0;width:min(100%,440px);max-width:440px}
 body.embedded .intro{order:1;max-width:560px}
 body.embedded .details{order:2;display:grid;grid-template-columns:56px 1fr;align-items:center;gap:0 12px;max-width:560px}
 body.embedded .map-grid{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#78b694 transparent;padding:0 0 6px}
 body.embedded .map-card{flex:1 0 72px;min-height:0;max-width:110px;flex-direction:column;gap:7px;padding:5px 5px 8px}
 body.embedded .map-card canvas{width:100%;height:44px}
 body.embedded .map-card>span{font-size:10px}
 body.embedded .portrait-wrap{height:58px;margin:0 0 12px;grid-column:1;grid-row:1}
 body.embedded #portrait{height:58px;width:55px}
 body.embedded .portrait-wrap:before{width:70px;height:70px}
 body.embedded .member-name{text-align:left;grid-column:2;grid-row:1;margin:0 0 12px;font-size:12px}
 body.embedded .character-choices{grid-column:1/-1}
 body.embedded .skin-heading{display:none}
 body.embedded .skin-grid{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#78b694 transparent;padding-bottom:6px}
 body.embedded .skin-card{flex:1 0 52px;max-width:74px;height:72px}
 body.embedded .lobby-card h2{font-size:clamp(44px,11vw,65px)}
}
@media(max-width:380px){
 body.embedded .play-layout{padding:14px 10px 20px;gap:20px}
 body.embedded .lobby-card{width:calc(100% - 36px);padding:20px}
 body.embedded .lobby-card h2{margin-bottom:17px}
 body.embedded .lobby-card p{margin-bottom:18px}
 body.embedded .hud{padding:13px}body.embedded .hud-right{gap:9px}
}
@media(pointer:coarse){body.embedded.playing .touch-controls{display:flex}}
/* The same backdrop fills fullscreen's side margins. */
body.embedded .play-layout.is-fullscreen{width:100vw;height:100dvh;min-height:0;max-width:none;overflow:clip;padding:18px 28px;gap:26px;grid-template-columns:minmax(0,1fr) minmax(0,min(50vw,calc((100dvh - 88px)*.666667))) minmax(0,1fr)}
body.embedded .play-layout.is-fullscreen .arena-column{width:100%;max-width:none}
body.embedded .play-layout.is-fullscreen .arena{width:100%}
@media(max-width:900px),(max-height:620px){
 body.embedded .play-layout.is-fullscreen{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:max(8px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));gap:0}
 body.embedded .play-layout.is-fullscreen .intro,body.embedded .play-layout.is-fullscreen .details{display:none}
 body.embedded .play-layout.is-fullscreen .arena-column{width:min(calc(100vw - 24px),calc((100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*.666667));height:auto;max-width:none}
 body.embedded .play-layout.is-fullscreen .arena-bottom{min-height:38px;margin-top:6px}
 body.embedded .play-layout.is-fullscreen .lobby-card{padding:18px;width:calc(100% - 38px)}
 body.embedded .play-layout.is-fullscreen .lobby-card h2{font-size:clamp(30px,7dvh,64px);margin-bottom:14px}
 body.embedded .play-layout.is-fullscreen .lobby-card p{margin-bottom:14px}
}
@media(max-height:420px){
 body.embedded .play-layout.is-fullscreen .lobby-card{padding:13px}
 body.embedded .play-layout.is-fullscreen .lobby-card h2{font-size:30px;margin-bottom:10px}
 body.embedded .play-layout.is-fullscreen .lobby-card p,body.embedded .play-layout.is-fullscreen .start-hint{display:none}
 body.embedded .play-layout.is-fullscreen .hud{padding:8px}
 body.embedded .play-layout.is-fullscreen .height strong{font-size:23px}
 body.embedded .play-layout.is-fullscreen .height>span{display:none}
 body.embedded .play-layout.is-fullscreen .item-count svg{width:16px;height:16px}
 body.embedded .play-layout.is-fullscreen .item-count b{font-size:12px}
 body.embedded .play-layout.is-fullscreen .hud-right{gap:5px}
}

/* Utility actions stay outside the pointer-steered field in every presentation. */
.arena-bottom,body.embedded .arena-bottom{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:44px;margin-top:8px}
.arena-controls{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
.arena-controls :is(.in-game-sound,.pause-btn){display:grid;place-items:center;width:44px;min-width:44px;height:44px;border:0;border-radius:8px;background:#18251f;color:#edf6f0;padding:10px}
.arena-controls .in-game-sound svg,.arena-controls .pause-btn svg{width:22px;height:22px}
body.embedded .arena-controls #fullscreen{min-height:44px;border:0;border-radius:8px;background:#18251f;font-size:13px;font-weight:500;padding:10px 12px}
.arena-controls :is(.in-game-sound,.pause-btn):hover:not(:disabled){background:#263d31}
body.embedded #play-status:not(:empty){max-width:none;width:100%;text-align:center;font-size:9px;line-height:14px}
body.embedded .play-layout.is-fullscreen{grid-template-columns:minmax(0,1fr) minmax(0,min(50vw,calc((100dvh - 112px)*.666667))) minmax(0,1fr)}
@media(max-width:900px),(max-height:620px){body.embedded .play-layout.is-fullscreen .arena-column{width:min(calc(100vw - 24px),calc((100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*.666667))}}
