@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 { --bg: #2a2140; --fg: #fff; --muted: #d6cfee; --pink: #ff5d73; --yellow: #ffd23d; --mint: #3ddc97; --card: rgba(30, 22, 50, .9); --stage-bottom: 60vh; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); 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; background: radial-gradient(ellipse at 50% 0%, #3d2f63, #1c1530 70%); }
#app { position: fixed; inset: 0; }
#stage { position: absolute; overflow: hidden; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
#screen { width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
#say { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(25,18,40,.85); font-size: clamp(14px, 2.2vw, 22px); white-space: nowrap; opacity: 0; pointer-events: none; }
#say.show { animation: pop 1.3s ease forwards; }
#banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 18px; background: linear-gradient(90deg, #3ddc97, #26b6d6); color: #10202a; font-size: clamp(16px, 2.6vw, 28px); white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
#banner.show { animation: pop 1.1s ease forwards; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
#banner.show { animation-name: popc; }
@keyframes popc { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }

/* HUD */
#hud { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 6px) 10px 0; z-index: 6; pointer-events: none; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
#hud > * { pointer-events: auto; }
body:not(.portrait) #hud { background: linear-gradient(180deg, rgba(20,14,34,.55), rgba(20,14,34,0)); }
#btnPause { width: 42px; height: 42px; border-radius: 13px; border: 2px solid rgba(255,255,255,.35); background: rgba(20,14,34,.55); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.hl { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 17px; }
.hl b { background: var(--yellow); color: #2a2140; padding: 2px 8px; border-radius: 8px; font-size: 16px; }
.hl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd { display: inline-flex; align-items: center; gap: 4px; color: #ffb3bf; }
#hRun { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { #hRun { display: none; } .hl span { font-size: 14px; } }

/* Touch-Knöpfe */
#pad { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
#pad button { pointer-events: auto; position: absolute; border: 3px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; font: 700 26px/1 "Space Grotesk", sans-serif; border-radius: 26px; touch-action: none; display: grid; place-items: center; }
#pad button.on { background: rgba(255,210,61,.55); border-color: #fff; transform: scale(.96); }
#bl, #br { width: 84px; height: 84px; bottom: calc(env(safe-area-inset-bottom) + 18px); }
#bl { left: 16px; } #br { left: 112px; }
#bj { width: 110px; height: 96px; right: 18px; bottom: calc(env(safe-area-inset-bottom) + 18px); font-size: 17px; border-radius: 50%; background: rgba(255,93,115,.35); }
body:not(.touch) #pad { display: none; }
body.portrait #bl, body.portrait #br, body.portrait #bj { bottom: auto; top: calc(var(--stage-bottom) + 56px); width: 25vw; height: min(25vw, 130px); max-width: 130px; }
body.portrait #bl { left: 4vw; } body.portrait #br { left: calc(7vw + min(25vw, 130px)); }
body.portrait #bj { right: 4vw; width: 28vw; max-width: 150px; height: min(28vw, 150px); top: calc(var(--stage-bottom) + 46px); }
#tip { position: absolute; left: 0; right: 0; top: calc(var(--stage-bottom) + 14px); text-align: center; color: var(--muted); font-size: 13px; pointer-events: none; }
body:not(.portrait) #tip { display: none; }
body.touch:not(.portrait) #bl, body.touch:not(.portrait) #br { width: 56px; height: 96px; border-radius: 20px; }
body.touch:not(.portrait) #bl { left: 8px; } body.touch:not(.portrait) #br { left: 68px; }
body.touch:not(.portrait) #bj { width: 112px; height: 112px; right: 8px; }

/* 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) + 58px) 16px calc(env(safe-area-inset-bottom) + 70px); display: flex; flex-direction: column; align-items: center; gap: 12px; background: rgba(28,20,48,.62); touch-action: pan-y; }
.scr > * { width: 100%; max-width: 560px; }
.scr.title { justify-content: center; background: linear-gradient(180deg, rgba(28,20,48,.15), rgba(28,20,48,.78) 70%); }
.scr.pause, .scr.done { justify-content: center; background: rgba(28,20,48,.78); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .85; font-size: clamp(58px, 15vw, 112px); letter-spacing: -.01em; margin-bottom: 4px; }
.logo span { color: var(--yellow); text-shadow: 0 6px 0 #a3410f, 0 10px 24px rgba(0,0,0,.35); transform: rotate(-3deg); }
.logo span + span { color: #fff; font-size: .82em; text-shadow: 0 6px 0 #c2304a, 0 10px 24px rgba(0,0,0,.35); transform: rotate(2deg); }
.claim, .stat { text-align: center; margin: 0; color: var(--muted); font-size: 16px; }
.stat b { color: var(--yellow); }
.note { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
h2 { margin: 4px 0; text-align: center; font-size: 28px; }
.card { background: var(--card); border: 1.5px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px 16px; }
.card.center { text-align: center; }
.big-time { font-size: 52px; color: var(--yellow); text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }
.btn { appearance: none; border: 0; border-radius: 16px; padding: 13px 14px; font: 700 17px/1.1 "Space Grotesk", sans-serif; color: #fff; background: linear-gradient(180deg, #5b4a8f, #3d2f66); box-shadow: 0 4px 0 #241b40, 0 8px 18px rgba(0,0,0,.25); cursor: pointer; touch-action: manipulation; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #241b40; }
.btn.big { font-size: 25px; padding: 17px; background: linear-gradient(180deg, #ffe066, var(--yellow) 50%, #f0a800); color: #3a2400; box-shadow: 0 5px 0 #9a6a00, 0 10px 26px rgba(255,210,61,.35); }
.btn.big:active { box-shadow: 0 1px 0 #9a6a00; }
.btn.small { font-size: 15px; padding: 9px 12px; width: auto; }
.world { background: var(--card); border-radius: 16px; padding: 10px 12px; border-left: 6px solid var(--wc); }
.world h3 { margin: 0 0 8px; font-size: 16px; }
.world h3 small { color: var(--yellow); font-size: 13px; }
.lv { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (max-width: 480px) { .lv { grid-template-columns: repeat(3, 1fr); } }
.lvb { appearance: none; border: 0; border-radius: 12px; padding: 8px 4px; background: var(--wb); color: #fff; font: 700 15px "Space Grotesk", sans-serif; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.lvb small { font-size: 10px; opacity: .85; line-height: 1.1; text-align: center; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.lvb.ok { background: var(--wc); color: #1c1530; }
.lvb.zu { opacity: .35; cursor: default; }
.sl { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 15px; }
.sl input { width: 100%; accent-color: var(--yellow); }
.help p { font-size: 15px; line-height: 1.45; }
.noscript { padding: 20px; }
@media (orientation: landscape) and (max-height: 500px) { .scr { padding-top: 10px; gap: 8px; } .logo { font-size: 50px; } .btn.big { padding: 11px; font-size: 21px; } }
body.portrait .scr.title { justify-content: flex-end; padding-top: calc(var(--stage-bottom) + 12px); background: linear-gradient(180deg, rgba(28,20,48,0) 0, rgba(28,20,48,0) var(--stage-bottom), rgba(28,20,48,.5) 100%); }
body.portrait .scr.title .logo { font-size: clamp(54px, 15vw, 90px); }
