/* Wissensreich – ruhiges, helles Design (Standard) mit optionalem Dunkelmodus */
:root {
  --bg: #f6f5f2; --card: #ffffff; --card2: #f1f0ec; --ink: #1d1e22; --mut: #6c6f77; --line: #e6e4de; --line2: #d9d6ce;
  --acc: #4256d0; --acc-ink: #ffffff; --acc-soft: #eceffc;
  --ok: #1f8f5c; --ok-soft: #e5f4ec; --bad: #c94242; --bad-soft: #fbeaea; --mid: #b67c0e; --mid-soft: #fbf1dc;
  --shadow: 0 1px 2px rgba(25, 25, 35, .04), 0 6px 20px rgba(25, 25, 35, .05);
  --shadow-lg: 0 2px 6px rgba(25, 25, 35, .05), 0 16px 40px rgba(25, 25, 35, .08);
  --m-sea: #edf1f7; --m-land: #ffffff; --m-stroke: #b8c2d6; --m-grid: rgba(30, 40, 70, .05); --m-lab: #a3abbb;
  --r: 18px; --top: 56px; --tab: 62px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15171c; --card: #1e2127; --card2: #262930; --ink: #eceef2; --mut: #9a9fa9; --line: #2d3139; --line2: #3a3f49;
  --acc: #8090f2; --acc-ink: #10131c; --acc-soft: #252a45;
  --ok: #4cc38a; --ok-soft: #1b3127; --bad: #f07a7a; --bad-soft: #3a2225; --mid: #e3b04f; --mid-soft: #382f1d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 8px 30px rgba(0, 0, 0, .35);
  --m-sea: #1a1e25; --m-land: #2a2f39; --m-stroke: #4a5263; --m-grid: rgba(255, 255, 255, .04); --m-lab: #6d7586;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
h2 { font-size: 1.3rem; font-weight: 700; margin: .3rem 0; letter-spacing: -.01em; }
.muted { color: var(--mut); } .center { text-align: center; } .fine { color: var(--mut); font-size: .8rem; line-height: 1.45; }

#splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .3s; }
#splash.out { opacity: 0; pointer-events: none; }
.sp-logo { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--acc); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Kopfzeile & Tabbar */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(var(--top) + var(--safe-t)); padding: var(--safe-t) 14px 0;
  display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
#title { flex: 1; font-size: 1.02rem; font-weight: 650; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#brand:not([hidden]) + #title { display: none; }
#brand:not([hidden]) ~ #tb-stats { margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; background: var(--card); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); }
#tb-stats { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; }
.tb-lp, .tb-streak { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.tb-av .av { display: block; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: var(--card); border-top: 1px solid var(--line); transition: transform .25s ease; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; color: var(--mut); font-weight: 600; transition: color .15s; }
.tabbar a.on { color: var(--acc); }
body.immersive .tabbar { transform: translateY(110%); }
body.immersive #tb-stats { display: none; }

#view { padding: calc(var(--top) + var(--safe-t) + 16px) 16px calc(var(--tab) + var(--safe-b) + 28px); max-width: 680px; margin: 0 auto; min-height: 100vh; }
body.immersive #view { padding-bottom: calc(48px + var(--safe-b)); }
.screen { animation: screenIn .22s ease-out; display: flex; flex-direction: column; gap: 14px; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } }

/* Grundelemente */
.card { border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.glass { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line2); color: var(--ink); transition: transform .1s, background .15s, opacity .15s; user-select: none; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mut); }
.btn.wide { width: 100%; } .btn.big { min-height: 54px; font-size: 1.05rem; } .btn.small { min-height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 11px; }
.inp { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); color: var(--ink); font: inherit; outline: none; transition: border .15s, box-shadow .15s; }
.inp:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
textarea.inp { resize: vertical; } select.inp { appearance: none; }
.inp.right { border-color: color-mix(in srgb, var(--ok) 50%, var(--line2)); }
.inrow { display: flex; gap: 8px; } .inrow .inp { flex: 1; }
.lbl { font-weight: 600; font-size: .85rem; color: var(--mut); margin-bottom: -4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-weight: 600; font-size: .8rem; white-space: nowrap;
  background: color-mix(in srgb, var(--c1, #888) 14%, var(--card)); color: color-mix(in srgb, var(--c1, #888) 55%, var(--ink)); }
.chip.sm { padding: 3px 9px; font-size: .74rem; } .chip.dim { background: var(--card2); color: var(--mut); }
.sec { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; margin: 12px 0 0; }
.badge { background: var(--acc); color: var(--acc-ink); border-radius: 99px; font-size: .72rem; padding: 2px 8px; }
.empty { padding: 18px; text-align: center; color: var(--mut); border: 1px dashed var(--line2); border-radius: var(--r); font-size: .9rem; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 0; color: var(--mut); }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; flex: none; }
.av { display: inline-grid; place-items: center; border-radius: 50%; flex: none; overflow: hidden; background: var(--avbg, var(--card2)); line-height: 0; }
:root[data-theme="dark"] .av { background: color-mix(in srgb, var(--avbg, #888) 16%, var(--card2)); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-ph { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 650; line-height: 1; letter-spacing: .02em; }
.av.ring { box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line2); }
.av.pop { animation: popIn .25s ease-out; }
.av.q { width: 44px; height: 44px; display: grid; place-items: center; font-weight: 700; color: var(--mut); line-height: 1; }
.av.q.big { width: 64px; height: 64px; font-size: 1.4rem; }
.gem { display: inline-flex; line-height: 0; }
.bar { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--card2); overflow: hidden; flex: 1; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: color-mix(in srgb, var(--c1, var(--acc)) 70%, var(--card)); transition: width .6s ease; }
.bar.big { height: 10px; width: 100%; }
.note { padding: 10px 14px; border-radius: 12px; background: var(--card2); font-size: .88rem; } .note.ice { background: var(--acc-soft); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card2); }
.seg button { flex: 1; padding: 8px 6px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--mut); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* Logo / Onboarding */
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.8rem; font-weight: 750; letter-spacing: -.02em; }
.logo-big .logo svg { width: 52px; height: 52px; }
.onboard { gap: 18px; }
.ob-hero { text-align: center; padding-top: 6px; }
.tag { font-size: 1.05rem; color: var(--mut); margin: 6px 0 14px; }
.ob-usp { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 8px; max-width: 380px; text-align: left; font-size: .92rem; }
.ob-usp li { background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 12px; }
.ob-av { display: grid; place-items: center; padding: 4px 0; }
.avpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; }
.avpick-b { display: grid; place-items: center; padding: 3px; border-radius: 50%; aspect-ratio: 1; transition: transform .12s; }
.avpick-b .av { width: 100% !important; height: 100% !important; }
.avpick-b:hover { transform: scale(1.04); }
.avpick-b.on { box-shadow: 0 0 0 2.5px var(--acc); }

/* Start */
.hello { display: flex; align-items: center; gap: 14px; }
.hi-n { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.hi-s { display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: .85rem; }
.hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero b { display: block; font-size: 1.02rem; } .hero span { font-size: .84rem; color: var(--mut); }
.hero-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--acc-soft); font-size: 1.4rem; }
.hero.done .hero-ic { background: var(--ok-soft); }
.hero .go { margin-left: auto; font-size: 1.5rem; color: var(--mut); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 14px; border-radius: var(--r); text-align: left; min-height: 112px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .1s, border-color .15s; }
.mode:hover { border-color: var(--line2); } .mode:active { transform: scale(.98); }
.mode b { font-size: 1rem; } .mode small { font-size: .78rem; color: var(--mut); line-height: 1.3; }
.mode-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 1.25rem; margin-bottom: 8px; background: color-mix(in srgb, var(--k) 14%, var(--card)); }
.m-duel { --k: #5865d6; } .m-live { --k: #e0793a; } .m-realm { --k: #2c9c88; } .m-endless { --k: #b05aa8; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.row.me { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); background: color-mix(in srgb, var(--acc) 5%, var(--card)); }
.row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.row-m b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row-m small { color: var(--mut); font-size: .8rem; }
.row-score { display: flex; gap: 4px; align-items: baseline; font-variant-numeric: tabular-nums; font-weight: 600; }
.row-score i { color: var(--mut); font-style: normal; }
.duel-row.turn { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); box-shadow: var(--shadow); }
.duel-row.turn .row-m small { color: var(--acc); font-weight: 600; }
.duel-row.res-w .row-m small { color: var(--ok); } .duel-row.res-l .row-m small { color: var(--bad); }
.rk { width: 26px; text-align: center; font-weight: 600; color: var(--mut); }
.realm-teaser { flex-direction: row; align-items: center; justify-content: space-between; }
.realm-teaser b { display: block; } .realm-teaser span { color: var(--mut); font-size: .85rem; }
.realm.mini { width: 120px; flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.foot-links a { padding: 8px 12px; border-radius: 10px; color: var(--mut); font-size: .85rem; }
.foot-links a:hover { background: var(--card2); }

/* Reich */
.realm svg { width: 100%; height: auto; display: block; overflow: visible; }
.realm .hex { stroke-width: .6; transition: fill .3s; }
.realm .hex.free { fill: var(--card); }
.realm .prov { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .15s; }
.realm:not(.mini) .prov:hover { transform: scale(1.03); }
.realm .prov.hl { animation: hl 1.4s ease-in-out 2; }
@keyframes hl { 50% { opacity: .55; } }
.prov-ic { font-size: 7.5px; pointer-events: none; } .prov-n { font-size: 4px; font-weight: 600; fill: var(--mut); pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 1.2px; }
.prov-labels { pointer-events: none; }
.realm-head { text-align: center; } .realm-head b { font-size: 1.8rem; display: block; font-weight: 700; } .realm-head span { color: var(--mut); }
.realm-info { font-size: .85rem; color: var(--mut); text-align: center; }
.prov-list { display: grid; gap: 6px; }
.prov-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.prov-row b { width: 130px; font-size: .9rem; font-weight: 600; } .prov-row small { width: 30px; text-align: right; color: var(--mut); } .pi { font-size: 1.1rem; }

/* Liga */
.league-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.league-hero h2 { font-size: 1.7rem; margin: 0; } .league-hero p { margin: 0; }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rung { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); opacity: .6; font-size: .74rem; }
.rung.on { opacity: 1; border-color: var(--acc); } .rung small { color: var(--mut); font-size: .64rem; }
.rules p { margin: 0; font-size: .85rem; color: var(--mut); line-height: 1.55; }

/* Profil */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.stat b { font-size: 1.2rem; font-weight: 700; } .stat small { color: var(--mut); font-size: .7rem; }
.catstats { gap: 10px; } .cs-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; } .cs-n { width: 120px; } .cs-row small { width: 36px; text-align: right; color: var(--mut); }
.tog { display: flex; align-items: center; gap: 10px; }
.tog input { display: none; } .tog span { width: 42px; height: 24px; border-radius: 99px; background: var(--line2); position: relative; transition: background .15s; }
.tog span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.tog input:checked + span { background: var(--acc); } .tog input:checked + span::after { transform: translateX(18px); }
.code { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .14em; } .code.big { font-size: 1.8rem; font-weight: 700; }
.code.huge { font-size: 3rem; font-weight: 700; color: var(--acc); }
.recover { word-break: break-all; font-size: .7rem; background: var(--card2); padding: 8px; border-radius: 10px; user-select: all; }
.hist { display: flex; align-items: center; gap: 8px; font-size: .9rem; }

/* Sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 28, .35); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 540px; max-height: 88vh; overflow: auto; padding: 22px 18px calc(20px + var(--safe-b)); border-radius: 22px 22px 0 0; background: var(--card);
  display: flex; flex-direction: column; gap: 10px; animation: up .25s ease-out; box-shadow: var(--shadow-lg); }
.sheet h3 { margin: 0; font-size: 1.2rem; } .sheet p { margin: 0 0 6px; font-size: .9rem; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.rev { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; } .rev-a { color: var(--ok); font-weight: 600; margin-top: 2px; }

/* Duell */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 8px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vs-p { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.vs-p b { font-size: .9rem; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-s { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vs-m { text-align: center; } .vs-m span { font-weight: 700; font-size: 1rem; color: var(--mut); }
.vs-m small { display: block; color: var(--mut); font-size: .74rem; }
.rounds { display: flex; flex-direction: column; gap: 6px; }
.rnd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.rnd:has(.chip:not(.dim)) { cursor: pointer; }
.rnd.cur { border-color: var(--acc); }
.rnd-c { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rnd-cards { font-size: .78rem; } .rnd-cards i { font-style: normal; opacity: .7; margin-left: 4px; }
.dots { display: flex; gap: 5px; } .rnd .dots:last-child { justify-content: flex-end; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line2); }
.dots i.ok { background: var(--ok); border-color: var(--ok); } .dots i.no { background: var(--bad); border-color: var(--bad); } .dots i.mid { background: var(--mid); border-color: var(--mid); }
.dots.hidden i { opacity: .6; }
.wait { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--mut); font-size: .9rem; }
.done-box { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.big-res { font-size: 1.5rem; font-weight: 700; }
.hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; text-align: center; min-height: 124px;
  background: color-mix(in srgb, var(--k) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--k) 28%, var(--line)); color: var(--ink); transition: transform .12s, border-color .15s; }
.pcard:not(:disabled):hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--k) 60%, var(--line)); }
.pcard b { font-size: .84rem; font-weight: 650; color: color-mix(in srgb, var(--k) 60%, var(--ink)); } .pcard small { font-size: .68rem; color: var(--mut); line-height: 1.3; }
.pc-ic { font-size: 1.6rem; }
.pcard.used { opacity: .4; filter: grayscale(1); }
.pcard.used::after { content: "verbraucht"; position: absolute; top: 8px; right: 8px; font-size: .6rem; font-weight: 600; color: var(--mut); }
.c-freeze { --k: #3b84d4; } .c-fifty { --k: #c99512; } .c-steal { --k: #6b7280; } .c-double { --k: #cc4b7c; } .c-shield { --k: #2f9465; }
.pcard.mini { min-height: 0; padding: 8px 14px; flex-direction: row; font-weight: 600; }
.hand.big .pcard { min-height: 146px; }
.card-phase { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding-top: 8px; }
.card-phase .hand { width: 100%; } .card-phase h2 { margin: 0; } .card-phase p { margin: 0; }
.card-fly { position: fixed; left: 50%; top: 45%; z-index: 60; font-size: 4rem; pointer-events: none; animation: fly .8s ease-out forwards; }
@keyframes fly { 0% { transform: translate(-50%, -30%) scale(.6); opacity: 0; } 35% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -90%) scale(.9); opacity: 0; } }

/* Kategorien-Rad */
.wheel-screen { align-items: center; }
.wheel-wrap { position: relative; width: 280px; height: 280px; margin: 8px auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; position: relative; border: 5px solid var(--card); box-shadow: 0 0 0 1px var(--line2), var(--shadow-lg); }
.w-ic { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; font-size: 1.15rem; transition: opacity .25s, font-size .25s, filter .25s; }
.wheel.drawn .w-ic { opacity: .22; }
.wheel.drawn .w-ic.on { opacity: 1; font-size: 1.7rem; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.wheel-pin { position: absolute; z-index: 2; left: 50%; top: -10px; transform: translateX(-50%); width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 20px solid var(--acc); }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line2); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: var(--mut); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; perspective: 900px; }
.choice { position: relative; height: 128px; transform-style: preserve-3d; animation: flipIn .45s ease-out backwards; }
.choice > span { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.ch-front { background: color-mix(in srgb, var(--c1) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--c1) 30%, var(--line)); font-size: .84rem; font-weight: 600; text-align: center; color: color-mix(in srgb, var(--c1) 50%, var(--ink)); }
.ch-back { transform: rotateY(180deg); background: var(--card2); font-size: 1.6rem; color: var(--mut); }
.ch-ic { font-size: 2rem; }
.choice.picked .ch-front { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.choice:disabled:not(.picked) { opacity: .4; transition: opacity .2s; }
@keyframes flipIn { from { transform: rotateY(180deg); } }

/* Spielfläche */
.play { gap: 10px; }
.progress { display: flex; gap: 5px; } .progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); transition: background .2s; }
.progress i.done { background: color-mix(in srgb, var(--acc) 55%, var(--card)); } .progress i.cur { background: var(--acc); }
.scoreline { text-align: right; font-weight: 600; color: var(--mut); font-size: .85rem; margin-top: -4px; }
.q-wrap { display: flex; flex-direction: column; gap: 10px; }
.q-top { display: flex; align-items: center; gap: 8px; }
.q-type { flex: 1; color: var(--mut); font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer { position: relative; width: 40px; height: 40px; flex: none; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.t-bg { fill: var(--card); stroke: var(--line); stroke-width: 3; } .t-fg { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; transition: stroke .3s; }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 650; font-size: .9rem; font-variant-numeric: tabular-nums; }
.timer.hurry .t-fg { stroke: var(--bad); } .timer.hurry span { color: var(--bad); }
.q-card { position: relative; border-radius: var(--r); padding: 16px 16px; min-height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid color-mix(in srgb, var(--c1, var(--acc)) 55%, var(--card)); box-shadow: var(--shadow); }
.q-text { font-size: 1.12rem; font-weight: 650; line-height: 1.32; letter-spacing: -.005em; text-wrap: balance; }
.flip-in { animation: qIn .3s ease-out; }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } }
.pic-canvas { width: 100%; aspect-ratio: 3 / 2; border-radius: 10px; display: block; background: var(--card2); border: 1px solid var(--line); }
.ans-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ans { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 14px; text-align: left; font-weight: 550; font-size: .97rem; line-height: 1.25;
  background: var(--card); border: 1px solid var(--line2); color: var(--ink); animation: ansIn .25s ease-out backwards; transition: background .15s, border-color .15s, opacity .2s, transform .1s; }
.ans:hover:not(:disabled) { background: var(--card2); }
.ans:active:not(:disabled) { transform: scale(.99); }
@keyframes ansIn { from { opacity: 0; transform: translateY(6px); } }
.ans-grid.two { grid-template-columns: 1fr 1fr; } .ans-grid.two .ans { min-height: 58px; }
.ans-k { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-weight: 650; font-size: .8rem; background: var(--card2); color: var(--mut); }
.ans.chosen { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.ans.right { background: var(--ok-soft); border-color: var(--ok); color: var(--ink); box-shadow: 0 0 0 1px var(--ok); }
.ans.right .ans-k { background: var(--ok); color: #fff; }
.ans.wrong { background: var(--bad-soft); border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.ans.wrong .ans-k { background: var(--bad); color: #fff; }
.ans.dim { opacity: .45; } .ans.gone { opacity: .2; pointer-events: none; }
.ans-grid.tf { grid-template-columns: 1fr 1fr; } .ans.tf { flex-direction: column; justify-content: center; min-height: 76px; font-size: 1rem; gap: 6px; }
.ans.tf .ans-k { width: 38px; height: 38px; font-size: 1.1rem; } .ans.tf.yes .ans-k { color: var(--ok); } .ans.tf.no .ans-k { color: var(--bad); }
.locked .ans, .locked .stake-b { pointer-events: none; }

/* Einsatz */
.stake { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card2); }
.stake-l { font-size: .7rem; font-weight: 600; color: var(--mut); padding: 0 6px 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.stake-b { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; transition: background .15s, color .15s; line-height: 1.15; color: var(--mut); }
.stake-b b { font-size: 1rem; font-weight: 650; } .stake-b small { font-size: .66rem; }
.stake-b.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.stake-b.s2.on { color: var(--mid); background: var(--mid-soft); box-shadow: none; }
.stake-b.s3.on { color: var(--bad); background: var(--bad-soft); box-shadow: none; }
.extra { display: flex; justify-content: center; }

/* Schätzen */
.est { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.est-val { text-align: center; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.est-row { display: flex; align-items: center; gap: 10px; }
.est-n { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); font-size: 1.3rem; font-weight: 600; flex: none; color: var(--ink); }
.est-track { position: relative; flex: 1; height: 40px; display: flex; align-items: center; }
.est-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; margin: 0;
  background: linear-gradient(var(--acc), var(--acc)) 0 / var(--p, 50%) 100% no-repeat, var(--line); }
.est-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--acc); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.est-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--acc); }
.est-mark { position: absolute; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ok); opacity: 0; transition: opacity .3s; }
.est-mark.on { opacity: 1; } .est-mark::after { content: attr(data-l); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); background: var(--ok); color: #fff; padding: 1px 7px; border-radius: 6px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.est-lim { display: flex; justify-content: space-between; font-size: .75rem; color: var(--mut); padding: 0 50px; }

/* Karte */
.map-wrap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--m-sea); touch-action: manipulation; }
.map-svg { display: block; width: 100%; height: auto; max-height: 52vh; cursor: crosshair; }
.map-svg.map-eu { aspect-ratio: 1 / 1; } .map-svg.map-world { aspect-ratio: 16 / 10; } .map-svg.map-ch { aspect-ratio: 3 / 2; }
.map-wrap:not(.zoomed):not(.nozoom) .map-svg { cursor: zoom-in; }
.m-sea { fill: var(--m-sea); } .m-grid { stroke: var(--m-grid); } .m-land { fill: var(--m-land); stroke: var(--m-stroke); } .m-lake { fill: var(--m-sea); stroke: var(--m-stroke); } .m-lab { fill: var(--m-lab); }
.map-hint { position: absolute; left: 10px; bottom: 8px; font-size: .72rem; color: var(--mut); background: color-mix(in srgb, var(--card) 90%, transparent); padding: 4px 8px; border-radius: 8px; pointer-events: none; }
.map-zoomout { position: absolute; right: 8px; top: 8px; padding: 6px 10px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font-size: .75rem; font-weight: 600; display: none; }
.map-wrap.zoomed .map-zoomout { display: block; }
.pin .pin-body { fill: var(--acc); stroke: #fff; stroke-width: .08%; } .pin.sol .pin-body { fill: var(--ok); }
.pin .pin-pulse { fill: var(--acc); opacity: .18; } .pin.sol .pin-pulse { fill: var(--ok); }
.pin { animation: drop .25s ease-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes drop { from { transform: translateY(-20%); opacity: 0; } }
.pin-line { stroke: var(--mut); stroke-dasharray: 1.5 1; opacity: .8; }

/* Sortieren */
.sort-hint { font-size: .78rem; color: var(--mut); text-align: center; }
.sort { display: flex; flex-direction: column; gap: 8px; touch-action: none; }
.sort-i { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; min-height: 54px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2);
  user-select: none; cursor: grab; transition: background .15s, border-color .15s, box-shadow .15s; position: relative; z-index: 1; }
.sort-i.drag { z-index: 5; box-shadow: var(--shadow-lg); border-color: var(--acc); cursor: grabbing; transition: none; }
.grip { color: var(--line2); font-size: 1.1rem; } .sort-t { flex: 1; font-weight: 550; } .sort-v { font-weight: 600; color: var(--mut); font-size: .84rem; }
.sort-btns { display: flex; flex-direction: column; gap: 2px; } .mv { width: 28px; height: 20px; border-radius: 6px; background: var(--card2); font-size: .6rem; color: var(--mut); }
.sort-i.right { background: var(--ok-soft); border-color: var(--ok); } .sort-i.wrong { background: var(--bad-soft); border-color: var(--bad); }
.locked .sort-btns { display: none; }

/* Ergebnis einer Frage */
.q-result { display: flex; flex-direction: column; gap: 8px; }
.q-result.in > * { animation: screenIn .25s ease-out backwards; } .q-result.in > *:nth-child(2) { animation-delay: .05s; } .q-result.in > *:nth-child(3) { animation-delay: .1s; }
.res-banner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; font-size: 1rem; }
.res-banner b { font-weight: 650; }
.res-banner.good { background: var(--ok-soft); color: var(--ok); } .res-banner.mid { background: var(--mid-soft); color: var(--mid); } .res-banner.bad { background: var(--bad-soft); color: var(--bad); }
.res-pts { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.res-detail { text-align: center; font-weight: 600; }
.res-x { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; line-height: 1.45; color: var(--ink); }
.next-btn { margin-top: 4px; }
.locked .q-body > .btn, .locked .est > .btn { display: none; }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }

.round-sum, .daily-res, .daily-intro, .camp-intro, .live-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 8px; }
.round-sum p, .daily-intro p, .camp-intro p, .live-hero p, .daily-res p { margin: 0; }
.round-sum .realm { width: 100%; max-width: 420px; }
.rs-pts { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.rs-pts small { font-size: 1rem; color: var(--mut); font-weight: 500; }
.big-ic { width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; font-size: 2.6rem; background: var(--acc-soft); }
.camp-intro .big-ic { background: color-mix(in srgb, var(--c1) 14%, var(--card)); }
.endless-top { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.endless-top b { margin-left: auto; } .lives { font-size: 1.05rem; letter-spacing: 2px; } .lives.lose { animation: shake .3s; }
.combo { padding: 2px 8px; border-radius: 99px; background: var(--mid-soft); color: var(--mid); font-size: .78rem; }

/* Live */
.live-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.ls-p { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 46px; font-size: .68rem; color: var(--mut); }
.ls-p.me small { color: var(--ink); font-weight: 600; }
.live-stage { display: flex; flex-direction: column; gap: 12px; }
.lobby { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 10px; }
.lobby-ps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.lp { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; } .lp b { font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-in { animation: popIn .25s ease-out backwards; }
.lobby-cd { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: .85rem; } .lobby-cd b { font-size: 1.8rem; color: var(--ink); min-width: 40px; }
.countdown { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 0; color: var(--mut); }
.cd-n { font-size: 5rem; font-weight: 700; color: var(--acc); animation: popIn .3s ease-out; }
.live-status { text-align: center; color: var(--mut); font-size: .85rem; }
.mini-board { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.mb-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: .85rem; animation: rise .4s ease-out; }
.mb-row b { flex: 1; font-weight: 600; } .mb-row.me { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
@keyframes rise { from { transform: translateY(var(--d, 0)); } }
.mb-last { font-weight: 600; font-size: .8rem; } .mb-last.ok { color: var(--ok); } .mb-last.no { color: var(--bad); }
.mb-s { font-weight: 650; min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.code-inp { text-transform: uppercase; letter-spacing: .3em; font-weight: 650; text-align: center; }
.podium-wrap { display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.podium-wrap .row { text-align: left; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding-top: 10px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 30%; }
.pod b { font-size: .8rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-bar { width: 100%; border-radius: 12px 12px 4px 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 8px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); }
.pod-bar span { font-size: 1.4rem; } .pod-bar small { font-size: .75rem; color: var(--mut); font-weight: 600; }
.pod.p1 .pod-bar { height: 110px; background: color-mix(in srgb, #e3b341 22%, var(--card)); } .pod.p2 .pod-bar { height: 84px; background: color-mix(in srgb, #9aa3b2 20%, var(--card)); } .pod.p3 .pod-bar { height: 66px; background: color-mix(in srgb, #c9824f 20%, var(--card)); }

/* Effekte */
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
.pop { position: fixed; z-index: 80; transform: translate(-50%, -50%); font-weight: 700; font-size: 1.15rem; pointer-events: none; animation: popUp .9s ease-out forwards; }
.pop.plus { color: var(--ok); } .pop.minus { color: var(--bad); }
@keyframes popUp { 0% { transform: translate(-50%, -50%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-50%, -180%); opacity: 0; } }
.toast { position: fixed; left: 50%; top: calc(var(--top) + var(--safe-t) + 10px); z-index: 95; transform: translate(-50%, -12px); opacity: 0; transition: .2s ease-out;
  padding: 11px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 550; font-size: .9rem; max-width: 90vw; box-shadow: var(--shadow-lg); }
.toast.in { transform: translate(-50%, 0); opacity: 1; } .toast.bad { border-left: 3px solid var(--bad); } .toast.good { border-left: 3px solid var(--ok); }
.err { text-align: center; align-items: center; }

/* Kleine/niedrige Handys: Frage + 4 Antworten + Einsatz ohne Scrollen */
@media (max-height: 760px) {
  body.immersive #view { padding-top: calc(var(--top) + var(--safe-t) + 8px); }
  .q-card { padding: 12px 14px; min-height: 68px; }
  .q-text { font-size: 1.03rem; }
  .ans { min-height: 44px; padding: 6px 10px; }
  .ans-grid.two .ans { min-height: 52px; }
  .stake-b { padding: 4px; }
}
/* Grenzberichte im Reich */
.rl.up .rl-ic, .rl.down .rl-ic { font-size: 1.3rem; width: 34px; text-align: center; }
.rl.down b { color: var(--bad); } .rl.up b { color: var(--ok); }

/* Tablet & Desktop */
@media (min-width: 700px) {
  :root { --top: 60px; }
  .modes { grid-template-columns: repeat(4, 1fr); }
  .ans-grid { grid-template-columns: 1fr 1fr; }
  .q-text { font-size: 1.4rem; }
  .wheel-wrap { width: 320px; height: 320px; }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .prov-list { grid-template-columns: 1fr 1fr; }
  .lobby-ps { grid-template-columns: repeat(8, 1fr); }
  .avpick { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 1000px) {
  .tabbar { top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: 480px; height: var(--top); background: transparent; border: 0; z-index: 21; }
  .tabbar a { flex-direction: row; gap: 6px; font-size: .85rem; } .tabbar a svg { width: 18px; height: 18px; }
  body.immersive .tabbar { transform: translate(-50%, -110%); }
  #view { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
