:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #080910; color: #f3f4ff; }
body { margin: 0; }
#stage, #launch { position: fixed; inset: 0; }
#stage { background: #080910; overflow: hidden; }
video, canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
video { object-fit: contain; transform: scaleX(-1); opacity: .83; }
#launch { display: grid; place-items: center; background: radial-gradient(ellipse at center, #261e43, #0b0a14 65%); }
#launch[hidden] { display: none; }
#notes { position: absolute; bottom: 24px; right: 24px; padding: 8px 14px; border-radius: 10px; background: #0c0e19e6; color: #e5dcff; font-size: 1.4rem; pointer-events: none; }
#notes:empty { display: none; }
#modes { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: end; gap: 4px; max-width: calc(100% - 32px); padding: 5px; background: #100e1cdb; border: 1px solid #6f608d; border-radius: 999px; }
#modes[hidden] { display: none; }
#modes button { border: 0; border-radius: 999px; padding: 8px 12px; background: transparent; color: #eee9ff; font: inherit; cursor: pointer; }
#modes button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
#modes button[aria-pressed=true] { background: #c7b7ff; color: #170f2b; }
#notes { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 58px); }
#stage.surreal { background: #100c21; }
#stage.surreal::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 10% 90%, #a846ac52, transparent 56%), radial-gradient(ellipse at 90% 12%, #436bc75c, transparent 53%); }
#stage.surreal canvas, #stage.surreal #modes, #stage.surreal #notes { z-index: 2; }
.picker { width: min(760px, calc(100% - 40px)); }
.picker h1 { font-size: clamp(2.65rem, 8vw, 5.4rem); letter-spacing: -.085em; margin: 0 0 26px; line-height: 1; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choices button, #back { color: #f5edff; font: inherit; border: 1px solid #756491; background: #171324e8; cursor: pointer; }
.choices button { text-align: left; border-radius: 18px; min-height: 96px; padding: 16px; }
.choices strong, .choices span { display: block; }
.choices strong { font-size: 1.2rem; }
.choices span { color: #dbcee9; margin-top: 5px; font-size: .9rem; }
.choices button:hover, #back:hover { background: #30264a; }
.choices button:focus-visible, #back:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.choices button:disabled { opacity: .6; cursor: wait; }
#status { min-height: 1.5em; color: #ddd3f9; }
#back { position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); border-radius: 999px; padding: 8px 14px; }
#stage[data-instrument="rainmaker"] { background: #071827; }
@media (max-width: 590px) {
  .choices { grid-template-columns: 1fr; }
  .choices button { min-height: 70px; }
}
#stage[data-instrument="rainmaker"] video { opacity: .68; }
