/* zugzwang.win – Oberfläche über der Partikel-Szene */
:root { --fg: #f3f0ff; --muted: rgba(235, 230, 255, .66); --faint: rgba(235, 230, 255, .38); --line: rgba(255, 255, 255, .16);
  --acc: #b98cff; --acc2: #63d6ff; --glass: rgba(10, 6, 20, .42); --ease: cubic-bezier(.2, .7, .1, 1); }
html, body { overflow: hidden; }
body { color: var(--fg); font-family: "Outfit", "Segoe UI", "Helvetica Neue", system-ui, sans-serif; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
/* Vignette, damit Text vor den Partikeln lesbar bleibt */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 80% at 50% 55%, transparent 45%, rgba(0,0,0,.55) 100%), linear-gradient(to bottom, rgba(0,0,0,.45), transparent 22%, transparent 70%, rgba(0,0,0,.6)); }
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 4px; border-radius: 10px; }

.panel, .foot { position: fixed; z-index: 2; }

.panel { left: 50%; transform: translate(-50%, 14px); width: min(92vw, 760px); text-align: center; opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.panel.in { opacity: 1; transform: translate(-50%, 0); }
.panel[hidden] { display: none; }

/* Startseite */
#home { bottom: max(9vh, 34px); }
#home::before { content: ""; position: absolute; inset: -70px -12vw -50px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.78), rgba(0,0,0,.45) 60%, transparent); }
.logo { margin: 0; font-weight: 200; font-size: clamp(46px, 10vw, 118px); letter-spacing: .14em; line-height: 1; margin-right: -.14em; text-shadow: 0 0 50px rgba(0,0,0,.7); }
.logo span { color: var(--acc); font-size: .32em; letter-spacing: .3em; vertical-align: super; transition: color 1.5s; }
.tag { text-shadow: 0 0 14px #000, 0 0 3px #000; margin: 18px auto 30px; max-width: 46ch; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.55; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-size: 15px; letter-spacing: .06em; text-decoration: none; transition: transform .35s var(--ease), box-shadow .4s, background .3s, border-color .3s; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: #fff; color: #0a0612; box-shadow: 0 0 0 0 var(--acc); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px -8px var(--acc); }
.btn.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.btn.ghost:hover { border-color: rgba(255,255,255,.4); }

/* Ton: Schalter + Lautstärke (Regler klappt bei Hover/Fokus bzw. nach Tippen auf; Touch: bleibt 4 s offen) */
.audio { position: fixed; z-index: 3; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; }
.audio[hidden] { display: none; }
#sound { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  background: rgba(10, 6, 20, .45); border: 1px solid var(--line); transition: color .3s, border-color .3s; }
#sound svg { width: 22px; height: 22px; }
#sound .w1, #sound .w2 { opacity: 0; transition: opacity .3s; }
#sound.on { color: var(--fg); border-color: rgba(255,255,255,.3); }
#sound.on .w1, #sound.on .w2 { opacity: 1; } #sound.on .x { opacity: 0; }
.audio.waiting #sound::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--acc); animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.audio .hint { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; text-shadow: 0 0 8px #000; pointer-events: none; }
.audio .hint[hidden] { display: none; }
#vol { -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 28px; margin: 0; background: transparent; cursor: pointer;
  transition: width .35s var(--ease), opacity .3s; --p: 70%; }
.audio:hover #vol, .audio:focus-within #vol, .audio.open #vol { width: 120px; opacity: 1; }
.audio:hover .hint, .audio:focus-within .hint, .audio.open .hint { display: none; }
#vol::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--fg) var(--p), rgba(255,255,255,.2) var(--p)); }
#vol::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); }
#vol::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--fg); }
#vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--acc); border: 0; }
#vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--acc); border: 0; }

.foot { left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom)); font-size: 11px; letter-spacing: .2em; color: var(--faint); pointer-events: none; }
body.no-scene { background: radial-gradient(80% 60% at 50% 45%, #1a0f2e, #000); }

@media (prefers-reduced-motion: reduce) { .panel, .btn { transition: none; } .audio.waiting #sound::after { animation: none; } #vol { transition: none; } }
