@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --night: #0d0b1f;
  --ultra: #3a2cff;
  --lemon: #ffe45c;
  --orange: #ff7a1a;
  --sky: #43c7ff;
  --mint: #19e0a0;
  --pink: #ff3b8d;
  --white: #fbfbff;
  --bg: var(--ultra);
  --fg: #ffffff;
  --btn-bg: var(--night);
  --btn-fg: #ffffff;
  font-family: "Bricolage", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

/* Dunkle Basis, pro Ansicht nur ein Akzent. Voll leuchten nur Ergebnis und Wisch-Antwort. */
body { --accent: var(--ultra); --fg: #fff; --btn-bg: var(--lemon); --btn-fg: var(--night); --surface: #15141f; --line: rgba(255,255,255,.12); --bg: var(--night); }
body[data-theme="home"] { --accent: #6a5cff; }
body[data-theme="c0"] { --accent: #6a5cff; }
body[data-theme="c1"] { --accent: #ffe45c; }
body[data-theme="c2"] { --accent: #ff7a1a; }
body[data-theme="c3"] { --accent: #43c7ff; }
body[data-theme="wait"] { --accent: #ffe45c; }
body[data-theme="yes"], body[data-theme="hit"] { --bg: var(--mint); --fg: var(--night); --btn-bg: var(--night); --btn-fg: #fff; --accent: var(--night); }
body[data-theme="no"], body[data-theme="miss"] { --bg: var(--pink); --fg: var(--night); --btn-bg: var(--night); --btn-fg: #fff; --accent: var(--night); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  min-height: 100dvh;
  font-weight: 560;
  font-size: 1.05rem;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: calc(100dvh - 64px);
  padding: max(18px, calc(env(safe-area-inset-top) + 16px)) 18px 12px;
  display: flex;
  flex-direction: column;
}
button { font-family: inherit; }
h1, h2, p { margin: 0; }
.small { font-size: .9rem; line-height: 1.4; opacity: .78; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mark { font-size: clamp(2.3rem, 10vw, 3.5rem); font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; line-height: .9; }
.tagline { font-size: 1.1rem; font-weight: 750; margin-top: 6px; opacity: .92; }
.langs { display: flex; gap: 6px; }
.chip { border: 3px solid currentColor; color: inherit; background: transparent; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.dots { display: flex; gap: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid currentColor; display: block; }
.dots i.on { background: currentColor; }

/* Knöpfe */
.btn { display: block; width: 100%; border: 0; border-radius: 999px; padding: 20px 22px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 850; font-size: 1.25rem; letter-spacing: -.005em; cursor: pointer; margin-top: 14px; text-align: center; }
.btn.ghost { background: transparent; color: inherit; border: 3px solid currentColor; padding: 15px 22px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn:active { transform: scale(.98); }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; font-size: .95rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 14px 8px; margin: 8px auto 0; display: block; opacity: .85; }

/* Startseite */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.stat b { display: block; font-size: clamp(2.2rem, 11vw, 3.2rem); font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; line-height: 1; }
.stat span { font-size: .85rem; font-weight: 700; opacity: .85; }
.notice { background: var(--lemon); color: var(--night); border-radius: 20px; padding: 14px 16px; font-weight: 750; margin-bottom: 16px; }
.sheet { background: var(--white); color: var(--night); border-radius: 32px; padding: 24px 22px; margin-top: 22px; }
.sheet h2 { font-size: 2rem; font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; margin-bottom: 14px; }
.howto { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; }
.howto li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: 1.18rem; font-weight: 760; line-height: 1.3; margin-bottom: 14px; }
.howto li::before { content: counter(s); flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--lemon); font-weight: 900; display: grid; place-items: center; font-size: 1.1rem; }
.goal { background: var(--lemon); border-radius: 20px; padding: 14px 16px; font-weight: 850; font-size: 1.12rem; line-height: 1.3; margin-bottom: 14px; }
.scale { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-weight: 750; }
.scale th { text-align: left; font-size: .85rem; font-weight: 700; opacity: .7; padding: 0 10px; }
.scale td { padding: 10px; background: #eceaf8; }
.scale td:first-child { border-radius: 14px 0 0 14px; }
.scale td:last-child { border-radius: 0 14px 14px 0; }
.scale .hit { color: #007a57; font-weight: 900; font-size: 1.1rem; }
.scale .miss { color: #c2185b; font-weight: 900; font-size: 1.1rem; }
.sheet .small { margin-top: 10px; }
.dark { background: var(--night); color: #fff; border-radius: 32px; padding: 22px; margin-top: 18px; }
.dark h2 { font-size: 1.5rem; font-weight: 900; font-stretch: 75%; letter-spacing: -.01em; margin-bottom: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 1rem; }
.row:last-of-type { border: 0; }
.pts-pos { color: var(--mint); font-weight: 900; }
.pts-neg { color: var(--pink); font-weight: 900; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 64px 1fr 44px; gap: 8px; align-items: center; font-size: .9rem; font-weight: 700; }
.track { position: relative; background: rgba(255,255,255,.18); border-radius: 8px; height: 18px; overflow: hidden; }
.fill { background: var(--sky); height: 100%; }
.mark-line { position: absolute; top: 0; bottom: 0; width: 4px; background: #fff; }
textarea { width: 100%; min-height: 84px; border-radius: 16px; border: 0; padding: 12px; font: inherit; font-size: .85rem; background: var(--white); color: var(--night); margin-top: 8px; }
.dark .btn.ghost { margin-top: 10px; }
.dark .chip { color: #fff; }

/* Spielen: Wisch-Karte */
.stage { flex: 1; display: flex; flex-direction: column; }
.deck { flex: 1; display: grid; place-items: center; padding: 6px 0 14px; }
.swipe { position: relative; width: 100%; min-height: 48dvh; background: var(--white); color: var(--night); border-radius: 36px; padding: 30px 26px; display: flex; flex-direction: column; justify-content: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; overflow: hidden; will-change: transform; }
.swipe.dragging { cursor: grabbing; }
.swipe.back { transition: transform .22s ease; }
.claim-big { font-size: clamp(2.4rem, 11.4vw, 4.2rem); font-weight: 850; font-stretch: 78%; line-height: .98; letter-spacing: -.015em; hyphens: auto; text-wrap: balance; overflow-wrap: break-word; }
.tint { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.tint.yes { background: var(--mint); }
.tint.no { background: var(--pink); }
.stamp { position: absolute; top: 24px; font-size: 2.2rem; font-weight: 900; font-stretch: 75%; border: 5px solid var(--night); border-radius: 14px; padding: 2px 14px; opacity: 0; pointer-events: none; background: var(--white); }
.stamp.yes { left: 22px; transform: rotate(-9deg); }
.stamp.no { right: 22px; transform: rotate(9deg); }
.hint { text-align: center; font-weight: 750; font-size: .95rem; opacity: .8; margin-bottom: 10px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.thumb { border: 0; border-radius: 28px; padding: 14px 8px 16px; background: var(--night); color: #fff; font-weight: 850; font-size: 1.05rem; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.thumb .emoji { font-size: 3.1rem; line-height: 1.1; }
.thumb:active { transform: scale(.97); }

/* Sicherheit */
.conf { gap: 0; }
.small-claim { font-size: 1.05rem; font-weight: 700; opacity: .85; line-height: 1.25; }
.verdict { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; line-height: 1; margin: 10px 0 4px; }
.ask { font-size: 1.3rem; font-weight: 800; }
.pct { font-size: clamp(6rem, 34vw, 10rem); font-weight: 900; font-stretch: 75%; letter-spacing: -.05em; line-height: .95; margin-top: 12px; }
.pct small { font-size: .38em; letter-spacing: 0; margin-left: .05em; }
.lbl { font-size: 1.2rem; font-weight: 800; min-height: 1.6em; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; border-radius: 999px; margin: 30px 0 34px; background: linear-gradient(to right, var(--night) var(--p, 0%), rgba(13,11,31,.22) var(--p, 0%)); outline-offset: 8px; touch-action: pan-y; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 66px; height: 66px; border-radius: 50%; background: #fff; border: 7px solid var(--night); }
.slider::-moz-range-thumb { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 7px solid var(--night); }
.stake { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stake div { background: var(--night); color: #fff; border-radius: 22px; padding: 12px 16px; }
.stake span { display: block; font-size: .85rem; font-weight: 700; opacity: .8; }
.stake b { font-size: 2rem; font-weight: 900; font-stretch: 75%; line-height: 1.1; }
.stake .plus b { color: var(--mint); }
.stake .minus b { color: var(--pink); }
.spacer { flex: 1; min-height: 8px; }

/* Ergebnis */
.big-word { font-size: clamp(3.8rem, 19vw, 6.6rem); font-weight: 900; font-stretch: 75%; letter-spacing: -.035em; line-height: .88; margin: 10px 0 12px; }
.points { font-size: clamp(4.4rem, 22vw, 7rem); font-weight: 900; font-stretch: 75%; letter-spacing: -.04em; line-height: 1; }
.points small { font-size: .3em; letter-spacing: 0; font-weight: 800; margin-left: .2em; }
.said { font-size: 1.15rem; font-weight: 750; margin: 8px 0 14px; line-height: 1.3; }
.measure { background: var(--night); color: #fff; border-radius: 26px; padding: 16px 18px; font-weight: 650; line-height: 1.35; }
.measure b { font-weight: 850; }
.measure .small { margin-top: 8px; display: block; }

:focus-visible { outline: 4px solid var(--night); outline-offset: 3px; }
.dark :focus-visible, body[data-theme="home"] :focus-visible, body[data-theme="c0"] :focus-visible { outline-color: var(--lemon); }

footer { max-width: 560px; margin: 0 auto; padding: 6px 20px 28px; font-size: .8rem; line-height: 1.4; color: var(--fg); opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
  body { transition: background-color .3s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe.back { transition: none; }
}

footer p { margin: 0 0 8px; }
footer a { color: inherit; text-underline-offset: 3px; }
footer details { margin: 0 0 8px; }
footer summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
footer details p { margin-top: 6px; }
footer .credit { opacity: .8; font-size: .75rem; }

/* ===== v3: erwachsen, dunkel, mit Bewegung ===== */
body::before { content: ""; position: fixed; inset: -20vmax; z-index: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(40vmax 40vmax at 20% 10%, var(--accent), transparent 70%), radial-gradient(34vmax 34vmax at 90% 85%, var(--accent), transparent 70%); filter: blur(30px); }
body[data-theme="yes"]::before, body[data-theme="hit"]::before, body[data-theme="no"]::before, body[data-theme="miss"]::before { opacity: 0; }
#app, footer { position: relative; z-index: 1; }
.mark { font-weight: 800; letter-spacing: -.03em; }
.tagline { font-weight: 600; opacity: .7; font-size: 1rem; }
.hero { margin: 8px 0 18px; }
.hero-n { display: block; font-size: clamp(5.5rem, 30vw, 9rem); font-weight: 900; font-stretch: 75%; letter-spacing: -.05em; line-height: .9; }
.hero-l { font-weight: 700; opacity: .7; }
.hero-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero-sub span { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 700; }
.btn { box-shadow: 0 10px 40px -10px var(--accent); }
.btn.ghost { border-width: 1.5px; border-color: var(--line); box-shadow: none; }
.chip { border-width: 1.5px; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.sheet, .dark { background: var(--surface); color: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px 20px; margin-top: 14px; }
.sheet > summary, .dark > summary { font-size: 1.35rem; font-weight: 850; font-stretch: 80%; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; }
.sheet > summary::after, .dark > summary::after { content: "+"; font-size: 1.6rem; font-weight: 600; opacity: .7; }
.sheet[open] > summary::after, .dark[open] > summary::after { content: "–"; }
.sheet[open] > summary, .dark[open] > summary { margin-bottom: 14px; }
.howto li::before { background: var(--lemon); color: var(--night); }
.scale td { background: rgba(255,255,255,.06); }
.scale .hit { color: var(--mint); }
.scale .miss { color: var(--pink); }
.goal { color: var(--night); }

.swipe { background: linear-gradient(160deg, #1d1c2b, #121119); color: #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px var(--accent), inset 0 0 0 1px rgba(255,255,255,.04); }
.swipe::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -25%; top: -20%; border-radius: 50%; background: var(--accent); opacity: .35; filter: blur(50px); pointer-events: none; }
.claim-big { position: relative; }
.stamp { border-color: var(--night); color: var(--night); background: #fff; }
.thumb { background: var(--surface); border: 1px solid var(--line); color: #fff; }
.thumb:active { background: #23222f; }

.slider { background: linear-gradient(to right, var(--accent) var(--p, 0%), rgba(255,255,255,.16) var(--p, 0%)); }
.slider::-webkit-slider-thumb { background: #fff; border: 7px solid var(--accent); }
.slider::-moz-range-thumb { background: #fff; border: 7px solid var(--accent); }
.stake div { background: var(--surface); border: 1px solid var(--line); }

.measure { background: var(--night); }
:focus-visible { outline-color: var(--lemon); }
body[data-theme="hit"] :focus-visible, body[data-theme="miss"] :focus-visible, body[data-theme="yes"] :focus-visible, body[data-theme="no"] :focus-visible { outline-color: var(--night); }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
  .big-word { animation: slam .45s cubic-bezier(.2,1.6,.4,1) both; }
  @keyframes slam { from { transform: scale(2.2) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
  .shake { animation: shake .5s ease; }
  @keyframes shake { 20%,60% { transform: translateX(-12px); } 40%,80% { transform: translateX(12px); } }
  .swipe { animation: deal .35s cubic-bezier(.2,1.2,.4,1) backwards; }
  @keyframes deal { from { transform: translateY(40px) rotate(3deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

.levels { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.levels span { font-weight: 700; opacity: .7; margin-right: 4px; }
.pct.word { font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: -.02em; line-height: 1.05; min-height: 2.2em; display: flex; align-items: center; }

footer .links { margin: 0 0 8px; }
footer .links details { display: inline; margin: 0; }
footer .links summary { display: inline; }
footer .links details[open] > p { display: block; margin: 8px 0 0; }

/* ===== Spieltrieb: Rang, Serie, Tages-Karten, Abzeichen ===== */
.rank { margin-top: 14px; }
.rank-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rank-top b { font-size: 1.25rem; font-weight: 850; font-stretch: 80%; }
.flame { background: linear-gradient(90deg, #ff7a1a, #ff3b8d); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .9rem; }
.rank-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.14); margin: 8px 0 6px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lemon), var(--mint)); }
.rank small { opacity: .7; font-weight: 650; }
.slots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 6px; }
.slots i { width: 22px; height: 34px; border-radius: 7px; border: 2px dashed rgba(255,255,255,.3); display: block; }
.slots i.hit { background: var(--mint); border: 2px solid var(--mint); transform: rotate(-4deg); }
.slots i.miss { background: var(--pink); border: 2px solid var(--pink); transform: rotate(4deg); }
.slots i.open { border-style: solid; border-color: var(--lemon); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.badge { background: var(--night); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; }
.badge.up { background: var(--lemon); color: var(--night); }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.2s ease-in-out infinite; }
  @keyframes pulse { 50% { transform: scale(1.025); box-shadow: 0 14px 50px -6px var(--accent); } }
  .badge { animation: pop .5s cubic-bezier(.2,1.6,.4,1) .5s backwards; }
  @keyframes pop { from { transform: scale(0); } }
  .slots i.hit, .slots i.miss { animation: flip .5s ease backwards; }
  @keyframes flip { from { transform: rotateY(90deg) scale(.6); } }
}

/* Abzeichen-Regal */
.shelf .count { opacity: .6; font-weight: 700; font-size: .95rem; margin-left: 8px; }
.shelf > summary { justify-content: flex-start; }
.shelf > summary::after { margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bdg { text-align: center; padding: 12px 6px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18); opacity: .55; }
.bdg.on { opacity: 1; background: linear-gradient(160deg, rgba(255,228,92,.16), rgba(25,224,160,.12)); border: 1px solid rgba(255,228,92,.5); }
.bdg .e { display: block; font-size: 2.1rem; line-height: 1.2; }
.bdg b { display: block; font-size: .82rem; font-weight: 800; line-height: 1.15; margin-top: 2px; }
.bdg small { display: none; font-size: .7rem; opacity: .75; line-height: 1.2; }
.bdg:not(.on) small { display: block; margin-top: 3px; }

.lore { margin-top: 8px; font-style: italic; opacity: .75; font-size: .95rem; line-height: 1.35; }
.story { margin: 0 0 14px; padding: 18px 20px; border-radius: 28px; background: linear-gradient(160deg, rgba(255,228,92,.18), rgba(106,92,255,.25)); border: 1px solid rgba(255,228,92,.35); }
.story h2 { font-size: 1.35rem; font-weight: 850; font-stretch: 80%; margin-bottom: 6px; }
.story p { line-height: 1.4; }
.lore-line { flex-basis: 100%; font-style: italic; font-weight: 650; }

.daily { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 0; padding: 14px 16px; border-radius: 22px; background: linear-gradient(120deg, rgba(25,224,160,.16), rgba(67,199,255,.16)); border: 1px solid rgba(25,224,160,.4); }
.daily b { display: block; font-weight: 850; }
.daily small { opacity: .75; font-weight: 600; }
.daily .go { background: var(--mint); color: var(--night); border-color: var(--mint); white-space: nowrap; }
.daily-res { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }

.daily.duel { background: linear-gradient(120deg, rgba(255,59,141,.16), rgba(255,122,26,.16)); border-color: rgba(255,59,141,.45); }
.daily.duel .go { background: var(--pink); border-color: var(--pink); color: var(--night); }
.vs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin: 10px 0 14px; }
.vs > div { background: var(--night); color: #fff; border-radius: 22px; padding: 14px; }
.vs small { display: block; opacity: .7; font-weight: 700; }
.vs b { display: block; font-size: 1.1rem; margin: 4px 0; letter-spacing: 1px; }
.vs span { font-size: 2.2rem; font-weight: 900; font-stretch: 75%; }

.typecard { margin: 0 0 14px; padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22); display: flex; flex-direction: column; gap: 2px; }
.typecard.on { flex-direction: row; align-items: center; gap: 14px; border-style: solid; border-color: rgba(255,228,92,.5); background: linear-gradient(120deg, rgba(255,228,92,.14), rgba(106,92,255,.2)); }
.typecard .te { font-size: 3rem; line-height: 1; }
.typecard b { display: block; font-size: 1.25rem; font-weight: 850; font-stretch: 80%; }
.typecard p { font-size: .92rem; line-height: 1.3; margin: 2px 0 4px; opacity: .9; }
.typecard small { opacity: .7; font-weight: 600; }
.typecard .chip { align-self: flex-start; }

.brand { display: flex; align-items: center; gap: 8px; }
.thumb-logo { flex: none; width: clamp(2.4rem, 10.5vw, 3.5rem); height: clamp(2.4rem, 10.5vw, 3.5rem); transform: rotate(-8deg); transform-origin: 40% 90%; }
@media (prefers-reduced-motion: no-preference) {
  .thumb-logo { animation: thumbup .7s cubic-bezier(.2,1.6,.4,1) .2s backwards; }
  @keyframes thumbup { from { transform: rotate(35deg) translateY(10px) scale(.6); opacity: 0; } }
}
.brand .mark { font-size: clamp(1.8rem, 8vw, 3rem); }
.langs { flex: none; gap: 4px; }
.langs .chip { padding: 4px 10px; }

.rank small.warn { color: var(--pink); opacity: 1; font-weight: 800; display: block; margin-top: 6px; }
.rank .btn { margin-top: 10px; padding: 14px 20px; font-size: 1.1rem; }

.stamps .bdg { padding: 10px 4px; }
.stamps .bdg b { font-size: .8rem; }

/* Farbwelten, per Rang freigeschaltet */
.skin { display: inline-flex; align-items: center; gap: 6px; }
.skin i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.skin[disabled] { opacity: .5; cursor: not-allowed; }
body[data-skin="dawn"] { --night: #1c0e0a; --surface: #2a1710; }
body[data-skin="dawn"][data-theme="home"], body[data-skin="dawn"][data-theme^="c"], body[data-skin="dawn"][data-theme="wait"] { --accent: #ff7a1a; }
body[data-skin="aurora"] { --night: #06150f; --surface: #0e2219; }
body[data-skin="aurora"][data-theme="home"], body[data-skin="aurora"][data-theme^="c"], body[data-skin="aurora"][data-theme="wait"] { --accent: #19e0a0; }
body[data-skin="storm"] { --night: #080d1a; --surface: #111a30; }
body[data-skin="storm"][data-theme="home"], body[data-skin="storm"][data-theme^="c"], body[data-skin="storm"][data-theme="wait"] { --accent: #43c7ff; }
body[data-skin="gold"] { --night: #0e0b04; --surface: #1c160a; --lemon: #ffd24a; }
body[data-skin="gold"][data-theme="home"], body[data-skin="gold"][data-theme^="c"], body[data-skin="gold"][data-theme="wait"] { --accent: #ffd24a; }

.print-logo { flex: none; height: clamp(2.2rem, 9vw, 2.9rem); width: auto; margin-right: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .print-logo { animation: swing .9s cubic-bezier(.2,1.4,.4,1) .2s backwards; }
  @keyframes swing { from { transform: rotate(-50deg) scale(.7); opacity: 0; } 60% { transform: rotate(6deg); } }
}

.report { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .85rem; font-weight: 700; opacity: .85; }
.report.done { opacity: .7; }
.report .chip { font-size: .8rem; padding: 3px 10px; }

.finger { position: absolute; left: 50%; bottom: 14%; font-size: 2.8rem; pointer-events: none; transform: translateX(-50%); }
.hint.practice, .small.practice { font-weight: 850; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .finger { animation: finger 2.4s ease-in-out .4s infinite; }
  @keyframes finger { 0%, 100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(calc(-50% + 64px)) rotate(14deg); } 50% { transform: translateX(-50%) rotate(0); } 75% { transform: translateX(calc(-50% - 64px)) rotate(-14deg); } }
}

.cols { display: block; }
@media (min-width: 900px) {
  #app { max-width: 1120px; padding-left: 36px; padding-right: 36px; }
  footer { max-width: 1120px; padding-left: 36px; padding-right: 36px; }
  body[data-view="home"] .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
  body[data-view="home"] .col-a { position: sticky; top: 20px; }
  body:not([data-view="home"]) #app { max-width: 860px; }
  body:not([data-view="home"]) footer { max-width: 860px; }
  .swipe { min-height: 44dvh; }
}

.chip.faq { margin-right: 6px; }
.faq-h { margin: 18px 0 14px; font-size: 1.6rem; }
.stage.faq .sheet { margin-bottom: 10px; }
.stage.faq .sheet p { margin: 10px 0 4px; line-height: 1.5; opacity: .9; }

.f-short { display: none; }
@media (max-width: 430px) {
  .f-long { display: none; }
  .f-short { display: inline; }
  .langs { gap: 5px; }
  .langs .chip { padding: 4px 10px; }
  .chip.faq { margin-right: 0; min-width: 34px; }
}

@media (max-width: 430px) {
  .langs { gap: 4px; }
  .langs .chip { padding: 3px 8px; font-size: .82rem; }
  .chip.faq { min-width: 30px; padding: 3px 8px; }
  .brand .mark { font-size: clamp(1.45rem, 6.6vw, 1.8rem); }
  .brand { gap: 6px; }
  .print-logo { height: 1.9rem; }
  .tagline { font-size: .95rem; }
}

.coach { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.28); font-weight: 750; font-size: .92rem; line-height: 1.35; }
.lesson { margin: 14px 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,228,92,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,228,92,.35); }
.lesson b { font-size: 1.05rem; }
.lesson ol { margin: 8px 0 6px; padding-left: 20px; line-height: 1.45; font-weight: 650; }
.lesson small { opacity: .8; font-weight: 700; }

/* Desktop: Logo und Name mittig, Knöpfe rechts daneben */
@media (min-width: 900px) {
  .top { position: relative; justify-content: center; text-align: center; }
  .top .brand { justify-content: center; }
  .top .langs { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
}

/* Backup-Hinweis: schmal statt volle Breite */
.notice { display: block; width: fit-content; max-width: 100%; padding: 7px 14px; border-radius: 999px; font-size: .85rem; margin: 0 0 14px; }
@media (min-width: 900px) { .top ~ .notice, .notice { margin-left: auto; margin-right: auto; } }
.button.notice, button.notice { border: 0; cursor: pointer; font-family: inherit; text-align: left; }

/* ===================================================================
   Apple-Design: ruhig, viel Luft, Systemschrift, Systemfarben,
   hell und dunkel automatisch. Alles Folgende überschreibt oben.
   =================================================================== */
:root { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif; }
* { font-stretch: 100% !important; }
body {
  --bg: #000; --fg: #f5f5f7; --fg2: #a1a1a6; --surface: #1c1c1e; --surface2: #2c2c2e; --line: rgba(84,84,88,.5);
  --seg: rgba(118,118,128,.24); --seg-on: #636366; --seg-on-fg: #fff;
  --ap: #0a84ff; --green: #30d158; --red: #ff453a; --yellow: #ffd60a; --orange: #ff9f0a;
  --btn-bg: var(--ap); --btn-fg: #fff; --night: #000; --mint: var(--green); --pink: var(--red); --lemon: var(--yellow); --accent: var(--ap);
  font-weight: 400; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: light) {
  body { --bg: #f2f2f7; --fg: #1d1d1f; --fg2: #6e6e73; --surface: #fff; --surface2: #f2f2f7; --line: rgba(60,60,67,.18);
    --seg: rgba(118,118,128,.12); --seg-on: #fff; --seg-on-fg: #000; --ap: #007aff; --green: #34c759; --red: #ff3b30; --yellow: #ff9500; --orange: #ff9500; }
}
/* Farbwelten ändern nur noch den Akzent */
body[data-skin="dawn"] { --ap: #ff9f0a; --btn-fg: #000; }
body[data-skin="aurora"] { --ap: #30d158; --btn-fg: #000; }
body[data-skin="storm"] { --ap: #64d2ff; --btn-fg: #000; }
body[data-skin="gold"] { --ap: #ffd60a; --btn-fg: #000; }
body[data-skin] { --night: #000; }
body[data-theme] { --accent: var(--ap); }

/* Ergebnis: ganze Fläche in Systemgrün oder Systemrot */
body[data-theme="hit"], body[data-theme="yes"] { --bg: var(--green); --fg: #03260f; --fg2: rgba(3,38,15,.7); --btn-bg: #03260f; --btn-fg: #fff; --seg: rgba(0,0,0,.12); --seg-on: #03260f; --seg-on-fg: #fff; --surface: rgba(0,0,0,.82); }
body[data-theme="miss"], body[data-theme="no"] { --bg: var(--red); --fg: #fff; --fg2: rgba(255,255,255,.82); --btn-bg: #fff; --btn-fg: #1d1d1f; --seg: rgba(0,0,0,.16); --seg-on: #fff; --seg-on-fg: #1d1d1f; --surface: rgba(0,0,0,.78); }
body[data-theme="hit"] .measure, body[data-theme="yes"] .measure, body[data-theme="miss"] .measure, body[data-theme="no"] .measure { color: #fff; }
body::before { display: none; }

/* Kopf */
.top { margin-bottom: 10px; }
.mark, .brand .mark { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.7rem, 7vw, 2.2rem); }
.tagline { font-size: .95rem; font-weight: 400; color: var(--fg2); opacity: 1; margin-top: 2px; }
.print-logo { height: clamp(1.9rem, 7vw, 2.3rem); }
.langs .chip, .chip { border: 0; background: var(--seg); color: var(--fg); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: .85rem; }
.chip[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-fg); border: 0; }
.chip[disabled] { opacity: .4; }
.dots { gap: 6px; }
.dots i { width: 9px; height: 9px; border: 0; background: var(--seg); }
.dots i.on { background: var(--fg); }

/* Knöpfe */
.btn { border-radius: 16px; padding: 17px 20px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; box-shadow: none; margin-top: 12px; }
.btn.ghost { border: 0; background: var(--seg); color: var(--fg); padding: 15px 20px; }
.btn.pulse { animation: none; }
.linkbtn { color: var(--ap); text-decoration: none; font-weight: 500; }
body[data-theme="hit"] .linkbtn, body[data-theme="miss"] .linkbtn { color: inherit; }

/* Karten: flach, rund, ohne Rahmen */
.sheet, .dark, .stake div, .vs > div, .thumb, .typecard, .daily, .lesson, .story, .measure, .badge, .coach {
  background: var(--surface); color: var(--fg); border: 0; box-shadow: none; border-radius: 20px;
}
.sheet, .dark { padding: 6px 18px; margin-top: 12px; }
.sheet > summary, .dark > summary { font-size: 1.0625rem; font-weight: 600; font-stretch: 100%; letter-spacing: -.01em; padding: 13px 0; }
.sheet[open] > summary, .dark[open] > summary { margin-bottom: 4px; }
.sheet[open], .dark[open] { padding-bottom: 16px; }
.sheet > summary::after, .dark > summary::after { color: var(--fg2); font-size: 1.3rem; opacity: 1; }
.shelf .count { color: var(--fg2); opacity: 1; font-weight: 500; }
.row { border-bottom-color: var(--line); }
.small, .hint, .lore, .rank small, .hero-l, .levels span, .stat span { color: var(--fg2); opacity: 1; }
body[data-theme="hit"] .small, body[data-theme="miss"] .small { color: inherit; opacity: .8; }
.lesson, .typecard, .story, .daily { padding: 16px 18px; margin: 12px 0 0; }
.lesson b, .typecard b, .daily b, .story h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.typecard.on { background: var(--surface); border: 0; }
.typecard { border: 0; }
.daily small, .typecard small, .lesson small { color: var(--fg2); opacity: 1; font-weight: 400; }
.daily .go { background: var(--green); color: #000; border: 0; border-radius: 999px; font-weight: 600; padding: 8px 16px; }
.daily.duel .go { background: var(--orange); color: #000; }
.notice { background: var(--surface); color: var(--yellow); font-weight: 500; padding: 9px 16px; font-size: .9rem; }
.goal { background: var(--seg); color: var(--fg); border-radius: 14px; font-weight: 600; }
.howto li { font-size: 1.0625rem; font-weight: 500; }
.howto li::before { background: var(--ap); color: #fff; width: 30px; height: 30px; font-size: .95rem; font-weight: 600; }
.scale td { background: var(--surface2); }
.scale .hit { color: var(--green); font-weight: 600; }
.scale .miss { color: var(--red); font-weight: 600; }
.coach { background: rgba(0,0,0,.2); color: inherit; font-weight: 500; }
body[data-theme="hit"] .coach, body[data-theme="miss"] .coach { background: rgba(0,0,0,.18); }
.pts-pos { color: var(--green); font-weight: 600; } .pts-neg { color: var(--red); font-weight: 600; }

/* Startseite: große, ruhige Zahl */
.hero-n { font-size: clamp(3rem, 15vw, 4.4rem); font-weight: 700; letter-spacing: -.05em; line-height: .95; }
.hero-l { font-weight: 500; }
.hero-sub span { border: 0; background: var(--seg); color: var(--fg); font-weight: 500; font-size: .85rem; }
.rank-top b { font-size: 1.0625rem; font-weight: 600; }
.flame { background: var(--seg); color: var(--orange); font-weight: 600; }
.rank-bar { height: 6px; background: var(--seg); }
.rank-bar i { background: var(--ap); }
.levels { gap: 6px; }
.levels span { font-weight: 500; }
.slots i, .slots i.open { width: 18px; height: 28px; border: 0; border-radius: 6px; background: var(--seg); }
.slots i.open { outline: 2px solid var(--ap); outline-offset: -2px; background: transparent; }
.slots i.hit { background: var(--green); transform: none; } .slots i.miss { background: var(--red); transform: none; }
.slots i.hit, .slots i.miss { border: 0; }
.bdg { background: var(--surface); border: 0; border-radius: 16px; opacity: .45; }
.bdg.on { opacity: 1; background: var(--surface2); border: 0; }
.bdg b { font-weight: 600; }
.badge { color: var(--fg); font-weight: 600; padding: 7px 14px; }
.badge.up { background: var(--ap); color: #fff; }
.flame, .badge { animation: none; }

/* Spielen */
.swipe { background: var(--surface); color: var(--fg); border: 0; border-radius: 28px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.5); padding: 30px 24px; }
.swipe::before { display: none; }
.claim-big { font-size: clamp(1.75rem, 7.4vw, 2.6rem); font-weight: 700; line-height: 1.13; letter-spacing: -.03em; }
.stamp { border-width: 3px; border-radius: 12px; font-weight: 700; font-size: 1.6rem; }
.thumbs { gap: 12px; }
.thumb { padding: 16px 8px 14px; font-weight: 600; font-size: 1rem; }
.thumb:active { background: var(--surface2); }
.thumb .emoji { font-size: 2.6rem; }
.hint { font-weight: 400; }

/* Sicherheit */
.verdict { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 700; letter-spacing: -.035em; }
.ask { font-size: 1.0625rem; font-weight: 500; color: var(--fg2); }
.pct { font-size: clamp(5rem, 28vw, 8rem); font-weight: 700; letter-spacing: -.06em; }
.lbl { font-size: 1.0625rem; font-weight: 500; color: var(--fg2); }
.slider { height: 8px; margin: 34px 0 38px; background: linear-gradient(to right, var(--ap) var(--p, 0%), var(--seg) var(--p, 0%)); }
.slider::-webkit-slider-thumb { width: 36px; height: 36px; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.slider::-moz-range-thumb { width: 36px; height: 36px; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.stake span { color: var(--fg2); opacity: 1; font-weight: 500; }
.stake b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.stake .plus b { color: var(--green); } .stake .minus b { color: var(--red); }

/* Ergebnis */
.big-word { font-size: clamp(3rem, 15vw, 5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.points { font-size: clamp(3.6rem, 18vw, 5.5rem); font-weight: 700; letter-spacing: -.05em; }
.points small { font-weight: 500; }
.said { font-weight: 500; font-size: 1.0625rem; }
.measure { background: var(--surface); font-weight: 400; padding: 16px 18px; border-radius: 20px; }
.measure b { font-weight: 600; }
.vs span { font-weight: 700; }

/* Fokus, Fußzeile, Formulare */
:focus-visible { outline: 3px solid var(--ap); outline-offset: 2px; }
body[data-theme="hit"] :focus-visible, body[data-theme="miss"] :focus-visible { outline-color: currentColor; }
footer { color: var(--fg2); opacity: 1; }
footer a { color: var(--ap); text-decoration: none; }
body[data-theme="hit"] footer, body[data-theme="miss"] footer { color: inherit; opacity: .8; }
body[data-theme="hit"] footer a, body[data-theme="miss"] footer a { color: inherit; text-decoration: underline; }
textarea { background: var(--surface2); color: var(--fg); border-radius: 12px; }
.report { color: var(--fg2); opacity: 1; font-weight: 400; }
.report .chip { font-size: .8rem; padding: 4px 11px; }
body[data-theme="hit"] .report, body[data-theme="miss"] .report { color: inherit; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .swipe { animation: none; }
  .big-word { animation: none; }
}
.daily.duel { background: var(--surface); }
.typecard { margin-bottom: 18px; }
.levels { margin: 6px 0 12px; }
@media (max-width: 430px) {
  .brand .mark, .mark { font-size: 1.45rem; }
  .print-logo { height: 1.7rem; }
  .langs .chip { padding: 5px 10px; font-size: .8rem; }
  .langs { gap: 4px; }
  .top { gap: 8px; }
  .levels span { flex-basis: 100%; }
  .daily { gap: 10px; }
  .daily .go { padding: 8px 14px; font-size: .9rem; }
}
@media (prefers-color-scheme: light) { .print-logo { filter: invert(1); } body[data-theme="hit"] .print-logo, body[data-theme="miss"] .print-logo { filter: none; } }

/* Abzeichen-Grafiken */
.bi { --c1: #34c759; --c2: #1f8a3b; --tile: #1f8a3b; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; color: #fff;
  background: linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -4px rgba(0,0,0,.35); }
.bi svg { width: 68%; height: 68%; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bi .fillt { fill: var(--tile); }
.bi.c-orange { --c1: #ffb340; --c2: #ff6a00; --tile: #ff8a1f; }
.bi.c-blue { --c1: #4da3ff; --c2: #0a5adf; --tile: #2a78ea; }
.bi.c-purple { --c1: #cf7bff; --c2: #8a3fc2; --tile: #a65bdb; }
.bi.c-pink { --c1: #ff6b8a; --c2: #d1163f; --tile: #e8365c; }
.bi.c-red { --c1: #ff6a5e; --c2: #cf2a20; --tile: #e8473d; }
.bi.c-teal { --c1: #6fd6ff; --c2: #1a8fe0; --tile: #3fb0f0; }
.bi.off { background: var(--seg); color: var(--fg2); box-shadow: none; --tile: var(--surface2); }
.bi.off svg { opacity: .7; }
.bi.sm { width: 24px; height: 24px; border-radius: 7px; vertical-align: middle; box-shadow: none; }
.bdg .bi { margin-bottom: 6px; }
.bdg { opacity: 1; }
.bdg:not(.on) b { color: var(--fg2); }
.badge.up { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; }

/* Symbole und Wesen */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.ic.big { width: 2.6rem; height: 2.6rem; stroke-width: 1.7; }
.ic.down { transform: rotate(180deg); }
.thumb .emoji { display: grid; place-items: center; line-height: 1; }
.thumb[data-v="1"] .ic { color: var(--green); } .thumb[data-v="0"] .ic { color: var(--red); }
.finger .ic.big { width: 3rem; height: 3rem; color: var(--fg); fill: var(--bg); }
.chip .ic { width: 1.2em; height: 1.2em; vertical-align: -.25em; }
.flame .ic { fill: currentColor; stroke: none; }
.badge .ic { width: 1.1em; height: 1.1em; }
.badge .ic[viewBox] { fill: none; }
.notice .ic { color: var(--ap); margin-right: 4px; }
.te { display: grid; place-items: center; }
.cr { width: 92px; height: 92px; flex: none; overflow: visible; }
.typecard.on { padding: 14px 18px 14px 12px; }
.sqs { display: inline-flex; gap: 4px; vertical-align: middle; }
.sq { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sq.h { background: var(--green); } .sq.m { background: var(--red); }
.vs b { letter-spacing: 0; }
.stampi { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; border: 2px dashed var(--fg2); color: var(--fg2); }
.stampi .ic { width: 22px; height: 22px; }
.stampi.on { border: 3px solid var(--ap); color: var(--ap); background: color-mix(in srgb, var(--ap) 12%, transparent); transform: rotate(-8deg); }
.stampi b { font-size: .85rem; font-weight: 800; letter-spacing: .04em; margin: 0; color: inherit; }
.daily b .ic { color: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .cr { animation: bob 3.4s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-4px); } }
  .cr .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
  @keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
  .cr .coin { transform-box: fill-box; transform-origin: center; animation: coinspin 2.6s linear infinite; }
  @keyframes coinspin { 50% { transform: scaleX(.12); } }
}

/* Abzeichen-Wesen */
.bf { --fam: #34c759; display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 20px; background: color-mix(in srgb, var(--fam) 20%, var(--surface2)); }
.bf.c-orange { --fam: #ff9f0a; } .bf.c-blue { --fam: #0a84ff; } .bf.c-purple { --fam: #bf5af2; } .bf.c-pink { --fam: #ff375f; } .bf.c-red { --fam: #ff453a; } .bf.c-teal { --fam: #5ac8fa; }
.cr2 { width: 88%; height: 88%; overflow: visible; }
.bf.off { background: var(--seg); }
.bf.off .cr2 { filter: grayscale(1) brightness(.45) contrast(.9); opacity: .55; }
.bf.sm { width: 30px; height: 30px; border-radius: 9px; vertical-align: middle; }
.bdg .bf { margin-bottom: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .bf:not(.off):not(.sm) .cr2 { animation: bob 3.6s ease-in-out infinite; }
  .bf:not(.off):not(.sm) .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
  .badge.up .bf { animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
}

/* Auf farbiger Fläche (Ergebnis und Sicherheits-Seite) Links und Texte lesbar halten */
body[data-theme="yes"] .linkbtn, body[data-theme="no"] .linkbtn, body[data-theme="hit"] .linkbtn, body[data-theme="miss"] .linkbtn { color: inherit; text-decoration: underline; opacity: .9; }
body[data-theme="yes"] footer, body[data-theme="no"] footer { color: inherit; opacity: .85; }
body[data-theme="yes"] footer a, body[data-theme="no"] footer a { color: inherit; text-decoration: underline; }
body[data-theme="yes"] .small, body[data-theme="no"] .small, body[data-theme="yes"] .ask, body[data-theme="no"] .ask, body[data-theme="yes"] .lbl, body[data-theme="no"] .lbl { color: inherit; opacity: .9; }
body[data-theme="no"], body[data-theme="miss"] { --bg: #dc3a30; --fg2: rgba(255,255,255,.9); }
body[data-theme="yes"], body[data-theme="hit"] { --fg2: rgba(3,38,15,.8); }
@media (max-width: 430px) {
  .brand .mark, .mark { font-size: 1.3rem; white-space: nowrap; }
  .brand { min-width: 0; }
}
@media (max-width: 380px) {
  .brand .mark, .mark { font-size: 1.2rem; }
  .print-logo { height: 1.5rem; }
  .langs { gap: 3px; }
  .langs .chip { padding: 5px 8px; font-size: .74rem; }
  .brand { gap: 5px; }
}
@media (min-width: 381px) and (max-width: 430px) {
  .brand .mark, .mark { font-size: 1.32rem; }
  .langs .chip { padding: 5px 9px; font-size: .78rem; }
}

.beta { display: inline-block; vertical-align: .1em; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--seg); color: var(--ap); font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body[data-theme="hit"] .beta, body[data-theme="miss"] .beta { color: inherit; }
@media (max-width: 430px) { .beta { font-size: .55rem; padding: 2px 6px; margin-top: .25em; } }

/* Kopf auf dem Handy: Titel groß in eigener Zeile, Sprachknöpfe neben dem Untertitel */
@media (max-width: 600px) {
  .top:has(.brand) { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 2px; align-items: center; }
  .top:has(.brand) > div:first-child { display: contents; }
  .top:has(.brand) .brand { grid-column: 1 / -1; grid-row: 1; }
  .top:has(.brand) .brand .mark { font-size: clamp(1.9rem, 8.6vw, 2.4rem); letter-spacing: -.04em; }
  .top:has(.brand) .brand svg, .top:has(.brand) .brand .thumb { width: 2.1rem; height: 2.1rem; }
  .top:has(.brand) .tagline { grid-column: 1; grid-row: 2; margin: 0; }
  .top:has(.brand) .langs { grid-column: 2; grid-row: 2; align-self: start; }
}
