/* DeenDuell – Design: Nachtblau, Smaragd, Gold; geometrisches Sternmuster (Ornament, kein Symbol) */
:root {
  --bg: #0B1622;
  --bg2: #10243A;
  --card: #142A42;
  --card2: #1B3654;
  --ink: #EEF4FA;
  --muted: #93A9BF;
  --line: rgba(255,255,255,.08);
  --em: #16C784;
  --em-d: #0E9A64;
  --gold: #F5C04A;
  --gold-d: #C9952A;
  --red: #FF6B6B;
  --r-m: 18px; --r-l: 26px;
  --sh: 0 18px 40px -18px rgba(0,0,0,.6);
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.3,1.5,.5,1);
  --safe-b: max(14px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; background: var(--bg); }
body {
  font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); min-height: 100dvh;
  background:
    radial-gradient(700px 500px at 10% -10%, rgba(22,199,132,.18), transparent 60%),
    radial-gradient(600px 500px at 110% 15%, rgba(245,192,74,.12), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
input { -webkit-user-select: text; user-select: text; }
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: env(safe-area-inset-top) 16px 0; }
#app.enter > * { animation: enter .32s var(--ease) both; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Bausteine ---------- */
.page { padding-bottom: calc(28px + var(--safe-b)); }
.sub-top { display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; }
.sub-top h1 { font-size: 25px; font-weight: 900; letter-spacing: -.02em; }
.back { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--card); display: grid; place-items: center; font-weight: 900; font-size: 19px; box-shadow: inset 0 0 0 1px var(--line); }
.pill { background: var(--card); border-radius: 999px; padding: 7px 12px; font-weight: 900; font-size: 15px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.sound-toggle { cursor: pointer; }
.card { background: var(--card); border-radius: var(--r-l); padding: 22px; box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
.lead { color: var(--muted); font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.stars { font-size: 15px; letter-spacing: 2px; color: #33506E; }
.stars .on { color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: linear-gradient(180deg, #22D893, var(--em)); color: #062A1C; font-weight: 900; font-size: 18px;
  border-radius: var(--r-m); padding: 15px 22px; box-shadow: 0 5px 0 var(--em-d), 0 14px 26px -12px rgba(22,199,132,.6);
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--em-d); }
.btn.ghost { background: var(--card2); color: var(--ink); box-shadow: 0 5px 0 #0D1E31, inset 0 0 0 1px var(--line); }
.btn.wa { background: linear-gradient(180deg, #34D96B, #22B455); color: #fff; box-shadow: 0 5px 0 #178A3F; }

/* ---------- Startseite ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 0 14px; }
.logo { display: block; height: 30px; width: auto; }
@media (max-width: 360px) { .logo { height: 25px; } }
.tag { display: block; font-size: 12.5px; color: var(--muted); font-weight: 800; margin-top: 4px; }
.stats { display: flex; gap: 6px; flex: none; }

.mode { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; transition: transform .15s var(--ease); }
.mode:active { transform: scale(.98); }
.mode b { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.mode small { font-size: 14px; font-weight: 800; opacity: .85; line-height: 1.35; }
.mode-duel {
  padding: 22px 20px 20px; gap: 4px; margin-bottom: 12px;
  background: radial-gradient(400px 200px at 85% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(140deg, #19D18D, #0E9A64 70%, #0B7A52);
  color: #fff; box-shadow: 0 8px 0 #08603F, 0 26px 40px -18px rgba(22,199,132,.7);
}
.mode-duel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%); transform: translateX(-100%); animation: shine 5s ease-in-out 1s infinite; }
.mode-cta { margin-top: 12px; align-self: flex-start; background: #fff; color: #0B7A52; font-weight: 900; border-radius: 999px; padding: 9px 16px; font-size: 15px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.vs { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vs span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: rgba(255,255,255,.95); color: #0B7A52; }
.vs span:last-child { background: var(--gold); color: #3A2A00; }
.vs i { font-style: normal; font-weight: 900; font-size: 22px; color: var(--gold); text-shadow: 0 2px 0 rgba(0,0,0,.25); animation: pulse 1.6s infinite; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modes .mode { padding: 18px 16px; gap: 4px; background: var(--card); box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
.mode-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 8px; background: var(--card2); }
.mode-solo .mode-ico { background: linear-gradient(150deg, #5B9BFF, #3B6FE0); }
.mode-ram .mode-ico { background: linear-gradient(150deg, #FF7AB8, #C2408A); }
.modes .mode b { font-size: 21px; }
.note { margin: 18px 4px 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); line-height: 1.5; }
.legal-links { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 18px 0 calc(16px + var(--safe-b)); }
.legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.legal-links .credit { text-decoration: none; white-space: nowrap; }

/* ---------- Solo ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catcard { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 22px; background: var(--card); box-shadow: var(--sh), inset 0 0 0 1px var(--line); overflow: hidden; }
.catcard::before { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--c); opacity: .18; }
.cat-ico { font-size: 30px; margin-bottom: 6px; }
.catcard b { font-size: 19px; font-weight: 900; }
.catcard small { color: var(--muted); font-weight: 800; font-size: 13px; }
.cat-prog { height: 6px; border-radius: 99px; background: var(--card2); margin-top: 8px; overflow: hidden; }
.cat-prog i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.levels { display: grid; gap: 12px; }
.lvl { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lvl b { flex: 1; font-size: 19px; font-weight: 900; }
.lvl-n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; background: var(--c); color: #0B1622; }
.lvl.done { box-shadow: inset 0 0 0 2px var(--c); }
.lvl.locked { opacity: .5; }
.lvl.locked .lvl-n { background: var(--card2); }

/* ---------- Quiz ---------- */
.qz { height: 100dvh; display: flex; flex-direction: column; padding-bottom: var(--safe-b); }
.qz-top { display: flex; align-items: center; gap: 12px; padding: 10px 0 8px; }
.qz-title { flex: 1; min-width: 0; display: grid; }
.qz-title b { font-size: 17px; font-weight: 900; }
.qz-title small { color: var(--muted); font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-count { font-weight: 900; font-size: 16px; color: var(--gold); background: var(--card); padding: 7px 12px; border-radius: 999px; }
.qz-prog, .qz-timer { flex: none; height: 8px; border-radius: 99px; background: var(--card); overflow: hidden; }
.qz-prog i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 99px; transition: width .4s var(--ease); }
.qz-timer { margin-top: 6px; height: 6px; }
.qz-timer i { display: block; height: 100%; width: 100%; background: var(--gold); border-radius: 99px; transition: width .1s linear; }
.qz-timer.low i { background: var(--red); }
.qz-main { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 16px 0 8px; }
.q-card { background: var(--card); border-radius: var(--r-l); padding: 22px 20px; box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
.q-cat { display: inline-block; font-size: 12.5px; font-weight: 900; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--cc) 22%, transparent); background: rgba(255,255,255,.08); color: var(--ink); margin-bottom: 12px; }
.q-text { font-size: clamp(21px, 6vw, 27px); font-weight: 900; line-height: 1.28; letter-spacing: -.01em; }
.answers { display: grid; gap: 10px; }
.ans {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 58px; padding: 10px 14px; border-radius: var(--r-m);
  background: var(--card2); box-shadow: 0 4px 0 #0D1E31, inset 0 0 0 1px var(--line); font-weight: 800; font-size: 17px; line-height: 1.25;
  animation: enter .3s var(--ease) both; animation-delay: var(--d); transition: transform .1s, background .2s;
}
.ans:active { transform: translateY(3px); }
.ans-l { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: rgba(255,255,255,.08); color: var(--muted); }
.ans:disabled { cursor: default; }
.ans.ok { background: linear-gradient(180deg, #1FD08F, #12A56E); color: #062A1C; box-shadow: 0 4px 0 var(--em-d); animation: pop .35s; }
.ans.ok .ans-l { background: rgba(255,255,255,.35); color: #062A1C; }
.ans.no { background: linear-gradient(180deg, #FF7B7B, #E04B4B); color: #fff; box-shadow: 0 4px 0 #A82F2F; animation: shake .4s; }
.ans.no .ans-l { background: rgba(255,255,255,.25); color: #fff; }
.feedback { background: var(--card); border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
/* nach dem Antworten: nur gewählte + richtige Antwort bleiben stehen, Erklärung rückt darunter */
.qz-main.answered .ans:not(.ok):not(.no) { display: none; }
.feedback.slide-up { animation: slideup .35s var(--ease) both; }
.fb-head { font-weight: 900; font-size: 19px; margin-bottom: 6px; }
.fb-head.good { color: var(--em); }
.fb-head.bad { color: var(--red); }
.fb-info { font-weight: 700; line-height: 1.45; font-size: 15.5px; }
.fb-src { margin: 8px 0 14px; font-size: 13px; font-weight: 900; color: var(--gold); }

/* ---------- Ergebnis ---------- */
.result { padding-top: 18px; }
.res-card { text-align: center; background: var(--card); border-radius: 30px; padding: 26px 20px 20px; box-shadow: var(--sh), inset 0 0 0 1px var(--line); display: grid; gap: 10px; justify-items: center; }
.res-score { display: flex; align-items: baseline; gap: 6px; }
.res-score b { font-size: 72px; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #FFE29A, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-score span { font-size: 26px; font-weight: 900; color: var(--muted); }
.res-card h2 { font-size: 24px; font-weight: 900; }
.res-time { font-weight: 900; color: var(--gold); }
.share-hint { color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1.45; }
.bigstars span { font-size: 48px; line-height: 1; color: #2A4560; display: inline-block; }
.bigstars span.on { color: var(--gold); text-shadow: 0 3px 0 var(--gold-d); animation: starpop .55s var(--spring) backwards; animation-delay: var(--d); }
.res-btns { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; margin: 4px 0; }
.versus > div { background: var(--card2); border-radius: 18px; padding: 12px 8px; display: grid; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.versus > div.win { box-shadow: inset 0 0 0 2px var(--gold), 0 0 30px -8px var(--gold); }
.versus small { font-weight: 900; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.versus b { font-size: 38px; font-weight: 900; }
.versus span { font-size: 13px; font-weight: 800; color: var(--muted); }
.versus > i { font-style: normal; font-weight: 900; color: var(--gold); }
.rev-h { margin: 22px 4px 10px; font-size: 16px; font-weight: 900; color: var(--muted); }
.review { list-style: none; padding: 0; display: grid; gap: 8px; }
.review li { background: var(--card); border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; box-shadow: inset 3px 0 0 var(--em); }
.review li.bad { box-shadow: inset 3px 0 0 var(--red); }
.review b { font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.review span { font-size: 13px; color: var(--muted); font-weight: 700; }
.review i { color: var(--gold); font-style: normal; }

/* ---------- Duell-Start ---------- */
.duel-card { text-align: center; display: grid; gap: 12px; justify-items: center; }
.duel-card h2 { font-size: 24px; font-weight: 900; }
.duel-card p { color: var(--muted); font-weight: 700; line-height: 1.5; }
.vs.big span { width: 58px; height: 58px; font-size: 17px; }
.vs.big i { font-size: 28px; }
.name-form { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
.name-form input { font: inherit; font-size: 20px; font-weight: 900; text-align: center; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 14px; outline: none; }
.name-form input:focus { border-color: var(--em); }

/* ---------- Ramadan ---------- */
.ram-hero { border-radius: var(--r-l); padding: 18px; margin-bottom: 16px; display: grid; gap: 4px;
  background: radial-gradient(300px 160px at 90% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(140deg, #3B1E5C, #7A2E6E 70%, #B1407E); box-shadow: var(--sh); }
.ram-hero b { font-size: 23px; font-weight: 900; }
.ram-hero span { font-weight: 700; opacity: .9; line-height: 1.45; font-size: 14.5px; }
.doors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.door { aspect-ratio: 1; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(160deg, #2A4466, #1B3654); box-shadow: 0 4px 0 #0D1E31, inset 0 0 0 1px rgba(245,192,74,.25); }
.door b { font-size: 20px; font-weight: 900; color: var(--gold); }
.door span { font-size: 10px; font-weight: 900; color: var(--muted); letter-spacing: 0; }
.door .stars { font-size: 9px; letter-spacing: 0; }
.door.done { background: linear-gradient(160deg, #1E5A47, #144434); box-shadow: 0 4px 0 #0A2A20, inset 0 0 0 1px rgba(22,199,132,.4); }
.door.today { box-shadow: 0 4px 0 #0D1E31, 0 0 0 3px var(--gold), 0 0 24px -4px var(--gold); animation: glow 1.8s infinite; }
.door.locked { opacity: .45; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.door.locked b { color: var(--muted); }

/* ---------- Rückmeldungen ---------- */
.toast { position: fixed; left: 50%; bottom: 12%; transform: translateX(-50%); z-index: 50; background: var(--em); color: #062A1C; font-weight: 900; padding: 12px 20px; border-radius: 999px; box-shadow: var(--sh); animation: toast 1.4s forwards; pointer-events: none; white-space: nowrap; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
.pop { animation: pop .35s var(--ease); }
.nope { animation: shake .4s; }

/* ---------- Animationen ---------- */
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes starpop { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.2) rotate(8deg); } 100% { transform: scale(1); } }
@keyframes pulse { 50% { transform: scale(1.15); } }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes glow { 50% { box-shadow: 0 4px 0 #0D1E31, 0 0 0 3px var(--gold), 0 0 34px 0 var(--gold); } }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; } }

@media (max-height: 700px) {
  .qz-main { gap: 12px; padding-top: 10px; }
  .q-card { padding: 16px; }
  .ans { min-height: 52px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Rechtliches ---------- */
.legal { padding-bottom: calc(24px + var(--safe-b)); }
.legal .card { margin-bottom: 12px; -webkit-user-select: text; user-select: text; }
.legal .card h2 { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.legal .card p, .legal .card li { font-size: 15px; line-height: 1.6; font-weight: 600; color: #D5E1EC; }
.legal .card p + p { margin-top: 8px; }
.legal .card a { color: var(--gold); text-decoration: underline; word-break: break-word; }
.legal-intro { background: linear-gradient(135deg, #17463A, var(--card)); }
.legal-intro ul { padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Koran hören ---------- */
.mode-listen { flex-direction: row; align-items: center; gap: 14px; margin-top: 12px; padding: 16px; background: var(--card); box-shadow: var(--sh), inset 0 0 0 1px rgba(245,192,74,.25); }
.mode-listen .mode-ico { margin: 0; background: linear-gradient(150deg, #FFE29A, var(--gold)); flex: none; }
.mode-listen > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.mode-listen b { font-size: 20px; }
.mode-listen .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #3A2A00; font-size: 15px; flex: none; }

.pl-card { position: sticky; top: 0; z-index: 5; display: grid; gap: 8px; padding: 18px; margin-bottom: 14px; border-radius: var(--r-l);
  background: radial-gradient(300px 160px at 90% 0%, rgba(245,192,74,.18), transparent 60%), linear-gradient(160deg, #1B3654, #142A42); box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
.pl-rec { color: var(--gold); font-weight: 900; font-size: 13px; }
.pl-recsel { font: inherit; font-weight: 900; color: var(--gold); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.pl-name { font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.pl-seek { width: 100%; accent-color: var(--gold); height: 24px; }
.pl-time { font-size: 13px; font-weight: 800; color: var(--muted); }
.pl-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.pl-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 900; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
.pl-btn.big { width: 72px; height: 72px; font-size: 28px; background: linear-gradient(180deg, #FFE29A, var(--gold)); color: #3A2A00; box-shadow: 0 5px 0 var(--gold-d), 0 14px 30px -10px rgba(245,192,74,.6); }
.pl-btn:active { transform: scale(.93); }
.pl-btn.loop { opacity: .5; }
.pl-btn.loop.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--gold); }
.pl-hint { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.45; text-align: center; }
.pl-search { width: 100%; font: inherit; font-size: 16px; font-weight: 800; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; outline: none; }
.pl-search:focus { border-color: var(--gold); }
.suras { list-style: none; padding: 0; display: grid; gap: 6px; }
.suras li[hidden] { display: none; }
.sura { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.sura-n { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--card2); color: var(--gold); }
.sura-t { flex: 1; font-weight: 800; font-size: 16px; }
.sura.on { box-shadow: inset 0 0 0 2px var(--gold); }
.sura.on .sura-n { background: var(--gold); color: #3A2A00; }
.eq { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.sura.playing .eq { display: flex; }
.eq i { width: 4px; border-radius: 2px; background: var(--gold); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }

/* Mini-Player: unten fest, auf allen Seiten außer im Quiz */
#mini { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  width: min(528px, calc(100% - 24px)); display: flex; align-items: center; gap: 6px; padding: 8px 8px 10px 10px; border-radius: 20px; overflow: hidden;
  background: rgba(20,42,66,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), inset 0 0 0 1px rgba(245,192,74,.25); }
#mini[hidden], .in-quiz #mini { display: none; }
.mini-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.mini-info > span:last-child { min-width: 0; display: grid; }
.mini-info b { font-size: 15px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info small { font-size: 12px; font-weight: 800; color: var(--muted); }
.mini-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, #FFE29A, var(--gold)); }
.mini-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; flex: none; }
.mini-btn.main { width: 46px; height: 46px; background: var(--gold); color: #3A2A00; font-size: 17px; }
.mini-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.mini-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.has-mini:not(.in-quiz) #app { padding-bottom: 86px; }
.pl-credit { font-size: 11.5px; font-weight: 800; color: #6F8AA6; text-align: center; }

/* Widerspruch Statistik (Datenschutz) */
.optout { margin: 10px 0 4px; padding: 10px 14px; border-radius: 14px; background: var(--card2); }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 800; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--em); flex: none; }
.optout-state { font-size: 13px !important; color: var(--muted) !important; margin-top: 6px !important; }

/* Weiterspielen (offenes Quiz) + letzte Herausforderung */
.resume { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 8px 8px 12px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(245,192,74,.18), rgba(245,192,74,.06)); box-shadow: inset 0 0 0 1.5px rgba(245,192,74,.5); animation: enter .3s var(--ease) both; }
.resume a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.resume a > span:last-child { min-width: 0; display: grid; }
.resume b { font-size: 17px; font-weight: 900; }
.resume small { font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-ico { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #3A2A00; font-size: 16px; }
.resume-x { width: 36px; height: 36px; flex: none; border-radius: 50%; color: var(--muted); font-weight: 900; }
.last-duel { margin-bottom: 14px; display: grid; gap: 4px; text-align: center; }
.last-duel small { color: var(--muted); font-weight: 900; font-size: 13px; }
.last-duel b { font-size: 22px; font-weight: 900; color: var(--gold); }
.last-duel .res-btns { margin-top: 8px; }
.result .sub-top { padding-top: 0; }

/* ---------- 100 von 100 + Bestenliste ---------- */
.mode-100 { flex-direction: row; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px;
  background: radial-gradient(300px 140px at 0% 0%, rgba(245,192,74,.22), transparent 60%), var(--card);
  box-shadow: var(--sh), inset 0 0 0 2px rgba(245,192,74,.45); }
.mode-100 > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.mode-100 b { font-size: 22px; }
.mode-100 .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #3A2A00; font-size: 15px; flex: none; }
.m100 { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 22px; letter-spacing: -.04em;
  color: #3A2A00; background: linear-gradient(150deg, #FFE29A, var(--gold)); box-shadow: 0 4px 0 var(--gold-d); }
.m100.big { width: 96px; height: 96px; border-radius: 26px; font-size: 38px; box-shadow: 0 6px 0 var(--gold-d), 0 20px 40px -14px rgba(245,192,74,.6); }
.btn.gold { background: linear-gradient(180deg, #FFE29A, var(--gold)); color: #3A2A00; box-shadow: 0 5px 0 var(--gold-d), 0 14px 26px -12px rgba(245,192,74,.6); }
.btn.gold:active { box-shadow: 0 1px 0 var(--gold-d); }
.btn:disabled { opacity: .6; }
.h100-card { text-align: center; display: grid; gap: 14px; justify-items: center; }
.h100-card p { color: var(--muted); font-weight: 700; line-height: 1.5; }
.h100-card .h100-best { color: var(--ink); font-weight: 800; }
.h100-best b { color: var(--gold); }
.lb-h { margin: 24px 4px 10px; font-size: 20px; font-weight: 900; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card); border-radius: 14px; padding: 4px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.tab { font: inherit; font-weight: 900; font-size: 15px; color: var(--muted); background: none; border: 0; border-radius: 10px; padding: 10px; cursor: pointer; }
.tab.on { background: var(--card2); color: var(--ink); box-shadow: 0 2px 0 #0D1E31; }
.lb-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.lb-list li { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.lb-list li.me { box-shadow: inset 0 0 0 2px var(--gold); }
.lb-r { font-weight: 900; color: var(--muted); text-align: center; font-size: 16px; }
.lb-n { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-n em { font-style: normal; font-size: 11px; background: var(--gold); color: #3A2A00; border-radius: 6px; padding: 2px 6px; margin-left: 4px; vertical-align: 2px; }
.lb-s { font-weight: 900; font-size: 18px; color: var(--gold); }
.lb-t { font-size: 12.5px; font-weight: 800; color: var(--muted); min-width: 64px; text-align: right; }
.lb-msg, .lb-mine { text-align: center; color: var(--muted); font-weight: 800; padding: 16px 8px; line-height: 1.5; }
.lb-mine b { color: var(--gold); }
.lb-send { width: 100%; display: grid; gap: 8px; }
.lb-done { font-weight: 900; color: var(--em); line-height: 1.5; }
.lb-done b { color: var(--gold); }
.lb-err { color: var(--red); font-weight: 800; font-size: 14px; line-height: 1.4; }

/* ---------- Hintergrundmuster (Bildmarke) ---------- */
/* Konturen der beiden verschränkten D als versetzte Kachel, wandert langsam schräg (nur Transform → flüssig).
   Bei „Bewegung reduzieren“ steht es still (Regel weiter oben). Quelle: deenduell-werkstatt/logo/final/muster.svg */
body { position: relative; z-index: 0; }
body::before {
  content: ''; position: fixed; z-index: -1; pointer-events: none;
  top: -112px; left: -128px; right: -128px; bottom: -112px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='112' viewBox='0 0 128 112'%3E%3Cdefs%3E%3Cg id='m' fill='none' stroke='%23fff' stroke-opacity='.055' stroke-width='1.2' vector-effect='non-scaling-stroke'%3E%3Cpath d='M180 62V138Q180 147.11 173.56 153.56Q167.11 160 158 160H134Q109.15 160 91.57 142.43Q74 124.85 74 100Q74 83.29 81.95 69.87Q86.29 72.2 90.04 75.96Q94.28 80.2 96.71 85.18Q94 92.03 94 100Q94 116.57 105.72 128.28Q117.43 140 134 140H158Q160 140 160 138V62Q160 60 158 60H134Q126.67 60 120.29 62.29Q116.95 57.62 112.67 53.33Q109.21 49.87 105.48 47.02Q118.29 40 134 40H158Q167.11 40 173.56 46.44Q180 52.89 180 62Z' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M20 62Q20 52.89 26.44 46.44Q32.89 40 42 40H66Q90.85 40 108.43 57.57Q126 75.15 126 100Q126 116.71 118.05 130.13Q113.71 127.8 109.96 124.04Q105.72 119.8 103.29 114.82Q106 107.97 106 100Q106 83.43 94.28 71.72Q82.57 60 66 60H42Q40 60 40 62V138Q40 140 42 140H66Q73.33 140 79.71 137.71Q83.05 142.38 87.33 146.67Q90.79 150.13 94.52 152.98Q81.71 160 66 160H42Q32.89 160 26.44 153.56Q20 147.11 20 138Z' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23m' transform='translate(4.50 0.50) scale(0.2750)'/%3E%3Cuse href='%23m' transform='translate(68.50 56.50) scale(0.2750)'/%3E%3C/svg%3E");
  animation: dd-drift 48s linear infinite; will-change: transform;
}
@keyframes dd-drift { to { transform: translate3d(128px, 112px, 0); } }

/* ---------- Gruppen-Duell, Fehler-Training, Abzeichen, Install-Hinweis ---------- */
.modes { grid-template-columns: 1fr 1fr; }
.mode-grp .mode-ico { background: linear-gradient(150deg, #5EEAD4, #0891B2); }
.mode-train .mode-ico { background: linear-gradient(150deg, #FDBA74, #EA580C); }
.modes .mode small { font-size: 13px; }
.mode-badge { position: absolute; top: 12px; right: 12px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  background: #EA580C; color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 0 0 3px var(--card); animation: pulse 1.8s infinite; }
.stats a.pill { color: var(--ink); }

.train-card, .grp-card { text-align: center; display: grid; gap: 12px; justify-items: center; }
.train-card h2, .grp-card h2 { font-size: 23px; font-weight: 900; line-height: 1.25; }
.train-card p, .grp-card p { color: var(--muted); font-weight: 700; line-height: 1.5; }
.train-ico { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 40px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
.grp-kicker { font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #22D3EE; }
.grp-card .grp-me { color: var(--ink); font-size: 17px; }
.grp-card .grp-me b { color: var(--gold); }
.grp-invite { margin-top: 2px; }
.grp-mine li { display: block; padding: 0; }
.grp-mine a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; width: 100%; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { background: var(--card); border-radius: 20px; padding: 16px 12px; text-align: center; display: grid; gap: 6px; justify-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.badge .b-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--card2); filter: grayscale(1); opacity: .35; }
.badge b { font-size: 15px; font-weight: 900; line-height: 1.25; color: var(--muted); }
.badge small { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.35; }
.badge.on { box-shadow: inset 0 0 0 2px rgba(245,192,74,.55), 0 10px 26px -14px rgba(245,192,74,.6); }
.badge.on .b-ico { filter: none; opacity: 1; background: radial-gradient(circle at 35% 30%, #FFE29A, var(--gold) 70%); box-shadow: 0 4px 0 var(--gold-d); }
.badge.on b { color: var(--ink); }

.badge-pop { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 60; display: flex; align-items: center; gap: 12px; width: min(92vw, 380px);
  padding: 12px 16px; border-radius: 20px; background: linear-gradient(140deg, #1B3654, #142A42); color: var(--ink);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), inset 0 0 0 2px rgba(245,192,74,.6); animation: badgein 3.2s var(--ease) forwards; }
.badge-pop .bp-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; flex: none; background: radial-gradient(circle at 35% 30%, #FFE29A, var(--gold) 70%); }
.badge-pop small { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.badge-pop b { font-size: 17px; font-weight: 900; }
@keyframes badgein { 0% { opacity: 0; transform: translate(-50%, -30px) scale(.9); } 10%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -20px); } }

.install { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; padding: 14px 40px 14px 14px; border-radius: var(--r-l);
  background: linear-gradient(140deg, rgba(22,199,132,.16), rgba(245,192,74,.10)), var(--card); box-shadow: var(--sh), inset 0 0 0 1px rgba(22,199,132,.35); }
.inst-ico { font-size: 28px; line-height: 1; margin-top: 2px; }
.inst-txt { display: grid; gap: 6px; }
.inst-txt b { font-size: 16px; font-weight: 900; }
.inst-txt small { font-size: 13.5px; font-weight: 700; color: var(--muted); line-height: 1.45; }
.inst-txt small b { font-size: inherit; color: var(--ink); }
.inst-txt .btn { width: auto; justify-self: start; padding: 10px 16px; font-size: 15px; margin-top: 2px; }
.inst-txt .btn[hidden] { display: none; }
.ios-share { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #0A84FF; color: #fff; font-size: 12px; vertical-align: -3px; }
.inst-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--muted); font-size: 14px; cursor: pointer; }
@media (max-width: 360px) { .pill-total { display: none; } }

/* =====================================================================
   App-Gerüst (Okt. 2026): Tab-Leiste, Safe Areas, Daumen-Layout im Quiz
   ===================================================================== */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --tabh: 64px; }
#app { padding: calc(var(--sat) + 4px) 16px calc(var(--tabh) + var(--sab) + 22px); }
.in-quiz #app { padding-bottom: 0; }
.page { padding-bottom: 6px; }
.has-mini:not(.in-quiz) #app { padding-bottom: calc(var(--tabh) + var(--sab) + 96px); }
#app.enter.push > * { animation: push .3s var(--ease) both; }
@keyframes push { from { opacity: 0; transform: translateX(26px); } }

/* Tab-Leiste */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 6px max(8px, env(safe-area-inset-left)) calc(var(--sab) + 6px) max(8px, env(safe-area-inset-right));
  background: rgba(9,19,30,.88); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 -1px 0 rgba(255,255,255,.07); }
.tab-i { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; border-radius: 16px;
  color: #7F95AB; font-size: 11px; font-weight: 800; letter-spacing: .01em; transition: color .2s; }
.tab-i svg { width: 26px; height: 26px; transition: transform .25s var(--spring); }
.tab-i.on { color: var(--ink); }
.tab-i.on svg { color: var(--em); transform: translateY(-1px) scale(1.06); }
.tab-i.on::before { content: ""; position: absolute; top: 2px; width: 46px; height: 30px; border-radius: 999px; background: rgba(22,199,132,.14); z-index: -1; }
.tab-i:active svg { transform: scale(.9); }
.tab-dot { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: #EA580C; color: #fff;
  font-size: 10.5px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #0B1622; }
.in-quiz #tabs { display: none; }
@media (min-width: 600px) {
  #tabs { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 14px; border-radius: 24px; padding: 6px 8px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.7), inset 0 0 0 1px var(--line); }
  #app { padding-bottom: calc(var(--tabh) + 44px); }
}
#mini { bottom: calc(var(--tabh) + var(--sab) + 10px); }
@media (min-width: 600px) { #mini { bottom: calc(var(--tabh) + 30px); } }

/* Kopfzeilen: große Titel auf Tab-Seiten, kompakte mit Zurück auf Unterseiten */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; min-height: 64px; }
.page-head h1 { font-size: clamp(26px, 7.8vw, 32px); font-weight: 900; letter-spacing: -.025em; line-height: 1.1; }
.page-head .sub { display: block; font-size: 13.5px; font-weight: 800; color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.sub-top h1 { font-size: clamp(20px, 6vw, 25px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top { padding: 12px 0 14px; }
.top .tag { display: none; }

/* Startseite kompakter */
.mode-duel { padding: clamp(16px, 4.6vw, 22px) 18px 18px; }
.mode-duel b { font-size: clamp(24px, 7vw, 28px); }
.vs span { width: clamp(40px, 11vw, 46px); height: clamp(40px, 11vw, 46px); }
.modes .mode { padding: 16px 14px; min-height: 132px; }
.modes .mode b { font-size: clamp(17px, 4.9vw, 20px); line-height: 1.15; }
.mode-ico { width: 44px; height: 44px; font-size: 24px; border-radius: 13px; }
.note { margin-top: 16px; }

/* Installations-Hinweis als schlanke Zeile */
.install { padding: 10px 40px 10px 12px; gap: 10px; align-items: center; }
.inst-ico { font-size: 24px; margin: 0; }
.inst-txt { gap: 3px; }
.inst-txt b { font-size: 15px; }
.inst-txt small { font-size: 12.5px; line-height: 1.4; }
.inst-txt .btn { padding: 8px 14px; font-size: 14px; box-shadow: 0 3px 0 var(--em-d); }

/* Quiz: Frage oben, Antworten unten im Daumenbereich */
.qz { height: calc(100dvh - var(--sat) - 4px); padding-bottom: calc(var(--sab) + 12px); }
.qz-top { padding: 6px 0 8px; }
.qz-top .back { width: 42px; height: 42px; border-radius: 13px; }
.qz-main { justify-content: flex-start; gap: 14px; padding: clamp(10px, 2.6vh, 26px) 0 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.qz-main::-webkit-scrollbar { display: none; }
.q-card { flex: none; padding: clamp(18px, 5vw, 24px) clamp(16px, 4.6vw, 22px); }
.q-text { font-size: clamp(20px, 6.1vw, 28px); }
.answers { margin-top: auto; gap: clamp(8px, 1.3vh, 12px); }
.ans { min-height: clamp(54px, 7.4vh, 64px); font-size: clamp(16px, 4.5vw, 18.5px); padding: 10px 14px; }
.ans-l { width: 34px; height: 34px; }
.feedback { flex: none; border-radius: 24px 24px 20px 20px; padding: 16px 16px 14px; }
.fb-next { margin-top: 2px; }
@media (max-height: 640px) {
  .q-text { font-size: clamp(18px, 5.6vw, 22px); }
  .ans { min-height: 48px; font-size: 15.5px; }
  .qz-main { gap: 10px; }
}

/* Ergebnis: eine klare Hauptaktion, Rest als Zweierreihe */
.res-btns { grid-template-columns: 1fr 1fr; }
.res-btns > * { grid-column: span 1; }
.res-btns > :first-child { grid-column: 1 / -1; }
.res-btns > :last-child:nth-child(even) { grid-column: 1 / -1; }
.res-btns > :not(:first-child) { font-size: 15px; padding: 12px 10px; }
.res-btns > .btn:not(:first-child):not(.wa):not(.gold) { background: var(--card2); color: var(--ink); box-shadow: 0 4px 0 #0D1E31, inset 0 0 0 1px var(--line); }
.res-score b { font-size: clamp(60px, 18vw, 76px); }
.result { padding-top: 6px; }

/* Formulare und Player: nie breiter als der Bildschirm */
.name-form input, .pl-search { width: 100%; min-width: 0; }
.card { padding: clamp(18px, 5vw, 22px); }
.pl-ctrl { gap: 4px; }
.pl-btn { width: clamp(42px, 12.4vw, 52px); height: clamp(42px, 12.4vw, 52px); font-size: clamp(15px, 4.4vw, 18px); }
.pl-btn.big { width: clamp(60px, 17.5vw, 72px); height: clamp(60px, 17.5vw, 72px); font-size: clamp(22px, 7vw, 28px); }
.pl-card { top: var(--sat); }

/* „Ich“-Seite */
.me-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.me-stat { background: var(--card); border-radius: 20px; padding: 14px; display: grid; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.me-stat b { font-size: 26px; font-weight: 900; line-height: 1.1; }
.me-stat small { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.me-stat .ic { font-size: 18px; }
.me-h { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px 10px; }
.me-h h2 { font-size: 19px; font-weight: 900; }
.me-h a { font-size: 14px; font-weight: 900; color: var(--em); }
.me-badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.me-badges span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(18px, 5.4vw, 22px); background: var(--card2); filter: grayscale(1); opacity: .35; }
.me-badges span.on { filter: none; opacity: 1; background: radial-gradient(circle at 35% 30%, #FFE29A, var(--gold) 70%); box-shadow: 0 3px 0 var(--gold-d); }
.me-list { display: grid; gap: 1px; border-radius: 20px; overflow: hidden; margin-bottom: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.me-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--card); font-weight: 800; font-size: 16px; text-align: left; width: 100%; }
.me-row .ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--card2); }
.me-row > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.me-row small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.me-row .chev { color: var(--muted); font-size: 18px; }
.me-row .val { color: var(--muted); font-size: 14px; font-weight: 800; }
.switch-ui { width: 50px; height: 30px; flex: none; border-radius: 999px; background: #2A4560; position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.switch-ui.on { background: var(--em); }
.switch-ui.on::after { transform: translateX(20px); }
.duel-alt { margin-top: 12px; }

/* Countdown-Ring in Duell, Gruppen-Duell und „100 von 100“ (füllt auf großen Handys die Mitte) */
.qz-ring { --p: 1; position: relative; margin: auto; flex: none; width: clamp(92px, 25vw, 128px); aspect-ratio: 1; display: grid; place-items: center; }
.qz-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.qz-ring circle { fill: none; stroke-width: 9; }
.qz-ring .r-bg { stroke: rgba(255,255,255,.07); }
.qz-ring .r-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset .1s linear, stroke .2s; filter: drop-shadow(0 0 10px rgba(245,192,74,.35)); }
.qz-ring b { font-size: clamp(30px, 9vw, 42px); font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.qz-ring.low .r-fg { stroke: var(--red); filter: drop-shadow(0 0 10px rgba(255,107,107,.45)); }
.qz-ring.low b { color: var(--red); animation: pulse .5s infinite; }
@media (max-height: 720px) { .qz-ring { display: none; } }

/* ---------- Tagesfrage + Serie ---------- */
.daily { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px 14px 14px 12px; border-radius: var(--r-l);
  background: radial-gradient(320px 140px at 0% 0%, rgba(245,158,11,.28), transparent 65%), linear-gradient(140deg, #3A2A0E, #2A2212 55%, var(--card));
  box-shadow: var(--sh), inset 0 0 0 2px rgba(245,158,11,.55); transition: transform .15s var(--ease); }
.daily:active { transform: scale(.985); }
.daily-ico { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 26px; font-weight: 900;
  background: linear-gradient(150deg, #FCD34D, #F59E0B); color: #3A2A00; box-shadow: 0 4px 0 #B45309; }
.daily-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.daily-txt b { font-size: 19px; font-weight: 900; }
.daily-txt small { font-size: 13px; font-weight: 800; color: #E7C98F; line-height: 1.35; }
.daily-streak { flex: none; font-weight: 900; font-size: 17px; padding: 8px 11px; border-radius: 999px; background: rgba(0,0,0,.25); color: #8C7A5C; filter: grayscale(1); }
.daily-streak.on { color: #FFD08A; filter: none; box-shadow: inset 0 0 0 1.5px rgba(245,158,11,.6); }
.daily.done { background: linear-gradient(140deg, #173A31, var(--card)); box-shadow: var(--sh), inset 0 0 0 1.5px rgba(22,199,132,.45); }
.daily.done .daily-ico { background: linear-gradient(150deg, #34E3A0, var(--em)); color: #062A1C; box-shadow: 0 4px 0 var(--em-d); }
.daily.done .daily-txt small { color: var(--muted); }

.streak-box { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(245,158,11,.20), rgba(245,158,11,.06)); box-shadow: inset 0 0 0 1.5px rgba(245,158,11,.45); }
.streak-fire { font-size: 34px; line-height: 1; animation: pulse 1.6s infinite; }
.streak-box > span:last-child { display: grid; gap: 2px; }
.streak-box b { font-size: 18px; font-weight: 900; }
.streak-box small { font-size: 13px; font-weight: 800; color: var(--muted); }
.streak-box .cd { color: var(--gold); font-variant-numeric: tabular-nums; }

.tab-dot.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 7px; left: calc(50% + 10px); background: #F59E0B; }
.me-stat.wide { grid-column: 1 / -1; }
.me-stat.wide b small { font-size: 15px; color: var(--muted); font-weight: 800; }
.me-hours .hours { display: flex; gap: 6px; flex-wrap: wrap; }
.hour { font: inherit; font-weight: 900; font-size: 14px; padding: 8px 12px; border-radius: 999px; background: var(--card2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.hour.on { background: var(--em); color: #062A1C; box-shadow: none; }
.me-row:disabled { opacity: .6; }
.toast.long { white-space: normal; width: min(90vw, 380px); text-align: center; line-height: 1.4; border-radius: 18px; bottom: calc(var(--tabh) + var(--sab) + 24px); animation: toast 4.2s forwards; }
