:root {
  color-scheme: dark;
  background: #000;
  color: #e8eeed;
  font-family: Arial, Helvetica, sans-serif;
  --symbol-size: clamp(190px, 31vmin, 320px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: #000; }
body { position: fixed; inset: 0; min-height: 100dvh; }
button, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
button:focus-visible { outline: 1px solid #9a80ff; outline-offset: 8px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.scene { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; overflow: hidden; isolation: isolate; background: #000; }
.cosmos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transform: scale(1.12); transition: opacity 2.4s ease, transform 4s var(--ease); }
body[data-phase="entering"] .cosmos, body[data-phase="running"] .cosmos { opacity: 1; transform: scale(1); }
.hand { mix-blend-mode: screen; z-index: 1; }
body[data-phase="entering"] .symbol, body[data-phase="running"] .symbol { filter: drop-shadow(0 0 22px #8352ff66) drop-shadow(0 0 55px #27f5ab22); }
.hand { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: transform 1.85s var(--ease), opacity 1.5s ease; }
.hand img { position: absolute; width: 100vw; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; }
.hand-left { clip-path: inset(0 50% 0 0); transform: translateX(-44vw); }
.hand-right { clip-path: inset(0 0 0 50%); transform: translateX(44vw); }
body[data-phase="entering"] .hand, body[data-phase="running"] .hand { opacity: 1; transform: translateX(0); transition-delay: .28s; }
.symbol { position: absolute; top: 50%; left: 50%; width: var(--symbol-size); height: var(--symbol-size); transform: translate(-50%, -50%); display: block; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; z-index: 2; transition: scale .65s var(--ease), filter .5s; }
.symbol canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .25s; }
.symbol-fallback { position: absolute; width: 66%; height: auto; left: 17%; top: 50%; transform: translateY(-50%); pointer-events: none; }
body.has-webgl .symbol canvas { opacity: 1; }
body.has-webgl .symbol-fallback { display: none; }
body[data-phase="waiting"] .symbol:hover, body[data-phase="confirming"] .symbol:hover { scale: 1.045; filter: brightness(1.12); }
body[data-phase="entering"] .symbol, body[data-phase="running"] .symbol { scale: 1.06; }
.confirmation { position: absolute; left: 50%; top: calc(50% + var(--symbol-size) * .47); width: 240px; max-width: calc(100% - 40px); margin: 0; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 22px; animation: reveal .4s var(--ease) both; transition: opacity .45s, translate .65s var(--ease), filter .45s; }
.consent { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: #9daba8; font-size: 12px; line-height: 1.4; }
.consent input { position: absolute; opacity: 0; width: 17px; height: 17px; margin: 0; }
.check { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #4b5b58; border-radius: 3px; transition: background .2s, border-color .2s; }
.check svg { width: 14px; height: 14px; fill: none; stroke: #07150f; stroke-width: 1.8; opacity: 0; }
.consent input:checked + .check { background: #19fb9b; border-color: #19fb9b; }
.consent input:checked + .check svg { opacity: 1; }
.consent input:focus-visible + .check { outline: 1px solid #9a80ff; outline-offset: 5px; }
.confirm { width: 172px; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; color: #d5dfdc; border: 1px solid #495d54; border-radius: 5px; background: #0b110e; font-size: 12px; cursor: pointer; transition: opacity .25s, background .25s, border-color .25s; }
.confirm span { font-size: 17px; color: #83dbbc; }
.confirm:disabled { opacity: .3; }
.confirm:not(:disabled):hover { background: #15241d; border-color: #8aab9e; }
body[data-phase="entering"] .confirmation, body[data-phase="running"] .confirmation { opacity: 0; translate: 0 15px; filter: blur(5px); pointer-events: none; }
#audio-error { max-width: 240px; margin: 0; color: #bb9ca8; font-size: 11px; line-height: 1.6; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.noscript { position: fixed; bottom: 20px; width: 100%; text-align: center; font-size: 12px; color: #aaa; }
@keyframes reveal { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (orientation: portrait) { .hand img { width: 165vw; } }
@media (max-height: 440px) { :root { --symbol-size: 170px; } .confirmation { top: calc(50% + 70px); gap: 13px; } .confirm { padding: 9px 14px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

