:root { --blue: #2f6bff; --ink: #1d2433; --mut: #6b7487; --soft: #f1f3f8; --line: #dfe4ee; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #eef1f6; font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: var(--ink); overscroll-behavior: none; }
button { font: inherit; }
#app { max-width: 480px; margin: 0 auto; height: 100dvh; background: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; }
.ic { width: 18px; height: 18px; display: inline-block; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }

.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 16px); }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.title { font-weight: 800; font-size: 22px; flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pill .ic { width: 16px; height: 16px; }
.star { color: #ffb400; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); border: 0; display: grid; place-items: center; color: var(--ink); cursor: pointer; flex: none; }
.iconbtn .ic { width: 22px; height: 22px; }

/* Startseite */
.home { overflow-y: auto; }
.sec { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 8px; }
.world { background: #f5f7fb; border-radius: 18px; padding: 10px; margin-bottom: 10px; cursor: pointer; transition: background .2s; }
.world.sel { background: #e9efff; }
.world.closed { cursor: default; }
.world.closed .thumb { filter: grayscale(1) opacity(.55); }
.wrow { display: flex; gap: 12px; align-items: center; }
.wtext { flex: 1; min-width: 0; }
.thumb { width: 62px; height: 62px; border-radius: 14px; background: #ddd center/cover; flex: none; overflow: hidden; }
.thumb svg { width: 100%; height: 100%; display: block; }
.wname { font-weight: 800; font-size: 16px; }
.wsub { font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.lv { aspect-ratio: 1; border-radius: 12px; border: 0; font-weight: 800; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2.5px var(--blue); }
.lv small { font-size: 10.5px; font-weight: 700; opacity: .75; }
.lv.done { background: var(--blue); color: #fff; box-shadow: none; }
.lv.locked { background: #e6eaf2; color: #a3abbb; box-shadow: none; cursor: default; }
.lv .ic { width: 16px; height: 16px; }
.duel { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--soft); color: var(--mut); border-radius: 14px; padding: 14px; font-weight: 700; }
.tag { font-size: 11px; background: #fff; border-radius: 99px; padding: 2px 8px; }

/* Spielen */
.stage { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.boardwrap { position: relative; width: min(100%, calc(100dvh - 340px)); aspect-ratio: 1; margin: 0 auto; flex: none; }
.boardwrap.big { width: min(100%, calc(100dvh - 230px)); }
.board { position: absolute; inset: 0; display: grid; gap: 3px; background: var(--line); padding: 3px; border-radius: 14px; transition: gap .4s, padding .4s; }
.board.full { gap: 0; padding: 0; overflow: hidden; }
.board.full .slot, .board.full .pc { border-radius: 0; }
.slot { border-radius: 6px; background: #f5f7fb; position: relative; min-width: 0; min-height: 0; transition: background .15s; }
.slot.empty { border: 2px dashed #cdd4e2; }
.slot.over { background: #dce6ff; border-color: var(--blue); }
.slot > .pc { position: absolute; inset: 0; }
.pc { position: relative; overflow: hidden; border-radius: 6px; touch-action: none; cursor: grab; }
.pc .pi { position: absolute; inset: 0; background-repeat: no-repeat; transition: transform .2s ease; }
.pc svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pc.lifted { opacity: .3; }
.pc.bad { box-shadow: inset 0 0 0 3px #ff2d46; }
.pc.bad::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #ff2d46; border-radius: inherit; }
.tray { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; overflow: hidden; padding: 10px; background: var(--soft); border-radius: 16px; min-height: 84px; flex: 1; }
.tray::-webkit-scrollbar { display: none; }
.tray .pc { width: var(--ps, 72px); height: var(--ps, 72px); flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tray.wait { visibility: hidden; }
.float { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; box-shadow: 0 14px 30px rgba(0,0,0,.35); border-radius: 8px; overflow: hidden; }
.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.snap { animation: snap .3s ease-out; }
@keyframes snap { 0% { transform: scale(1.12); filter: brightness(1.4); } 100% { transform: scale(1); filter: none; } }

.hintrow { display: flex; gap: 10px; align-items: center; }
.hint { flex: 1; display: flex; gap: 9px; align-items: center; background: #fff6dc; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.35; min-height: 48px; }
.hint .ic { color: #b07800; }
.ref { width: 52px; height: 52px; border-radius: 10px; background: center/cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

.preview { position: absolute; inset: 0; border-radius: 14px; background: center/cover; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 16px; transition: opacity .5s; }
.preview .pv { background: rgba(20,24,40,.78); color: #fff; border-radius: 14px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.preview b { font-size: 22px; min-width: 18px; text-align: center; }
.preview.gone { opacity: 0; pointer-events: none; }

/* Schieben */
.sboard { position: absolute; inset: 0; background: var(--line); border-radius: 14px; }
.st { position: absolute; padding: 3px; transition: left .14s ease, top .14s ease; cursor: pointer; }
.st div { width: 100%; height: 100%; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.st.ok div { box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), inset 0 0 0 3px rgba(255,255,255,.55); }

/* Leitungen */
.lboard { position: absolute; inset: 0; display: grid; gap: 3px; background: #121726; padding: 3px; border-radius: 14px; }
.lt { background: #232b40; border-radius: 6px; position: relative; color: #4c5670; cursor: pointer; transition: color .2s; }
.lt.on { color: #ffc21a; }
.lt .rot { position: absolute; inset: 0; transition: transform .16s ease; }
.lt svg { width: 100%; height: 100%; display: block; }
.lt.on .lamp { filter: drop-shadow(0 0 6px #ffc21a); }
.lboard.won .lt { background: #2b3550; }

/* Gewonnen */
.win { position: absolute; inset: 0; background: rgba(20,26,45,.45); display: flex; align-items: flex-end; z-index: 60; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.wincard { background: #fff; width: 100%; border-radius: 24px 24px 0 0; padding: 24px 18px calc(env(safe-area-inset-bottom) + 18px); text-align: center; animation: up .3s ease-out; }
@keyframes up { from { transform: translateY(40px); } }
.wincard .badge { width: 64px; height: 64px; border-radius: 99px; background: #22b56a; color: #fff; display: grid; place-items: center; margin: 0 auto 10px; }
.wincard .badge .ic { width: 34px; height: 34px; }
.wincard h2 { font-size: 24px; }
.wincard p { color: var(--mut); margin-top: 4px; font-weight: 600; }
.btns { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.btn { border: 0; background: var(--blue); color: #fff; padding: 15px; border-radius: 14px; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn.alt { background: var(--soft); color: var(--ink); }

/* Startbildschirm */
.titlescr { justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.logoicon { width: 64px; height: 64px; color: var(--blue); transform: rotate(-8deg); }
.logoname { font-size: 40px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.logosub { color: var(--mut); font-weight: 600; font-size: 14px; margin-top: 6px; }
.hero { position: relative; width: min(100%, calc(100dvh - 400px)); aspect-ratio: 1; margin: 18px auto; }
.ht { position: absolute; width: 33.34%; height: 33.34%; background-size: 300% 300%; border-radius: 10px; box-shadow: 0 6px 16px rgba(20,30,60,.22); transition: left .7s cubic-bezier(.5,0,.2,1), top .7s cubic-bezier(.5,0,.2,1), transform .7s, border-radius .7s, box-shadow .7s; }
.hero.solved .ht { border-radius: 0; box-shadow: none; }
.btn.big { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 17px; font-size: 17px; }
.btn.big .ic { width: 22px; height: 22px; }

/* Welten */
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wt { position: relative; border: 0; background: #f5f7fb; border-radius: 18px; padding: 8px 8px 10px; text-align: left; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wt .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; }
.wt.closed .thumb { filter: grayscale(1) opacity(.5); }
.wlock { position: absolute; top: 14px; right: 14px; background: #fff; border-radius: 99px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink); }
.wlock .ic { width: 15px; height: 15px; }
.wtname { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; background: #e1e6f0; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.wtcount { font-size: 11.5px; color: var(--mut); font-weight: 600; line-height: 1.25; }
.banner { width: 100%; aspect-ratio: 2.2; border-radius: 18px; background: center 60%/cover; }
.banner.logic { display: grid; place-items: center; background: #f1f3f8; }
.banner.logic svg { height: 80%; width: auto; border-radius: 14px; }
.wdesc { color: var(--mut); font-weight: 600; margin: 10px 2px 14px; }
.lv b { font-size: 22px; }
.lv .bt { opacity: .9; font-weight: 600; }

/* Vorlage */
.refbtn { position: relative; width: 56px; height: 56px; flex: none; border: 0; border-radius: 12px; background: center/cover; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08); touch-action: none; }
.refbtn > span { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 99px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.refbtn .ic { width: 15px; height: 15px; }
#board.shake { animation: shake .35s; }

/* Duell */
.note, .dintro { background: #f5f7fb; border-radius: 14px; padding: 14px; line-height: 1.45; font-weight: 500; }
.dintro { margin-bottom: 16px; }
.flabel { font-size: 13px; font-weight: 700; color: var(--mut); margin-bottom: 6px; }
.field { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 14px; font: inherit; font-size: 17px; font-weight: 600; outline: none; margin-bottom: 12px; }
.field:focus { border-color: var(--blue); }
.field.code { text-transform: uppercase; letter-spacing: .3em; font-weight: 800; text-align: center; margin: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 13px; font-weight: 600; margin: 20px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.joinrow { display: flex; gap: 10px; }
.joinrow .field { flex: 1; }
.err { color: #e0283d; font-weight: 600; margin-top: 12px; min-height: 20px; }
.codebox { background: #f1f3f8; border-radius: 18px; padding: 14px; text-align: center; }
.clabel { font-size: 12px; color: var(--mut); font-weight: 700; }
.ccode { font-size: 44px; font-weight: 900; letter-spacing: .18em; }
.chint { font-size: 13px; color: var(--mut); }
.av { border-radius: 99px; color: #fff; display: inline-grid; place-items: center; font-weight: 800; flex: none; }
.plist { display: flex; flex-wrap: wrap; gap: 12px; }
.pchip { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.pchip.off { opacity: .4; }
.rlist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ritem { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 800; font-size: 13px; }
.ritem .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.ritem small { color: var(--mut); font-size: 11px; }
.lobbyfoot { margin-top: auto; padding-top: 14px; }
.wait { text-align: center; color: var(--mut); font-weight: 700; padding: 16px; background: #f5f7fb; border-radius: 14px; }
.countscr { align-items: center; justify-content: center; }
.cnum { font-size: 120px; font-weight: 900; color: var(--blue); line-height: 1; }
.clab { color: var(--mut); font-weight: 700; margin-top: 10px; }
.race { display: flex; gap: 10px; margin: -4px 0 10px; overflow-x: auto; scrollbar-width: none; }
.rc { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--mut); }
.rc.me { color: var(--ink); }
.rc .ic { width: 13px; height: 13px; color: #22b56a; }
.ring { padding: 3px; border-radius: 99px; background: conic-gradient(var(--c) var(--p), #e1e6f0 0); display: grid; }
.ring .av { box-shadow: 0 0 0 2px #fff; }
.podium { display: flex; align-items: center; gap: 12px; background: #fff6dc; border-radius: 16px; padding: 16px; font-weight: 800; font-size: 17px; }
.podium .ic { width: 32px; height: 32px; color: #e0a000; }
.ranking { margin-top: 12px; }
.rrow { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #eef1f6; font-weight: 700; }
.rrow b { width: 24px; }
.rrow > span:not(.av) { flex: 1; }
.rrow em { font-style: normal; color: var(--mut); }
.rrow.me { background: #eef3ff; border-radius: 12px; }

.lobbyfoot .btn, .titlescr .btn { width: 100%; }

/* Weltkarten füllen den Bildschirm */
.wcgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.wc { position: relative; border: 0; border-radius: 22px; overflow: hidden; background-size: cover; background-position: center; cursor: pointer; text-align: left; color: #fff; padding: 0; box-shadow: 0 6px 18px rgba(20,30,60,.14); transition: transform .15s; }
.wc:active { transform: scale(.97); }
.wc.closed { filter: grayscale(1); opacity: .6; }
.wctag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 11px; font-weight: 800; border-radius: 99px; padding: 4px 9px; }
.wclock { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 99px; background: #fff; color: var(--ink); display: grid; place-items: center; }
.wclock .ic { width: 15px; height: 15px; }
.wcicon { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 46%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.wcicon svg { width: 100%; height: 100%; display: block; }
.wcfoot { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 12px; background: linear-gradient(transparent, rgba(10,16,32,.78)); }
.k-kanten .wcfoot, .k-schieben .wcfoot { background: linear-gradient(transparent, rgba(255,255,255,.95)); color: var(--ink); }
.wcname { font-weight: 900; font-size: 17px; }
.wcsub { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; opacity: .92; margin: 2px 0 6px; }
.wcsub .ic { width: 13px; height: 13px; }
.wc .bar { background: rgba(255,255,255,.35); }
.k-kanten .bar, .k-schieben .bar { background: #e1e6f0; }

/* Levelpfad */
.mapscr { position: relative; padding-bottom: 0; }
.mapscr > .top { position: relative; z-index: 2; }
.mapbg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(14px) saturate(1.1); transform: scale(1.15); }
.mapbg::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); }
.mapbg.logic { filter: none; transform: none; }
.mapbg.logic::after { display: none; }
.mapscroll { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; margin: 0 -16px; scrollbar-width: none; }
.mapscroll::-webkit-scrollbar { display: none; }
.map { position: relative; margin: 0 16px; }
.mappath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mappath path { fill: none; stroke-linecap: round; }
.pedge { stroke: rgba(20,30,60,.16); stroke-width: 40; transform: translateY(5px); }
.pbase { stroke: #fff; stroke-width: 32; }
.pdone { stroke: #ffd24a; stroke-width: 32; }
.pdots { stroke: rgba(29,36,51,.22); stroke-width: 5; stroke-dasharray: 1 16; }
.node { position: absolute; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 99px; border: 0; background: #fff; color: var(--blue); box-shadow: 0 0 0 4px var(--blue), 0 8px 16px rgba(20,30,60,.22); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; z-index: 1; }
.node b { font-size: 24px; font-weight: 900; line-height: 1; }
.node small { font-size: 10.5px; font-weight: 800; opacity: .75; }
.node.done { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 16px rgba(20,30,60,.22); }
.node.locked { background: #e6eaf2; color: #9aa3b5; box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(20,30,60,.12); cursor: default; }
.node.locked .ic { width: 22px; height: 22px; }
.node.cur { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.nstars { position: absolute; bottom: -24px; display: flex; gap: 0; align-items: flex-end; }
.nstars .ic { width: 27px; height: 27px; color: #fff; filter: drop-shadow(0 2px 2px rgba(20,30,60,.3)); }
.nstars .ic:nth-child(2) { width: 33px; height: 33px; margin-bottom: 5px; }
.nstars .ic svg path { stroke: #d5dbe7; stroke-width: 1.5; }
.nstars .ic.on { color: #ffc21a; }
.nstars .ic.on svg path { stroke: #e09a00; }
.node { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.newtag { position: absolute; z-index: 1; background: #1d2433; color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.goal { position: absolute; margin: -26px 0 0 -26px; width: 52px; height: 52px; border-radius: 16px; background: #ffc21a; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.goal .ic { width: 28px; height: 28px; }

/* Uhr: orange über der Richtzeit, rot blinkend ab der doppelten Zeit */
.timer { transition: background .3s, color .3s; }
.timer.warn { background: #fff0d6; color: #c26a00; }
.timer.late { background: #ffe1e4; color: #e0283d; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { background: #e0283d; color: #fff; } }

/* Gewonnen */
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.bigstars { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.bigstars .ic { width: 52px; height: 52px; color: #e1e6f0; transform: scale(0); animation: starpop .45s cubic-bezier(.3,1.6,.5,1) forwards; }
.bigstars .ic:nth-child(2) { width: 64px; height: 64px; margin-top: -10px; }
.bigstars .ic.on { color: #ffc21a; filter: drop-shadow(0 4px 6px rgba(224,160,0,.4)); }
@keyframes starpop { to { transform: scale(1); } }
.unl { display: flex; align-items: center; justify-content: center; gap: 8px; background: #e9f9ef; color: #13824a; border-radius: 12px; padding: 10px; margin-top: 12px; font-weight: 600; }
.unl .ic { width: 16px; height: 16px; }
.btnrow { display: flex; gap: 8px; }
.btnrow .btn { flex: 1; }
.wincard.left { text-align: left; }
.wincard .sec { display: flex; align-items: center; gap: 6px; }
.wincard .sec .ic { width: 14px; height: 14px; }

/* Einstellungen */
.setrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; font-weight: 700; }
.setrow span { display: flex; align-items: center; gap: 8px; }
.toggle { width: 52px; height: 30px; border-radius: 99px; border: 0; background: #d5dbe7; position: relative; cursor: pointer; transition: background .2s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: #22b56a; }
.toggle.on i { left: 25px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; background: var(--soft); color: var(--ink); border-radius: 99px; padding: 8px 13px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.chip.on { background: var(--blue); color: #fff; }
.chips.ro .chip { cursor: default; }
.chips.ro .chip:not(.on) { opacity: .5; }

/* Duell */
.duelhero { display: flex; gap: 12px; align-items: flex-start; background: #eef3ff; border-radius: 16px; padding: 14px; line-height: 1.45; font-weight: 500; margin-bottom: 16px; }
.duelhero .ic { width: 28px; height: 28px; color: var(--blue); }
.setline { margin-top: 10px; }
.setline > span { display: block; font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.cnum.pop { animation: cpop .5s ease-out; }
@keyframes cpop { from { transform: scale(1.6); opacity: .3; } }
.race { display: grid; grid-template-columns: 1fr; gap: 5px 12px; margin: -6px 0 12px; background: #f5f7fb; border-radius: 14px; padding: 8px 10px; }
.race.two { grid-template-columns: 1fr 1fr; }
.rr { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; min-width: 0; }
.rr .rn { width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); }
.rr.me .rn { color: var(--ink); }
.seg { flex: 1; display: flex; gap: 3px; }
.seg i { flex: 1; height: 10px; border-radius: 4px; background: #dfe4ee; transition: background .3s; }
.rr b { min-width: 28px; text-align: right; font-size: 12px; }
.rr b .ic { width: 16px; height: 16px; color: #22b56a; }

.mapscr.k-leitung .title { color: #fff; }
.race .rr .seg i { height: 12px; }

/* Duell-Lobby */
.lobby { background: linear-gradient(180deg, #eef3ff 0%, #f6f1ff 55%, #fff4ec 100%); padding-bottom: 0; }
.lscroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; display: flex; flex-direction: column; gap: 12px; }
.lscroll::-webkit-scrollbar { display: none; }
.lobby .lobbyfoot { padding: 10px 0 calc(env(safe-area-inset-bottom) + 14px); margin: 0; }
.codecard { background: linear-gradient(135deg, #2f6bff, #7a4dff); color: #fff; border-radius: 22px; padding: 16px; text-align: center; box-shadow: 0 10px 24px rgba(47,107,255,.3); }
.codecard .clabel { color: rgba(255,255,255,.8); }
.ctiles { display: flex; justify-content: center; gap: 8px; margin: 8px 0 10px; }
.ctiles span { width: 52px; height: 62px; border-radius: 14px; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 34px; font-weight: 900; box-shadow: inset 0 -4px 0 #d9e2ff; }
.codecard .chint { color: rgba(255,255,255,.85); font-size: 13px; }
.lcard { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 4px 14px rgba(20,30,60,.06); }
.lhead { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.lhead .ic { width: 18px; height: 18px; color: var(--blue); }
.lhead small { margin-left: auto; color: var(--mut); font-weight: 600; font-size: 12px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.pslot { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; position: relative; min-width: 0; }
.pslot span:not(.av) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pslot em { position: absolute; top: -6px; right: 4px; font-style: normal; font-size: 9.5px; background: #ffc21a; color: #1d2433; border-radius: 99px; padding: 1px 6px; font-weight: 800; }
.pslot.me .av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }
.pslot.off { opacity: .4; }
.pslot.empty { color: #b3bccd; }
.av.ghost { width: 46px; height: 46px; background: transparent; border: 2px dashed #d5dbe7; color: #c3cad8; }
.av.ghost .ic { width: 20px; height: 20px; }
.slabel { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 8px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mtile { border: 0; background: #f5f7fb; border-radius: 16px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s, background .15s; }
.mtile.on { background: #eef3ff; box-shadow: inset 0 0 0 3px var(--blue); color: var(--blue); }
.mtile:disabled { cursor: default; }
.mtile:disabled:not(.on) { opacity: .55; }
.mimg, .mq { width: 100%; aspect-ratio: 1.3; border-radius: 10px; overflow: hidden; background: center/cover; }
.mimg svg { width: 100%; height: 100%; display: block; }
.mq { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mq i { display: block; background: center/cover; overflow: hidden; }
.mq i svg { width: 100%; height: 100%; display: block; }
.srow { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; margin-top: 12px; }
.seg2 { display: flex; background: #f1f3f8; border-radius: 14px; padding: 4px; gap: 4px; }
.seg2 button { flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 8px 4px; font-weight: 800; font-size: 12.5px; color: var(--mut); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seg2 button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(20,30,60,.12); }
.seg2.num button { font-size: 18px; justify-content: center; }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 5px; border-radius: 2px; background: #d5dbe7; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 12px; }
.seg2 button.on .bars i.f { background: var(--blue); }
.seg2 button .bars i.f { background: #9aa6bd; }
.rtrack { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 2px; scrollbar-width: none; }
.rline { position: absolute; left: 30px; right: 30px; top: 32px; height: 4px; background: repeating-linear-gradient(90deg, #c9d3e6 0 8px, transparent 8px 14px); }
.rstep { position: relative; flex: 1; min-width: 54px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rthumb { position: relative; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #f1f3f8; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(20,30,60,.15); }
.rthumb > i { position: absolute; inset: 0; }
.rthumb svg { width: 100%; height: 100%; display: block; }
.rthumb b { position: absolute; left: 3px; top: 3px; background: #1d2433; color: #fff; border-radius: 99px; width: 18px; height: 18px; font-size: 11px; display: grid; place-items: center; }
.rstep small { font-size: 11px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.goalstep .rthumb { background: #ffc21a; display: grid; place-items: center; color: #fff; }
.goalstep .rthumb .ic { width: 28px; height: 28px; }
.rstep { min-width: 0; }
.rthumb { width: 100%; max-width: 52px; height: auto; aspect-ratio: 1; }
.rline { top: 26px; }

/* Lautstärke */
.vol { margin-top: 12px; }
.vlab { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.vlab .ic { width: 18px; height: 18px; color: var(--blue); }
.vlab b { margin-left: auto; color: var(--mut); font-size: 13px; }
.vol input { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--v), #e1e6f0 var(--v)); outline: none; }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(20,30,60,.3); cursor: pointer; }
.vol input::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(20,30,60,.3); }
.dim { opacity: .4; pointer-events: none; }
.gearbtn .ic { width: 20px; height: 20px; }
.mapscr.k-leitung .gearbtn { background: rgba(255,255,255,.9); }

/* Einmaleins */

.wc.wide { grid-column: 1 / -1; background: linear-gradient(120deg, #ffb400, #ff7a45 55%, #ff4d5e); }
.mxbig { position: absolute; inset: 8px 12px 46px 45%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mxbig i { font-style: normal; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 15px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.k-mathe .wcfoot { background: none; }
.mathe { background: linear-gradient(180deg, #fff7e6, #fff); }
.mgrid2 { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; }
.mt { border: 0; border-radius: 20px; background: var(--c); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.15), 0 8px 16px rgba(20,30,60,.15); position: relative; overflow: hidden; transition: transform .1s; }
.mt:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.mt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.28), transparent 45%); }
.mt b { font-size: 30px; font-weight: 900; }
.mt small { font-size: 11px; font-weight: 700; opacity: .9; }
.mt.all { grid-column: span 2; }
.mstars { display: flex; margin-top: 4px; }
.mstars .ic { width: 17px; height: 17px; color: rgba(255,255,255,.4); }
.mstars .ic.on { color: #fff3b0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.mtip { display: flex; gap: 8px; align-items: flex-start; background: #fff6dc; border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; color: var(--ink); font-weight: 600; font-size: 14px; text-align: left; }
.mtip .ic { width: 18px; height: 18px; color: #e0a000; }
.glist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gitem { display: flex; align-items: center; gap: 12px; border: 0; background: #f5f7fb; border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; color: var(--ink); }
.gitem.main { background: #eef3ff; box-shadow: inset 0 0 0 2px var(--blue); }
.gitem b { display: block; font-size: 15px; }
.gitem small { color: var(--mut); font-weight: 600; font-size: 12px; }
.gitem > span:nth-child(2) { flex: 1; }
.gic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--blue); flex: none; }
.gic .ic { width: 22px; height: 22px; }
.gst { display: flex; }
.gst .ic { width: 14px; height: 14px; color: #d5dbe7; }
.gst .ic.on { color: #ffc21a; }
.mpic { width: min(70%, calc(100dvh - 560px)); min-width: 150px; aspect-ratio: 1; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--line); padding: 3px; border-radius: 14px; transition: gap .4s, padding .4s; flex: none; }
.mpic.full { gap: 0; padding: 0; overflow: hidden; }
.mp { position: relative; border-radius: 6px; background: #f5f7fb; display: grid; place-items: center; color: #c3cad8; font-weight: 900; font-size: 22px; overflow: hidden; }
.mp .pi { position: absolute; inset: 0; background-repeat: no-repeat; }
.mpic.full .mp { border-radius: 0; }
.mtask { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.mqq { font-size: 40px; text-align: center; font-weight: 900; letter-spacing: -.01em; }
.mqq.small { font-size: 18px; font-weight: 800; text-align: center; }
.hole { display: inline-grid; place-items: center; min-width: 64px; height: 56px; border-radius: 14px; background: #eef3ff; color: var(--blue); box-shadow: inset 0 0 0 3px var(--blue); vertical-align: middle; }
.mopts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mo { border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 #dfe4ee; padding: 16px; font-size: 28px; font-weight: 900; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mo:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 #dfe4ee; }
.mo.right, .hb.right, .mc.right { background: #22b56a; color: #fff; box-shadow: 0 4px 0 #168a4f; }
.mo.wrongb { background: #ff4d5e; color: #fff; box-shadow: 0 4px 0 #c22a3a; }
.mopts.two .mo { font-size: 18px; }
.mo.yes .ic, .mo.no .ic { width: 22px; height: 22px; }
.mo.yes { color: #13824a; } .mo.no { color: #c22a3a; }
.msub { color: var(--mut); font-weight: 700; font-size: 13px; }
.dotg { max-width: 100%; height: auto; }
.hopgrid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hb { border: 0; border-radius: 99px; aspect-ratio: 1.3; background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 #dfe4ee; font-size: 20px; font-weight: 900; color: var(--ink); cursor: pointer; }
.hopline { display: flex; gap: 6px; }
.hopline span { width: 46px; height: 36px; border-radius: 10px; background: #f1f3f8; display: grid; place-items: center; font-weight: 900; color: #b3bccd; }
.hopline span.next { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.hopline span.done { background: #22b56a; color: #fff; }
.memo { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mc { position: relative; border: 0; height: 74px; border-radius: 16px; cursor: pointer; background: transparent; perspective: 400px; padding: 0; }
.mc span { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .3s; font-weight: 900; font-size: 20px; }
.mc .back { background: linear-gradient(135deg, #2f6bff, #7a4dff); color: rgba(255,255,255,.5); }
.mc .back .ic { width: 26px; height: 26px; }
.mc .face { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); transform: rotateY(180deg); }
.mc.up .back { transform: rotateY(180deg); }
.mc.up .face { transform: rotateY(0); }
.mc.right .face { background: #22b56a; color: #fff; box-shadow: none; }
.blitzbar { width: 70%; height: 6px; border-radius: 99px; background: #e1e6f0; overflow: hidden; }
.blitzbar i { display: block; height: 100%; background: #ffb400; animation: blitz 4s linear forwards; }
@keyframes blitz { from { width: 100%; } to { width: 0; } }
.mexp { position: absolute; inset: -8px; background: rgba(255,255,255,.96); display: grid; place-items: center; z-index: 5; border-radius: 18px; animation: fade .2s; }
.mexpc { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mexpt { font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.mexpr { font-size: 30px; font-weight: 900; }
.mexpr b { color: #22b56a; }
.mexps { color: var(--mut); font-weight: 700; }
.mexpc .btn { min-width: 180px; }

/* Übersicht Spielen */
.hub { gap: 0; }
.hub .sec { display: flex; align-items: center; gap: 6px; }
.hub .sec .ic { width: 15px; height: 15px; }
.hc { position: relative; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; text-align: left; color: #fff; padding: 0; box-shadow: 0 6px 18px rgba(20,30,60,.14); }
.hmathe { flex: 1.1; min-height: 120px; background: linear-gradient(120deg, #ffb400, #ff7a45 55%, #ff4d5e); }
.hmathe .mxbig { inset: 12px 14px 14px 44%; }
.hfoot { position: absolute; left: 14px; bottom: 12px; right: 50%; }
.hpuzz .hfoot { right: 14px; padding-top: 30px; left: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(10,16,32,.8)); }
.hrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; flex: .45; min-height: 70px; }
.hc.soon { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; color: var(--ink); background: #f5f7fb; box-shadow: none; cursor: default; }
.hc.soon b { font-size: 22px; font-weight: 900; color: #b3bccd; }
.hc.soon span { font-weight: 800; color: var(--mut); font-size: 14px; }
.hc.soon em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; background: #fff; color: var(--mut); border-radius: 99px; padding: 3px 8px; }
.hpuzz { flex: 1.4; min-height: 150px; background: #1d2433; }
.hcoll { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; }
.hcoll i { background: center/cover; overflow: hidden; }
.hcoll i svg { width: 100%; height: 100%; display: block; }
.hprog { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--line); }
.hprog > .ic { width: 26px; height: 26px; color: var(--blue); }
.hprog > .ic:last-child { width: 18px; height: 18px; transform: rotate(180deg); color: var(--mut); }
.hprog > span:not(.ic) { flex: 1; }
.hprog b { display: block; font-size: 16px; }
.hprog small { color: var(--mut); font-weight: 600; }

/* Fortschritt */
.prog { background: linear-gradient(180deg, #eef3ff, #fff); }
.pscroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -16px; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.pscroll::-webkit-scrollbar { display: none; }
.pcard { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 4px 14px rgba(20,30,60,.06); }
.phead { display: flex; align-items: center; gap: 14px; }
.pname input { border: 0; font: inherit; font-size: 22px; font-weight: 900; width: 100%; outline: none; border-bottom: 2px dashed transparent; padding: 0; }
.pname input:focus { border-bottom-color: var(--blue); }
.pname small { color: var(--mut); font-weight: 600; }
.pnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pnums div { background: #fff; border-radius: 16px; padding: 12px 10px; box-shadow: 0 4px 14px rgba(20,30,60,.06); }
.pnums b { display: block; font-size: 22px; font-weight: 900; }
.pnums small { color: var(--mut); font-weight: 600; font-size: 11.5px; line-height: 1.25; display: block; }
.pgood, .pinfo { display: flex; gap: 12px; align-items: center; font-weight: 600; line-height: 1.4; }
.pgood { background: #e9f9ef; color: #135c36; }
.pgood > .ic { width: 30px; height: 30px; color: #22b56a; }
.pinfo > .ic { width: 26px; height: 26px; color: var(--blue); }
.prow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1f3f8; }
.pchip2 { width: 42px; text-align: center; color: #fff; font-weight: 900; font-size: 13px; border-radius: 99px; padding: 4px 0; flex: none; }
.pbar { flex: 1; height: 10px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 99px; }
.pacc { width: 40px; text-align: right; font-weight: 800; font-size: 13px; }
.pavg { width: 46px; text-align: right; font-weight: 700; font-size: 12.5px; color: var(--mut); }
.ptr { width: 22px; height: 22px; display: grid; place-items: center; }
.ptr .ic { width: 18px; height: 18px; }
.ptr.good { color: #22b56a; } .ptr.bad { color: #ff4d5e; } .ptr.same { color: #b3bccd; }
.pnone { flex: 1; color: #b3bccd; font-weight: 600; font-size: 13px; }
.plegend { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); font-weight: 600; margin-top: 8px; }
.pweak { display: flex; flex-wrap: wrap; gap: 8px; }
.pweak span { background: #fff1f2; color: #c22a3a; border-radius: 12px; padding: 8px 12px; font-weight: 900; font-size: 17px; }
.pweak small { display: block; font-size: 11px; font-weight: 700; color: #e07a85; }

/* Einmaleins: Versuche, Zahlenfeld */
.tries { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.tries i { width: 10px; height: 10px; border-radius: 99px; background: #e1e6f0; }
.tries i.on { background: #ffb400; }
.tries span { margin-left: 4px; }
.hole.typing { background: #fff; color: var(--ink); }
.hole.ok { background: #22b56a; color: #fff; box-shadow: none; }
.hole.bad { background: #ff4d5e; color: #fff; box-shadow: none; }
.pad { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad button { border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 #dfe4ee; font-size: 26px; font-weight: 900; color: var(--ink); padding: 10px 0; cursor: pointer; display: grid; place-items: center; }
.pad button:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 #dfe4ee; }
.pad .pdel .ic { width: 26px; height: 26px; color: var(--mut); }
.pad .pok { background: #22b56a; color: #fff; box-shadow: 0 4px 0 #168a4f; }
.pad .pok .ic { width: 28px; height: 28px; }
.g-luecke .mqq { font-size: 34px; }
.skipmsg { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; background: #1d2433; color: #fff; border-radius: 16px; padding: 14px; font-weight: 700; animation: up .25s ease-out; }
.skipmsg .ic { width: 20px; height: 20px; color: #ffc21a; }
.blitzbar i { animation-duration: 10s; }
.mpic { width: min(62%, calc(100dvh - 600px)); min-width: 130px; }

.bverd { display: flex; align-items: center; gap: 8px; font-weight: 800; border-radius: 12px; padding: 8px 12px; }
.bverd .ic { width: 18px; height: 18px; }
.bverd.ok { background: #e9f9ef; color: #13824a; }
.bverd.no { background: #ffe8ea; color: #c22a3a; }
.bverd.late { background: #fff0d6; color: #c26a00; }
.bask { font-weight: 800; color: var(--mut); }
.g-blitz .mqq { font-size: 34px; }

.hdiv { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; background: linear-gradient(120deg, #2f6bff, #14b3c9); }
.hdiv b { font-size: 30px; font-weight: 900; line-height: 1; }
.hdiv span { font-weight: 900; font-size: 16px; }
.hdiv small { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; opacity: .95; }
.hdiv small .ic { width: 12px; height: 12px; }
.mathe.div { background: linear-gradient(180deg, #e8f6ff, #fff); }
.mathe.div .mt b { font-size: 28px; }

.padwrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .25s; }
.padwrap.off { opacity: .35; pointer-events: none; }
.bst { min-height: 36px; width: 100%; display: flex; justify-content: center; align-items: center; }
.g-blitz .mtask, .mtask.g-blitz { gap: 10px; }
.g-blitz .pad button { padding: 7px 0; }
.pacc { width: 48px; white-space: nowrap; }

/* Startbildschirm Knobelwelt */
.logomark { position: relative; flex: none; }
.logomark b { position: absolute; right: -6px; bottom: -4px; width: 30px; height: 30px; border-radius: 99px; background: #ff7a45; color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 900; box-shadow: 0 0 0 3px #fff; }
.logoname { font-size: 36px; }
.herowrap { position: relative; width: min(100%, calc(100dvh - 400px)); aspect-ratio: 1; margin: 18px auto; }
.herowrap .hero { width: 82%; margin: 9%; }
.fchip { position: absolute; z-index: 3; background: var(--c); color: #fff; font-weight: 900; font-size: 17px; padding: 8px 12px; border-radius: 14px; box-shadow: 0 6px 14px rgba(20,30,60,.22), inset 0 -3px 0 rgba(0,0,0,.15); white-space: nowrap; animation: float 3.2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
/* Übersicht: zwei Mathe-Karten, Puzzles etwas kleiner */
.hub .hmathe { flex: 1; min-height: 96px; }
.hub .hmathe .mxbig { inset: 10px 14px 10px 46%; }
.hub .hmathe .mxbig i { font-size: 14px; }
.hdiv2 { margin-top: 10px; background: linear-gradient(120deg, #14b3c9, #2f6bff 60%, #7a4dff); }
.hub .hpuzz { flex: 1.15; min-height: 120px; }
.hub .hmathe { flex: none; height: 128px; min-height: 0; }
.hub .hmathe .mxbig { inset: 12px 12px 12px 48%; gap: 5px; }
.hub .hpuzz { flex: 1; min-height: 130px; max-height: 240px; }
.hub .hprog { margin-top: 12px; }
.hub .hpuzz { max-height: none; }
/* Startbildschirm: Logo als Bild (Buchstaben aus Knete, das O als Weltkugel aus vier Puzzleteilen) */
.logobild { flex-direction: column; gap: 2px; margin-top: 0; }
.logobild img { display: block; width: min(100%, 360px); height: auto; filter: drop-shadow(0 6px 10px rgba(20,30,60,.18)); user-select: none; -webkit-user-drag: none; }
.logobild .logosub { margin-top: 2px; }
.titlescr .herowrap { width: min(100%, calc(100dvh - 520px)); margin: 12px auto; }
/* Handy quer: Logo kleiner, das Bildpuzzle hat dort keinen Platz (vorher fiel es ebenfalls auf null zusammen) */
@media (max-height: 500px) { .logobild img { width: min(100%, 180px); } .titlescr .herowrap { display: none; } }
