html, body { margin: 0; height: 100%; background: #0d0b14; color: #ece6f5; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#stage { position: fixed; inset: 0; }
#unity-canvas { width: 100%; height: 100%; display: block; background: #0d0b14; outline: none; touch-action: none; }
#loading, #play, #error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
#loading { background: radial-gradient(120% 90% at 50% 100%, #2a1a48 0%, #0d0b14 65%); }
#play { background: rgba(13, 11, 20, 0.55); }
#error { background: #0d0b14; }
[hidden] { display: none !important; }
.brand { font-weight: 800; font-size: clamp(28px, 6vw, 48px); letter-spacing: 0.04em; }
.brand span { color: #a259ff; }
.sub { color: #a79bb8; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.bar { width: min(420px, 80vw); height: 8px; background: #2a2238; border-radius: 99px; overflow: hidden; }
#bar-fill { width: 0; height: 100%; background: linear-gradient(90deg, #6c3fc4, #a259ff); transition: width 0.2s; }
#loading-text { font-variant-numeric: tabular-nums; color: #a79bb8; font-size: 14px; }
#play-btn { font: inherit; font-weight: 700; font-size: 18px; color: #fff; background: #6c3fc4; border: 0; border-radius: 999px; padding: 14px 32px; cursor: pointer; box-shadow: 0 0 24px rgba(162, 89, 255, 0.45); }
#play-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.keys { margin: 0; color: #d9d0e8; font-size: 14px; }
.touch-only { display: none; }
body.touch .touch-only { display: block; }
body.touch .keys:not(.touch-only) { display: none; }
#error h1 { margin: 0; font-size: 22px; }
#error p { margin: 0; max-width: 520px; color: #d9d0e8; }
#error .hint { color: #a79bb8; font-size: 14px; }
#badge { position: absolute; right: 12px; bottom: 12px; font: 600 11px ui-monospace, Menlo, monospace; letter-spacing: 0.08em; color: #d9d0e8; background: rgba(13, 11, 20, 0.7); border: 1px solid #2a2238; border-radius: 999px; padding: 4px 10px; pointer-events: none; }
#loading { gap: 18px; }
#play { background: radial-gradient(120% 90% at 50% 100%, rgba(42, 26, 72, 0.92) 0%, rgba(13, 11, 20, 0.96) 65%); }
.tagline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; color: #a79bb8; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; }
.tagline i { width: 18px; height: 1px; background: #4a3a68; }
.tagline span { opacity: 0.35; animation: step 6s infinite; }
.tagline span:nth-of-type(2) { animation-delay: 1.5s; } .tagline span:nth-of-type(3) { animation-delay: 3s; } .tagline span:nth-of-type(4) { animation-delay: 4.5s; }
@keyframes step { 0%, 30% { opacity: 1; color: #fff; } 40%, 100% { opacity: 0.35; } }
.globe { position: relative; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3b6fd8 0%, #1b2f6b 55%, #0a1230 100%); box-shadow: 0 0 60px rgba(162, 89, 255, 0.35), inset -18px -14px 30px rgba(0, 0, 0, 0.55); overflow: hidden; }
.globe::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 255, 255, 0.06) 14px 15px); animation: spin 8s linear infinite; }
.orbit { position: absolute; inset: -10px; border: 1px solid rgba(162, 89, 255, 0.4); border-radius: 50%; transform: rotateX(70deg); }
.pin { position: absolute; left: 58%; top: 52%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #a259ff; box-shadow: 0 0 0 0 rgba(162, 89, 255, 0.8); animation: ping 1.6s ease-out infinite; }
@keyframes spin { from { background-position: 0 0; } to { background-position: 120px 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(162, 89, 255, 0.8); } 100% { box-shadow: 0 0 0 18px rgba(162, 89, 255, 0); } }
#loading .hint { margin: 0; color: #7d7091; font-size: 12px; }
ul.keys { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 18px; max-width: 640px; text-align: left; }
ul.keys b { display: inline-block; min-width: 46px; color: #fff; }
body.touch ul.keys { display: none; }
.credits { margin: 0; color: #a79bb8; font-size: 13px; }
#credits { position: absolute; left: 12px; bottom: 12px; right: 90px; font-size: 11px; color: #8d80a3; }
#credits a { color: #b9a5dc; }
@media (prefers-reduced-motion: reduce) { .tagline span, .globe::before, .pin { animation: none; } .tagline span { opacity: 1; } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.wish-btn { font: inherit; font-weight: 700; font-size: 15px; color: #ece6f5; background: transparent; border: 1px solid #a259ff; border-radius: 999px; padding: 13px 24px; cursor: pointer; }
.wish-btn:hover { background: rgba(162, 89, 255, 0.15); }
#loading .wish-btn { font-size: 13px; padding: 9px 18px; margin-top: 6px; }
#wish { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 6, 14, 0.78); }
#wish-form { position: relative; width: min(420px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; background: #17121f; border: 1px solid #3a2d52; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
#wish-form h2 { margin: 0; font-size: 22px; }
.wish-sub, .wish-note { margin: 0; color: #a79bb8; font-size: 13px; }
#wish-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
#wish-form label span { color: #7d7091; font-weight: 400; }
#wish-form input[type=email], #wish-form input[type=text] { font: inherit; font-size: 16px; color: #fff; background: #0d0b14; border: 1px solid #3a2d52; border-radius: 10px; padding: 11px 12px; }
#wish-form input:focus { outline: 2px solid #a259ff; outline-offset: 1px; }
#wish-form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: #d9d0e8; }
#wish-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#wish-submit { font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: #6c3fc4; border: 0; border-radius: 999px; padding: 13px; cursor: pointer; }
#wish-submit:disabled { opacity: 0.6; cursor: default; }
#wish-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: #c9b3f5; }
.wish-close { position: absolute; top: 10px; right: 12px; font-size: 24px; line-height: 1; color: #a79bb8; background: none; border: 0; cursor: pointer; padding: 4px 8px; }
