* { box-sizing: border-box; }
:root { color-scheme: dark; }
body { margin: 0; background: #050811; color: #f2f6ff; font: 18px/1.5 Arial, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, #12367b45 0%, #08132a30 40%, transparent 70%), repeating-linear-gradient(90deg, transparent 0, transparent 119px, #749bff06 120px), repeating-linear-gradient(0deg, transparent 0, transparent 119px, #749bff06 120px); }
body::after { content: ""; position: fixed; top: 0; left: 25%; width: 50%; height: 2px; background: linear-gradient(90deg, transparent, #568aff, #9adeff, #568aff, transparent); box-shadow: 0 0 30px #3977ff; }
main { position: relative; max-width: 1600px; margin: auto; padding: 38px 64px 28px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 900; letter-spacing: 5px; }
.brand-mark { width: 17px; height: 24px; border-left: 5px solid #73baff; border-right: 5px solid #437bff; transform: skew(-18deg); box-shadow: 6px 0 18px #3277ff26; }
.brand span { border-left: 1px solid #30415e; padding-left: 15px; color: #8d9db9; font-size: 12px; letter-spacing: 2px; }
#firmware { color: #9badcc; font: 11px/1.5 monospace; letter-spacing: 1px; text-transform: uppercase; border: 1px solid #253451; padding: 9px 14px; border-radius: 4px; background: #0e172780; }
.launch-area { position: relative; min-height: 75vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 0 80px; }
.arena { position: absolute; width: 540px; height: 540px; max-width: 85vw; max-height: 85vw; top: 46%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.orbit { position: absolute; border-radius: 50%; }
.orbit-outer { inset: 0; border: 1px solid #467edf24; box-shadow: 0 0 90px #155cff0d, inset 0 0 90px #155cff0d; }
.orbit-outer::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px solid transparent; border-top-color: #4c90ff80; border-bottom-color: #4c90ff80; transform: rotate(-32deg); }
.orbit-outer::after { content: ""; position: absolute; inset: -24px; border: 1px dashed #477ace20; border-radius: 50%; }
.orbit-inner { inset: 55px; border: 1px solid #447bdc28; background: radial-gradient(circle, #2464d51c, transparent 70%); }
.arena-cross { position: absolute; top: 49%; font: 18px monospace; color: #5687c5; }
.cross-left { left: -65px; } .cross-right { right: -65px; }
.eyebrow { position: relative; color: #8fb4ec; font: bold 11px/1.5 monospace; letter-spacing: 4px; margin: 0 0 34px; }
.launch-frame { position: relative; width: 580px; max-width: 100%; padding: 7px; border: 1px solid #548dff65; background: #17336740; border-radius: 14px; box-shadow: 0 0 70px #1b63ff25; }
.launch-frame::before, .launch-frame::after { content: ""; position: absolute; width: 44px; height: 3px; background: #a4d8ff; box-shadow: 0 0 18px #459cff; }
.launch-frame::before { top: -2px; left: 24px; } .launch-frame::after { bottom: -2px; right: 24px; }
button { position: relative; width: 100%; min-height: 156px; border: 1px solid #83baff; border-radius: 8px; background: linear-gradient(120deg, #2465e7, #377ffd 48%, #235bdb); color: #fff; font: 900 68px/1 Arial, sans-serif; letter-spacing: 11px; text-indent: 11px; cursor: pointer; text-shadow: 0 3px 16px #072d85; box-shadow: inset 0 1px 0 #d3eaff66, inset 0 -6px 24px #122e7945, 0 12px 32px #0005; transition: background .2s, box-shadow .2s; }
button:focus { outline: 3px solid #d4eeff; outline-offset: 12px; box-shadow: 0 0 65px #3783ff66; }
button:hover:not(:disabled) { background: linear-gradient(120deg, #3479fb, #509bff 48%, #316bec); box-shadow: 0 0 65px #3783ff66; }
button:disabled { cursor: default; }
button[aria-busy="true"] { font-size: 42px; letter-spacing: 5px; text-indent: 5px; background: linear-gradient(120deg, #13316b, #2052a9, #13316b); animation: charging 2s ease-in-out infinite; }
body[data-state="ready"] button { background: linear-gradient(120deg, #136163, #208d89, #136163); border-color: #78e6ce; }
body[data-state="error"] button { background: linear-gradient(120deg, #53263d, #78364c, #53263d); border-color: #ec91a6; }
#status { position: relative; max-width: 700px; min-height: 27px; margin: 34px 0 10px; color: #c1d0e9; font-size: 16px; }
.hint { position: relative; color: #7b8daa; font-size: 12px; margin: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #233452; padding-top: 20px; color: #627898; font: 10px/1.5 monospace; letter-spacing: 2px; }
.footer-label { color: #94b4df; }
#diagnostics { position: relative; margin: 0 0 24px; }
#diagnostics-title { margin: 0 0 8px; color: #9badcc; font: bold 14px/1.5 Arial, sans-serif; }
#console { height: 22vh; min-height: 110px; max-height: 260px; padding: 12px 16px; border: 1px solid #243654; background: #080e1d; overflow: auto; white-space: pre-wrap; overflow-wrap: break-word; font: 16px/1.6 monospace; color: #b7cce9; }
#console:focus { outline: 2px solid #a3cdff; outline-offset: 3px; }
@keyframes charging { 50% { box-shadow: 0 0 45px #3c88ff60; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; animation: none !important; } }
@media (max-width: 650px) { main { padding: 28px 24px; } .brand { gap: 9px; font-size: 19px; letter-spacing: 3px; } .brand span { font-size: 10px; padding-left: 10px; } #firmware { max-width: 135px; text-align: right; font-size: 9px; padding: 7px 9px; } .launch-area { min-height: 72vh; padding: 85px 0; } .eyebrow { font-size: 9px; letter-spacing: 2px; } button { min-height: 128px; font-size: 44px; letter-spacing: 6px; text-indent: 6px; } button[aria-busy="true"] { font-size: 28px; letter-spacing: 2px; } #status { font-size: 14px; } .hint { max-width: 240px; line-height: 1.8; } .arena { max-width: 76vw; max-height: 76vw; } .arena-cross { display: none; } footer { font-size: 8px; letter-spacing: 1px; } }
@media (max-width: 650px) { body[data-state="error"] button { font-size: 34px; letter-spacing: 3px; text-indent: 3px; } }

/* Ambient motion stays on decorative layers so text and focus remain steady. */
body::before { animation: ambient-breathe 8s ease-in-out infinite; }
body::after { animation: power-line 5s ease-in-out infinite; }
header { animation: arrive .65s ease-out both; }
.launch-area { animation: arrive .9s .1s ease-out both; }
footer { animation: arrive .7s .3s ease-out both; }
.orbit-outer::before { animation: orbit-clockwise 32s linear infinite; }
.orbit-outer::after { animation: orbit-counterclockwise 80s linear infinite; }
.orbit-inner::before { content: ""; position: absolute; inset: -8px; border: 1px solid transparent; border-left-color: #70b4ff80; border-right-color: #70b4ff35; border-radius: 50%; animation: orbit-counterclockwise 24s linear infinite; }
.orbit-inner::after { content: ""; position: absolute; inset: -35px; border: 1px solid #528cff40; border-radius: 50%; animation: sonar 6s ease-out infinite; }
.launch-frame::before, .launch-frame::after { animation: edge-glow 3.8s ease-in-out infinite; }
.launch-frame::after { animation-delay: -1.9s; }
button { overflow: hidden; }
button::after { content: ""; position: absolute; top: -30%; left: -45%; width: 35%; height: 160%; pointer-events: none; background: linear-gradient(90deg, transparent, #d4ecff24, transparent); transform: translateX(0) skewX(-20deg); animation: launch-sweep 6s 1s ease-in-out infinite; }
button[aria-busy="true"]::after { animation-duration: 2.6s; }
body[data-state="error"] button::after { animation: none; opacity: 0; }
body[data-state="error"] .orbit::before, body[data-state="error"] .orbit::after { animation-play-state: paused; }
@keyframes ambient-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes power-line { 0%, 100% { opacity: .55; transform: scaleX(.75); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-clockwise { from { transform: rotate(-32deg); } to { transform: rotate(328deg); } }
@keyframes orbit-counterclockwise { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes sonar { 0% { opacity: 0; transform: scale(.85); } 15% { opacity: .55; } 85%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes edge-glow { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes launch-sweep { 0%, 25% { transform: translateX(0) skewX(-20deg); opacity: 0; } 30% { opacity: 1; } 65% { transform: translateX(440%) skewX(-20deg); opacity: 1; } 70%, 100% { transform: translateX(440%) skewX(-20deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  button::after, .orbit-inner::after { opacity: 0; }
}

/* Keep diagnostics on screen without opening a disclosure or scrolling the page. */
.launch-area { min-height: 43vh; padding: 48px 0 32px; }
.arena { width: 340px; height: 340px; }
body[data-state="launching"] *, body[data-state="launching"] *::before,
body[data-state="launching"] *::after, body[data-state="launching"]::before,
body[data-state="launching"]::after { animation: none !important; transition: none !important; }

#cheatrunner { position: relative; color: #a8f3e2; padding: 10px 18px; margin: 0 0 12px; border: 1px solid #477f83; border-radius: 8px; text-decoration: none; font-size: 14px; }
#cheatrunner:focus { outline: 2px solid #a8f3e2; outline-offset: 4px; }

#launch-options { position: relative; margin: 0 0 24px; border: 1px solid #243654; border-radius: 8px; background: #0a1222; }
#launch-options summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; color: #d4e4fc; font-size: 16px; }
#launch-options summary::before { content: '+'; color: #8fb4ec; }
#launch-options[open] summary::before { content: '−'; }
#launch-options-summary { margin-left: auto; color: #9badcc; font-size: 12px; }
#launch-options summary:focus, .service-options input:focus { outline: 2px solid #d4eeff; outline-offset: 4px; }
#launch-services { border: 0; border-top: 1px solid #243654; margin: 0; padding: 16px 20px; min-width: 0; }
#launch-services legend { padding: 0 8px; color: #9badcc; font-size: 12px; }
.service-options { display: flex; gap: 12px; }
.optional-patch { margin-top: 12px; }
.service-options label { display: flex; align-items: center; gap: 14px; flex: 1; padding: 16px; border: 1px solid #304568; border-radius: 6px; cursor: pointer; background: #111e34; }
.service-options label:focus-within { border-color: #a3cdff; }
.service-options input { width: 22px; height: 22px; flex-shrink: 0; accent-color: #5297ff; }
.service-options strong, .service-options small { display: block; }
.service-options strong { font-size: 16px; }
.service-options small, #launch-services p { color: #9badcc; font-size: 12px; }
#launch-services p { margin: 12px 0 0; }
#launch-services:disabled { opacity: .65; }
@media (max-width: 650px) { .service-options { flex-direction: column; } #launch-options summary { padding: 14px; } #launch-options-summary { font-size: 11px; } }
