@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
:root { --fg: #fff; --muted: #dfe4ff; --pink: #ff4d8d; --gold: #ffd23d; --cyan: #3dd6ff; --violet: #6b5cff; --card: rgba(24, 22, 70, .9); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #2b2f7a; color: var(--fg); overflow: hidden; overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body { font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif; }
#app { position: fixed; inset: 0; }
#screen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* HUD */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
#hud button { pointer-events: auto; }
.top { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 6px); display: flex; align-items: center; gap: 8px; padding: 0 10px; max-width: 620px; margin: 0 auto; }
#btnPause { width: 42px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,.4); background: rgba(20,18,60,.5); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.mid { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.15; text-shadow: 0 2px 0 rgba(0,0,0,.3); min-width: 0; }
.mid b { font-size: 17px; }
.mid span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.score { font-size: 24px; min-width: 84px; text-align: right; text-shadow: 0 2px 0 rgba(0,0,0,.35); font-variant-numeric: tabular-nums; }
.sub { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 52px); display: flex; justify-content: center; align-items: center; gap: 12px; }
.shots { display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(20,18,60,.55); font-size: 12px; }
.shots b { font-size: 16px; color: var(--gold); }
.shots.knapp b { color: #ff7a9a; animation: puls .5s infinite alternate; }
@keyframes puls { to { transform: scale(1.2); } }
.miss { display: flex; gap: 4px; }
.miss i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); border: 1.5px solid rgba(255,255,255,.5); }
.miss i.on { background: #ff6b8a; border-color: #fff; }
.rowbox { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(20,18,60,.55); }
.rowbar { width: 120px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.rowbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6b8a, var(--gold)); }
.bottom { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 8px); display: flex; justify-content: space-between; align-items: center; padding: 0 12px; max-width: 620px; margin: 0 auto; }
.swap { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(20,18,60,.5); color: #fff; font: 700 24px "Space Grotesk", sans-serif; cursor: pointer; }
.boost { display: flex; gap: 8px; }
.boost button { position: relative; width: 56px; height: 56px; border-radius: 16px; border: 2px solid rgba(255,255,255,.5); background: rgba(20,18,60,.55); cursor: pointer; font-size: 26px; display: grid; place-items: center; }
.boost button b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff; font: 700 12px/22px "Space Grotesk", sans-serif; border: 2px solid #fff; }
.boost button.on { background: var(--gold); border-color: #fff; box-shadow: 0 0 16px var(--gold); transform: translateY(-4px); }
.boost button.leer { opacity: .45; }
#toast { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); padding: 8px 18px; border-radius: 18px; background: linear-gradient(90deg, var(--pink), var(--violet)); font-size: 16px; max-width: min(90vw, 420px); text-align: center; opacity: 0; pointer-events: none; z-index: 30; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
#toast.show { animation: toast 1.9s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateX(-50%) scale(.7); } 12% { opacity: 1; transform: translateX(-50%) scale(1.05); } 20% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-12px); } }

/* Bildschirme */
#ui { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.scr { pointer-events: auto; position: absolute; inset: 0; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 56px) 16px calc(env(safe-area-inset-bottom) + 70px); display: flex; flex-direction: column; align-items: center; gap: 12px; background: rgba(20,16,70,.55); touch-action: pan-y; }
.scr > * { width: 100%; max-width: 520px; }
.scr.titel { justify-content: center; background: linear-gradient(180deg, rgba(20,16,70,.15), rgba(20,16,70,.75)); }
.scr.intro, .scr.pause, .scr.ende { justify-content: center; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .88; font-size: clamp(50px, 15vw, 88px); letter-spacing: -.02em; transform: rotate(-4deg); filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); margin-bottom: 4px; }
.logo span { background: linear-gradient(180deg, #fff 0%, #ffe680 40%, var(--gold) 55%, #ff7a1a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #2a0f3a; }
.logo span + span { background: linear-gradient(180deg, #fff 0%, #ffc2df 40%, var(--pink) 60%, #b0207a 100%); -webkit-background-clip: text; background-clip: text; margin-left: .6em; }
.claim, .info { text-align: center; margin: 0; color: var(--muted); }
.info { font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
h2 { margin: 2px 0; text-align: center; font-size: 28px; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
h3 { margin: 0 0 8px; font-size: 17px; }
.card { background: var(--card); border: 2px solid rgba(255,255,255,.15); border-radius: 22px; padding: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.card.center { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }
.btn { appearance: none; border: 0; border-radius: 16px; padding: 13px 16px; font: 700 17px/1.1 "Space Grotesk", sans-serif; color: #fff; background: linear-gradient(180deg, #5b62d6, #3b40a8); box-shadow: 0 4px 0 #262a74, 0 8px 18px rgba(0,0,0,.25); cursor: pointer; touch-action: manipulation; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #262a74; }
.btn.big { font-size: 24px; padding: 17px; background: linear-gradient(180deg, #ff7aa8, var(--pink) 50%, #d81e6a); box-shadow: 0 5px 0 #8e0f44, 0 10px 24px rgba(255,61,127,.4); }
.btn.big.alt { background: linear-gradient(180deg, #5fe3ff, #20a8e0 55%, #1478b8); box-shadow: 0 5px 0 #0d4f7a, 0 10px 24px rgba(61,214,255,.35); }
.btn.small { font-size: 14px; padding: 8px 12px; border-radius: 12px; width: auto; }
.link { appearance: none; background: none; border: 0; color: var(--muted); font: 700 15px "Space Grotesk", sans-serif; text-decoration: underline; cursor: pointer; padding: 6px; }
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pill { padding: 5px 10px; border-radius: 999px; background: rgba(20,18,60,.7); border: 1.5px solid rgba(255,255,255,.2); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.st { width: 16px; height: 16px; fill: rgba(255,255,255,.25); vertical-align: -2px; }
.st.on { fill: var(--gold); }
.world { border-radius: 20px; padding: 12px; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.world h3 { text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lv { appearance: none; border: 2px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(20,18,60,.55); color: #fff; padding: 6px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font: 700 18px "Space Grotesk", sans-serif; position: relative; }
.lv i { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 11px; opacity: .85; }
.lv span { display: flex; } .lv .st { width: 12px; height: 12px; }
.lv.done { background: rgba(255,210,61,.25); }
.lv.zu { opacity: .4; cursor: default; }
.kicker { margin: 0; color: var(--gold); letter-spacing: .08em; font-size: 13px; text-transform: uppercase; }
.goal { margin: 0; font-size: 16px; line-height: 1.4; }
.facts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: 14px; }
.note { margin: 0; color: var(--muted); font-size: 13px; }
.big-score { font-size: 52px; line-height: 1; text-shadow: 0 4px 0 rgba(0,0,0,.3); }
.rec { margin: 0; color: var(--gold); font-size: 20px; letter-spacing: .06em; animation: puls .5s infinite alternate; }
.stars { display: flex; justify-content: center; gap: 6px; }
.bigstar svg { width: 64px; height: 64px; fill: rgba(255,255,255,.18); }
.bigstar.on svg { fill: var(--gold); filter: drop-shadow(0 0 10px rgba(255,210,61,.8)); animation: plopp .5s var(--d) both cubic-bezier(.3,1.6,.6,1); }
@keyframes plopp { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1); } }
.sl { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 15px; }
.sl input { accent-color: var(--pink); }
.chk { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; font-size: 15px; }
.help p { font-size: 15px; line-height: 1.45; margin: 8px 0; }
.noscript { padding: 20px; }
body.quer .top { left: 12px; right: auto; top: calc(env(safe-area-inset-top) + 12px); width: calc(var(--bx) - 24px); max-width: 280px; flex-direction: column; align-items: flex-start; padding: 0; margin: 0; gap: 10px; }
body.quer .mid { align-items: flex-start; }
body.quer .mid b { font-size: 20px; }
body.quer .score { text-align: left; font-size: 30px; }
body.quer .sub { left: 12px; right: auto; top: calc(env(safe-area-inset-top) + 170px); width: calc(var(--bx) - 24px); flex-direction: column; align-items: flex-start; gap: 10px; }
body.quer .bottom { left: auto; right: 12px; top: auto; bottom: calc(env(safe-area-inset-bottom) + 12px); flex-direction: column-reverse; align-items: flex-end; gap: 12px; padding: 0; margin: 0; }
body.quer .boost { flex-direction: column; }
@media (orientation: landscape) and (max-height: 520px) { .scr { padding-top: 10px; gap: 8px; } .logo { font-size: 46px; } .btn.big { padding: 11px; font-size: 20px; } .grid { grid-template-columns: repeat(10, 1fr); } }
@media (prefers-reduced-motion: reduce) { .bigstar.on svg, .rec, .shots.knapp b { animation: none; } }
