/* PartyGame / Midnight Arcade. UX Pilot design UleHbjac9rKZ49xa2a4Y, adapted to the live game's controls. */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
:root{color-scheme:dark;--pg-bg:#0d111a;--pg-surface:#151c29;--pg-raised:#1c2535;--pg-line:#293448;--pg-text:#edf1f8;--pg-muted:#9aa9bf;--pg-accent:#ffad66;--pg-mint:#84dfc2;font-family:'Pretendard Variable',system-ui,sans-serif}
html,body:not(.text-slate-900){background:var(--pg-bg)!important;color:var(--pg-text)!important}html{scrollbar-color:#405069 #0d111a}body{font-family:'Pretendard Variable',system-ui,sans-serif!important;-webkit-font-smoothing:antialiased}body::before{display:none!important}*{box-sizing:border-box}h1,h2,h3,h4{letter-spacing:-.035em;text-shadow:none!important}a{transition:color .15s,background .15s,border-color .15s}button,input,select,textarea{font-family:inherit}button{transition:background .15s,border-color .15s,box-shadow .15s}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid var(--pg-accent)!important;outline-offset:4px}::selection{background:#6c4933;color:#fff}
/* Main game: a compact mission header and a strong, quiet frame around the arena. */
main.shell{max-width:1280px;padding:30px 28px 0}.shell .heading{margin:10px 0 28px;align-items:center}.shell .eyebrow{color:var(--pg-accent);font-size:10px;letter-spacing:.2em}.shell .heading h1{font-size:clamp(34px,4.3vw,54px);font-weight:850;line-height:1.13;margin:12px 0;color:#fff}.shell .heading h1 span{font-size:12px!important;letter-spacing:.06em;font-weight:500!important;margin-top:12px!important;color:var(--pg-muted)!important}.shell .heading .muted{font-size:14px;line-height:1.8;color:var(--pg-muted);max-width:540px}.shell .tag{color:#9ee6d0;border:1px solid #34524c;background:#142b28;font-size:11px;letter-spacing:.07em;border-radius:6px;padding:9px 12px}.shell .tag::before{content:'●';font-size:8px;margin-right:8px;color:#84dfc2}
.shell .mode-select{padding:0 0 20px;border:0;border-radius:0;margin:0 0 4px}.shell .mode-select legend{color:var(--pg-muted);font-size:11px;font-weight:500;padding:0;margin-bottom:12px;letter-spacing:.03em}.shell .mode-options{gap:10px}.shell .mode-options label{position:relative;border:1px solid var(--pg-line);border-radius:10px;background:#141b27;padding:15px 18px;color:#dce4f1;font-size:14px;font-weight:700;transition:background .15s,border-color .15s}.shell .mode-options label:has(input:checked){background:#27221f;border-color:#bd865c;box-shadow:inset 0 2px #ffad66}.shell .mode-options label:has(input:focus-visible){outline:2px solid #ffad66;outline-offset:3px}.shell .mode-options input{accent-color:var(--pg-accent)}.shell .mode-options small{color:var(--pg-muted);font-size:11px;font-weight:400;margin-top:7px;line-height:1.6}.shell #modeHelp{font-size:11px;color:#8f9fb5;line-height:1.75;margin-top:12px}.shell .layout{grid-template-columns:minmax(0,1fr) 284px;gap:20px}.shell .panel{background:var(--pg-surface);border:1px solid var(--pg-line);border-radius:13px;box-shadow:0 8px 28px #0000001a}.shell .hud{padding:17px 20px;background:#171f2d;border-color:var(--pg-line)}.shell .hud small{font-size:10px;color:#91a1b8;letter-spacing:.08em}.shell .hud strong{font-size:22px;font-weight:750;margin-top:5px;color:#f3f5fa}.shell .hud .gold{color:#ffbf83}.shell .run-strip{background:#111925;border-color:var(--pg-line);color:#9aabc0;font-size:11px;padding:11px 18px}.shell .run-strip strong{color:#f5bc89}.shell .combo-track{background:#303b4e}.shell .combo-track span{background:var(--pg-accent)}.shell .stage{background:#101a24}.shell .overlay{background:#090f1dc9;backdrop-filter:blur(5px)}.shell .overlay-card{max-width:390px}.shell .overlay-card h2{font-size:clamp(24px,3vw,34px);line-height:1.3;color:#fff}.shell .overlay-card p{color:#bac6d8;line-height:1.9;font-size:13px}.shell .overlay-card .eyebrow{color:#ffbd87}.shell .btn{background:#222e40;border:1px solid #3b4b62!important;color:#e7edf8;border-radius:7px;min-height:40px;padding:10px 15px;font-size:12px}.shell .btn:hover:not(:disabled){background:#2b3a50!important;border-color:#71839e!important}.shell .btn.primary,.shell .btn.primary:hover{background:#ffad66!important;border-color:#ffad66!important;color:#231a14!important;box-shadow:0 3px 14px #ffad6614}.shell .btn.primary:hover:not(:disabled){background:#ffc18d!important}.shell .btn:disabled{opacity:.4}.shell .toolbar{padding:13px 16px}.shell .toolbar .muted{font-size:11px;color:var(--pg-muted)}.shell .status{color:#9fafc4;font-size:11px;padding:0 17px 14px;line-height:1.6;min-height:30px}.shell .ability-bar{background:#141e2c;border-color:var(--pg-line);padding:12px 16px}.shell .ability-info p,.shell .fx-option{color:#a6b4c8}.shell .side-card{padding:19px}.shell .side-card h2{font-size:14px;color:#e9effa;margin-bottom:14px}.shell .side-card p{font-size:12px;color:#a1b0c5;line-height:1.85}.shell .health{color:#aab8cb;font-size:11px;margin-top:16px}.shell .health b{color:#e9effa;font-variant-numeric:tabular-nums}.shell .meter{background:#0d1420;height:5px}.shell .meter span{background:#84dfc2}.shell .meter.rose span{background:#f49ba3}.shell #score,.shell #best{color:#fff}.shell #firebaseRankingList li{background:#101825;border-color:var(--pg-line);border-radius:7px}.shell #firebaseRankingList li>strong{color:#ffb778}.shell #firebaseRankingStatus{color:#91a4bc;font-size:11px}.shell #buildPanel{background:#182232f7;border-color:#76604f;border-radius:12px;box-shadow:0 22px 70px #0009}.shell #buildPanel .build-heading{background:#182232}.shell #buildPanel .eyebrow{color:#ffb778}.shell #buildPanel .slot-grid button{background:#243146;border-color:#3b4b60;color:#d4dfef}.shell .slot-grid button[aria-pressed=true]{background:#453328!important;border-color:#ffad66!important;color:#ffd3ad}.shell .choice{background:#1c293b;border-color:#34465b;color:#eef3fb;border-radius:8px}.shell .choice small{color:#a8b9cf}.shell .choice:hover:not(:disabled){background:#2b3a50!important}.shell .reward-panel{background:#202937;border-color:#77604d}.shell .reward-panel h2,.shell .reward-card strong{color:#ffc18b}.shell .reward-card{background:#182333;border-color:#4a596c}.shell .reward-card:hover{background:#293748}.shell .reward-card small{color:#bac7da}
.shell .crosslinks{gap:10px;margin:24px 0}.shell .crosslinks a{background:#141d2c;border:1px solid var(--pg-line)!important;color:#aabbd1;padding:11px 15px;font-size:12px}.shell .crosslinks a[aria-current]{color:#ffd1aa;border-color:#6c5141!important}.shell .crosslinks a:hover{background:#233046!important;color:#fff}.shell .game-guide{margin-top:36px;background:#121a27;border:1px solid var(--pg-line);border-radius:13px;padding:28px}.shell .game-guide h2{color:#f1f4fa;font-size:25px}.shell .game-guide h3{color:#e6c4a8;font-size:16px}.shell .game-guide p{color:#9eafc5;line-height:1.95;font-size:13px}.shell .guide-grid{gap:24px;margin:24px 0}.shell .guide-grid section{padding:0 0 0 16px;border-left:2px solid #644c3c}.shell .guide-grid h3{margin-top:0}.shell .game-guide details{border-color:var(--pg-line);padding:17px 0}.shell .game-guide summary{font-size:13px;color:#dce5f4}.shell .game-guide a{color:#ffbd87}
/* Account, support, legal pages and the second game share the same surfaces. */
body:not(:has(main.shell)) main{color:var(--pg-text);padding-top:38px;padding-bottom:40px}body:not(:has(main.shell)) main h1{color:#f2f5fb!important;font-weight:800;letter-spacing:-.04em}body:not(:has(main.shell)) main h2{color:#e0e9f7}body:not(:has(main.shell)) main p,body:not(:has(main.shell)) main li{color:#a9b8cb}body:not(:has(main.shell)) main .bg-white\/5{background:#151e2d!important;border-color:var(--pg-line)!important;box-shadow:none}body:not(:has(main.shell)) .shadow-2xl{box-shadow:0 12px 40px #0002!important}body:not(:has(main.shell)) main a{color:#ffd0aa}body:not(:has(main.shell)) main nav a{padding:9px 14px;border:1px solid var(--pg-line);background:#151e2d;border-radius:7px;font-size:12px}body:not(:has(main.shell)) .field{background:#101725!important;border-color:#35445c!important;border-radius:8px;color:#ecf2fc!important;min-height:46px}body:not(:has(main.shell)) .field::placeholder{color:#71839e!important}body:not(:has(main.shell)) .auth-tab{color:#abb9cf;border-color:#33445c!important;border-radius:8px}body:not(:has(main.shell)) .auth-tab[aria-selected=true]{background:#33271f!important;color:#ffd1ab;border-color:#a87955!important}body:not(:has(main.shell)) button[type=submit]{background:#ffad66!important;border-color:#ffad66!important;color:#281d15!important;border-radius:8px}input[type=checkbox],input[type=radio]{accent-color:#ffad66!important}#gameOverlay{background:#091220e8!important}
.shell .mode-options{counter-reset:mode}.shell .mode-options label{counter-increment:mode}.shell .mode-options label::before{content:'MODE 0' counter(mode);display:block;font-size:9px;font-weight:650;letter-spacing:.12em;color:#ffad66;margin-bottom:9px}.shell .mode-options input{margin-right:7px}.shell .heading>.tag{border-radius:7px}.shell .side-card>.eyebrow{padding-bottom:9px;border-bottom:1px solid #293448;margin-bottom:13px}.shell .side-card h2{display:flex;align-items:center;gap:8px}.shell .side-card h2::before{content:'';width:3px;height:13px;background:#ffad66;border-radius:2px;flex-shrink:0}.shell .game-guide details{border:1px solid #293448;border-radius:9px;padding:15px 17px;margin-top:10px;background:#161e2b}.shell .game-guide details[open]{border-color:#63503e}.shell .game-guide details p{padding-top:4px}.shell .game-guide summary::marker{color:#ffad66}
@media(min-width:1050px){.shell .aside{gap:14px}.shell .heading{min-height:115px}.shell .heading .tag{align-self:center}.shell .stage{max-width:720px;margin:0 auto}.shell .layout>section{background:#111a27}}
@media(max-width:900px){.shell .layout{grid-template-columns:1fr}.shell .aside{grid-template-columns:repeat(2,minmax(0,1fr))}main.shell{padding:24px 20px 0}}
@media(max-width:540px){main.shell{padding:20px 14px 0}.shell .heading{margin:2px 0 23px}.shell .heading h1{font-size:36px}.shell .heading h1 span{font-size:11px!important}.shell .heading .muted{font-size:12px}.shell .mode-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.shell .mode-options label{padding:11px 8px;font-size:12px;text-align:center}.shell .mode-options input{display:block;margin:0 auto 6px}.shell .mode-options small{font-size:10px;line-height:1.5;margin-top:6px}.shell .mode-select legend{font-size:10px}.shell #modeHelp{font-size:10px}.shell .hud{padding:12px 13px;gap:6px}.shell .hud strong{font-size:18px}.shell .hud small{font-size:9px}.shell .aside{grid-template-columns:1fr}.shell .run-strip{padding:9px 12px;gap:6px 12px;font-size:10px}.shell .toolbar{padding:10px 12px}.shell .toolbar>div{width:100%}.shell .toolbar .btn{flex:1}.shell .ability-bar{padding:11px 12px}.shell .btn{min-height:42px}.shell .game-guide{padding:20px;margin-top:26px}.shell .game-guide h2{font-size:22px}.shell .guide-grid{grid-template-columns:1fr;gap:18px}.shell .crosslinks{gap:8px}.shell .crosslinks a{font-size:11px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
