* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: #0d1424; color: #f4f1ea; overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
canvas { position: fixed; inset: 0; display: block; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#gl { z-index: 0; }
#c { z-index: 1; }
.screen { z-index: 2; }
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8, 12, 24, .55); }
.hidden { display: none; }
.end { place-items: end center; background: linear-gradient(transparent 55%, rgba(8, 12, 24, .6)); }
.end .card { padding: 18px 20px; }
.end h1 { font-size: clamp(22px, 4.5vw, 34px); }
.end .lead { margin: 8px 0 12px; }
.card { width: min(560px, 100%); background: rgba(16, 22, 38, .92); border-radius: 22px; padding: 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
h1 { font: 900 clamp(34px, 7vw, 52px)/1 "Arial Black", Impact, system-ui, sans-serif; letter-spacing: .02em; color: #ffd23f; }
.lead { margin: 12px 0 18px; font-size: 17px; line-height: 1.35; color: #e9e4d8; }
.heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero { display: grid; gap: 4px; text-align: left; padding: 14px; border: 0; border-radius: 14px; background: #24304a; color: inherit; font: inherit; cursor: pointer; }
.hero b { font-size: 19px; }
.hero span { font-size: 13px; color: #b8c0d4; }
.hero:hover, .hero:focus-visible { background: #33436a; outline: none; }
.how { display: grid; gap: 6px; margin: 16px 0 8px; font-size: 14px; }
.how div { display: grid; grid-template-columns: 70px 1fr; }
.how b { color: #ffd23f; }
.fine { margin-top: 12px; font-size: 12px; color: #8e97ad; }
.touch { display: none; }
@media (pointer: coarse) { .touch { display: inline; } .pc { display: none; } }
@media (max-width: 440px) { .heroes { grid-template-columns: 1fr; } }
