* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fd3ff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#welt { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
#welt:active { cursor: grabbing; }

.kopf { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(20, 28, 45, .7); pointer-events: none; line-height: 1.35; }
.marke { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.staging { font-size: 11px; font-weight: 700; background: #ff6f3c; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.spiel { font-size: 13px; opacity: .85; }
.werte { font-size: 15px; }
.lua { font-size: 11px; border-radius: 6px; padding: 1px 6px; margin-left: 6px; background: #556; }
.lua.an { background: #2c9a4a; }
.lua.aus { background: #b33; }

.knopf-klein { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(20, 28, 45, .7); color: #fff; font-size: 22px; cursor: pointer; }

.meldung { position: fixed; top: 22%; left: 50%; transform: translate(-50%, -10px); padding: 10px 18px; border-radius: 14px; background: rgba(20, 28, 45, .8); font-size: 22px; font-weight: 700; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; text-align: center; max-width: 90vw; }
.meldung.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.meldung.gut { background: rgba(44, 154, 74, .9); }
.meldung.fehler { background: rgba(179, 40, 40, .92); font-size: 15px; }
.meldung.treffer { background: rgba(200, 20, 20, .92); }

.hilfe { position: fixed; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 10px; background: rgba(20, 28, 45, .6); font-size: 13px; white-space: nowrap; }
.hilfe a { color: #ffd84d; }
.nur-touch { display: none; }
body.touch .nur-touch { display: block; }
body.touch .nur-pc { display: none; }

.stick { position: fixed; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .5); display: none; pointer-events: none; }
.stick.aktiv { display: block; }
.knauf { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .75); transform: translate(-50%, -50%); }
.sprung { position: fixed; right: 26px; bottom: calc(46px + env(safe-area-inset-bottom)); width: 84px; height: 84px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .8); background: rgba(47, 124, 246, .75); color: #fff; font-size: 38px; touch-action: none; }
body.touch .sprung { display: block; }

.fenster { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 16, 30, .45); }
.fenster[hidden] { display: none; }
.karte { background: #fff; color: #1b2433; border-radius: 18px; padding: 24px 32px; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.karte .gross { font-size: 30px; font-weight: 800; }
.karte .zeit { font-size: 24px; margin: 8px 0 2px; color: #2f7cf6; font-weight: 700; }
.karte button { margin-top: 16px; font-size: 18px; padding: 10px 22px; border: 0; border-radius: 12px; background: #2f7cf6; color: #fff; cursor: pointer; }

.laden { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #2f7cf6; font-size: 26px; font-weight: 800; padding: 20px; text-align: center; }
.laden[hidden] { display: none; }

/* Menü, Level, Belohnungen (VPS-405) */
.menue-knopf { right: 64px; }
.rad { font-size: 11px; border-radius: 6px; padding: 1px 6px; background: #2c9a4a; }
.rad[hidden] { display: none; }
.boost { background: #e08a00; }
.doppel { background: #8a3ee0; } /* Double-Jump-Boost (VPS-408) */
/* Zahlencode an der Ziel-Fahne (VPS-407) */
.code input { font-size: 26px; width: 9ch; text-align: center; letter-spacing: .2em; margin: 10px auto 4px; padding: 6px; border-radius: 8px; border: 2px solid #2f7cf6; display: block; }
.code-meldung { min-height: 1.3em; font-size: 14px; }
.code-meldung.fehler { color: #d62839; font-weight: 700; }
.karte .knoepfe { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.karte button.zweit { background: #e3e8f0; color: #1b2433; }
.karte .neu { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #1b2433; }
.karte .neu div { background: #fff4c2; border-radius: 8px; padding: 4px 10px; margin-top: 6px; }
.karte.menue { width: min(420px, 92vw); max-height: 92vh; overflow-y: auto; padding: 20px 22px; }
.abschnitt { margin: 16px 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #6b7587; text-align: left; }
.level-liste { display: flex; flex-direction: column; gap: 8px; }
.karte .level { margin: 0; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 10px 14px; font-size: 16px; }
.karte .level .nr { font-size: 26px; font-weight: 800; min-width: 28px; text-align: center; }
.karte .level .info { flex: 1; }
.karte .level .info small { display: block; font-size: 12px; opacity: .85; font-weight: 400; }
.karte .level.aktuell { outline: 3px solid #ffc400; }
.karte .level:disabled { background: #c3cad6; color: #5b6372; cursor: not-allowed; }
.belohnungen { text-align: left; font-size: 15px; }
.belohnung { display: flex; align-items: center; gap: 12px; background: #f3f5f9; border-radius: 12px; padding: 10px 12px; }
.belohnung .bild { font-size: 30px; }
.belohnung.gesperrt .bild { filter: grayscale(1); opacity: .5; }
.belohnung .text { flex: 1; }
.belohnung .text small { display: block; color: #6b7587; font-size: 12px; }
.balken { height: 8px; border-radius: 4px; background: #dde3ec; margin-top: 6px; overflow: hidden; }
.balken div { height: 100%; background: #2c9a4a; }
.belohnung label { font-size: 13px; white-space: nowrap; cursor: pointer; }
