:root{color-scheme:dark;font-family:Inter,Arial,sans-serif;background:#070b16;color:#e8f1ff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#192b48,#070b16 65%);min-height:100vh}button,a{-webkit-tap-highlight-color:transparent}button{font:700 14px inherit;font-family:inherit;font-size:14px;background:#192941;border:1px solid #446078;color:#f4f8ff;border-radius:5px;padding:12px 16px;cursor:pointer;min-height:44px}button:hover{background:#294664;border-color:#a9e75a}button:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #b0f261;outline-offset:3px}button.primary{background:#b0ed62;color:#122017;border-color:#b0ed62;font-weight:800}button:disabled{opacity:.5;cursor:wait}#arcade{max-width:1280px;margin:auto;padding:0 24px}header{height:95px;display:flex;align-items:center;justify-content:space-between;gap:16px}.wordmark{font-style:italic;font-size:27px;font-weight:950;letter-spacing:-1px;color:#fff;text-decoration:none}.wordmark span{color:#b0ed62}.wordmark small{font-style:normal;display:block;font-size:11px;letter-spacing:2.8px;margin-top:5px;color:#adbed2}.tools{display:flex;gap:8px}#screen{position:relative;border:1px solid #456076;border-radius:8px;overflow:hidden;box-shadow:0 25px 80px #0008;background:#0b1529;aspect-ratio:16/9}canvas{width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:none}#overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(90deg,#061026ed,#091527c9,#061026dd);padding:22px;overflow:auto}#overlay.hidden{display:none}.panel{max-width:750px;width:100%;text-align:center}.eyebrow{color:#b4ef68;font-size:12px;letter-spacing:3px;font-weight:800;margin:0 0 12px}.panel h1{font-size:clamp(32px,5vw,70px);line-height:.95;font-style:italic;letter-spacing:-3px;margin:10px 0 14px}.panel h1 em{color:#b0ed62;font-style:inherit}.panel h2{font-size:30px;margin:10px 0}.panel p{color:#c0d0e3;line-height:1.5;font-size:16px;margin:12px auto;max-width:620px}.panel .buttons{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0}.stage-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.stage-card{padding:10px 12px;border:1px solid #364b63;background:#0c192c;text-align:left;font-size:12px;line-height:1.5}.stage-card b{display:block;color:#eff7ff;font-size:14px}.stage-card span{color:#b4c9dd}.badge{display:inline-block;border:1px solid #789849;color:#b9f173;padding:5px 9px;font-size:12px;letter-spacing:1px}.options{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;color:#cad8e7;font-size:14px}.options select{padding:8px;background:#16283c;color:white;border:1px solid #607185}.options input{accent-color:#b0ed62}#toast{position:absolute;bottom:18%;left:50%;transform:translateX(-50%);max-width:90%;padding:9px 18px;text-align:center;background:#0a172bef;border:1px solid #7bb664;border-radius:4px;font-weight:700;color:#e5ffc2;pointer-events:none;opacity:0;transition:opacity .15s}#toast.show{opacity:1}footer{font-size:12px;line-height:1.8;color:#9cacc1;padding:22px 0}footer b{color:#d5e5f5;font-size:11px;margin-left:12px}footer b:first-child{margin-left:0}details{margin-top:12px;border-top:1px solid #243146;padding-top:10px;font-size:14px}summary{cursor:pointer;color:#c6d7e9;min-height:32px}details p{max-width:1000px}.touch{display:none;justify-content:space-between;gap:15px;padding-top:14px;touch-action:none;user-select:none}.dpad,.actions{display:flex;gap:6px;align-items:center}.touch button{touch-action:none;min-width:48px;min-height:52px;padding:8px;font-size:11px}.touch button.pressed{background:#61943e}.actions button:last-child{background:#336841}@media(pointer:coarse){.touch{display:flex}}@media(max-width:760px){#arcade{padding:0 8px}header{height:76px}.wordmark{font-size:20px}.wordmark small{font-size:8px;letter-spacing:1.5px}.tools{gap:4px}.tools button{font-size:11px;padding:7px}#screen{border-radius:3px}.touch{display:flex}.actions{flex-wrap:wrap;justify-content:flex-end;max-width:270px}.panel h1{font-size:36px}.panel p{font-size:13px;margin:7px 0}.panel .buttons{margin:10px 0}.panel button{padding:8px 12px}.stage-list{display:none}.eyebrow{font-size:10px;margin:4px 0}#overlay{padding:12px}.panel h2{font-size:22px}.options{font-size:12px;gap:8px}.badge{display:none}footer>div{display:none}}@media(max-height:550px) and (orientation:landscape){header{height:52px}#arcade{max-width:980px}#screen{height:calc(100svh - 65px);width:auto;aspect-ratio:16/9;margin:auto}.touch{position:fixed;bottom:12px;left:10px;right:10px;z-index:5;opacity:.7;pointer-events:none}.touch button{pointer-events:auto}footer{display:none}}#screen:fullscreen{width:100vw;height:100vh;border:0;border-radius:0;display:flex;align-items:center;justify-content:center}#screen:fullscreen canvas{object-fit:contain;max-height:100vh}body.reduced *{transition:none!important}
#arcade:fullscreen{max-width:none;width:100vw;height:100vh;padding:0 12px;background:#070b16;display:flex;flex-direction:column;align-items:center;justify-content:center}#arcade:fullscreen header{width:min(100%,1300px);height:58px;flex-shrink:0}#arcade:fullscreen #screen{width:min(100%,calc((100vh - 70px)*16/9));flex-shrink:1}#arcade:fullscreen footer{display:none}#arcade:fullscreen .touch{width:100%;max-width:1000px}@media(pointer:coarse){#arcade:fullscreen #screen{width:min(100%,calc((100vh - 150px)*16/9))}}

/* Campaign-site integration */
.campaign-back{display:inline-flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid #446078;border-radius:5px;color:#d9e8f7;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
.campaign-back:hover{border-color:#b0ed62;color:#b0ed62;background:#15273d}
@media(max-width:760px){.campaign-back{display:none}}
