/* NOVA LANCE - Oberflaeche. Eigene Gestaltung, LUXVIS 2026. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../../_center/fonts/space-grotesk.woff2) format('woff2'); }
:root {
  --akz: #46d4ff; --akz2: #bff4ff; --amber: #ffa530; --rot: #ff4a3a;
  --grund: #02040a; --schrift: #eaf4ff; --sekundaer: rgba(234, 244, 255, .62);
  --glas: rgba(3, 7, 14, .8); --rand: rgba(70, 212, 255, .28);
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--schrift); overflow: hidden; -webkit-tap-highlight-color: transparent; }
body { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
#welt { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
body.spielt #welt { cursor: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.schirm { position: fixed; inset: 0; display: none; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.schirm.an { display: flex; flex-direction: column; }
#laden, #titel, #pause, #ende, #sieg { align-items: center; justify-content: center; }
#laden { background: radial-gradient(80vmax 50vmax at 50% 120%, rgba(70, 212, 255, .12), transparent 70%), var(--grund); }
#titel { background: linear-gradient(90deg, rgba(2, 4, 10, .78), rgba(2, 4, 10, .25) 55%, rgba(2, 4, 10, 0)), linear-gradient(180deg, rgba(2, 4, 10, .4), transparent 30%, rgba(2, 4, 10, .6)); align-items: flex-start; padding-left: max(5vw, 24px); }
#pause, #ende, #sieg { background: rgba(2, 5, 12, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.marke { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: flex; gap: .3em; align-items: baseline; justify-content: center; line-height: 1; }
.marke b { color: #fff; font-weight: 700; }
.marke i { font-style: normal; font-weight: 300; color: var(--akz); text-shadow: 0 0 22px rgba(70, 212, 255, .7); }
.marke.gross { font-size: clamp(44px, 8.5vw, 118px); margin: 0 0 14px; justify-content: flex-start; }
.laden-box { text-align: center; width: min(440px, 90vw); }
.laden-box .marke { font-size: 38px; margin-bottom: 28px; }
.laden-balken { height: 3px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.laden-balken i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--akz), var(--amber)); box-shadow: 0 0 12px var(--akz); transition: width .3s; }
#laden-text { color: var(--sekundaer); margin-top: 16px; font-size: 14px; letter-spacing: .04em; }

.titel-kopf { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.leiste { display: flex; gap: 8px; margin-left: auto; }
.rund { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--rand); background: var(--glas); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.rund.breit { width: auto; padding: 0 14px; font-size: 13px; }
.rund svg { width: 22px; height: 22px; fill: currentColor; }
.knopf-zurueck { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 10px; border-radius: 22px; border: 1px solid var(--rand); background: var(--glas); font-size: 14px; }
.knopf-zurueck svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.titel-mitte { max-width: 640px; width: 100%; }
.unter { color: var(--sekundaer); margin: 0 0 26px; max-width: 520px; line-height: 1.55; font-size: 15.5px; }
.wahl { margin: 0 0 18px; }
.wahl-titel { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--sekundaer); margin-bottom: 8px; }
.wahl-reihe { display: flex; gap: 8px; flex-wrap: wrap; }
.wahl-reihe button { border: 1px solid var(--rand); background: var(--glas); border-radius: 12px; padding: 9px 16px; font-size: 14px; }
.wahl-reihe button[aria-checked="true"] { background: rgba(70, 212, 255, .16); border-color: var(--akz); box-shadow: 0 0 16px rgba(70, 212, 255, .25) inset; }
.wahl-reihe button:disabled { opacity: .35; cursor: not-allowed; }
.wahl-reihe.stages button { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; font-size: 11px; letter-spacing: .12em; }
.wahl-reihe.stages button b { font-size: 18px; letter-spacing: 0; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.haupt { min-width: 200px; height: 56px; padding: 0 30px; border-radius: 28px; border: 0; background: var(--akz); color: #02121a; font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 30px rgba(70, 212, 255, .45); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.haupt:hover { background: #8ff0ff; }
.haupt.vr { background: rgba(255, 165, 48, .1); color: var(--amber); border: 2px solid var(--amber); box-shadow: 0 0 24px rgba(255, 165, 48, .3), inset 0 0 18px rgba(255, 165, 48, .15); }
.haupt svg { width: 24px; height: 24px; fill: currentColor; }
.neben { min-width: 220px; height: 46px; border-radius: 23px; border: 1px solid var(--rand); background: var(--glas); font-size: 15px; }
.hinweis { color: var(--sekundaer); font-size: 13px; margin: 18px 0 4px; min-height: 1.2em; }
.rekord { color: var(--amber); font-size: 13px; margin: 0; letter-spacing: .05em; }
.steuerung { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 16px; right: 16px; text-align: center; color: var(--sekundaer); font-size: 12px; line-height: 1.7; }
.steuerung b { color: var(--schrift); font-weight: 600; }

/* ---------- HUD ---------- */
#hud { pointer-events: none; justify-content: space-between; }
#hud button, #hud .touch * { pointer-events: auto; }
.hud-oben, .hud-unten { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hud-oben { align-items: flex-start; }
.hud-stage { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sekundaer); }
.hud-stage b { color: var(--akz); font-weight: 700; margin-right: .5em; }
.hud-fortschritt { width: 180px; height: 3px; background: rgba(255, 255, 255, .12); margin-top: 7px; border-radius: 2px; overflow: hidden; }
.hud-fortschritt i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--f, 0)); }
.hud-leben { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.hud-leben .schiffchen { width: 18px; height: 14px; background: var(--akz2); clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%); opacity: .9; }
.hud-leben .schild { display: flex; gap: 4px; margin-left: 6px; }
.hud-leben .schild b { width: 20px; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.hud-leben .schild b.voll { background: var(--akz); box-shadow: 0 0 10px rgba(70, 212, 255, .6); }
.hud-rechts { text-align: right; }
.hud-punkte { font-size: 32px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 0 20px rgba(70, 212, 255, .4); }
.hud-rekord { font-size: 11px; color: var(--sekundaer); margin-top: 5px; letter-spacing: .1em; }
.hud-boss { position: absolute; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); width: min(460px, 50vw); text-align: center; }
.hud-boss b { display: block; font-size: 12px; letter-spacing: .3em; color: #ffb0a0; margin-bottom: 6px; }
.hud-boss i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.hud-boss i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #ff3a2a, #ffa530); transform-origin: left; transform: scaleX(var(--h, 1)); transition: transform .2s; }
.hud-mitte { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font-size: clamp(26px, 4.6vw, 56px); font-weight: 700; letter-spacing: .28em; text-transform: uppercase; opacity: 0; transition: opacity .35s; pointer-events: none; text-shadow: 0 0 34px rgba(70, 212, 255, .7); }
.hud-mitte.an { opacity: 1; }
.hud-mitte.warn { color: var(--rot); text-shadow: 0 0 34px rgba(255, 60, 40, .8); animation: blinken .5s steps(2) infinite; }
@keyframes blinken { 50% { opacity: .35; } }
.hud-mitte small { display: block; font-size: 14px; letter-spacing: .2em; font-weight: 500; color: var(--sekundaer); margin-top: 10px; text-shadow: none; animation: none; }
.hud-sph { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: 44vw; }
.hud-sph .sph { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--glas); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); font-size: 12px; letter-spacing: .12em; color: var(--c); }
.hud-sph .sph i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.hud-sph .sph em { font-style: normal; font-size: 10px; color: var(--sekundaer); letter-spacing: .15em; }
.hud-sph .sph.leer { color: var(--sekundaer); border-color: rgba(255, 255, 255, .1); }
.hud-sph .mod { width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--glas); border: 1px solid rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .3); }
.hud-sph .mod.an { color: #02121a; background: var(--amber); border-color: var(--amber); width: auto; min-width: 34px; padding: 0 6px; }
.hud-lade { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .24em; color: var(--sekundaer); }
.hud-lade i { width: min(280px, 34vw); height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); display: block; position: relative; overflow: hidden; }
.hud-lade i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #2a8aff, var(--akz), #fff); transform-origin: left; transform: scaleX(var(--l, 0)); }
.hud-lade i::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgba(0, 0, 0, .7) calc(25% - 2px) 25%); }
.hud-lade.voll i::after { animation: voll .12s steps(2) infinite; }
@keyframes voll { 50% { filter: brightness(1.8); } }
.hud-pause { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--rand); background: var(--glas); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.hud-pause svg { width: 20px; height: 20px; fill: currentColor; }
.treffer { position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(255, 60, 40, 0); transition: box-shadow .6s; pointer-events: none; }
.treffer.an { box-shadow: inset 0 0 200px rgba(255, 60, 40, .85); transition: none; }
.toast { position: absolute; left: 50%; bottom: 92px; transform: translate(-50%, 10px); background: var(--glas); border: 1px solid var(--rand); padding: 8px 16px; border-radius: 20px; font-size: 13px; opacity: 0; transition: .25s; white-space: nowrap; letter-spacing: .04em; }
.toast.an { opacity: 1; transform: translate(-50%, 0); }
body.alarm .treffer { box-shadow: inset 0 0 160px rgba(255, 40, 30, .35); animation: blinken .5s steps(2) infinite; }
#blende { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 20; }
#blitz { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 21; transition: opacity .5s; }
#blitz.an { opacity: .85; transition: none; }

/* ---------- Touch ---------- */
.touch { position: absolute; inset: 0; pointer-events: none; }
.tk-flaeche { position: absolute; left: 0; top: 18%; bottom: 0; width: 50%; pointer-events: auto; }
.tk-knauf { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(70, 212, 255, .35); background: rgba(70, 212, 255, .06); opacity: 0; transition: opacity .15s; pointer-events: none !important; }
.tk-knauf.an { opacity: 1; }
.tk-knauf i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: rgba(70, 212, 255, .35); box-shadow: 0 0 20px rgba(70, 212, 255, .5); }
.tk-knoepfe { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(76px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 14px; align-items: end; }
.tk { border-radius: 50%; border: 2px solid var(--rand); background: rgba(70, 212, 255, .1); font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--schrift); }
.tk.feuer { width: 104px; height: 104px; grid-column: 2; grid-row: 2; border-color: rgba(191, 244, 255, .6); background: rgba(70, 212, 255, .2); }
.tk.lanze { width: 84px; height: 84px; grid-column: 1; grid-row: 2; border-color: rgba(70, 150, 255, .6); }
.tk.sph { width: 68px; height: 68px; grid-column: 2; grid-row: 1; justify-self: center; border-color: rgba(255, 165, 48, .6); color: var(--amber); font-size: 9px; }
.tk.an { background: rgba(255, 255, 255, .35); }

/* ---------- Karten ---------- */
.karte { width: min(440px, 92vw); background: var(--glas); border: 1px solid var(--rand); border-radius: 24px; padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.karte.gold { border-color: rgba(255, 190, 90, .45); box-shadow: 0 0 60px rgba(255, 165, 48, .15); }
.karte h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: .1em; text-transform: uppercase; }
.karte p { margin: 0 0 8px; color: var(--sekundaer); font-size: 14px; line-height: 1.5; }
.e-punkte { font-size: 54px; font-weight: 700; letter-spacing: .04em; color: var(--akz); text-shadow: 0 0 24px rgba(70, 212, 255, .5); line-height: 1; font-variant-numeric: tabular-nums; }
.e-neu { color: var(--amber) !important; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.e-stats { display: flex; gap: 22px; justify-content: center; margin-bottom: 10px; }
.e-stats span { font-size: 12px; color: var(--sekundaer); }
.e-stats b { display: block; font-size: 20px; color: var(--schrift); }
@media (max-height: 640px) { .steuerung { display: none; } .marke.gross { font-size: clamp(34px, 7vw, 64px); } .unter { margin-bottom: 12px; font-size: 13.5px; } .wahl { margin-bottom: 10px; } .titel-kopf { top: 8px; } }
@media (max-width: 720px) { #titel { align-items: center; padding-left: 16px; background: rgba(2, 4, 10, .55); } .titel-mitte { text-align: center; } .marke.gross { justify-content: center; } .unter { margin-left: auto; margin-right: auto; } .wahl-reihe, .knoepfe { justify-content: center; } .hud-fortschritt { width: 110px; } .hud-lade i { width: 26vw; } .haupt, .neben { min-width: 170px; } }
