/* Ottenbach-Entdecker · Studio design system (shared palette, fonts & painted/vector art with print kit). */
:root {
  --ink: #1B2A4A;
  --ink2: #2C3F6B;
  --hu: #5A31B6;
  --grey: #56637A;
  --line: #D8E0EC;
  --line-s: #C5D0E0;
  --paper: #FFFBF2;
  --paper2: #FFF5DF;
  --card: #FFFFFF;
  --red: #DF2F3E;
  --yellow: #FFC233;
  --blue: #2478CC;
  --green: #1F9D5C;
  --c: #2478CC;
  --cl: #E4F1FF;
  --cd: #165291;
  --btn-fg: #FFFFFF;
  --btn-tr: rgba(255, 255, 255, .92);
  --r: 22px;
  --r-sm: 16px;
  --shadow: 0 2px 0 rgba(27, 42, 74, .06), 0 10px 26px rgba(27, 42, 74, .07);
  --shadow-lg: 0 3px 0 rgba(27, 42, 74, .08), 0 16px 36px rgba(27, 42, 74, .11);
  --border-card: inset 0 0 0 1.5px rgba(27, 42, 74, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.c-blue   { --c: #2478CC; --cl: #E4F1FF; --cd: #165291 }
.c-teal   { --c: #0F8A8A; --cl: #DCF4F3; --cd: #085E5E }
.c-green  { --c: #1F9D5C; --cl: #DFF5E9; --cd: #146C3E }
.c-red    { --c: #DF2F3E; --cl: #FFE6E8; --cd: #A31B27 }
.c-orange { --c: #DC6014; --cl: #FFECDC; --cd: #9C4007 }
.c-violet { --c: #6E42CA; --cl: #EEE7FF; --cd: #4C2899 }
.c-yellow { --c: #FFC233; --cl: #FFF3CE; --cd: #946200; --btn-fg: #1B2A4A; --btn-tr: #4E3400 }
.c-ink    { --c: #1B2A4A; --cl: #E6EBF3; --cd: #0D162B }

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% -4%, rgba(210, 234, 255, .75) 0, transparent 38%),
    radial-gradient(circle at 96% 2%, rgba(255, 238, 189, .75) 0, transparent 36%);
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.12; letter-spacing: -.01em }
p { margin: 0 }
a { color: inherit }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px }
.skip { position: absolute; left: -9999px }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 100; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-lg) }

/* ---------- bilingual text blocks ---------- */
.btxt { display: block }
.de { display: block }
.tr { display: block; color: var(--hu); font-size: .82em; font-weight: 700; margin-top: .14em; line-height: 1.3 }
h1 .tr, h2 .tr, h3 .tr { font-family: var(--body); letter-spacing: 0; font-size: .56em; font-weight: 700; margin-top: .2em }
.inline-bi .btxt, .inline-bi .de, .inline-bi .tr,
.backlink .btxt, .backlink .de, .backlink .tr,
.sec .btxt, .sec .de, .sec .tr,
.goalbox h4 .btxt, .goalbox h4 .de, .goalbox h4 .tr,
.hint .btxt, .hint .de, .hint .tr,
.wcount .btxt, .wcount .de, .wcount .tr,
.score .btxt, .score .de, .score .tr { display: inline }
.backlink .tr, .sec .tr, .goalbox h4 .tr, .hint .tr, .wcount .tr, .score .tr { margin-left: .42em; margin-top: 0 }
.sec .tr { font-size: .64em }
.tr-in { opacity: .88; font-weight: 800; text-transform: none; letter-spacing: 0 }
.kpi-val .btxt, .kpi-val .de { display: block }
.kpi-val .tr { font-family: var(--body); font-size: .56em; font-weight: 800; margin-top: 2px; line-height: 1.15 }
.art-der { color: #1C5FA8 }
.art-die { color: #C8283A }
.art-das { color: #1E8A5A }
.w-pl { font-weight: 600; color: var(--grey); font-size: .78em }

/* ---------- illustrations & art ---------- */
svg.art { display: block; width: 100%; height: auto }
img.art { display: block; max-width: 100%; height: auto }
img.pic { filter: drop-shadow(0 6px 12px rgba(27, 42, 74, .11)) }
img.pic.scene { border-radius: 14px; filter: none; box-shadow: 0 4px 14px rgba(27, 42, 74, .14) }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block }

/* ---------- top header & responsive navigation ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(7px + var(--safe-t)) max(14px, env(safe-area-inset-left)) 7px max(14px, env(safe-area-inset-right));
  background: rgba(255, 251, 242, .9);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(27, 42, 74, .08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
  min-width: 0;
}
.brand-mark { width: 42px; height: 42px; flex: none; border-radius: 50%; box-shadow: 0 2px 6px rgba(27, 42, 74, .14) }
.brand-name { font-family: var(--head); font-weight: 800; line-height: .94; display: flex; flex-direction: column; font-size: 19px }
.brand-name i { font-style: normal; color: var(--red); font-size: 14.5px; letter-spacing: .01em }

.topnav { display: none }
.top-r { display: flex; align-items: center; gap: 8px; flex: none }
.lang {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 99px;
  padding: 2px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.lang-lbl { display: none; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); padding: 0 8px 0 11px }
@media (min-width: 540px) { .lang-lbl { display: inline } }
.lang button {
  border: 0;
  background: none;
  border-radius: 99px;
  padding: 0 12px;
  font-weight: 900;
  font-size: 13.5px;
  color: var(--ink2);
  min-width: 44px;
  min-height: 44px;
  transition: background .15s, color .15s;
}
.lang button[aria-pressed="true"] { background: var(--hu); color: #fff; box-shadow: 0 2px 6px rgba(90, 49, 182, .28) }
.lang button[data-lang="none"][aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 2px 6px rgba(27, 42, 74, .24) }
.info-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 800;
  font-size: 19px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink2);
  transition: background .15s, transform .1s;
}
.info-btn.on { background: var(--ink); color: #fff; box-shadow: none }

main { display: block; outline: 0; position: relative; z-index: 5 }
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-left)) calc(96px + var(--safe-b)) max(16px, env(safe-area-inset-right));
  animation: rise .2s ease-out both;
}
@media (min-width: 740px) {
  .page { padding-top: 22px; padding-left: 26px; padding-right: 26px }
}

/* Bottom tab bar for phone & tablet portrait */
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px calc(6px + var(--safe-b));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(27, 42, 74, .09);
}
.tabs a {
  flex: 1;
  max-width: 168px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--grey);
  transition: background .15s, color .15s;
}
.tabs svg { width: 24px; height: 24px; fill: currentColor }
.tabs a.on { color: var(--blue); background: #E4F1FF }

/* Wide / iPad Landscape (>= 960px): integrated top navigation, full vertical height */
@media (min-width: 960px) {
  .top { padding-left: 28px; padding-right: 28px; gap: 16px }
  .brand { margin-right: 0 }
  .topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    background: #fff;
    padding: 3px;
    border-radius: 99px;
    box-shadow: inset 0 0 0 1.5px var(--line);
  }
  .topnav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    color: var(--ink2);
    transition: background .15s, color .15s;
  }
  .topnav svg { width: 20px; height: 20px; fill: currentColor }
  .topnav a.on { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(36, 120, 204, .28) }
  .tabs { display: none }
  .page { padding-bottom: calc(40px + var(--safe-b)) }
  body.playing .topnav { opacity: .45; pointer-events: none }
}

body.playing .tabs { display: none }
body.playing .page, body.playing .quiz { padding-bottom: calc(28px + var(--safe-b)) }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; display: none }

/* ---------- tactile buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  padding: 10px 22px;
  min-height: 52px;
  background: var(--c);
  color: var(--btn-fg);
  font-family: var(--head);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 0 var(--cd);
  transition: transform .08s, box-shadow .08s, opacity .2s, filter .15s;
  line-height: 1.12;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cd) }
@media (hover: hover) { .btn:hover { filter: brightness(1.03) } }
.btn:disabled { opacity: .42; box-shadow: 0 4px 0 var(--cd); pointer-events: none }
.btn .tr { color: var(--btn-tr); font-family: var(--body); font-size: .68em; font-weight: 700; margin-top: 1px }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-s), 0 4px 0 var(--line-s);
}
.btn.ghost:active { box-shadow: inset 0 0 0 2px var(--line-s), 0 1px 0 var(--line-s) }
.btn.ghost .tr { color: var(--hu) }
.btn.sm {
  min-height: 44px;
  padding: 7px 16px;
  font-size: 16px;
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--cd);
}
.btn.sm.ghost { box-shadow: inset 0 0 0 2px var(--line-s), 0 3px 0 var(--line-s) }
.btn.big {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 13px 22px;
  min-height: 64px;
  font-size: 21px;
  border-radius: 20px;
  text-align: left;
}
.btn.big .btn-r {
  font-family: var(--body);
  font-weight: 800;
  font-size: .7em;
  background: rgba(255, 255, 255, .22);
  padding: 6px 13px;
  border-radius: 12px;
  text-align: right;
  max-width: 56%;
}
.c-yellow .btn.big .btn-r { background: rgba(27, 42, 74, .11) }
.btn.big .btn-r .tr { font-size: .84em }

.backlink {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink2);
  text-decoration: none;
  padding: 6px 12px 6px 8px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
@media (hover: hover) { .backlink:hover { background: #fff } }

/* ---------- HOME SCREEN ---------- */
.hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--border-card);
  background: #fff;
}
.hero-art { position: relative; overflow: hidden; background: #CBE8FD; line-height: 0 }
.heroimg {
  width: 100%;
  height: auto;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
  transform-origin: 72% 58%;
}
@keyframes kenburns { from { transform: scale(1) } to { transform: scale(1.07) translateX(-1.2%) } }
.hero-txt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px }
.hero-eyebrow {
  display: inline-block;
  align-self: flex-start;
  background: #E4F1FF;
  color: #165291;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 14px;
  line-height: 1.25;
}
.hero-eyebrow .tr { font-size: .92em; text-transform: none; letter-spacing: 0; margin-top: 1px }
.hero-txt h1 { font-size: clamp(25px, 4.4vw, 35px); font-weight: 800 }
.hero-sub { font-weight: 700; font-size: clamp(15px, 2vw, 17px); color: var(--ink2) }
.hero-cta { margin-top: 4px }
.hero-cta .btn.big { margin: 0 }

.onboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--paper);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.onboard-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; line-height: 1.2 }
.onboard-step b {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
  font-family: var(--head); font-size: 14px; display: grid; place-items: center; flex: none;
}
@media (max-width: 560px) {
  .onboard { grid-template-columns: 1fr; gap: 6px }
}

@media (min-width: 740px) {
  .hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
  .hero-art { min-height: 290px }
  .hero-art img.heroimg { width: 100%; height: 100%; object-fit: cover; object-position: 68% center }
  .hero-txt { padding: 22px 26px; justify-content: center }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.22fr 1fr }
  .hero-art { min-height: 270px }
}

/* 3-KPI Mission Strip */
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.kpi {
  background: #fff;
  border-radius: 20px;
  padding: 13px 15px;
  box-shadow: var(--shadow), var(--border-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  text-decoration: none;
  min-height: 76px;
  border-left: 5px solid var(--c);
}
.kpi.span2 { grid-column: 1 / -1 }
@media (min-width: 680px) {
  .kpis { grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-top: 14px }
  .kpi.span2 { grid-column: auto }
}
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px }
.kpi-val { font-family: var(--head); font-weight: 800; font-size: 21px; line-height: 1.05; color: var(--ink) }
.kpi-badge {
  font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 99px;
  background: var(--cl); color: var(--cd); text-align: right; line-height: 1.25;
}
.kpi-lbl { font-size: 13.5px; font-weight: 800; color: var(--ink2); line-height: 1.25 }
.kpi-lbl .tr { font-size: .88em; margin-top: 1px }
.kpi-bar { height: 7px; background: var(--cl); border-radius: 99px; overflow: hidden; margin-top: 2px }
.kpi-bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; transition: width .4s ease }
.bigstar { color: #E89B00 }
.flame { color: #E05A00 }

/* Section Headers */
.sec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
  flex-wrap: wrap;
}
.sec {
  font-size: clamp(21px, 3vw, 25px);
  font-weight: 800;
  margin: 28px 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.sec-row .sec { margin: 0 }
.sec .pill {
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 900;
  border-radius: 99px;
  padding: 3px 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sec-meta { font-size: 13.5px; font-weight: 800; color: var(--grey) }

/* Topic Grids */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px } }

.grid.two { grid-template-columns: 1fr; margin-top: 24px; gap: 14px }
@media (min-width: 680px) { .grid.two { grid-template-columns: 1fr 1fr; gap: 16px } }

.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow), var(--border-card);
  border-bottom: 5px solid var(--c);
  transition: transform .16s ease, box-shadow .16s ease;
}
.mcard:active { transform: scale(.98) }
@media (hover: hover) {
  .mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--border-card) }
}
.mnum {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(27, 42, 74, .12);
}
.mbadge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  height: 24px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #1F9D5C;
  color: #fff;
  box-shadow: 0 2px 5px rgba(27, 42, 74, .14);
}
.mbadge.gold { background: linear-gradient(135deg, #FFB800, #E08700); color: #1B2A4A }
.mcard .mart {
  background: var(--cl);
  padding: 14px 16px 10px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mcard .mart > img {
  max-height: 100%;
  max-width: 82%;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.mcard .mart > svg {
  width: auto;
  height: 100%;
  max-width: 92%;
  border-radius: 10px;
}
.mcard .mtxt {
  padding: 12px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}
.mcard h3 { font-size: 17.5px; font-weight: 800; line-height: 1.16 }
.mcard h3 .tr { font-size: .72em; margin-top: .22em }
.mfoot { display: flex; align-items: center; justify-content: space-between; gap: 6px }
.mpct { font-size: 12.5px; font-weight: 900; color: var(--grey); background: var(--paper); padding: 2px 8px; border-radius: 99px }

.mcard.wide { flex-direction: row; align-items: stretch }
.mcard.wide .mart { width: 122px; aspect-ratio: auto; flex: none; padding: 14px }
.mcard.wide .mart > img { width: 100%; height: auto; max-width: 100%; max-height: 106px }
.mcard.wide .mtxt { padding: 15px 18px }
.mcard.wide h3 { font-size: 21px }
.mcard.wide p { font-size: 14.5px; font-weight: 700; color: var(--ink2) }

.stars { display: inline-flex; gap: 2px; font-size: 19px; line-height: 1 }
.stars i { font-style: normal; color: #D5DCE8 }
.stars i.on { color: #F5A300 }
.stars.lg { font-size: 26px }
.stars.xl { font-size: 52px; gap: 8px }
.stars.pop i.on { animation: starlift .28s ease-out both }
.stars.pop i:nth-child(2) { animation-delay: .05s }
.stars.pop i:nth-child(3) { animation-delay: .1s }

/* ---------- MARK'S STICKER ALBUM ---------- */
.album {
  margin-top: 28px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7E2 100%);
  border-radius: 26px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow), inset 0 0 0 2px #F2DFB0;
}
.album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.album-title { display: flex; align-items: center; gap: 12px }
.album-otti { width: 52px; height: 52px; flex: none }
.album-otti img { width: 100%; height: 100%; object-fit: contain }
.album-title h2 { font-size: clamp(20px, 2.8vw, 24px); font-weight: 800 }
.album-sub { font-size: 13.5px; font-weight: 700; color: var(--ink2); margin-top: 2px }
.album-pill {
  background: var(--ink);
  color: #FFC233;
  font-family: var(--head);
  font-weight: 800;
  font-size: 16px;
  padding: 5px 14px;
  border-radius: 99px;
}
.sgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) { .sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px } }
@media (min-width: 960px) { .sgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px } }

.slot-st {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 104px;
  padding: 10px 8px 9px;
  border-radius: 18px;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease;
}
.album.standalone { padding: 22px 22px 24px }
.album.standalone .slot-st { min-height: 132px; padding: 14px 10px 12px; gap: 8px }
.album.standalone .st-art { width: 72px; height: 72px }
.album.standalone .slot-st.locked .st-art { width: 52px; height: 52px; font-size: 20px }
.album.standalone .st-lbl { font-size: 13px }
.slot-st.locked {
  background: rgba(255, 255, 255, .55);
  border: 2px dashed #CBD4E3;
  color: var(--grey);
}
.slot-st.open {
  background: #fff;
  box-shadow: 0 3px 10px rgba(27, 42, 74, .09), inset 0 0 0 2px #E3EAF4;
}
.slot-st.gold {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4CC 100%);
  box-shadow: 0 4px 12px rgba(224, 145, 0, .2), inset 0 0 0 2.5px #F5AD00;
}
@media (hover: hover) { .slot-st:hover { transform: translateY(-3px) scale(1.02) } }
.st-art {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.st-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  /* Die-cut white sticker border! */
  filter:
    drop-shadow(1.5px 0 0 #fff)
    drop-shadow(-1.5px 0 0 #fff)
    drop-shadow(0 1.5px 0 #fff)
    drop-shadow(0 -1.5px 0 #fff)
    drop-shadow(0 3px 5px rgba(27, 42, 74, .2));
}
.slot-st.locked .st-art {
  width: 42px; height: 42px; margin-top: 4px;
  border-radius: 50%;
  background: #EDF1F7;
  font-family: var(--head);
  font-weight: 800;
  font-size: 17px;
  color: #8492A8;
}
.st-lbl {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.st-lbl .tr { font-size: .86em; margin-top: 2px; font-weight: 700 }
.st-star {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 12px;
  line-height: 1;
  color: #E89B00;
}

/* ---------- MODULE / TOPIC VIEW ---------- */
.mhero {
  background: #fff;
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow), var(--border-card);
  border-top: 6px solid var(--c);
  margin-bottom: 22px;
}
.mhero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.mhero .mart {
  width: 92px;
  height: 92px;
  flex: none;
  background: var(--cl);
  border-radius: 24px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.mhero .mart img, .mhero .mart svg { max-width: 100%; max-height: 72px; width: auto; height: auto }
.mhero-main { flex: 1; min-width: 180px }
.mhero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--cd);
  background: var(--cl);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 5px;
}
.mhero h1 { font-size: clamp(24px, 4.6vw, 34px); font-weight: 800; margin-bottom: 6px }
.mhero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.mhero-cta { width: 100%; margin-top: 14px }
.mhero-cta .btn.big { margin: 0 }
@media (min-width: 740px) {
  .mhero { padding: 22px 24px }
  .mhero-cta { width: auto; margin-top: 0; flex: none }
  .mhero-cta .btn.big { width: auto; min-width: 240px; gap: 16px }
}

.goalbox {
  background: var(--cl);
  border-radius: 18px;
  padding: 13px 16px;
  border-left: 5px solid var(--c);
  margin-top: 16px;
}
.goalbox h4 {
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cd);
  margin-bottom: 5px;
  font-family: var(--body);
  font-weight: 900;
}
.goalbox p { font-weight: 700; font-size: 15.5px }
.goalbox p + p { margin-top: 8px }

/* Learn Cards */
.lcards { display: grid; gap: 16px }
.lcard {
  position: relative;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow), var(--border-card);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.lcard-num {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  color: var(--btn-fg);
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(27, 42, 74, .18);
}
.lcard .lart {
  background: var(--cl);
  padding: 18px;
  display: grid;
  place-items: center;
}
.lcard .lart > img { max-height: 210px; width: auto }
.lcard .lart > svg { max-height: 220px; width: auto; max-width: 100% }
.lcard .lart > div { width: 100% }
.lcard .ltxt { padding: 16px 20px 20px; display: flex; flex-direction: column; justify-content: center }
.lcard h3 { font-size: 21px; font-weight: 800; color: var(--cd); margin-bottom: 7px }
.lcard p { font-weight: 600; font-size: 16.5px; line-height: 1.5 }
.lcard p .tr { font-size: .9em; margin-top: .5em; font-weight: 600 }

@media (min-width: 720px) {
  .lcard:not(.map-card) { grid-template-columns: 280px 1fr }
  .lcard:not(.map-card) .lart > img,
  .lcard:not(.map-card) .lart > svg { max-height: 230px }
  .lcard.map-card .lart { padding: 20px 24px }
  .lcard.map-card .ltxt { padding: 18px 24px 22px }
}
@media (min-width: 980px) {
  .lcard:not(.map-card) { grid-template-columns: 320px 1fr }
}

.mbottom {
  margin-top: 22px;
  background: #fff;
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: var(--shadow), var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mbottom-l { display: flex; align-items: center; gap: 12px }
.mbottom-l img { width: 56px; height: auto }
.mbottom-l b { font-family: var(--head); font-size: 20px; display: block }
.mbottom .btn.big { width: auto; min-width: 240px; margin: 0; flex: 1; max-width: 380px }

/* Generic Page Headers (Words, Test, Links, Info) */
.phead {
  background: #fff;
  border-radius: 26px;
  padding: 18px 20px;
  box-shadow: var(--shadow), var(--border-card);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.phead .mart {
  width: 84px;
  height: 84px;
  flex: none;
  background: #E4F1FF;
  border-radius: 22px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.phead .mart img, .phead .mart svg { max-width: 100%; max-height: 66px; width: auto; height: auto }
.phead h1 { font-size: clamp(25px, 4.6vw, 34px); font-weight: 800; margin-bottom: 4px }
.phead p { font-weight: 700; color: var(--ink2); font-size: 16px }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center }
.duo > div { display: grid; place-items: center }
.duo img.bird { max-height: 150px; width: auto }
@media (max-width: 560px) {
  .lart .duo.wide { grid-template-columns: 1fr }
  .qart .duo.wide { grid-template-columns: 1fr; gap: 8px }
  .qart .duo.wide svg { max-height: 138px; width: auto; max-width: 100%; margin: 0 auto }
}

.scale4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100% }
@media (min-width: 620px) { .scale4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px } }
.scale4 .sc { text-align: center; background: #fff; border-radius: 14px; padding: 7px 7px 6px; box-shadow: 0 2px 6px rgba(27, 42, 74, .06) }
.scale4 .sc svg { width: 100%; height: auto; border-radius: 9px; display: block }
.scale4 .sc .sl { font-family: var(--head); font-weight: 800; font-size: 15.5px; color: var(--ink); margin-top: 5px; line-height: 1.1 }

.symgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 0 auto }
.icgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 340px; margin: 0 auto }
.icgrid svg { width: 100%; height: auto }
.factgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; text-align: center }
.factgrid div { background: #fff; border-radius: 16px; padding: 12px 6px; box-shadow: 0 2px 6px rgba(27, 42, 74, .06) }
.factgrid b { display: block; font-family: var(--head); font-size: 26px; color: var(--c); line-height: 1.05 }
.factgrid span { font-size: 12px; font-weight: 800; color: var(--grey) }

.mapart {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: inset 0 0 0 2px var(--ink), 0 4px 14px rgba(27, 42, 74, .1);
  width: 100%;
}
.mapart img { width: 100%; height: auto; display: block }
.mapart svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.credit { font-size: 11.5px; color: var(--grey); font-weight: 700; text-align: right; margin-top: 5px }

/* ---------- QUIZ ENGINE ---------- */
.quiz {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px max(14px, env(safe-area-inset-left)) 24px max(14px, env(safe-area-inset-right));
  animation: rise .18s ease-out both;
}
@media (min-width: 960px) {
  .quiz { max-width: 1040px; padding: 18px 28px 32px }
}
.qbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px }
.qx {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line-s);
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink2);
  line-height: 1;
}
.qtitle-pill {
  display: none;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--cd);
  background: var(--cl);
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
@media (min-width: 680px) { .qtitle-pill { display: inline-block } }
.prog {
  flex: 1;
  height: 15px;
  background: #fff;
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--line);
}
.prog i {
  display: block;
  height: 100%;
  background: var(--c);
  border-radius: 99px;
  transition: width .35s cubic-bezier(.3, 1.2, .5, 1);
}
.qn { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--cd); min-width: 56px; text-align: right }

.qcard {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow), var(--border-card);
  padding: 15px;
  border-top: 6px solid var(--c);
}
@media (min-width: 720px) { .qcard { padding: 24px } }

.qart {
  background: var(--cl);
  border-radius: 18px;
  padding: 11px;
  margin-bottom: 13px;
  display: grid;
  place-items: center;
}
@media (min-width: 720px) { .qart { padding: 14px; margin-bottom: 16px } }
.qart > img { max-height: 200px; width: auto }
.qart > svg { max-height: 200px; width: auto; max-width: 100% }
.qart > div { width: 100% }

/* Split 2-column layout on iPad Landscape when question has a single/portrait illustration! */
@media (min-width: 960px) {
  .qcard.has-art:not(.wide-qart) {
    display: grid;
    grid-template-columns: minmax(320px, 45%) 1fr;
    gap: 26px;
    align-items: center;
  }
  .qcard.has-art:not(.wide-qart) .qart { margin-bottom: 0; min-height: 250px; padding: 18px }
  .qcard.has-art:not(.wide-qart) .qart > img,
  .qcard.has-art:not(.wide-qart) .qart > svg { max-height: 280px }
}

.q { font-size: clamp(20px, 3.8vw, 25px); font-weight: 800; margin-bottom: 14px; line-height: 1.22 }
.q .tr { font-size: .68em; margin-top: .22em }
.hint { font-size: 14px; font-weight: 800; color: var(--grey); margin-bottom: 11px }

/* Options */
.opts { display: grid; gap: 10px }
.opts.two, .opts.artopts { grid-template-columns: 1fr 1fr }
.opts.compact { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px }
@media (min-width: 680px) {
  .opts.grid2 { grid-template-columns: 1fr 1fr }
}

.opt {
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 12px 15px;
  min-height: 56px;
  font-weight: 800;
  font-size: 17px;
  box-shadow: inset 0 0 0 2px var(--line-s), 0 4px 0 var(--line-s);
  transition: transform .08s, box-shadow .15s, background .15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.opt:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--line-s), 0 1px 0 var(--line-s) }
@media (hover: hover) {
  .opt:not(:disabled):hover { background: #FAFBFD; box-shadow: inset 0 0 0 2px var(--c), 0 4px 0 var(--line-s) }
}
.obadge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-s);
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink2);
  display: grid;
  place-items: center;
  flex: none;
}
.opts.compact .opt { justify-content: center; text-align: center; font-family: var(--head); font-size: 22px; padding: 12px 10px }
.opts.compact .obadge { display: none }

.opt .oart { display: grid; place-items: center; width: 100%; padding: 4px; min-height: 112px }
.opt .oart svg, .opt .oart img { max-height: 116px; width: auto; max-width: 100%; margin: 0 auto }
.artopts .opt { position: relative; justify-content: center; padding: 12px }
.artopts .obadge { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; font-size: 13px }

.opt[aria-pressed="true"] {
  box-shadow: inset 0 0 0 3px var(--c), 0 4px 0 var(--c);
  background: var(--cl);
}
.opt .box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2.5px var(--grey);
  flex: none;
  background: #fff;
}
.opt[aria-pressed="true"] .box {
  background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/19px no-repeat;
  box-shadow: none;
}
.c-yellow .opt[aria-pressed="true"] .box {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/19px no-repeat;
}

.opt.ok, .chipb.ok, .gap.ok, .tin.ok {
  background: #DCF5E8 !important;
  box-shadow: inset 0 0 0 3px var(--green), 0 4px 0 var(--green) !important;
  color: #115333;
  animation: pulse .35s ease;
}
.opt.ok .obadge { background: var(--green); color: #fff; box-shadow: none }
.opt.missed {
  background: #F0FBF5 !important;
  box-shadow: inset 0 0 0 2.5px var(--green) !important;
  color: #115333;
}
.opt.no, .chipb.no, .gap.no, .tin.no {
  background: #FFE5E8 !important;
  box-shadow: inset 0 0 0 3px var(--red), 0 4px 0 var(--red) !important;
  color: #8A1420;
  animation: shake .35s ease;
}
.opt.no .obadge { background: var(--red); color: #fff; box-shadow: none }
.opt:disabled { cursor: default; opacity: 1 }
.opt:disabled:not(.ok):not(.no):not(.missed) { opacity: .55 }

/* Typing */
.typerow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.tin {
  flex: 1;
  min-width: 200px;
  font: inherit;
  font-family: var(--head);
  font-weight: 700;
  font-size: 25px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 0;
  box-shadow: inset 0 0 0 2.5px var(--ink2);
  background: #fff;
  color: var(--ink);
  min-height: 58px;
}
.tin:focus { outline: 0; box-shadow: inset 0 0 0 3.5px var(--c) }
.keys { display: flex; gap: 8px }
.key {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  border: 0;
  background: var(--cl);
  color: var(--cd);
  font-family: var(--head);
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 3px 0 rgba(27, 42, 74, .16);
}
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(27, 42, 74, .16) }

/* Ordering & Cloze */
.bank, .slots { display: flex; flex-wrap: wrap; gap: 9px }
.slots {
  margin-bottom: 14px;
  min-height: 66px;
  padding: 10px;
  background: var(--cl);
  border-radius: 18px;
  align-items: center;
}
.bank { min-height: 52px }
.chipb {
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 8px 15px;
  min-height: 48px;
  font-weight: 800;
  font-size: 16.5px;
  box-shadow: inset 0 0 0 2px var(--c), 0 3px 0 var(--c);
  color: var(--cd);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}
.c-yellow .chipb { box-shadow: inset 0 0 0 2px #C98A00, 0 3px 0 #C98A00 }
.chipb:disabled { opacity: .32; box-shadow: inset 0 0 0 2px var(--line); cursor: default }
.chipb.ok:disabled, .chipb.no:disabled { opacity: 1 }
.chipb em, .slot em {
  font-style: normal;
  background: var(--c);
  color: var(--btn-fg);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 800;
  flex: none;
  font-family: var(--head);
}
.slot {
  min-width: 82px;
  min-height: 48px;
  border-radius: 14px;
  border: 2.5px dashed var(--c);
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  opacity: .65;
  background: rgba(255, 255, 255, .45);
}

.clozetext { font-size: 17.5px; font-weight: 700; line-height: 2.35; margin-top: 10px }
@media (min-width: 720px) { .clozetext { font-size: 18.5px; line-height: 2.5 } }
.gap {
  border: 0;
  background: var(--cl);
  border-radius: 12px;
  min-width: 96px;
  min-height: 44px;
  padding: 4px 11px;
  margin: 2px 2px;
  font-weight: 900;
  color: var(--cd);
  border-bottom: 3px solid var(--c);
  vertical-align: middle;
  line-height: 1.2;
  font-size: 16.5px;
}
.gap.active {
  background: #fff;
  box-shadow: inset 0 0 0 2.5px var(--c), 0 0 0 3px var(--cl);
}
.gap.full { background: #fff; box-shadow: inset 0 0 0 2px var(--c) }
.gap s { opacity: .65; font-weight: 700; margin-right: 4px }
.clozetr { margin-top: 10px; background: #F3EEFF; border-radius: 14px; padding: 10px 13px; font-size: 14.5px; color: var(--hu); font-weight: 700 }

/* Compass Rose */
.rose {
  position: relative;
  width: min(100%, 340px);
  margin: 8px auto;
  aspect-ratio: 1;
}
.rose > svg { width: 100%; height: 100%; padding: 10% }
.rdot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 16%;
  aspect-ratio: 1;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 rgba(27, 42, 74, .22);
  font-family: var(--head);
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}
.rdot.main { width: 17.5%; min-width: 48px; min-height: 48px; font-size: 20px }
.rdot.ok { background: var(--green); color: #fff; box-shadow: inset 0 0 0 3px #115333; animation: pulse2 .35s }
.rdot.no { background: var(--red); color: #fff; box-shadow: inset 0 0 0 3px #8A1420; animation: shake2 .35s }
.rdot:disabled:not(.ok):not(.no) { opacity: .78 }

/* Ortsplan Map Tap (44x44px minimum guaranteed even on 390px iPhone!) */
@media (max-width: 480px) {
  .mapart.tap { margin: 0 -6px; width: calc(100% + 12px) }
}
.mapart.tap svg.lines line { stroke: var(--ink); stroke-width: 2.6 }
.mdot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(27, 42, 74, .45);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.mbtn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(44px, 6.2vw, 50px);
  height: clamp(44px, 6.2vw, 50px);
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--ink), 0 3px 8px rgba(0, 0, 0, .28);
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(18px, 3.2vw, 22px);
  color: var(--ink);
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.mbtn.ok { background: var(--green); color: #fff; box-shadow: inset 0 0 0 3px #115333, 0 4px 10px rgba(0,0,0,.3); animation: pulse2 .35s; z-index: 3 }
.mbtn.no { background: var(--red); color: #fff; box-shadow: inset 0 0 0 3px #8A1420, 0 4px 10px rgba(0,0,0,.3); animation: shake2 .35s; z-index: 2 }

/* Neighbour Municipality Tap */
.nbtap { max-width: 480px; margin: 0 auto }
.nbtap svg circle, .nbtap svg text, .nbtap svg polyline { pointer-events: none }
.nbtap .nb { cursor: pointer; transition: fill .15s, opacity .15s }
.nbtap .nb:focus-visible { outline: 0; stroke: var(--ink); stroke-width: 4 }
@media (hover: hover) { .nbtap .nb:hover { opacity: .8 } }
.nbtap .nb.ok { fill: var(--green) !important }
.nbtap .nb.no { fill: var(--red) !important }

/* Sticky Check & Feedback Dock (never clipped off-screen!) */
.qfoot {
  position: sticky;
  bottom: calc(10px + var(--safe-b));
  z-index: 15;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.qfoot .btn { min-width: 190px; box-shadow: 0 4px 0 var(--cd), 0 8px 20px rgba(27, 42, 74, .18) }

.fb {
  position: relative;
  z-index: 10;
  margin-top: 14px;
  border-radius: 22px;
  padding: 13px 15px;
  box-shadow: var(--shadow-lg);
  animation: rise .2s ease-out both;
}
.fb.ok { background: #DCF5E8; color: #115333; border: 2px solid #8AD8B1; --c: #1F9D5C; --cd: #146C3E; --btn-fg: #fff; --btn-tr: rgba(255,255,255,.92) }
.fb.no { background: #FFE6E9; color: #8A1420; border: 2px solid #F5A3AC; --c: #DF2F3E; --cd: #A31B27; --btn-fg: #fff; --btn-tr: rgba(255,255,255,.92) }
.fb-in { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center }
.fb-otti img, .fb-otti svg { width: 60px; height: auto; animation: bob 2.2s ease-in-out infinite }
.fb-txt b { font-family: var(--head); font-size: 21px; line-height: 1.15; display: block }
.fb-txt b .tr { font-size: .72em; color: inherit; opacity: .86; margin-top: 1px }
.fb-corr { display: block; font-family: var(--head); font-weight: 800; font-size: 20px; margin-top: 4px; color: var(--ink) }
.fb-why { display: block; font-weight: 700; font-size: 15px; margin-top: 4px; line-height: 1.35 }
.fb .tr { color: inherit; opacity: .88 }
.fb .next { grid-column: 1 / -1; width: 100% }
@media (min-width: 640px) {
  .fb-in { grid-template-columns: 64px 1fr auto; gap: 16px }
  .fb .next { grid-column: auto; width: auto; min-width: 176px }
}

/* ---------- RESULT VIEW ---------- */
.result {
  position: relative;
  z-index: 10;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-lg), var(--border-card);
  border-top: 7px solid var(--c);
  text-align: center;
}
.res-otti { width: 112px; margin: 0 auto 2px; animation: bob 2.4s ease-in-out infinite }
.res-otti img { width: 100%; height: auto }
.result h1 { font-size: clamp(23px, 4.5vw, 31px); font-weight: 800; margin: 2px 0 6px }
.score { font-size: 20px; font-weight: 800; margin-top: 6px }
.score b { font-family: var(--head); font-size: 38px; color: var(--cd) }
.c-yellow .score b { color: #B87900 }
.msg { font-weight: 800; color: var(--ink2); margin: 6px auto 0; max-width: 38ch; font-size: 15.5px }
@media (min-width: 640px) {
  .result { padding: 26px 24px 28px }
  .res-otti { width: 136px }
  .score b { font-size: 44px }
  .msg { font-size: 16.5px }
}
@media (max-width: 639px) {
  .stars.xl { font-size: 44px }
}

.unlock-card {
  margin: 16px auto 0;
  max-width: 400px;
  background: linear-gradient(135deg, #FFFDF5, #FFF0C2);
  border: 2px solid #F5B400;
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both;
}
.unlock-art { width: 64px; height: 64px; flex: none; display: grid; place-items: center }
.unlock-art img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 4px 6px rgba(27,42,74,.2));
}
.unlock-card b { font-family: var(--head); font-size: 18px; color: #7D5200; display: block; line-height: 1.15 }
.unlock-card .unlock-sub { font-size: 13.5px; font-weight: 800; color: var(--ink2); margin-top: 3px; line-height: 1.2 }

.res-btns { display: grid; gap: 11px; max-width: 400px; margin: 20px auto 0 }
.res-btns .btn.big { margin: 0; justify-content: center; text-align: center }
.res-btns .btn.big .btxt { text-align: center }
.res-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }

.weak { max-width: 440px; margin: 18px auto 0; text-align: left }
.weak h4 { font-size: 16.5px; margin-bottom: 8px }

/* ---------- WORDS & FLASHCARDS ---------- */
.wsummary {
  background: #fff;
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow), var(--border-card);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
}
.wsummary-txt { font-weight: 800; font-size: 16px }
.wsummary-bar { flex: 1; min-width: 140px; height: 12px; background: #E4F1FF; border-radius: 99px; overflow: hidden }
.wsummary-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .4s ease }
.art-legend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 800; color: var(--grey) }
.art-pill { border-radius: 99px; padding: 2px 10px; color: #fff; font-weight: 900; font-size: 13px }
.art-pill.der { background: #1C5FA8 }
.art-pill.die { background: #C8283A }
.art-pill.das { background: #1E8A5A }

.wgrid { display: grid; gap: 14px; grid-template-columns: 1fr }
@media (min-width: 640px) { .wgrid { grid-template-columns: 1fr 1fr; gap: 16px } }
@media (min-width: 1020px) { .wgrid { grid-template-columns: repeat(3, 1fr) } }

.wcard {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow), var(--border-card);
  padding: 16px 18px;
  border-left: 6px solid var(--c);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wcard h3 { font-size: 19.5px; font-weight: 800 }
.wmeter { height: 10px; background: var(--cl); border-radius: 99px; overflow: hidden; margin: 10px 0 5px }
.wmeter i { display: block; height: 100%; background: var(--c); border-radius: 99px }
.wcount { font-size: 13.5px; font-weight: 800; color: var(--grey) }
.wbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px }

.fwrap { max-width: 620px; margin: 0 auto }
.fcard {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  perspective: 1200px;
  height: min(50vh, 360px);
  min-height: 270px;
  margin: 8px 0 18px;
  position: relative;
}
.fface {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg), var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .48s cubic-bezier(.3, 1.2, .5, 1);
  border-bottom: 8px solid var(--c);
  text-align: center;
}
.fface-top {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}
.fface b { font-family: var(--head); font-size: clamp(26px, 5.5vw, 40px); line-height: 1.12 }
.fface em {
  position: absolute;
  bottom: 18px;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--grey);
}
.backf { transform: rotateY(180deg); background: var(--cl) }
.backf .hu-w { font-family: var(--head); font-size: clamp(24px, 5vw, 36px); font-weight: 800; color: var(--hu); line-height: 1.15 }
.backf .en-pill {
  margin-top: 6px;
  background: rgba(255, 255, 255, .75);
  padding: 5px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink2);
}
.backf .de-echo { font-weight: 800; color: var(--grey); margin-top: 8px; font-size: 15px }
.fcard.flip .front { transform: rotateY(-180deg) }
.fcard.flip .backf { transform: rotateY(0) }
.fbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }

/* ---------- TEST / PROGRESS ---------- */
.test-hero-cta { max-width: 480px; margin-bottom: 8px }
.plist { display: grid; gap: 10px; grid-template-columns: 1fr }
@media (min-width: 720px) { .plist { grid-template-columns: 1fr 1fr; gap: 12px } }
.prow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 11px 15px;
  min-height: 54px;
  text-decoration: none;
  box-shadow: var(--shadow), var(--border-card);
  font-weight: 800;
  transition: transform .12s ease;
}
@media (hover: hover) { .prow:hover { transform: translateY(-2px) } }
.picon { width: 38px; height: 38px; border-radius: 11px; background: var(--cl); padding: 4px; display: grid; place-items: center; flex: none }
.picon img, .picon svg { max-width: 100%; max-height: 30px; width: auto; height: auto }
.pname { flex: 1; min-width: 0; font-size: 16px }

/* ---------- LINKS & VIDEO MODAL ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px }
.fchip {
  border: 0;
  background: #fff;
  border-radius: 99px;
  padding: 8px 18px;
  min-height: 44px;
  font-weight: 900;
  font-size: 14.5px;
  box-shadow: inset 0 0 0 2px var(--line-s);
  color: var(--ink2);
}
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none }

.lgrid { display: grid; gap: 12px; grid-template-columns: 1fr }
@media (min-width: 680px) { .lgrid { grid-template-columns: 1fr 1fr; gap: 14px } }

.link {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 20px;
  padding: 13px 15px;
  min-height: 68px;
  text-decoration: none;
  box-shadow: var(--shadow), var(--border-card);
  border-left: 6px solid var(--c);
  width: 100%;
  transition: transform .12s ease;
}
@media (hover: hover) { .link:hover { transform: translateY(-2px) } }
.thumb {
  position: relative;
  width: 124px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #D8ECFF 0%, #EEF7DC 100%);
  box-shadow: inset 0 0 0 1px rgba(27, 42, 74, .12);
}
.thumb .thumb-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block }
.thumb img.yt-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block }
.play {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(223, 47, 62, .95);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.play:after {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  border: 9px solid transparent;
  border-left: 14px solid #fff;
  border-right: 0;
}
.ltext { flex: 1; min-width: 0; display: block }
.ltext b { display: block; font-size: 16px; line-height: 1.25; font-weight: 800 }
.lnote { display: block; font-size: 13.5px; font-weight: 700; color: var(--grey); margin-top: 3px }
.lnote .tr { font-size: .95em }
.lmeta { display: flex; gap: 6px; margin-bottom: 5px }
.lmeta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--cl);
  color: var(--cd);
  border-radius: 6px;
  padding: 2px 7px;
}
.lmeta .lg { background: var(--ink); color: #fff }
.ext { font-size: 22px; font-weight: 900; color: var(--cd); flex: none; padding: 0 4px }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 24, 48, .76);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fade .18s ease;
}
.modal-in {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  width: min(100%, 860px);
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.mtop { display: flex; gap: 12px; align-items: center; justify-content: space-between }
.mtop b { font-family: var(--head); font-size: 18.5px; line-height: 1.2 }
.frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000 }
.frame iframe { width: 100%; height: 100%; border: 0; display: block }

/* ---------- INFO (PARENTS) ---------- */
.info-grid { display: grid; gap: 16px; grid-template-columns: 1fr }
@media (min-width: 800px) { .info-grid { grid-template-columns: 1.15fr .85fr; align-items: start } }
.prose {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow), var(--border-card);
  padding: 20px 22px;
}
.prose h3 { font-size: 20px; margin: 20px 0 7px; color: var(--cd) }
.prose h3:first-child { margin-top: 0 }
.prose p { margin: 0 0 12px; font-weight: 600 }
.prose p .tr { font-size: .92em; margin-top: .35em; font-weight: 600 }
.prose ul { margin: 0 0 12px; padding-left: 20px; font-weight: 600 }
.prose li { margin-bottom: 5px }
.prose a { color: var(--cd); font-weight: 800 }
.prose .btn { color: var(--btn-fg) }
.prose .btn.ghost { color: var(--ink) }
.prose .small { font-size: 13.5px; color: var(--grey); line-height: 1.45 }
.dl { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px }
.reset-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #FFE6E8;
  padding: 10px 14px;
  border-radius: 14px;
  margin-top: 8px;
}
.reset-confirm span { font-weight: 800; color: #8A1420; font-size: 14.5px }

/* ---------- MOTION ---------- */
@keyframes rise { from { transform: translateY(8px) } to { transform: none } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { 0% { transform: scale(.88) } 60% { transform: scale(1.05) } 100% { transform: scale(1) } }
@keyframes starlift { 0% { transform: translateY(-4px) } 100% { transform: none } }
@keyframes pulse { 0% { transform: scale(1) } 50% { transform: scale(1.03) } 100% { transform: scale(1) } }
@keyframes shake { 0%, 100% { transform: translateX(0) } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
@keyframes pulse2 { 0% { transform: translate(-50%, -50%) scale(1) } 50% { transform: translate(-50%, -50%) scale(1.2) } 100% { transform: translate(-50%, -50%) scale(1) } }
@keyframes shake2 { 0%, 100% { transform: translate(-50%, -50%) } 25% { transform: translate(-62%, -50%) } 75% { transform: translate(-38%, -50%) } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes shine { to { stroke-dashoffset: -80 } }
@keyframes s-drift { from { translate: -50px 0 } to { translate: 50px 0 } }
@keyframes s-bob { 0%, 100% { translate: 0 0 } 50% { translate: 0 -6px } }
@keyframes s-spin { to { rotate: 360deg } }
@keyframes s-sway { 0%, 100% { rotate: -5deg } 50% { rotate: 5deg } }
@keyframes s-blink { 0%, 92%, 100% { scale: 1 1 } 96% { scale: 1 .1 } }
@keyframes s-klapp { 0%, 70%, 100% { rotate: 0deg } 78%, 90% { rotate: 9deg } 84% { rotate: 0deg } }

svg .cloud { animation: s-drift 16s ease-in-out infinite alternate }
svg .cloud.c2 { animation-duration: 22s; animation-direction: alternate-reverse }
svg .cloud.c3 { animation-duration: 27s }
svg .sun-rays { transform-box: fill-box; transform-origin: center; animation: s-spin 40s linear infinite }
svg .hero-otti { animation: s-bob 2.6s ease-in-out infinite }
svg .otti-tail { transform-box: fill-box; transform-origin: 100% 100%; animation: s-sway 3s ease-in-out infinite }
svg .otti-eye { transform-box: fill-box; transform-origin: center; animation: s-blink 4.5s infinite }
svg .river-shine { stroke-dasharray: 14 26; animation: shine 3.5s linear infinite }
svg .rose-star { transform-box: fill-box; transform-origin: center; animation: s-sway 6s ease-in-out infinite }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media print { .top, .tabs { display: none } }
