@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: #1b1f4a; --fg: #fff; --muted: #c9cdea; --pink: #ff3d7f; --gold: #ffc81a; --cyan: #3dd6ff; --green: #3dffb5; --violet: #7b5cff; --card: rgba(22, 24, 58, .9); }
* { 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; }
#app { position: fixed; inset: 0; }
#screen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.22em; }

/* HUD */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
#hud > * { pointer-events: none; }
#hMoneyBox { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 18px 7px 12px; border-radius: 999px; background: rgba(20,22,56,.78); border: 2px solid rgba(255,255,255,.3); font-size: 26px; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
#hMoneyBox.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.18); } }
#hShopBox { position: absolute; top: calc(env(safe-area-inset-top) + 62px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.prog { display: block; width: 130px; height: 7px; border-radius: 4px; background: rgba(20,22,56,.6); overflow: hidden; border: 1px solid rgba(255,255,255,.3); }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .4s; }
#hCapBox { position: absolute; top: calc(env(safe-area-inset-top) + 14px); left: 12px; padding: 6px 12px; border-radius: 12px; background: rgba(20,22,56,.7); border: 2px solid rgba(255,255,255,.25); font-size: 16px; }
#hCapBox::before { content: "Korb "; color: var(--muted); font-size: 13px; }
#btnPause { pointer-events: auto !important; position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: 10px; width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(255,255,255,.35); background: rgba(20,22,56,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
#hint { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 26px); transform: translate(-50%, 10px); width: min(90vw, 440px); text-align: center; font-size: 19px; padding: 11px 16px; border-radius: 16px; background: rgba(20,22,56,.82); border: 2px solid var(--gold); opacity: 0; transition: opacity .25s, transform .25s; }
#hint.show { opacity: 1; transform: translate(-50%, 0); }
#joy { position: absolute; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%; background: rgba(255,255,255,.12); border: 3px solid rgba(255,255,255,.35); pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 6; }
#joy.on { opacity: 1; }
#joyKnob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.75); transform: translate(-50%, -50%); box-shadow: 0 4px 10px rgba(0,0,0,.3); }
#toast { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); padding: 10px 18px; border-radius: 18px; background: linear-gradient(90deg, var(--pink), var(--violet)); font-size: 17px; line-height: 1.25; text-align: center; width: max-content; max-width: min(90vw, 440px); opacity: 0; pointer-events: none; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
#toast.show { animation: toast 2.2s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 10% { opacity: 1; transform: translateX(-50%) scale(1.05); } 18% { transform: translateX(-50%) scale(1); } 82% { 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) + 58px) 16px calc(env(safe-area-inset-bottom) + 70px); display: flex; flex-direction: column; align-items: center; gap: 12px; background: linear-gradient(180deg, rgba(20,22,56,.55), rgba(20,22,56,.85)); touch-action: pan-y; }
.scr > * { width: 100%; max-width: 520px; }
.scr.title { justify-content: flex-end; background: linear-gradient(180deg, rgba(20,22,56,0) 25%, rgba(20,22,56,.82) 70%); }
.scr.play { display: none; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .9; transform: rotate(-3deg); filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); margin-bottom: 4px; }
.logo span { -webkit-text-stroke: 2px #2a0f3a; background-clip: text; -webkit-background-clip: text; color: transparent; letter-spacing: -.01em; }
.logo .l1 { font-size: clamp(38px, 11vw, 64px); background-image: linear-gradient(180deg, #fff 0%, #9ff7cf 45%, var(--green) 55%, #1ea06a 100%); }
.logo .l2 { font-size: clamp(60px, 18vw, 104px); background-image: linear-gradient(180deg, #fff 0%, #ffe680 40%, var(--gold) 55%, #ff7a1a 100%); }
.claim { text-align: center; margin: 0; color: var(--muted); font-size: 16px; }
.bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pill { padding: 6px 12px; border-radius: 999px; background: rgba(20,22,56,.75); border: 1.5px solid rgba(255,255,255,.2); font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
h2 { margin: 4px 0; text-align: center; font-size: 28px; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.card { background: var(--card); border: 1.5px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.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, #4a5296, #2e3470); box-shadow: 0 4px 0 #1b1f4a, 0 8px 18px rgba(0,0,0,.25); cursor: pointer; touch-action: manipulation; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1b1f4a; }
.btn.big { font-size: 26px; padding: 18px; background: linear-gradient(180deg, #5effc4, #22c98a 55%, #129a64); color: #0b3a26; box-shadow: 0 5px 0 #0b6a44, 0 10px 26px rgba(61,255,181,.35); }
.btn.big:active { box-shadow: 0 1px 0 #0b6a44; }
.btn.small { font-size: 15px; padding: 9px 12px; border-radius: 12px; width: auto; display: block; margin: 8px 0 0; }
.btn.danger { background: linear-gradient(180deg, #ff6b7a, #c82a44); box-shadow: 0 3px 0 #7a1022; }
.kv { display: flex; justify-content: space-between; margin: 6px 0; font-size: 16px; }
.kv span { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin: 0; text-align: center; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.05); }
.item.sel { outline: 2px solid var(--green); }
.item.locked { opacity: .55; }
.shopic { position: relative; width: 64px; height: 56px; }
.shopic img { position: absolute; width: 40px; height: 40px; }
.shopic img + img { right: 0; bottom: 0; }
.it { display: flex; flex-direction: column; gap: 2px; }
.it small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.tag { font-size: 13px; color: var(--green); padding: 0 6px; }
.result { text-align: center; }
.big-score { font-size: 56px; line-height: 1.05; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.stats { display: flex; justify-content: center; gap: 6px 16px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.up { text-align: center; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, rgba(61,255,181,.25), rgba(255,200,26,.25)); border: 1.5px solid var(--gold); }
.sl { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 15px; }
.sl input { width: 100%; accent-color: var(--green); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; appearance: none; border: 1.5px solid rgba(255,255,255,.2); background: rgba(20,22,56,.6); color: var(--muted); border-radius: 10px; padding: 8px 4px; font: 700 14px "Space Grotesk", sans-serif; cursor: pointer; }
.seg button.on { background: var(--green); color: #0b3a26; }
.help li, .help p { font-size: 15px; line-height: 1.45; color: #e6e9f7; }
.help ul { padding-left: 18px; margin: 0 0 8px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; max-width: none !important; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 2.6s linear infinite; }
.confetti i:nth-child(4n) { background: var(--pink); } .confetti i:nth-child(4n+1) { background: var(--gold); } .confetti i:nth-child(4n+2) { background: var(--green); } .confetti i:nth-child(4n+3) { background: var(--cyan); }
.confetti i:nth-child(1) { left: 0%; animation-delay: 0.00s; animation-duration: 2.2s; }
.confetti i:nth-child(2) { left: 41%; animation-delay: 0.37s; animation-duration: 2.5s; }
.confetti i:nth-child(3) { left: 82%; animation-delay: 0.74s; animation-duration: 2.8s; }
.confetti i:nth-child(4) { left: 23%; animation-delay: 1.11s; animation-duration: 3.1s; }
.confetti i:nth-child(5) { left: 64%; animation-delay: 1.48s; animation-duration: 3.4s; }
.confetti i:nth-child(6) { left: 5%; animation-delay: 1.85s; animation-duration: 2.2s; }
.confetti i:nth-child(7) { left: 46%; animation-delay: 2.22s; animation-duration: 2.5s; }
.confetti i:nth-child(8) { left: 87%; animation-delay: 2.59s; animation-duration: 2.8s; }
.confetti i:nth-child(9) { left: 28%; animation-delay: 0.36s; animation-duration: 3.1s; }
.confetti i:nth-child(10) { left: 69%; animation-delay: 0.73s; animation-duration: 3.4s; }
.confetti i:nth-child(11) { left: 10%; animation-delay: 1.10s; animation-duration: 2.2s; }
.confetti i:nth-child(12) { left: 51%; animation-delay: 1.47s; animation-duration: 2.5s; }
.confetti i:nth-child(13) { left: 92%; animation-delay: 1.84s; animation-duration: 2.8s; }
.confetti i:nth-child(14) { left: 33%; animation-delay: 2.21s; animation-duration: 3.1s; }
.confetti i:nth-child(15) { left: 74%; animation-delay: 2.58s; animation-duration: 3.4s; }
.confetti i:nth-child(16) { left: 15%; animation-delay: 0.35s; animation-duration: 2.2s; }
.confetti i:nth-child(17) { left: 56%; animation-delay: 0.72s; animation-duration: 2.5s; }
.confetti i:nth-child(18) { left: 97%; animation-delay: 1.09s; animation-duration: 2.8s; }
.confetti i:nth-child(19) { left: 38%; animation-delay: 1.46s; animation-duration: 3.1s; }
.confetti i:nth-child(20) { left: 79%; animation-delay: 1.83s; animation-duration: 3.4s; }
.confetti i:nth-child(21) { left: 20%; animation-delay: 2.20s; animation-duration: 2.2s; }
.confetti i:nth-child(22) { left: 61%; animation-delay: 2.57s; animation-duration: 2.5s; }
.confetti i:nth-child(23) { left: 2%; animation-delay: 0.34s; animation-duration: 2.8s; }
.confetti i:nth-child(24) { left: 43%; animation-delay: 0.71s; animation-duration: 3.1s; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.noscript { padding: 20px; }
@media (min-aspect-ratio: 6/5) and (min-width: 700px) {
  .scr.title { align-items: flex-end; justify-content: center; padding-right: max(5vw, 24px); background: linear-gradient(90deg, rgba(20,22,56,0) 30%, rgba(20,22,56,.82) 66%); }
  .scr.title > * { max-width: 460px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .scr { padding-top: 52px; gap: 8px; }
  .logo .l1 { font-size: 34px; } .logo .l2 { font-size: 54px; }
  .btn.big { padding: 12px; font-size: 22px; }
  #hShopBox { display: none; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
