* { 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; }

.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; }
