/* INSERT COIN — Spielhalle bei Nacht: Schwarzviolett, Neon-Magenta als Signal, Cyan und Gelb wie auf alten Automaten.
   Press Start 2P · VT323 · Space Grotesk. */
:root {
  --nacht: #07050f; --nacht-2: #120d22; --phosphor: #f4f1ff; --leise: #9b93c4;
  --magenta: #ff2bd6; --cyan: #2bf0ff; --gelb: #ffe14d; --signal: var(--magenta);
  --pixel: 'Press Start 2P', monospace; --terminal: 'VT323', ui-monospace, monospace; --text: 'Space Grotesk', system-ui, sans-serif;
  --feder: cubic-bezier(.34, 1.56, .64, 1); --rand: clamp(18px, 4vw, 64px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(120% 80% at 50% 0%, #1a1035 0%, var(--nacht) 55%) fixed, var(--nacht); color: var(--phosphor); font: 400 clamp(19px, .9vw + 14px, 24px)/1.35 var(--terminal); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2 { font-family: var(--pixel); font-weight: 400; margin: 0; line-height: 1.35; letter-spacing: .02em; }
h2 em { font-style: normal; color: var(--signal); text-shadow: 0 0 14px rgba(255, 43, 214, .7); }
p { margin: 0 0 .8em; }
a { color: inherit; }
.mono { font: 400 clamp(9px, .5vw + 6px, 11px)/1.6 var(--pixel); letter-spacing: .06em; text-transform: uppercase; }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: #000; padding: 10px 16px; }
.sprung:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Ganze Seite hinter Röhrenglas: Zeilen und Vignette (reines CSS, kostet nichts) */
.roehrenglas { position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .18) 2px 3px), radial-gradient(130% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, .55) 100%); }

/* Kopf */
.kopf { position: fixed; inset: 0 0 auto; z-index: 60; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 var(--rand); background: linear-gradient(rgba(7, 5, 15, .9), rgba(7, 5, 15, 0)); }
.logo { font: 400 13px/1 var(--pixel); text-decoration: none; margin-right: auto; color: var(--phosphor); }
.logo span { color: var(--magenta); margin-left: 6px; text-shadow: 0 0 10px var(--magenta); }
.erfolge-zahl { margin: 0; font: 400 11px/1 var(--pixel); color: var(--cyan); text-shadow: 0 0 8px rgba(43, 240, 255, .6); }
.musik[aria-pressed="true"] { border-color: var(--magenta); color: var(--magenta); }
.erfolg-toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 95; padding: 14px 22px; border: 3px solid var(--cyan); background: #07050f; box-shadow: 0 0 26px rgba(43, 240, 255, .5); text-align: center; }
.erfolg-toast .mono { color: var(--cyan); margin: 0 0 8px; }
.erfolg-toast b { font: 400 13px/1.3 var(--pixel); color: var(--gelb); text-shadow: 0 0 10px rgba(255, 225, 77, .7); }
.erfolg-toast.zeigen { animation: toast 3.2s steps(12) forwards; }
@keyframes toast { 0% { transform: translateY(140%); } 8%, 88% { transform: none; } 100% { transform: translateY(140%); } }
.credit { margin: 0; font: 400 11px/1 var(--pixel); color: var(--gelb); text-shadow: 0 0 8px rgba(255, 225, 77, .7); }
.knopf-klein { white-space: nowrap; min-height: 36px; padding: 0 14px; border: 2px solid var(--phosphor); background: transparent; color: var(--phosphor); font: 400 10px/1 var(--pixel); text-transform: uppercase; cursor: pointer; }
.knopf-klein[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(43, 240, 255, .5); }

/* Automat: Schild, Schirm, Bedienfeld */
main { position: relative; z-index: 10; }
.automat { display: grid; justify-items: center; gap: 22px; }
.start { min-height: 100vh; min-height: 100svh; padding: 86px var(--rand) 40px; align-content: center; }
.schild { font-size: clamp(26px, 5.6vw, 84px); color: var(--phosphor); text-align: center; padding: 18px 28px; border: 3px solid var(--magenta); border-radius: 10px;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--magenta), 0 0 42px var(--magenta); box-shadow: 0 0 22px rgba(255, 43, 214, .55), inset 0 0 22px rgba(255, 43, 214, .35); background: rgba(255, 43, 214, .05); }
.schild span { animation: neon 4.8s steps(1) infinite; }
@keyframes neon { 0%, 100% { opacity: 1; } 91% { opacity: 1; } 92% { opacity: .35; } 93% { opacity: 1; } 95% { opacity: .5; } 96% { opacity: 1; } }
.schirm { position: relative; width: min(92vw, 1100px); aspect-ratio: 16 / 10; border-radius: 26px; padding: 14px; background: linear-gradient(145deg, #1d1636, #0b0817);
  box-shadow: 0 0 0 2px #2a2150, 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(43, 240, 255, .12); }
.roehre { display: block; width: 100%; height: 100%; border-radius: 18px; background: #000; touch-action: pan-y; cursor: none; }
.start .schirm { width: min(92vw, 1100px, calc((100svh - 330px) * 1.6)); }
.bedienfeld { display: grid; justify-items: center; gap: 14px; text-align: center; }
.bedienfeld .mono { color: var(--leise); }
.muenze { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 26px; border: 3px solid var(--gelb); background: rgba(255, 225, 77, .08); color: var(--gelb);
  font: 400 13px/1 var(--pixel); text-transform: uppercase; cursor: pointer; box-shadow: 0 0 18px rgba(255, 225, 77, .35); transition: transform .2s var(--feder); }
.muenze:hover { transform: translateY(-2px); }
.muenze:active { transform: translateY(2px); }
.muenze i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6b0, #e0a800); box-shadow: 0 0 10px rgba(255, 225, 77, .8); }
.muenze.klimpert i { animation: muenze .6s cubic-bezier(.5, 0, .5, 1); }
@keyframes muenze { 50% { transform: translateY(-14px) rotateY(180deg); } }

/* Level */
.level { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 70px); align-items: center; padding: 12vh var(--rand); }
.level-rechts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.level .automat.klein .schirm { width: 100%; }
.kicker { color: var(--cyan); text-shadow: 0 0 10px rgba(43, 240, 255, .6); margin-bottom: 16px; }
.level h2 { font-size: clamp(18px, 2vw, 30px); margin-bottom: 18px; }
.level-text > p { color: #d7d1f2; max-width: 34ch; }
.freispiel { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.freispiel li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 14px; border: 2px dashed #3a3060; color: #5b5480; transition: all .4s; }
.freispiel li .mono { grid-row: span 2; align-self: center; }
.freispiel li b { font: 400 13px/1.4 var(--pixel); }
.freispiel li span:last-child { font-size: .9em; }
.freispiel li.frei { border: 2px solid var(--gelb); color: var(--phosphor); box-shadow: 0 0 16px rgba(255, 225, 77, .25); }
.freispiel li.frei b { color: var(--gelb); text-shadow: 0 0 10px rgba(255, 225, 77, .6); }
.punkte { color: var(--leise); margin: 0; }
.punkte span { color: var(--phosphor); }
.abschuss { color: var(--gelb); margin-top: 18px; }
.wortstand { color: var(--leise); margin-top: 16px; }
.wort-ziel { color: var(--gelb); letter-spacing: .3em; }
.kontakt-frei { margin-top: 14px; }
html.cheat .schirm { animation: regenbogen 1.2s linear infinite; }
@keyframes regenbogen { to { filter: hue-rotate(360deg); } }
.abschuss-zahl { font-size: 1.6em; text-shadow: 0 0 10px rgba(255, 225, 77, .7); }

/* Schluss */
.schluss { min-height: 100vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 12vh var(--rand); }
.continue { font-size: clamp(30px, 6vw, 96px); color: var(--phosphor); text-shadow: 0 0 8px #fff, 0 0 26px var(--cyan); }
.zaehler { color: var(--magenta); text-shadow: 0 0 8px #fff, 0 0 26px var(--magenta); display: inline-block; min-width: 1.2em; }
.lead { max-width: 30ch; margin-top: 20px; font-size: 1.15em; }
.knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 22px 0 40px; }
.knopf { min-height: 54px; padding: 0 24px; border: 3px solid var(--phosphor); display: inline-flex; align-items: center; font: 400 11px/1.4 var(--pixel); text-transform: uppercase; text-decoration: none; transition: transform .2s var(--feder); }
.knopf:hover { transform: translateY(-2px); }
.knopf-signal { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 20px rgba(255, 43, 214, .45), inset 0 0 14px rgba(255, 43, 214, .25); }
.bestenliste { display: grid; gap: 12px; justify-items: center; }
.bestenliste div { display: flex; gap: 10px; }
.bestenliste input { width: 110px; min-height: 44px; text-align: center; font: 400 18px/1 var(--pixel); text-transform: uppercase; background: #000; color: var(--gelb); border: 2px solid var(--gelb); }
.tabelle { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; min-width: 240px; }
.tabelle li { display: flex; justify-content: space-between; gap: 30px; }
.tabelle li:nth-child(1) { color: var(--gelb); } .tabelle li:nth-child(2) { color: var(--cyan); } .tabelle li:nth-child(3) { color: var(--magenta); }
.tabelle li.neu { animation: neon 1s steps(1) 3; }

/* Fuß */
.fuss { position: relative; z-index: 10; background: #050309; padding: 40px var(--rand); display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; font: 400 15px/1.4 var(--text); border-top: 2px solid #1d1636; }
.fuss p { margin: 0; color: var(--leise); }
.signatur { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.signatur > span { color: #8a84a8; font-size: 12.5px; }
.marke { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 12.5px; border-radius: 999px; padding: 6px 13px; transition: background .2s, border-color .2s; }
.marke img { flex: none; border-radius: 3px; }
.marke span { font-weight: 800; letter-spacing: -.01em; }
.marke-webliq { background: #ffffff14; border: 1px solid #b6e50440; }
.marke-webliq:hover { background: #ffffff24; border-color: #b6e504; }
.marke-webliq span { color: #b6e504; }
.marke-otaku { background: #4b7bff1f; border: 1px solid #5bc8ff59; }
.marke-otaku:hover { background: #4b7bff33; border-color: #5bc8ff; }
.marke-otaku span { color: #7fd4ff; }

@media (max-width: 860px) {
  .erfolge-zahl, .musik { display: none; }
  .level, .level-rechts { grid-template-columns: 1fr; padding: 10vh var(--rand); }
  .level-rechts .automat { order: 2; }
  .schirm { aspect-ratio: 3 / 4; border-radius: 18px; padding: 10px; }
  .start .schirm { aspect-ratio: 4 / 5; }
  .credit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .schild span, .tabelle li.neu, .muenze.klimpert i { animation: none; }
}
