:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: #080d19; color: #eff6ff; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
button { font: inherit; }
a { color: #8ce8e0; }
.arcade { width: min(100% - 32px, 760px); margin: auto; padding: 24px 0 34px; }
.page-header, footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back-link { text-decoration: none; font-weight: 750; font-size: 14px; }
.back-link:hover, footer a:hover { text-decoration: underline; }
.edition, footer span { font-size: 10px; letter-spacing: .18em; color: #7192aa; font-weight: 800; }
.heading { text-align: center; padding: 12px 0 20px; }
.eyebrow { margin: 0 0 2px; color: #5ce1d4; font-size: 10px; letter-spacing: .28em; font-weight: 900; }
.heading h1 { margin: 0; font-size: clamp(34px, 8vw, 56px); letter-spacing: -.06em; line-height: 1.16; font-weight: 950; }
.heading h1 span { color: #69ede0; }
.heading > p:last-child { margin: 8px 0 0; color: #b6c7d5; font-size: 13px; }
.game-shell { width: min(100%, 420px); margin: auto; overflow: hidden; border: 1px solid #34617a; border-radius: 14px; background: #0e172b; box-shadow: 0 20px 80px #0009, 0 0 32px #48dacc1c; }
.hud { padding: 11px 14px 9px; background: #121f34; border-bottom: 1px solid #2d5271; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hud-top, .hud-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hud-top { font-size: 11px; letter-spacing: .06em; color: #a9c4d8; }
.hud-top strong { color: #f7fafc; }
.health-track { height: 7px; margin: 8px 0 10px; overflow: hidden; border-radius: 99px; background: #36485b; }
.health-fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff7a75, #ffcf6b); transition: width .1s linear; }
.hud-bottom { font-size: 11px; color: #96b5c9; }
.hud-bottom strong { color: #f3f7fb; }
#lives { color: #ff8e9d; letter-spacing: .15em; }
.stage { position: relative; width: 100%; aspect-ratio: 420 / 680; overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.overlay { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; text-align: center; }
.overlay[hidden] { display: none; }
.intro { background: linear-gradient(180deg, #081124ed, #06131cda); padding: 22px; }
.intro-card { width: 100%; }
.boss-preview { width: 132px; height: 152px; margin: 0 auto 23px; padding: 5px; border: 1px solid #f6ac68; border-radius: 11px; background: #0d1d2c; transform: rotate(-3deg); box-shadow: 0 0 30px #ff9d664d; }
.boss-preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; border-radius: 6px; }
.versus, .result-label { color: #ffb46e; font: 900 12px ui-monospace, monospace; letter-spacing: .23em; }
.intro h2 { margin: 6px 0 10px; font-size: 44px; letter-spacing: -.05em; line-height: 1; }
.intro p { margin: 0 auto 23px; color: #d2e1eb; font-size: 13px; line-height: 1.7; }
.main-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 210px; padding: 13px 17px; border: 0; border-radius: 7px; color: #071321; background: #73eadf; font-weight: 850; cursor: pointer; box-shadow: 0 5px 0 #348a84; }
.main-button:hover { background: #a4fff4; }
.main-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #348a84; }
.share-button { display: block; margin: 15px auto 0; padding: 8px 12px; border: 1px solid #829caf; border-radius: 6px; color: #dce9f3; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.share-button:hover { color: #071321; background: #dce9f3; }
.main-button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.share-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.result { background: #090e1a; }
.result-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: .72; }
.result::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #050a16aa 0%, #050a1699 34%, #050a16cc 68%, #050a16 100%); }
.win-photos { position: absolute; top: 12%; left: 5%; width: 90%; display: flex; gap: 8px; align-items: flex-start; }
.win-photos[hidden] { display: none; }
.win-photos img { display: block; width: calc((100% - 8px) / 2); height: auto; aspect-ratio: 2 / 3; object-fit: contain; border: 2px solid #8ce8e0; border-radius: 5px; background: #e5e5e5; box-shadow: 0 8px 25px #0009; }
.result--win::after { background: linear-gradient(180deg, transparent 42%, #050a16aa 68%, #050a16 100%); pointer-events: none; }
.result--win .result-label { color: #8ce8e0; }
.result-content { position: relative; z-index: 1; width: 100%; padding: 24px 14px; margin-top: auto; margin-bottom: 28px; }
.result-label { color: #ff8b80; }
.result h2 { max-width: 350px; margin: 11px auto 13px; font-size: clamp(26px, 7.8vw, 38px); line-height: 1.3; text-shadow: 0 3px 20px #000; }
.result p { color: #dce9f3; font: 800 14px ui-monospace, monospace; letter-spacing: .14em; margin: 0 0 25px; }
.controls-note { text-align: center; color: #829caf; font-size: 11px; line-height: 1.6; }
footer { max-width: 420px; margin: 24px auto 0; font-size: 12px; }
@media (max-width: 460px) { .arcade { width: 100%; padding-top: 15px; } .page-header, footer { margin-inline: 16px; } .heading { padding-bottom: 15px; } .game-shell { border-radius: 0; border-left: 0; border-right: 0; } .controls-note { padding-inline: 14px; } }
