/* ══ v4 · original hero restored, one-screen sections, alignment pass (2026-09-20) ══
   Loaded AFTER style.css via <link>, so these rules win without specificity tricks. */

/* ── HERO: original storybook picture; wording sits in a glass panel BELOW Mia ── */
.hero.hero-story {
  height: calc(100vh - 92px); min-height: 540px; max-height: 920px;
  justify-content: flex-end; align-items: center;
  margin: 0 12px; border-radius: 0 0 40px 40px;
}
.hero.hero-story .hero-bg { background-position: center top; }          /* Mia stays in the top ~43% of the picture */
.hero.hero-story .hero-bg::after {
  background: linear-gradient(180deg, rgba(11,16,53,0) 0%, rgba(11,16,53,0) 40%, rgba(11,16,53,.55) 72%, rgba(11,16,53,.88) 100%);
}
.hero-panel {
  position: relative; z-index: 2; text-align: center;
  width: min(1000px, calc(100% - 32px)); margin: 0 auto 22px;
  padding: 20px 34px 22px; border-radius: 32px;
  background: rgba(13, 18, 58, .62); border: 1.5px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(4,8,30,.55);
}
.hero-panel h1 {
  font-size: clamp(1.55rem, min(3.1vw, 5.4vh), 3rem); font-weight: 800; line-height: 1.15;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}
.hero-panel h1 .gold { color: var(--gold); text-shadow: 0 0 26px var(--gold-glow); white-space: nowrap; }
.hero-panel p { font-size: clamp(.98rem, 1.5vw, 1.2rem); color: #e8ecff; margin: 8px auto 14px; max-width: 760px; }
.hero-panel .hero-cta { gap: 14px; align-items: center; }
.hero-panel .btn.big { font-size: clamp(1.05rem, 1.6vw, 1.3rem); padding: 14px 34px; }
.hero-panel .btn.secondary { font-size: clamp(.95rem, 1.4vw, 1.1rem); padding: 12px 26px; }
.hero-panel .cta-sub { margin-top: 2px; font-size: .88rem; }

/* ── SECTIONS: compact so each one fits a single screen ── */
.section { padding: 34px 5vw; }
.section-title { font-size: clamp(1.55rem, 3vw, 2.25rem); margin-bottom: 24px; }
.section-sub { margin-bottom: 24px; font-size: 1rem; }
.section .big-center { padding: 18px 0 0; }

.how-grid { gap: 18px; align-items: stretch; }
.how-card { padding: 22px 20px; display: flex; flex-direction: column; align-items: center; }
.how-card .icon-badge { width: 68px; height: 68px; margin-bottom: 10px; }
.how-card .icon-badge svg { width: 30px; height: 30px; }
.how-card h3 { font-size: 1.22rem; min-height: 2.5em; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; line-height: 1.2; }
.how-card p { font-size: .95rem; line-height: 1.5; }

.level-grid { gap: 18px; align-items: stretch; }
.level-card { padding: 22px; display: flex; flex-direction: column; align-items: center; }
.level-card img { width: 104px; height: 104px; margin-bottom: 6px; }
.level-card h3 { font-size: 1.35rem; }
.level-card p { font-size: .95rem; flex: 1; }
.level-card .lc-count { margin-top: 12px; }

/* all six stories on one row — no orphaned card */
.cover-row { grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 0; align-items: stretch; }
.cover { display: flex; flex-direction: column; }
.cover div { padding: 10px 12px 12px; flex: 1; }
.cover b { font-size: .95rem; line-height: 1.25; }
.cover small { font-size: .8rem; display: block; margin-top: 3px; line-height: 1.3; }

.parents-grid { gap: 18px; align-items: stretch; }
.parents-grid .card { padding: 22px; }
.parents-grid .card h3 { display: block; min-height: 2.6em; font-size: 1.12rem; line-height: 1.3; margin-bottom: 6px; }
.parents-grid .card p { font-size: .95rem; line-height: 1.5; }

.price-grid { gap: 18px; align-items: stretch; max-width: 980px; }
.price-card { padding: 24px 22px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.2rem; }
.price-card .price { font-size: 2.2rem; margin: 6px 0; line-height: 1.15; }
.price-card ul { margin: 10px 0 14px; line-height: 1.75; font-size: .93rem; }
.price-card .btn { margin-top: auto; align-self: center; padding: 12px 30px; font-size: 1.05rem; }   /* buttons line up along the bottom */
.price-card-note { margin-bottom: 14px; }

/* ── STORY COVER: fits the screen, no scrolling ── */
.overlay-card.cover-card {
  max-width: 880px; width: 100%; padding: 22px; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  max-height: 94vh; overflow: visible;
}
.cover-card .cover-img { margin: 0; aspect-ratio: 4/3; max-height: 70vh; border-radius: 22px; }
.cover-card .cover-info { text-align: center; }
.cover-card h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.2; }
.cover-chips { margin: 12px 0 4px; gap: 8px; }
.cover-chips .chip { font-size: .85rem; padding: 6px 13px; }
.cover-q { margin: 12px 0; }
.cover-btns { flex-direction: column; align-items: stretch; gap: 14px; }
.cover-btns .btn { font-size: 1.1rem; padding: 13px 22px; width: 100%; }

/* library cards: "Czytaj" buttons share a baseline */
.story-card { display: flex; flex-direction: column; }
.sc-body { flex: 1; display: flex; flex-direction: column; }
.sc-foot { margin-top: auto; }

@media (max-width: 1000px) {
  .cover-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .hero.hero-story { height: auto; min-height: 640px; max-height: none; }
  .hero-panel { padding: 16px 16px 18px; margin-bottom: 14px; border-radius: 26px; }
  .hero-panel h1 { font-size: 1.6rem; }
  .hero-panel .hero-cta .btn { width: 100%; max-width: 340px; }
  .hero.hero-story::before { content: ''; display: block; height: 290px; flex-shrink: 0; }   /* reserves the space Mia occupies */
  .cover-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 28px 5vw; }
  .overlay-card.cover-card { grid-template-columns: 1fr; gap: 12px; padding: 16px; max-height: 96vh; overflow-y: auto; }
  .cover-card .cover-img { aspect-ratio: 16/9; max-height: 26vh; }
  .cover-btns { gap: 12px; }
}
@media (max-height: 620px) and (min-width: 701px) {
  .hero-panel { padding: 14px 28px 16px; margin-bottom: 14px; }
  .hero-panel p { margin: 4px auto 10px; }
  .hero-panel .btn.big { padding: 11px 28px; }
}

/* ══ v5 · placement test intro redesign + tap-to-hear Mia (2026-09-25) ══ */
.test-wrap { padding-top: 6px; }
.intro-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: center;
  max-width: 820px; margin: 18px auto 0; padding: 30px 36px 30px 26px; border-radius: 34px; text-align: left;
  background: linear-gradient(135deg, rgba(42,51,118,.85), rgba(19,25,72,.92));
  border: 1.5px solid rgba(255,201,77,.45);
  box-shadow: 0 0 60px rgba(255,201,77,.14), 0 26px 70px rgba(4,8,30,.6);
  position: relative; overflow: hidden;
}
.intro-card::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(circle at 22% 50%, rgba(255,201,77,.22), transparent 38%); pointer-events: none; }
.intro-mia { position: relative; border: none; background: none; cursor: pointer; padding: 0; width: 240px; height: 240px; display: grid; place-items: center; }
.intro-halo { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,77,.35), rgba(255,201,77,0) 70%); animation: haloPulse 3s ease-in-out infinite; }
@keyframes haloPulse { 0%,100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
.intro-mia img { position: relative; width: 205px; animation: miaFly 6s ease-in-out infinite; transition: transform .2s; }
.intro-mia:hover img { transform: scale(1.06); }
.intro-speak { position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--ink); box-shadow: 0 5px 0 #c68f1f, 0 0 20px var(--gold-glow); }
.intro-text h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; margin-bottom: 10px; }
.intro-text p { color: #dbe1ff; font-size: 1.08rem; line-height: 1.6; }
.intro-tap { color: var(--gold-soft) !important; font-weight: 800; font-size: .92rem !important; margin: 10px 0 18px; }
.intro-text .btn.big { font-size: 1.3rem; padding: 15px 40px; }
.instr-mia-btn { border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex-shrink: 0; }
.instr-mia-btn:hover .instr-mia { transform: scale(1.1); }
.instr-mia { transition: transform .2s; display: block; }
.instr-pl { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.instr-en { color: #9a8fc0; font-size: .88rem; font-weight: 700; }
@media (max-width: 700px) {
  .intro-card { grid-template-columns: 1fr; text-align: center; padding: 22px 18px 24px; gap: 8px; }
  .intro-mia { margin: 0 auto; width: 200px; height: 200px; }
  .intro-mia img { width: 140px; }
  .intro-text .btn.big { width: 100%; }
}

/* ══ v6 · Mia story round (2026-09-26): cover, challenge, T/F modes, Grammagic ══ */
.cover-pl { color: #aab4e8; }
#storyCover { cursor: pointer; }
.cover-btns .btn { cursor: pointer; }

/* end-of-story challenge */
.overlay-card.challenge-card { max-width: 640px; padding: 26px 34px 32px; }
.challenge-mia { position: relative; border: none; background: none; cursor: pointer; padding: 0; width: 210px; height: 190px; display: grid; place-items: center; margin: 0 auto 4px; }
.challenge-mia .intro-halo { width: 180px; height: 180px; }
.challenge-mia img { width: 205px; position: relative; animation: miaFly 6s ease-in-out infinite; transition: transform .2s; }
.challenge-mia:hover img { transform: scale(1.06); }
.challenge-mia .intro-speak { right: 12px; bottom: 12px; width: 40px; height: 40px; }
.challenge-q { font-family: 'Baloo 2', sans-serif; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--ink); line-height: 1.2; margin: 4px 0 2px; }
.challenge-sub { color: #9a8fc0; font-weight: 700; margin-bottom: 18px; }
.challenge-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.challenge-btns .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 14px 16px; }
.overlay-card .challenge-btns .btn.secondary { color: var(--ink); background: #f2edff; border: 2px solid #cdb8f5; box-shadow: 0 8px 0 #cdb8f5; }

/* Wordventure · true or false */
.tf-mode { display: flex; justify-content: center; margin: 0 0 10px; }
.tf-hear { padding: 2px 0 0; }
.tf-hear .replay-big { margin-bottom: 4px; }
.tf-btn small { display: block; font-size: .78rem; font-weight: 800; opacity: .65; margin-top: 2px; }

/* Grammagic · Mia explains */
.gm-explain {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,201,77,.35); border-radius: 30px; padding: 24px 28px; margin-bottom: 24px;
  box-shadow: 0 0 50px rgba(255,201,77,.08);
}
.gm-mia { position: sticky; top: 90px; border: none; background: none; cursor: pointer; padding: 0; width: 200px; height: 200px; display: grid; place-items: center; }
.gm-mia .intro-halo { width: 185px; height: 185px; }
.gm-mia img { width: 200px; position: relative; animation: miaFly 6s ease-in-out infinite; transition: transform .2s; }
.gm-mia:hover img { transform: scale(1.06); }
.gm-mia .intro-speak { right: 10px; bottom: 10px; width: 40px; height: 40px; }
.gm-tap { color: var(--gold-soft); font-weight: 800; font-size: .9rem; margin-bottom: 8px; }
.gm-line { font-size: 1.12rem; line-height: 1.7; color: #e6eaff; }
.gm-line b { color: var(--gold-soft); }
.gm-forms { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; }
.gm-forms li { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.gm-forms b { color: var(--gold-soft); white-space: nowrap; }
.gm-forms span { color: #cdd5ff; }
.gm-ex { list-style: none; margin: 4px 0 14px; padding: 0; }
.gm-ex li { display: flex; gap: 8px; align-items: flex-start; font-size: 1.05rem; line-height: 1.6; }
.gm-ex li b { color: var(--gold-soft); }
.gm-ex i { color: #aab4e8; }
.gm-outro { font-weight: 800; color: var(--gold-soft); font-size: 1.08rem; line-height: 1.6; }
.gm-outro svg { vertical-align: middle; margin-left: 4px; }

/* Grammagic · exercise tiles */
.gm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.gm-tile {
  text-align: left; cursor: pointer; color: inherit; font-family: inherit;
  border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 26px; padding: 18px 22px;
  display: flex; gap: 16px; align-items: center; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.gm-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 0 30px rgba(255,201,77,.25); }
.gm-tile-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--ink); flex-shrink: 0; box-shadow: 0 5px 0 #c68f1f; }
.gm-tile h3 { font-size: 1.12rem; margin-bottom: 2px; line-height: 1.2; }
.gm-tile h3 small { color: #aab4e8; font-weight: 800; font-size: .85rem; }
.gm-tile p { color: #cdd5ff; font-size: .92rem; line-height: 1.4; }
.gm-tile.done { border-color: var(--gold); box-shadow: 0 0 26px var(--gold-glow); }
.gm-done { margin-left: auto; color: var(--gold); flex-shrink: 0; }

/* Grammagic · type the verb */
.gap-input {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: inherit; width: 160px; text-align: center;
  border: none; border-bottom: 4px dashed var(--gold); background: rgba(255,255,255,.08); color: var(--gold);
  border-radius: 12px 12px 0 0; padding: 2px 8px; outline: none; margin: 0 8px; text-shadow: 0 0 20px var(--gold-glow);
}
.gap-input::placeholder { color: rgba(255,201,77,.45); font-size: .8em; text-shadow: none; }
.gap-input:focus { background: rgba(255,201,77,.14); }
.gap-input.right { color: #7fe8c9; border-color: #7fe8c9; text-shadow: 0 0 20px rgba(127,232,201,.6); }
.gap-input.wrong { animation: shake .4s; color: #ff9a9a; border-color: #ff9a9a; }
.gm-hint { color: #aab4e8; font-weight: 700; margin-top: 12px; min-height: 1.4em; }
#grammagicNav { display: none; }
#grammagicNav[style*="flex"] { display: flex !important; }

@media (max-width: 700px) {
  .gm-explain { grid-template-columns: 1fr; padding: 18px; }
  .gm-mia { position: static; margin: 0 auto; }
  .gm-tiles { grid-template-columns: 1fr; }
  .challenge-btns { grid-template-columns: 1fr; }
  .overlay-card.challenge-card { padding: 20px 18px 24px; }
  .gap-input { width: 120px; }
}

/* ══ v7 · Lila round (2026-09-29): pronoun-matching exercise ══ */
.pairs-hint { text-align: center; font-weight: 800; color: #e6eaff; margin: 4px 0 18px; line-height: 1.5; }
.pairs-hint-en { color: #9aa4d8; font-size: .9rem; font-weight: 700; }
.pair-bag { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; min-height: 64px; margin-bottom: 26px; }
.p-chip {
  font-family: 'Baloo 2', sans-serif; cursor: grab; border: none; border-radius: 20px; padding: 10px 20px; text-align: center;
  background: linear-gradient(180deg, #efe6ff, #cdb8f5); color: var(--ink); box-shadow: 0 6px 0 #8a6fc0; transition: transform .15s;
}
.p-chip b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.p-chip small { display: block; font-size: .78rem; font-weight: 800; color: #6b5a99; }
.p-chip:hover { transform: translateY(-3px); }
.p-chip.sel { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); box-shadow: 0 6px 0 #c68f1f, 0 0 22px var(--gold-glow); }
.p-chip.done { cursor: default; background: linear-gradient(180deg, #d3f7e4, #7fe8c9); box-shadow: 0 4px 0 #1f7a52; padding: 7px 14px; }
.p-chip.done b { font-size: 1.05rem; }
.p-chip.wrong { animation: shake .4s; background: #ffd4d4; }
.pair-targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-target {
  border: 2.5px dashed rgba(255,201,77,.5); border-radius: 26px; padding: 14px; min-height: 150px; text-align: center;
  background: rgba(255,255,255,.06); transition: all .15s; cursor: pointer;
}
.p-target.over { border-color: var(--gold); background: rgba(255,201,77,.14); transform: scale(1.02); }
.p-target.wrong { animation: shake .4s; border-color: #ff9a9a; }
.p-verb { display: inline-flex; align-items: center; gap: 6px; font-family: 'Baloo 2', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--gold-soft); }
.p-drop { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
@media (max-width: 700px) {
  .pair-targets { grid-template-columns: 1fr; }
  .p-target { min-height: 92px; }
}

/* ══ v9 · Dominika round 3 (2026-10-27) ══ */
.gm-tap-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.gm-tap-row .gm-tap { margin: 0; }
.gm-stop {
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(180deg, #ff8f8f, #e65b6b); padding: 6px 16px; border-radius: 999px; box-shadow: 0 4px 0 #a8364a;
}
.gm-stop[hidden] { display: none; }
.gm-stop:hover { transform: translateY(-1px); }
.gm-mia.playing .intro-halo { animation-duration: 1.1s; }
.gm-mia.playing .intro-speak { background: linear-gradient(180deg, #ff8f8f, #e65b6b); color: #fff; box-shadow: 0 5px 0 #a8364a; }

/* drop boxes for the matching exercise: larger, centred, white */
.pair-targets { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; }
.p-target {
  flex: 0 1 320px; min-height: 210px; padding: 18px; background: #fff;
  border: 3px dashed #f0b93c; box-shadow: 0 14px 34px rgba(4, 8, 30, .35);
}
.p-target.over { border-color: var(--gold); background: #fff8e1; transform: scale(1.03); }
.p-target.wrong { border-color: #ff7a7a; background: #fff1f1; }
.p-verb { color: var(--ink); font-size: 1.7rem; }
.p-verb .ico { color: #c68f1f; }
.p-drop { gap: 10px; margin-top: 16px; }
@media (max-width: 700px) {
  .p-target { flex-basis: 100%; min-height: 120px; }
}

/* ══ v10 · new games: Wordventure grid + Dominika's activities (2026-10-27) ══ */
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 18px 0 26px; }
.g-card {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.14); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.g-card:hover { transform: translateY(-4px); border-color: rgba(255,201,77,.6); box-shadow: 0 0 34px rgba(255,201,77,.18); }
.g-card.done { border-color: var(--gold); box-shadow: 0 0 26px var(--gold-glow); }
.g-pic { position: relative; border: none; padding: 0; cursor: pointer; aspect-ratio: 1 / 1; background: #1b2257; display: block; width: 100%; }
.g-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.g-card:hover .g-pic img { transform: scale(1.05); }
.g-num {
  position: absolute; left: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--ink); background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 3px 0 #c68f1f;
}
.g-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.g-body h3 { font-size: 1.08rem; color: var(--gold-soft); line-height: 1.2; }
.g-body p { color: #cdd5ff; font-size: .86rem; line-height: 1.35; margin: 4px 0 10px; flex: 1; }
.g-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-foot .btn.small { padding: 7px 14px; font-size: .9rem; }
@media (max-width: 1000px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .game-grid { grid-template-columns: 1fr; } .g-card { flex-direction: row; } .g-pic { width: 112px; flex-shrink: 0; } }

/* shared activity frame */
.act-title { font-size: 1.6rem; justify-content: center; }
.act-hint { text-align: center; color: #e6eaff; font-weight: 800; margin: 2px 0 16px; line-height: 1.4; }
.act-en { display: block; color: #9aa4d8; font-size: .82rem; font-weight: 700; }
.act-card { background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14); border-radius: 28px; padding: 22px; text-align: center; }
.act-pic { width: 190px; height: 190px; object-fit: cover; border-radius: 24px; display: block; margin: 0 auto 14px; box-shadow: 0 10px 30px rgba(4,8,30,.4); }
.act-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.act-mini {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800; padding: 7px 16px; border-radius: 999px; cursor: pointer; margin-top: 14px;
}
.act-row .act-mini { margin-top: 0; }
.act-mini:hover { border-color: var(--gold); }

/* missing letters */
.ml-word { display: flex; justify-content: center; gap: 6px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.6rem; color: #fff; margin: 4px 0 18px; }
.ml-ch, .ml-gap { min-width: 44px; text-align: center; }
.ml-gap { color: var(--gold); border-bottom: 4px solid var(--gold); text-shadow: 0 0 18px var(--gold-glow); }
.ml-gap.ok { color: #7fe8c9; border-color: #7fe8c9; text-shadow: none; }
.ml-opts { display: flex; justify-content: center; gap: 14px; }
.ml-opt {
  width: 74px; height: 74px; border-radius: 20px; border: none; cursor: pointer; font-family: 'Baloo 2', sans-serif; font-weight: 800;
  font-size: 2rem; color: var(--ink); background: #fff; box-shadow: 0 6px 0 #b9b2d6; transition: transform .15s;
}
.ml-opt:hover { transform: translateY(-3px); }
.ml-opt.right { background: #7fe8c9; box-shadow: 0 6px 0 #1f7a52; }
.ml-opt.wrong { background: #ffd4d4; animation: shake .4s; }

/* odd one out */
.odd-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.odd-chip {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); background: #fff; border: none;
  border-radius: 20px; padding: 14px 26px; cursor: pointer; box-shadow: 0 6px 0 #b9b2d6; transition: transform .15s, opacity .2s;
}
.odd-chip:hover { transform: translateY(-3px); }
.odd-chip.right { background: #7fe8c9; box-shadow: 0 6px 0 #1f7a52; }
.odd-chip.wrong { background: #ffd4d4; animation: shake .4s; }
.odd-chip.dim { opacity: .45; }
.odd-why { margin-top: 18px; color: #e6eaff; font-weight: 800; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.odd-why[hidden] { display: none; }
.odd-why .btn { margin-top: 10px; }

/* what is the word */
.sp-clue { color: var(--gold-soft); font-weight: 800; margin: -4px 0 12px; display: inline-flex; gap: 6px; align-items: center; }
.sp-slots { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-slots.shake { animation: shake .4s; }
.sp-slot {
  width: 54px; height: 60px; border-radius: 14px; border: 2.5px dashed rgba(255,255,255,.4); background: rgba(255,255,255,.06);
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.9rem; color: #fff; cursor: default;
}
.sp-slot.full { border: none; background: var(--c); cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.sp-slots.solved .sp-slot { background: #2ecc71; }
.sp-tiles { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 64px; }
.sp-tile {
  width: 58px; height: 62px; border-radius: 16px; border: none; cursor: pointer; background: var(--c); color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2rem; box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform .15s;
}
.sp-tile:hover { transform: translateY(-3px); }
.sp-tile.used { background: transparent; box-shadow: none; border: 2px dashed rgba(255,255,255,.18); cursor: default; }

/* listen and repeat */
.rep-count { color: #9aa4d8; font-weight: 800; }
.rep-sentence { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: #fff; line-height: 1.3; margin: 8px 0 4px; }
.rep-rec.on { background: linear-gradient(180deg, #ff8f8f, #e65b6b) !important; color: #fff !important; border-color: transparent !important; animation: haloPulse 1.2s ease-in-out infinite; }
.rep-note { color: #9aa4d8; font-size: .82rem; font-weight: 700; margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; }
.rep-next { margin-top: 18px; }

/* build the sentence */
.unj-line {
  min-height: 72px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 14px;
  border-radius: 20px; background: #fff; margin-bottom: 18px; box-shadow: inset 0 0 0 3px #f0b93c;
}
.unj-line.solved { box-shadow: inset 0 0 0 3px #2ecc71; background: #eafff5; }
.unj-line.shake { animation: shake .4s; box-shadow: inset 0 0 0 3px #ff7a7a; }
.unj-placeholder { color: #9a8fc0; font-weight: 700; }
.unj-bag { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 56px; }
.unj-word {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.35rem; padding: 10px 18px; border-radius: 16px; border: none; cursor: pointer;
  color: #fff; background: #4f5a8f; box-shadow: 0 5px 0 #2f376a; transition: transform .15s;
}
.unj-word:hover { transform: translateY(-2px); }
.unj-word.in { background: #e9e4ff; color: var(--ink); box-shadow: 0 4px 0 #b9b2d6; }
@media (max-width: 520px) {
  .ml-word { font-size: 2rem; } .ml-opt { width: 62px; height: 62px; } .act-pic { width: 150px; height: 150px; }
  .sp-slot, .sp-tile { width: 44px; height: 52px; font-size: 1.5rem; }
}

/* hidden always wins over button display rules; dark base so nothing ever flashes white */
[hidden] { display: none !important; }
html { background: #0e1340; }

/* ══ v11 · Story Explorers + Story Masters (2026-10-27) ══ */
.reader-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#plBtn.on { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--ink); }
.story-words.long { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.75; }
.story-pl {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #f4f0ff; color: #4b3f78;
  font-weight: 600; font-size: clamp(.98rem, 1.4vw, 1.1rem); line-height: 1.6; border-left: 4px solid #b09ecf;
}
.story-pl[hidden] { display: none; }

/* ══ v12 · Dominika "Changes Part One" (2026-10-29) ══ */
.hero-panel { width: min(860px, calc(100% - 32px)); padding: 16px 28px 18px; }
.hero-panel h1 { font-size: clamp(1.4rem, min(2.6vw, 4.6vh), 2.5rem); }
.hero-panel p { font-size: clamp(.92rem, 1.3vw, 1.08rem); margin: 6px auto 12px; }
/* every button has the same 2px border so primary + secondary pairs sit on one line */
.btn { border: 2px solid transparent; vertical-align: middle; }
.btn.secondary { border-color: rgba(255,255,255,.35); }
#wvNav, .gm-nav { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
#quizOverlay, #challengeOverlay, #storyCover { cursor: pointer; }
#quizOverlay > .overlay-card, #challengeOverlay > .overlay-card, #storyCover > .overlay-card { cursor: auto; }
.intro-speak, .speak-btn { transition: background .2s, color .2s; }
.playing .intro-speak, .speak-btn.playing { background: linear-gradient(180deg, #ff8f8f, #e65b6b) !important; color: #fff !important; box-shadow: 0 5px 0 #a8364a !important; }

/* ══ v13 · level headlines above each story row on the homepage (Dominika, 29 Oct) ══ */
.cover-level { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-family: 'Baloo 2', sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 34px 0 14px; text-align: center; }
.cover-level:first-of-type { margin-top: 4px; }
.cover-level img { width: 42px; height: 42px; object-fit: contain; }
.cover-level small { font-family: inherit; font-size: .62em; font-weight: 800; color: #aab4e8; padding: 3px 10px;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.cover-level.gold { color: var(--gold-soft); } .cover-level.mint { color: var(--mint); } .cover-level.pink { color: var(--pink); }
.cover-level + .cover-row { margin-bottom: 0; }
.section .cover-row:last-of-type { margin-bottom: 26px; }

/* ══ v14 · narration speed for "Czytaj mi" ══ */
.speed-toggle { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px; }
.speed-toggle[hidden] { display: none; }
.speed-toggle button { border: none; background: transparent; color: #cdd5ff; font-family: 'Baloo 2'; font-weight: 800;
  font-size: .95rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.speed-toggle button.on { background: var(--mint); color: var(--ink); }
@media (max-width: 700px) { .speed-toggle { order: 3; width: 100%; justify-content: center; } .speed-toggle button { flex: 1; padding: 8px 6px; font-size: .88rem; } }

/* ══ v15 · Dominika's Olek round (30 Oct) ══ */
/* lighter blue behind Wordventure and Grammagic */
body.sky-light { background: linear-gradient(180deg, #4d82d8 0%, #3a68c2 55%, #3159ad 100%) fixed; }
body.sky-light .act-card, body.sky-light .gm-explain { background: rgba(20,36,96,.42); }
body.sky-light .gm-forms span, body.sky-light .gm-ex i { color: #e4e9ff; }

/* explanation box: wider, one sentence per line */
.gm-explain { width: min(1160px, 94vw); margin-left: calc(50% - min(580px, 47vw)); }
.gm-forms { grid-template-columns: 1fr; }
.gm-forms li { align-items: baseline; }
@media (min-width: 900px) { .gm-forms li span, .gm-ex li > span { white-space: nowrap; } }

/* listen and repeat: Dalej under the buttons, the note under Dalej */
.rep-card .rep-next { display: inline-flex; float: none; position: static; margin: 16px auto 0; }
.rep-card .rep-note { display: block; text-align: center; margin: 14px 0 0; }

/* build the sentence: drag tiles, then check */
.unj-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 20px 14px; min-height: 96px;
  background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 3px var(--gold-soft); user-select: none; }
.unj-row .unj-word { position: relative; background: #5a4fb0; color: #fff; box-shadow: 0 4px 0 #3c3484; cursor: grab; touch-action: none; }
.unj-row .unj-word.drag { z-index: 5; cursor: grabbing; box-shadow: 0 14px 26px rgba(30,20,90,.42); }
.unj-row .unj-word.picked { outline: 3px solid var(--gold); outline-offset: 2px; }
.unj-row .unj-word.ok { background: #1f9d63; box-shadow: 0 4px 0 #14704a; cursor: default; }
.unj-row .unj-word.bad { animation: shake .4s; background: #e0626b; box-shadow: 0 4px 0 #a93f47; }
.unj-row.solved { box-shadow: inset 0 0 0 3px #2ecc71; background: #eafff5; }
.unj-plus { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); color: #1f9d63; font-weight: 800; font-size: 1.1rem; pointer-events: none; animation: unjPlus .8s ease-out forwards; }
@keyframes unjPlus { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -30px; } }
.unj-tip { color: #e4e9ff; font-weight: 700; font-size: .95rem; margin: 14px 0 12px; }
body.sky-light .act-hint, body.sky-light .act-hint * { color: #eef2ff; }

/* ══ v16 · Dominika's Kuba round + full pictures (30 Oct) ══ */
/* the whole picture always shows: a soft blur of it fills any spare space */
.book { grid-template-columns: 1.4fr 1fr; }
.book-art { overflow: hidden; }
.book-art::before { content: ''; position: absolute; inset: -24px; background: var(--art) center / cover; filter: blur(20px) brightness(.75); }
.book-art img { position: relative; object-fit: contain; }
@media (max-width: 820px) { .book { grid-template-columns: 1fr; } }

/* odd one out: larger explanation */
.odd-why { font-size: 1.2rem; }
.odd-why .act-en { font-size: 1rem; }

/* ══ v17 · Dominika's Franek + Lena round (31 Oct) ══ */
.rep-pl { color: #e4e9ff; font-weight: 700; font-size: 1.15rem; margin: -6px 0 16px; }
.gap-input { min-width: 7.5em; }

/* ══ v18 · white homepage + "Jedna opowieść, wiele odkryć" (5 Nov) ══ */
html:has(body.home-light), body.home-light { background: #fff; color: var(--ink); }
body.home-light .hero.hero-story { border-radius: 0 0 34px 34px; overflow: hidden; }
.discover { max-width: 1100px; margin: 0 auto; padding: 38px 5vw 10px; text-align: center; }
.discover h2 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.2rem); color: var(--ink); margin-bottom: 18px; }
.disc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.disc-item { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 8px 18px; text-decoration: none; color: var(--ink); border-left: 1px solid #ebe7f5; border-radius: 18px; transition: background .2s; }
.disc-item:first-child { border-left: none; }
.disc-item:hover { background: #f7f5ff; }
.disc-ico { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.disc-ico.lav { background: #ece6ff; } .disc-ico.sun { background: #ffe39a; } .disc-ico.mintc { background: #d3f4e7; }
.disc-item b { display: block; font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; line-height: 1.2; margin: 4px 0 4px; }
.disc-item small { display: block; color: #6a5fb3; font-size: 1rem; line-height: 1.45; }
@media (max-width: 640px) {
  .discover { padding: 30px 12px 6px; }
  .disc-item { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px 6px; border-radius: 14px; }
  .disc-ico { width: 54px; height: 54px; } .disc-ico svg { width: 25px; height: 25px; }
  .disc-item b { font-size: 1.05rem; margin: 2px 0 2px; } .disc-item small { font-size: .8rem; line-height: 1.4; }
}

/* the rest of the homepage on white */
body.home-light .section-title { color: var(--ink); text-shadow: none; }
body.home-light .section-sub { color: #5b5480; }
body.home-light .card { background: #f8f6ff; border-color: #e8e3f7; box-shadow: 0 8px 24px rgba(44,35,80,.06); color: var(--ink); }
body.home-light .how-card h3, body.home-light .price-card h3, body.home-light .level-card.gold h3, body.home-light .cover-level.gold { color: #a86b00; }
body.home-light .level-card.mint h3, body.home-light .cover-level.mint, body.home-light .parents-grid .card h3 { color: #0f8a66; }
body.home-light .level-card.pink h3, body.home-light .cover-level.pink { color: #c93f76; }
body.home-light .how-card p, body.home-light .level-card p, body.home-light .parents-grid .card p, body.home-light .price-card ul { color: #5b5480; }
body.home-light .level-card { color: var(--ink); }
body.home-light .level-card .lc-meta, body.home-light .price-card .price small, body.home-light .cover small { color: #7b74a3; }
body.home-light .level-card .lc-count, body.home-light .cover-level small { background: #efeafc; border-color: #e2dbf6; color: #4b4378; }
body.home-light .cover { background: #fff; border-color: #e8e3f7; color: var(--ink); box-shadow: 0 8px 22px rgba(44,35,80,.08); }
body.home-light .price-card-note { color: #7a5200; background: #fff5d6; border-color: #f3dc9a; }
body.home-light .btn.secondary { color: var(--ink); background: #f2edff; border-color: #d9cdf7; box-shadow: 0 6px 0 #d9cdf7; }
body.home-light .icon-badge { box-shadow: none; }
body.home-light footer { color: #7b74a3; }

/* ══ v18b · kids' homepage polish: one bold element (the step path), the rest quiet ══ */
body.home-light main > section:nth-of-type(4), body.home-light #pricing {
  background: #faf8ff; box-shadow: 0 0 0 100vmax #faf8ff; clip-path: inset(0 -100vmax); }

/* steps: a dashed adventure path with numbered stops (it is a real sequence) */
body.home-light .how-grid { position: relative; counter-reset: step; gap: 26px; }
body.home-light .how-grid::before { content: ''; position: absolute; left: 12%; right: 12%; top: 46px; border-top: 3px dashed #d6cbf3; }
body.home-light .how-card { background: none; border: none; box-shadow: none; padding: 0 6px; }
body.home-light .how-card:hover { transform: none; }
body.home-light .how-card .icon-badge { position: relative; z-index: 1; width: 92px; height: 92px; display: inline-grid; place-items: center;
  border: 5px solid #fff; box-shadow: 0 6px 0 rgba(44,35,80,.07); margin-bottom: 14px; color: var(--ink); }
body.home-light .how-card .icon-badge::after { counter-increment: step; content: counter(step); position: absolute; top: -8px; right: -8px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 .95rem/30px 'Baloo 2', sans-serif; text-align: center; }
body.home-light .icon-badge { background: #ffe39a; border-color: #fff; }
body.home-light .icon-badge.violet { background: #ece6ff; } body.home-light .icon-badge.mint { background: #d3f4e7; } body.home-light .icon-badge.pink { background: #ffe3ee; }
body.home-light .how-card h3 { color: var(--ink); }
@media (max-width: 800px) { body.home-light .how-grid::before { display: none; } }

/* levels: each its own crayon colour */
body.home-light .level-card { box-shadow: none; border-width: 2px; }
body.home-light .level-card.gold { background: #fff6dc; border-color: #f6e2a6; }
body.home-light .level-card.mint { background: #e6f8f1; border-color: #bfead8; }
body.home-light .level-card.pink { background: #ffedf4; border-color: #f8cbdc; }
body.home-light .level-card .lc-count { background: #fff; }
body.home-light .level-card.mine { box-shadow: 0 0 0 4px var(--gold); }

/* parents: a calm ticked list instead of cards */
body.home-light .parents-grid .card { background: none; border: none; box-shadow: none; padding: 2px 0 0 46px; position: relative; }
body.home-light .parents-grid .card::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: #d3f4e7; color: #0f8a66; font: 800 1.05rem/32px 'Nunito', sans-serif; text-align: center; }
body.home-light .parents-grid .card h3 { color: var(--ink); }

/* stories + pricing sit on the lavender band as white tiles */
body.home-light .price-card { background: #fff; border: 2px solid #ece7fb; box-shadow: 0 10px 26px rgba(44,35,80,.06); }
body.home-light .price-card.featured { border-color: var(--gold); background: #fffbef; }
body.home-light .cover:hover { transform: translateY(-4px); }
body.home-light a:focus-visible, body.home-light .btn:focus-visible { outline: 3px solid #7a5fd0; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { body.home-light .cover:hover, body.home-light .level-card:hover { transform: none; } }


/* homepage top: menu and picture on the night-blue band as before; the rest of the page stays white */
body.home-light > .nav { position: relative; z-index: 5; background: #0d2a5e; }
body.home-light > .nav::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, #0d2a5e, rgba(13,42,94,0)); }    /* melts the menu band into the night sky of the picture */
body.home-light .hero.hero-story { margin: 0; border-radius: 0 0 40px 40px; }
body.home-light .hero-panel h1, body.home-light .hero-panel { color: #fff; }
body.home-light .hero-panel .hero-cta { margin-top: 20px; }
@media (max-width: 700px) {   /* phone: logo on top, the menu in one row you can slide */
  body.home-light > .nav { padding: 10px 12px 6px; gap: 8px; }
  body.home-light > .nav .nav-links { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  body.home-light > .nav .nav-links::-webkit-scrollbar { display: none; }
  body.home-light > .nav .nav-links a, body.home-light > .nav .nav-links > * { white-space: nowrap; flex: none; }
}

/* homepage: paragraphs under the headings a little larger (5 Nov) */
body.home-light .how-card p, body.home-light .level-card p, body.home-light .parents-grid .card p { font-size: 1.1rem; line-height: 1.6; }
body.home-light .disc-item small { font-size: 1.08rem; }
body.home-light .price-card ul { font-size: 1.02rem; }
body.home-light .section-sub { font-size: 1.15rem; }
@media (max-width: 640px) {
  body.home-light .how-card p, body.home-light .level-card p, body.home-light .parents-grid .card p { font-size: 1.04rem; }
  body.home-light .disc-item small { font-size: .84rem; }
}
body.home-light .how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { body.home-light .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.home-light .how-grid { grid-template-columns: 1fr; } }

/* homepage top: square picture edges + chunky 3D buttons (5 Nov) */
body.home-light .hero.hero-story { border-radius: 0; }
body.home-light .hero-cta .btn { position: relative; overflow: hidden; border: none; border-radius: 22px; padding: 15px 34px;
  transition: transform .12s ease, box-shadow .12s ease; }
body.home-light .hero-cta .btn::before { content: ''; position: absolute; left: 10%; right: 10%; top: 4px; height: 42%; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0)); pointer-events: none; }   /* glossy shine */
body.home-light .hero-cta .btn.big { color: #3a2a00; background: linear-gradient(180deg, #ffe37d 0%, #ffc73f 55%, #f5aa1c 100%);
  box-shadow: 0 8px 0 #c47f0d, 0 16px 26px rgba(4,8,30,.45), inset 0 -4px 0 rgba(160,90,0,.18); }
body.home-light .hero-cta .btn.secondary { color: #2c2350; background: linear-gradient(180deg, #ffffff 0%, #efeaff 60%, #ddd2ff 100%);
  box-shadow: 0 8px 0 #9d88e6, 0 16px 26px rgba(4,8,30,.45), inset 0 -4px 0 rgba(90,60,190,.12); }
body.home-light .hero-cta .btn:hover { transform: translateY(-3px); }
body.home-light .hero-cta .btn.big:hover { box-shadow: 0 11px 0 #c47f0d, 0 20px 30px rgba(4,8,30,.5), inset 0 -4px 0 rgba(160,90,0,.18); }
body.home-light .hero-cta .btn.secondary:hover { box-shadow: 0 11px 0 #9d88e6, 0 20px 30px rgba(4,8,30,.5), inset 0 -4px 0 rgba(90,60,190,.12); }
body.home-light .hero-cta .btn:active { transform: translateY(6px); }
body.home-light .hero-cta .btn.big:active { box-shadow: 0 2px 0 #c47f0d, 0 6px 12px rgba(4,8,30,.4); }
body.home-light .hero-cta .btn.secondary:active { box-shadow: 0 2px 0 #9d88e6, 0 6px 12px rgba(4,8,30,.4); }
body.home-light .hero-cta .btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { body.home-light .hero-cta .btn { transition: none; } body.home-light .hero-cta .btn:hover { transform: none; } }

/* ══ v18c · levels + stories on one night-blue band with falling stardust (5 Nov) ══ */
.night-band { position: relative; overflow: hidden; color: #fff; padding: 70px 0 80px; margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #2a3376 0%, #141b4f 45%, #0b1035 100%); }
.night-band > section { position: relative; z-index: 1; }
.stardust { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.stardust i { position: absolute; border-radius: 50%;
  background: radial-gradient(circle, #fff 0, var(--c) 35%, transparent 72%);
  box-shadow: 0 0 12px 3px color-mix(in srgb, var(--c) 80%, transparent), 0 0 26px 6px color-mix(in srgb, var(--c) 30%, transparent); }
.stardust i.star { border-radius: 0; background: var(--c); box-shadow: none;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px var(--c)); }
.stardust i.wander { animation: fdWander var(--t) ease-in-out infinite alternate, fdTwinkle var(--tw) ease-in-out infinite; }
.stardust i.fall { animation: fdFall var(--t) linear infinite, fdTwinkle var(--tw) ease-in-out infinite; }
@keyframes fdWander { from { translate: 0 0; } to { translate: var(--dx) var(--dy); } }
@keyframes fdFall { 0% { translate: 0 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { translate: var(--dx) var(--dy); opacity: 0; } }
@keyframes fdTwinkle { 0%, 100% { scale: .65; filter: brightness(.8); } 50% { scale: 1.2; filter: brightness(1.35); } }
.stardust i.star.wander, .stardust i.star.fall { animation-name: fdWander, fdTwinkleStar; }
.stardust i.star.fall { animation-name: fdFall, fdTwinkleStar; }
@keyframes fdTwinkleStar { 0%, 100% { scale: .55; rotate: 0deg; } 50% { scale: 1.15; rotate: 45deg; } }
@media (prefers-reduced-motion: reduce) { .stardust i { animation: none !important; } }

/* inside the band: the night look again */
body.home-light .night-band .section-title { color: #fff; }
body.home-light .night-band .level-card { color: #fff; box-shadow: none; border-width: 1.5px; }
body.home-light .night-band .level-card.gold { background: rgba(255,201,77,.10); border-color: rgba(255,201,77,.40); }
body.home-light .night-band .level-card.mint { background: rgba(127,232,201,.10); border-color: rgba(127,232,201,.40); }
body.home-light .night-band .level-card.pink { background: rgba(255,143,184,.10); border-color: rgba(255,143,184,.40); }
body.home-light .night-band .level-card.gold h3, body.home-light .night-band .cover-level.gold { color: var(--gold-soft); }
body.home-light .night-band .level-card.mint h3, body.home-light .night-band .cover-level.mint { color: var(--mint); }
body.home-light .night-band .level-card.pink h3, body.home-light .night-band .cover-level.pink { color: var(--pink); }
body.home-light .night-band .level-card p { color: #dfe4ff; }
body.home-light .night-band .level-card .lc-meta, body.home-light .night-band .cover small { color: #b9c2f0; }
body.home-light .night-band .level-card .lc-count, body.home-light .night-band .cover-level small { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
body.home-light .night-band .level-card.mine { box-shadow: 0 0 0 3px var(--gold), 0 0 40px rgba(255,201,77,.25); }
body.home-light .night-band .cover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
@media (max-width: 640px) { .night-band { padding: 50px 0 60px; } }

/* "Interaktywna przygoda" row: four items, more breathing room (5 Nov) */
.discover { max-width: 1240px; padding: 56px 5vw 24px; }
.discover h2 { margin-bottom: 40px; }
.disc-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.disc-item { padding: 10px 26px; gap: 16px; }
.disc-ico.pinkc { background: #ffdcea; }
@media (max-width: 1000px) { .disc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } .disc-item:nth-child(3) { border-left: none; } }
@media (max-width: 640px) { .discover { padding: 36px 12px 10px; } .discover h2 { margin-bottom: 22px; } .disc-row { row-gap: 18px; } .disc-item { padding: 4px 8px; } }
.disc-item { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.disc-item b { font-size: 1.25rem; }
.night-band .fairydust { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }

/* ══ v19 · the magic hero: film of Mia, headline straight on the sky, no box (5 Nov) ══ */
.magic-hero { position: relative; overflow: hidden; height: min(calc(100vh - 82px), 900px); min-height: 560px;
  background: #0d2a5e var(--poster) 20% center / cover no-repeat; display: flex; align-items: center; }
.mh-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.mh-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,18,60,.78) 0%, rgba(8,18,60,.45) 34%, rgba(8,18,60,0) 58%),
              linear-gradient(0deg, rgba(8,14,48,.55) 0%, rgba(8,14,48,0) 28%); }
.mh-copy { position: relative; z-index: 2; width: min(820px, 92vw); margin-left: max(6vw, 32px); }
.mh-copy h1 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 4.1vw, 4.3rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 18px; }
.mh-copy h1 span { display: block; }
.mh-l1 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.mh-l2 { color: #ffd45e; text-shadow: 0 0 28px rgba(255,201,77,.45), 0 4px 20px rgba(0,0,0,.3); }
.mh-sub { color: #eef1ff; font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 30em; margin: 0 0 30px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.magic-hero .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; margin: 0; }
.magic-hero .hero-cta .btn { font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.magic-hero .hero-cta .btn svg { vertical-align: -4px; }
/* one entrance: the words arrive, then the buttons */
@keyframes mhIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.mh-l1 { animation: mhIn .8s .15s both cubic-bezier(.2,.8,.2,1); }
.mh-l2 { animation: mhIn .8s .35s both cubic-bezier(.2,.8,.2,1); }
.mh-sub { animation: mhIn .8s .55s both cubic-bezier(.2,.8,.2,1); }
.magic-hero .hero-cta { animation: mhIn .8s .75s both cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .mh-l1, .mh-l2, .mh-sub, .magic-hero .hero-cta { animation: none; } }
@media (max-width: 700px) {
  /* phone: the words sit on the sky above the film, so they never cover Mia */
  .magic-hero { height: auto; min-height: 0; display: flex; flex-direction: column; background: #0d2a5e; }
  .mh-shade { display: none; }
  .mh-copy { order: 1; margin: 22px 20px 0; width: auto; }
  .mh-video { order: 2; position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-position: 60% 82%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); margin-top: -40px; }
  .mh-copy h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 12px; }
  .mh-sub { font-size: 1rem; margin-bottom: 18px; max-width: 22em; }
  .magic-hero .hero-cta { gap: 12px; }
  .magic-hero .hero-cta .btn { padding: 12px 20px; font-size: .98rem; }
}

/* headline in the top-left of the sky (computers) */
@media (min-width: 701px) {
  .magic-hero { align-items: flex-start; }
  .mh-copy { margin-top: clamp(48px, 9vh, 96px); }
  .mh-shade { background: radial-gradient(ellipse 60% 70% at 0% 0%, rgba(8,18,60,.75), rgba(8,18,60,0) 70%),
                          linear-gradient(0deg, rgba(8,14,48,.45) 0%, rgba(8,14,48,0) 26%); }
}

/* step badges as 3D coins (js/steps3d.js); the flat badge stays as the fallback */
body.home-light .how-card .icon-badge.has-3d { background: none !important; border-color: transparent; box-shadow: none; overflow: visible; }
.how-card .icon-badge.has-3d > svg, .how-card .icon-badge.has-3d > i { display: none; }
.how-card .icon-badge .step3d { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
body.home-light .how-card .icon-badge.has-3d::after { z-index: 2; }
@media (max-width: 700px) {   /* phone: two equal buttons, one line each, smaller wording */
  .magic-hero .hero-cta { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; max-width: 360px; }
  body.home-light .magic-hero .hero-cta .btn { width: 100%; max-width: none; min-height: 54px; padding: 12px 16px; font-size: .95rem;
    display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; line-height: 1.2; }
  body.home-light .magic-hero .hero-cta .btn svg { width: 18px; height: 18px; flex: none; }
}
/* the "Interaktywna przygoda" icons as 3D coins too */
.disc-ico { position: relative; }
.disc-ico.has-3d { background: none !important; overflow: visible; }
.disc-ico.has-3d > svg, .disc-ico.has-3d > i { display: none; }
.disc-ico .step3d { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }


/* ══ v20 · Dominika's notes of 5 + 14 Nov (16 Nov) ══ */

/* reader: the Polish sentence sits under each English sentence */
.story-words .ln-pl { display: none; }
.story-words.with-pl { line-height: 1.6; }
.story-words.with-pl .ln { display: block; margin-bottom: .55em; }
.story-words.with-pl .ln:last-child { margin-bottom: 0; }
.story-words.with-pl .ln-en { display: block; }
.story-words.with-pl .ln-pl { display: block; font-size: .62em; font-weight: 700; line-height: 1.45; color: #7a5fb0;
  margin-top: .15em; padding-left: 12px; border-left: 3px solid #d9cdf7; }
/* the lesson page */
.moral-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 12px 3px 9px; border-radius: 999px;
  background: #fff1c2; color: #7a5200; font-size: .82rem; vertical-align: middle; }
.moral-chip svg { flex: none; }

/* Wordventure: story order always two by two; a way back under every game */
.order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 820px; margin-left: auto; margin-right: auto; }
.stage-back { display: flex; justify-content: center; margin-top: 34px; }
.stage-back[hidden] { display: none; }
.stage-back .btn { font-size: .98rem; padding: 10px 24px; }

/* Grammagic: the words to choose from sit in the gap, in yellow */
.gap-input { max-width: calc(100vw - 56px); min-width: 5.5em; }
.gap-input::placeholder { color: #ffd45e; opacity: 1; font-size: .62em; text-shadow: none; }
.br-sentence { font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.9; }
.br-sentence .gap-input { width: 7.5em; }
.br-verb { color: #ffd45e; font-size: .82em; white-space: nowrap; }
/* long rules on the drag chips */
.p-chip { max-width: min(100%, 440px); }
.p-chip.long b { font-size: 1.08rem; line-height: 1.25; }
.p-chip.long small { margin-top: 3px; line-height: 1.3; }

/* Grammagic explanation: a bright card with clear contrast */
body.sky-light .gm-explain, .gm-explain { background: none; border: none; box-shadow: none; padding: 0; gap: 26px; }
.gm-text { position: relative; background: #fffdf8; color: #2c2350; border-radius: 30px; padding: 26px 32px 26px;
  box-shadow: 0 20px 46px rgba(8,14,60,.34), 0 0 0 5px rgba(255,255,255,.2); }
.gm-text::before { content: ''; position: absolute; left: -13px; top: 74px; width: 28px; height: 28px; background: #fffdf8; border-radius: 6px; transform: rotate(45deg); }
.gm-tap-row { margin-bottom: 12px; }
.gm-tap { display: inline-block; background: #efe8ff; color: #5a37c4; font-size: .88rem; padding: 5px 14px; border-radius: 999px; }
.gm-line { color: #2c2350; font-size: 1.1rem; line-height: 1.65; margin-bottom: 2px; }
.gm-line b { color: #5a37c4; background: linear-gradient(transparent 64%, #ffe59a 64%); padding: 0 2px; border-radius: 2px; }
.gm-forms { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin: 16px 0 18px; }
.gm-forms li { background: #f4efff; border: 2px solid #e4daff; border-radius: 16px; padding: 9px 14px; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 1.04rem; }
.gm-forms li svg { color: #8a5cf0; flex: none; align-self: center; }
.gm-forms b { color: #4527a8; white-space: normal; }
body.sky-light .gm-forms span, .gm-forms span { color: #5b5380; }
.gm-forms li.gm-note, .gm-ex li.gm-note { grid-column: 1 / -1; background: #fff4cf; border: 2px solid #ffd978; border-radius: 16px; padding: 9px 14px;
  color: #5e4200; font-weight: 800; align-items: flex-start; }
.gm-forms li.gm-note svg, .gm-ex li.gm-note svg { color: #d99400; flex: none; margin-top: 3px; }
.gm-forms li.gm-note span, .gm-ex li.gm-note span { color: #5e4200; }
.gm-ex li.gm-note b { color: #5e4200; }
.gm-ex { background: #eefaf4; border-left: 6px solid #5fd6aa; border-radius: 6px 18px 18px 6px; padding: 12px 16px; margin: 8px 0 18px; display: grid; gap: 6px; }
.gm-ex li { font-size: 1.05rem; line-height: 1.55; color: #2c2350; }
.gm-ex li svg { color: #19a574; flex: none; margin-top: 4px; }
.gm-ex li b { color: #0d7a54; }
body.sky-light .gm-ex i, .gm-ex i { color: #5b5380; }
.gm-ex li.gm-note { margin: 4px 0; }
.gm-outro { background: linear-gradient(180deg, #ffe37d, #ffc73f); color: #3a2a00; border-radius: 18px; padding: 12px 18px; text-align: center; box-shadow: 0 5px 0 #d99a1c; }
.gm-outro svg { color: #3a2a00; }
@media (min-width: 900px) { .gm-forms li span, .gm-ex li > span { white-space: normal; } }   /* text wraps inside the box, never runs past its edge */
@media (max-width: 700px) {
  .gm-text { padding: 20px 18px; border-radius: 24px; }
  .gm-text::before { left: calc(50% - 14px); top: -12px; }
  .gm-forms { grid-template-columns: 1fr; }
}

/* homepage: same space under the "Interaktywna przygoda" row as above it; the two hero buttons the same size */
body.home-light .discover { padding-bottom: 56px; }
@media (max-width: 640px) { body.home-light .discover { padding-bottom: 36px; } }
@media (min-width: 701px) {
  /* same size, and small enough to stay clear of Mia in the film (17 Nov) */
  body.home-light .magic-hero .hero-cta { gap: 14px; }
  body.home-light .magic-hero .hero-cta .btn { width: clamp(232px, 20.5vw, 272px); min-height: 52px; padding: 10px 14px; font-size: clamp(.86rem, 1.08vw, .98rem);
    border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; white-space: nowrap; }
  body.home-light .magic-hero .hero-cta .btn svg { width: 18px; height: 18px; flex: none; }
}

/* ══ v21 · Listen and repeat: the speaking studio (17 Nov) ══
   1 listen (words light up, slow button) · 2 say it (live voice bars) · 3 compare (teacher, then you) */
.rep-card { max-width: 800px; margin-left: auto; margin-right: auto; padding: 22px 26px 20px; }
.rep-dots { display: flex; justify-content: center; gap: 9px; margin: 2px 0 12px; }
.rep-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.rep-dots i.done { background: var(--gold); }
.rep-dots i.now { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.rep-card .rep-sentence { margin: 4px 0 2px; }
.rep-w { display: inline-block; transition: color .14s ease-out, transform .14s ease-out; }
.rep-sentence.live .rep-w { color: rgba(255,255,255,.5); }
.rep-sentence.live .rep-w.said { color: #fff; }
.rep-sentence.live .rep-w.on { color: var(--gold); transform: translateY(-3px); }
.rep-card .rep-pl { margin: 0 0 12px; }
.rep-tip { display: flex; align-items: center; justify-content: center; min-height: 2.6em; margin: 0 auto; padding: 6px 18px; max-width: 620px;
  border-radius: 18px; background: rgba(255,255,255,.1); color: #fff; font-weight: 800; font-size: 1.02rem; line-height: 1.3; }

.rep-lanes { margin-top: 14px; padding: 4px 18px; border-radius: 24px; background: rgba(8,16,60,.36); border: 1.5px solid rgba(255,255,255,.12); text-align: left; }
.rep-lane { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.rep-lane + .rep-lane { border-top: 1.5px dashed rgba(255,255,255,.16); }
.rep-round { position: relative; flex: none; width: 68px; height: 68px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center;
  color: #2b2350; background: linear-gradient(180deg, var(--gold-soft, #ffe08a), var(--gold)); box-shadow: 0 6px 0 #c68f1f;
  transition: transform .12s ease-out, box-shadow .12s ease-out, opacity .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rep-round:active { transform: translateY(4px); box-shadow: 0 2px 0 #c68f1f; }
.rep-round:disabled { opacity: .5; cursor: default; }
.rep-mic { color: #fff; background: linear-gradient(180deg, #ff9db2, #ee5f7b); box-shadow: 0 6px 0 #b03b56; }
.rep-mic:active { box-shadow: 0 2px 0 #b03b56; }
.rep-ico { display: grid; place-items: center; }
.rep-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #2b2350;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: .86rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.28); }
.rep-round .rep-n { position: absolute; top: -5px; left: -5px; }
.done > .rep-n { background: #2ecc71; color: #fff; }
.rep-track { flex: 1; min-width: 0; }
.rep-who { display: block; margin-bottom: 4px; color: #c3ccf8; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.rep-bars { display: flex; align-items: center; gap: 3px; height: 46px; }
.rep-bars i { flex: 1; min-width: 2px; border-radius: 99px; background: var(--gold); opacity: .62; transition: opacity .12s; }
.rep-m .rep-bars i { background: #ff9db2; }
.play-t .rep-t .rep-bars i, .play-m .rep-m .rep-bars i { opacity: .26; }
.play-t .rep-t .rep-bars i.lit, .play-m .rep-m .rep-bars i.lit { opacity: 1; }
.rep-empty { display: none; align-items: center; height: 46px; color: #b4bef0; font-weight: 700; font-size: .98rem; line-height: 1.25; }
.rep-card:not(.has-mine):not(.is-rec) .rep-m .rep-bars { display: none; }
.rep-card:not(.has-mine):not(.is-rec) .rep-empty { display: flex; }
.rep-side { flex: none; width: 70px; padding: 8px 4px 6px; border-radius: 16px; cursor: pointer; display: grid; justify-items: center; gap: 2px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.3); color: #fff; font-family: inherit; font-weight: 800; font-size: .72rem; line-height: 1.1;
  transition: background .15s, border-color .15s, opacity .15s, transform .12s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rep-side:active { transform: scale(.95); }
.rep-side:disabled { opacity: .32; cursor: default; }
@media (hover: hover) { .rep-side:not(:disabled):hover { background: rgba(255,255,255,.18); border-color: var(--gold); } .rep-round:not(:disabled):hover { transform: translateY(-2px); } }

/* recording: red button with a ring that follows the voice, live bars */
.is-rec .rep-mic { background: linear-gradient(180deg, #ff7676, #e23d55); box-shadow: 0 6px 0 #a3243a, 0 0 0 calc(5px + var(--lv, 0) * 16px) rgba(255,118,118,.3); }
.is-rec .rep-m .rep-bars i { opacity: 1; background: #ff8a8a; transition: height .08s linear; }
.is-rec .rep-m .rep-who { color: #ffb3b3; }
.is-rec .rep-m .rep-who::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #ff6b6b; animation: repBlink 1s steps(2, start) infinite; }
.is-asking .rep-mic { opacity: .6; }
@keyframes repBlink { to { visibility: hidden; } }

/* a soft ring around the button to press next */
.rep-card .btn { position: relative; }
.rep-card .next-up::after { content: ''; position: absolute; inset: -7px; border-radius: 999px; border: 3px solid rgba(255,255,255,.75); pointer-events: none; animation: repRing 1.6s ease-out infinite; }
@keyframes repRing { 0% { transform: scale(.94); opacity: .9; } 70%, 100% { transform: scale(1.12); opacity: 0; } }

.rep-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 16px; margin-top: 20px; }
.rep-card .rep-actions .btn { margin: 0; font-size: 1.1rem; padding: 13px 30px; }
.rep-card .btn:disabled { opacity: .42; cursor: default; transform: none; }
.rep-cmp .rep-n { box-shadow: none; }
.rep-card .rep-note { margin: 16px 0 0; }

/* no microphone (or not allowed): listen, then say it out loud */
.no-mic .rep-m .rep-side, .no-mic .rep-cmp { display: none; }
.mic-none .rep-mic { filter: grayscale(.7); }

@media (max-width: 560px) {
  .rep-card { padding: 16px 12px 16px; }
  .rep-tip { font-size: .95rem; min-height: 3.6em; padding: 6px 14px; }
  .rep-lanes { padding: 2px 12px; border-radius: 20px; }
  .rep-lane { gap: 10px; padding: 12px 0; }
  .rep-round { width: 58px; height: 58px; }
  .rep-round svg { width: 26px; height: 26px; }
  .rep-side { width: 66px; font-size: .66rem; }
  .rep-bars { gap: 2px; height: 40px; }
  .rep-empty { height: 40px; font-size: .9rem; }
  .rep-actions { margin-top: 16px; }
  .rep-card .rep-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rep-card .next-up::after { animation: none; opacity: .8; transform: none; }
  .rep-w, .rep-round, .rep-side { transition: none; }
  .is-rec .rep-m .rep-who::before { animation: none; }
}

/* ── v22 · subscription: lock badges, lock message, plan buttons (17 Nov) ───────── */
.sc-lock, .sc-free { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  font-weight: 800; font-size: .78rem; line-height: 1.2; background: rgba(28,22,58,.82); color: #fff; z-index: 2; }
.sc-free { background: var(--mint); color: var(--ink); }
.cover { position: relative; }
.cover .sc-lock, .cover .sc-free { left: 8px; top: 8px; bottom: auto; font-size: .7rem; padding: 4px 9px; }
[data-locked] img { filter: saturate(.55) brightness(.82); }
[data-locked] .btn.small { background: #e9e4f8; color: #4b4378; box-shadow: 0 5px 0 #cfc6ec; }
.overlay-card.pay-card { position: relative; max-width: 460px; padding: 30px 28px 26px; text-align: center; }
.pay-lock { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: #fff3cf; color: #a86b00; margin-bottom: 10px; }
.pay-card h2 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 4px; }
.pay-card .pay-story { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: #7a5fb0; margin-bottom: 8px; }
.pay-card p { line-height: 1.5; }
.pay-free { display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none; color: var(--ink); background: #eafaf4; border: 2px solid #bfe9da;
  border-radius: 16px; padding: 8px 12px 8px 8px; margin: 16px 0 4px; }
.pay-free img { width: 74px; height: 50px; object-fit: cover; border-radius: 10px; flex: none; }
.pay-free span { flex: 1; min-width: 0; } .pay-free small { display: block; font-weight: 800; font-size: .78rem; color: #0f8a66; } .pay-free b { font-family: 'Baloo 2', sans-serif; line-height: 1.2; }
.pay-btns { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.pay-btns .btn { width: 100%; font-size: 1.05rem; padding: 12px 20px; }
.overlay-card .pay-btns .btn.secondary { color: var(--ink); background: #f2edff; border: 2px solid #cdb8f5; box-shadow: 0 8px 0 #cdb8f5; }
.pay-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f2edff; color: #4b4378; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.pay-close:hover { background: #e4dbfb; }
.price-msg { text-align: center; max-width: 620px; margin: 18px auto 0; font-size: .92rem; line-height: 1.5; color: #7b74a3; }
.price-msg.bad { color: #b3261e; font-weight: 800; }
.price-card .btn.busy { opacity: .7; pointer-events: none; }
@media (max-width: 560px) { .overlay-card.pay-card { padding: 26px 18px 20px; } .pay-card h2 { font-size: 1.25rem; } }

/* account + thank-you pages */
.account-card #accBox, .account-card #thBox { display: flex; flex-direction: column; align-items: stretch; }
.account-card form { display: flex; flex-direction: column; }
.acc-hint, .th-text { color: #cdd5ff; line-height: 1.5; margin: 0 0 16px; }
.th-text { font-size: 1.08rem; color: #fff; }
.acc-status { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 2px 0 20px; }
.acc-mail { font-weight: 800; color: #fff; overflow-wrap: anywhere; margin-bottom: 4px; }
.acc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 15px; border-radius: 999px; font-weight: 800; font-size: .92rem;
  background: rgba(127,232,201,.16); color: var(--mint); border: 1.5px solid rgba(127,232,201,.5); }
.acc-badge.off { background: rgba(255,201,77,.12); color: var(--gold-soft); border-color: rgba(255,201,77,.45); }
.acc-plan { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--gold-soft); line-height: 1.2; margin-top: 4px; }
.acc-line { color: #cdd5ff; } .acc-line b { color: #fff; }
.acc-warn { background: rgba(255,143,184,.14); border: 1.5px solid rgba(255,143,184,.5); color: #ffd3e2; border-radius: 14px; padding: 10px 14px; font-size: .92rem; line-height: 1.45; margin-top: 8px; }
.acc-msg { margin: 0 0 14px; font-size: .95rem; line-height: 1.5; font-weight: 800; }
.acc-msg.good { color: var(--mint); } .acc-msg.bad { color: #ffb3c7; }
.acc-foot { color: #aab4e8; font-size: .92rem; line-height: 1.5; margin: 6px 0 0; overflow-wrap: anywhere; }
.acc-foot a { color: var(--gold-soft); font-weight: 800; } .acc-foot b { color: #fff; }
.acc-link { background: none; border: 0; color: #aab4e8; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 10px; align-self: center; }
.acc-link:hover { color: #fff; }
.account-card .btn.busy { opacity: .7; pointer-events: none; }
.account-card button.btn { cursor: pointer; font-family: inherit; }
.pay-lock.th-ok { background: rgba(127,232,201,.18); color: var(--mint); align-self: center; margin-bottom: 14px; }
.th-spin { width: 46px; height: 46px; border-radius: 50%; border: 5px solid rgba(255,255,255,.18); border-top-color: var(--gold); margin: 6px auto 18px; animation: thSpin .9s linear infinite; }
@keyframes thSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .th-spin { animation-duration: 2.4s; } }
.acc-qr { background: #fff; border-radius: 18px; padding: 14px 14px 10px; margin: 0 0 14px; color: #2c2350; }
.acc-qr-img { width: min(230px, 100%); margin: 0 auto; } .acc-qr-img svg { display: block; width: 100%; height: auto; }
.acc-qr p { font-size: .9rem; line-height: 1.45; font-weight: 800; margin: 8px 0 0; }
.acc-qr-link { width: 100%; font: inherit; font-size: .8rem; padding: 10px; border-radius: 10px; border: 1.5px solid #d9d2f2; color: #2c2350; }

/* ── v23 · admin dashboard (17 Nov) ───────── */
.adm { max-width: 1120px; margin: 0 auto; padding: 10px 5vw 80px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.adm-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-who { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; }
.adm-test { background: rgba(255,201,77,.14); border: 1.5px solid rgba(255,201,77,.5); color: var(--gold-soft); border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: .84rem; }
.adm-time { color: #aab4e8; font-size: .88rem; font-weight: 800; }
.adm .btn.small { cursor: pointer; font-family: inherit; } .adm .btn.busy { opacity: .7; pointer-events: none; }
.adm-h { font-size: 1.35rem; color: #fff; margin: 26px 0 12px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.adm-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-tile small { color: #b9c2f0; font-weight: 800; font-size: .84rem; line-height: 1.3; }
.adm-tile b { font-family: 'Baloo 2', sans-serif; font-size: 2rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.adm-tile span { color: #aab4e8; font-size: .84rem; font-weight: 800; }
.adm-tile.warn b { color: var(--gold-soft); } .adm-tile.bad b { color: #ff9dbb; }
.adm-block { padding: 18px 20px; margin-top: 14px; min-width: 0; }
.adm-block h3 { font-size: 1.08rem; color: var(--gold-soft); margin-bottom: 12px; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-row { display: grid; grid-template-columns: minmax(120px, 40%) 1fr auto; align-items: center; gap: 12px; padding: 6px 0; }
.adm-row-l { color: #e6e9ff; font-weight: 800; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.adm-track { height: 14px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.adm-track i { display: block; height: 100%; border-radius: 4px; background: #8db4ff; }
.adm-row-v { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: #fff; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.adm-chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-bottom: 1px; border-bottom: 1.5px solid rgba(255,255,255,.22); }
.adm-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.adm-col i { display: block; width: 100%; background: #8db4ff; border-radius: 4px 4px 0 0; }
.adm-col:hover i { background: var(--gold); }
.adm-axis { display: flex; justify-content: space-between; color: #aab4e8; font-size: .82rem; font-weight: 800; margin-top: 6px; }
.adm-note { color: #aab4e8; font-size: .86rem; line-height: 1.5; margin-top: 12px; }
.adm-empty { color: #b9c2f0; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adm-table th { text-align: left; color: #b9c2f0; font-size: .8rem; font-weight: 800; padding: 6px 10px 8px 0; border-bottom: 1.5px solid rgba(255,255,255,.18); white-space: nowrap; }
.adm-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #e6e9ff; white-space: nowrap; }
.adm-table td:first-child { white-space: normal; overflow-wrap: anywhere; color: #fff; font-weight: 800; }
.adm-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; background: rgba(255,255,255,.12); color: #e6e9ff; }
.adm-chip.active, .adm-chip.trialing { background: rgba(127,232,201,.18); color: var(--mint); }
.adm-chip.past_due, .adm-chip.unpaid { background: rgba(255,143,184,.18); color: #ffb3c7; }
.adm-gate { max-width: 460px; margin: 20px auto; padding: 26px; text-align: center; }
.adm-gate h2 { font-size: 1.4rem; margin-bottom: 8px; } .adm-gate p { color: #cdd5ff; line-height: 1.5; margin-bottom: 16px; }
@media (max-width: 760px) { .adm-two { grid-template-columns: 1fr; } .adm-tile b { font-size: 1.7rem; } .adm-row { grid-template-columns: 1fr auto; } .adm-row .adm-track { grid-column: 1 / -1; order: 3; } }

/* ── v24 · placement test, Dominika's 23 Nov version: sorting + word-to-activity matching ───────── */
.sort-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 58px; padding: 10px; margin-bottom: 14px;
  border-radius: 18px; background: #faf7ff; border: 3px dashed #e6dcfa; cursor: pointer; }
.sort-pool.empty { min-height: 30px; padding: 4px; opacity: .6; }
.sort-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; text-align: left; }
.sort-groups.wide { grid-template-columns: repeat(2, 1fr); }
.s-group { border: 3px dashed #d9cdf7; border-radius: 18px; padding: 10px; cursor: pointer; transition: border-color .15s, background .15s; min-height: 120px; }
.s-group:hover, .s-group.over { border-color: #8a6fd8; background: #faf7ff; }
.s-group.chosen { border-style: solid; border-color: var(--gold); background: #fff4d6; }
.s-head { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem; color: #7a5fb0; text-align: center; margin-bottom: 8px; }
.s-drop { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.s-chip { display: inline-flex; align-items: center; gap: 8px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--ink);
  background: #f2edff; border: 3px solid #d9cdf7; border-radius: 999px; padding: 8px 14px; cursor: grab; touch-action: manipulation; }
.s-chip.long { border-radius: 14px; font-size: .98rem; text-align: left; }
.s-chip.sel { border-color: var(--gold); background: #fff4d6; box-shadow: 0 0 0 4px rgba(255,201,77,.35); }
.s-say { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #7a5fb0; color: #fff; flex: none; }
.m-pic.m-text { display: flex; flex-direction: column; justify-content: center; min-height: 96px; }
.m-label { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); padding: 8px 4px 2px; }
@media (max-width: 560px) { .sort-groups, .sort-groups.wide { grid-template-columns: 1fr; } .s-group { min-height: 70px; } }

/* v24b · the test's look: firefly progress trail, picture frame, A-B-C badges, listening panel, picture baskets */
.test-progress { overflow: visible; height: 16px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); }
.test-progress div { position: relative; min-width: 16px; background: linear-gradient(90deg, #ffd45e, #ffb347 60%, #ff8fb8); box-shadow: 0 0 18px rgba(255,201,77,.65); transition: width .6s cubic-bezier(.22,1,.36,1); }
.test-progress div::after { content: ''; position: absolute; right: -22px; top: 50%; width: 46px; height: 46px; margin-top: -25px;
  background: url(../assets/mia-solo.webp) center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(255,201,77,.9)); animation: tpBob 2.2s ease-in-out infinite; }
@keyframes tpBob { 50% { transform: translateY(-5px) rotate(4deg); } }
.test-top { margin-bottom: 24px; padding-right: 22px; }
.instr-mia { width: 68px; }
.instr-bubble { box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.instr-pl { font-size: 1.08rem; }

.q-card { border-radius: 34px; padding: 28px 30px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 5px #f6f1ff; }
.q-card.q-in > * { animation: qIn .42s cubic-bezier(.22,1,.36,1) both; }
.q-card.q-in > *:nth-child(2) { animation-delay: .06s; } .q-card.q-in > *:nth-child(3) { animation-delay: .12s; } .q-card.q-in > *:nth-child(4) { animation-delay: .18s; }
@keyframes qIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.q-frame { width: min(230px, 56vw); margin: 0 auto 6px; border-radius: 50%; padding: 8px; background: linear-gradient(135deg, #ffe08a, #ffb9d2 55%, #b9a2ff);
  box-shadow: 0 14px 30px rgba(122,95,176,.28); animation: qFloat 4.5s ease-in-out infinite; }
.q-frame .q-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0; display: block; background: #fff; }
@keyframes qFloat { 50% { transform: translateY(-7px); } }
.q-text { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.q-text .gap { display: inline-block; min-width: 2.6em; text-align: center; background: #fff4d6; border-radius: 12px; border-bottom: 4px solid #f0b942; padding: 0 .3em; }

.text-opts { gap: 13px; }
.text-opt { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; padding: 11px 14px; border-radius: 22px; font-size: 1.2rem;
  background: #fff; border: 3px solid #e3d9fa; box-shadow: 0 6px 0 #e3d9fa; transition: transform .12s, box-shadow .12s, border-color .12s, background .12s; }
.text-opts.two .text-opt { display: flex; justify-content: center; gap: 8px; }
.text-opt:hover { transform: translateY(-3px); border-color: #a48af0; box-shadow: 0 9px 0 #cdbdf6; }
.text-opt:active { transform: translateY(3px); box-shadow: 0 2px 0 #cdbdf6; }
.text-opt:disabled { cursor: default; } .text-opt:disabled:not(.chosen) { opacity: .55; transform: none; box-shadow: 0 6px 0 #e3d9fa; }
.text-opt.chosen { box-shadow: 0 6px 0 #f0c14a, 0 0 0 5px rgba(255,201,77,.35) !important; transform: scale(1.02); }
.opt-badge { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; color: #2c2350; }
.opt-badge.b0 { background: #bdf0df; } .opt-badge.b1 { background: #ffe08a; } .opt-badge.b2 { background: #ffc6da; } .opt-badge.b3 { background: #cdd9ff; }
.opt-txt { line-height: 1.3; }
.tap-spark { position: fixed; z-index: 200; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0, #ffd45e 45%, rgba(255,180,60,0) 70%); animation: tapSpark .65s ease-out forwards; }
@keyframes tapSpark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.listen-panel { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 22px; margin: 0 auto 8px; width: fit-content; max-width: 100%;
  border-radius: 28px; background: linear-gradient(135deg, #f1eaff, #e2f6ff); border: 3px solid #e0d5fb; text-align: left; }
.listen-mia { width: 104px; height: 104px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(122,95,176,.3)); animation: qFloat 3.6s ease-in-out infinite; }
.listen-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; border: none; cursor: pointer; flex: none; color: #2c2350;
  background: linear-gradient(180deg, #ffe08a, #ffc94d); box-shadow: 0 8px 0 #d99a17, 0 14px 26px rgba(217,154,23,.35); transition: transform .12s, box-shadow .12s; }
.listen-btn:hover { transform: translateY(-3px); } .listen-btn:active { transform: translateY(5px); box-shadow: 0 3px 0 #d99a17; }
.listen-btn::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(255,201,77,.7); opacity: 0; }
.listen-btn.playing::before { animation: listenRing 1.2s ease-out infinite; }
@keyframes listenRing { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.3); } }
.listen-btn svg { transition: opacity .15s; } .listen-btn.playing svg { opacity: 0; }
.listen-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; }
.listen-btn.playing .listen-bars { opacity: 1; }
.listen-bars i { width: 7px; height: 14px; border-radius: 4px; background: #2c2350; animation: listenBar .7s ease-in-out infinite; animation-play-state: paused; }
.listen-btn.playing .listen-bars i { animation-play-state: running; }
.listen-bars i:nth-child(2) { animation-delay: .12s; } .listen-bars i:nth-child(3) { animation-delay: .24s; } .listen-bars i:nth-child(4) { animation-delay: .36s; } .listen-bars i:nth-child(5) { animation-delay: .48s; }
@keyframes listenBar { 50% { height: 40px; } }
.listen-cap b { display: block; font-family: 'Baloo 2', sans-serif; font-size: 1.45rem; line-height: 1.1; color: #2c2350; }
.listen-cap small { display: block; font-weight: 800; color: #8a7fb5; font-size: .95rem; }
.listen-cap em { display: block; font-style: normal; font-weight: 800; color: #7a5fb0; font-size: .86rem; margin-top: 6px; max-width: 15em; line-height: 1.3; }

.match-pics { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.m-pic { border-radius: 22px; background: #faf7ff; }
.m-pic img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.m-pic .m-slot { min-height: 30px; font-size: .95rem; font-family: 'Baloo 2', sans-serif; }
.m-word { border-radius: 18px; font-size: 1.1rem; box-shadow: 0 5px 0 #d9cdf7; background: #fff; }
.m-word.sel { box-shadow: 0 5px 0 #f0c14a; }
.m-pic.m-text { background: linear-gradient(135deg, #f1eaff, #e2f6ff); min-height: 104px; }

.s-group { border-radius: 24px; padding: 12px; border-width: 3px; }
.s-group.g0 { background: #ecfbf5; border-color: #a9e6d0; } .s-group.g1 { background: #fff8e1; border-color: #f5d98a; }
.s-group.g2 { background: #ffeef4; border-color: #f7b9cf; } .s-group.g3 { background: #eef3ff; border-color: #b9c8f7; }
.s-group:hover, .s-group.over { border-style: solid; filter: brightness(1.03); transform: translateY(-2px); }
.s-head { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 1.2rem; color: #2c2350; }
.s-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 14px rgba(44,35,80,.15); }
.s-ico { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #7a5fb0; box-shadow: 0 4px 10px rgba(44,35,80,.12); }
.s-chip { background: #fff; box-shadow: 0 4px 0 #d9cdf7; transition: transform .12s; }
.s-chip:hover { transform: translateY(-2px); } .s-chip.sel { box-shadow: 0 4px 0 #f0c14a, 0 0 0 4px rgba(255,201,77,.35); }
.sort-pool { background: #f6f1ff; border-color: #dccff8; border-radius: 22px; padding: 14px; }
.match-hint { font-size: 1rem; }
@media (max-width: 560px) {
  .q-card { padding: 20px 16px 22px; border-radius: 26px; }
  .text-opt { grid-template-columns: 38px 1fr 8px; font-size: 1.08rem; padding: 10px 10px; } .opt-badge { width: 36px; height: 36px; }
  .listen-panel { gap: 12px; padding: 12px 14px; } .listen-mia { width: 76px; height: 76px; } .listen-btn { width: 78px; height: 78px; } .listen-cap b { font-size: 1.2rem; } .listen-cap em { font-size: .8rem; }
  .s-head { flex-direction: row; justify-content: center; } .s-head img { width: 56px; height: 56px; }
  .instr-mia { width: 54px; }
}
@media (prefers-reduced-motion: reduce) { .q-card.q-in > *, .q-frame, .listen-mia, .test-progress div::after, .listen-bars i, .listen-btn.playing::before { animation: none; } }

/* v24c · picture / listening questions: the visual on the left, the answers on the right, so the whole question fits one screen */
.q-split { display: grid; grid-template-columns: minmax(210px, 5fr) 7fr; gap: 26px; align-items: center; }
.q-side { display: flex; justify-content: center; }
.q-main .q-text { margin-top: 0; }
.q-split .q-frame { width: min(250px, 100%); margin: 0; }
.q-split .listen-panel { flex-direction: column; gap: 10px; padding: 16px 18px 14px; margin: 0; text-align: center; width: 100%; }
.q-split .listen-mia { width: 128px; height: 128px; margin-bottom: -6px; }
.q-split .listen-cap em { margin-left: auto; margin-right: auto; }
.q-card.q-in .q-side, .q-card.q-in .q-main > .q-text, .q-card.q-in .text-opt { animation: qIn .42s cubic-bezier(.22,1,.36,1) both; }
.q-card.q-in .text-opt:nth-child(1) { animation-delay: .08s; } .q-card.q-in .text-opt:nth-child(2) { animation-delay: .15s; } .q-card.q-in .text-opt:nth-child(3) { animation-delay: .22s; }
.q-card.q-in > .q-split { animation: none; }
@media (max-width: 700px) {
  .q-split { grid-template-columns: 1fr; gap: 14px; }
  .q-split .q-frame { width: min(190px, 52vw); }
  .q-split .listen-panel { flex-direction: row; text-align: left; width: fit-content; } .q-split .listen-mia { width: 76px; height: 76px; margin: 0; } .q-split .listen-cap em { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .q-card.q-in .q-side, .q-card.q-in .q-main > .q-text, .q-card.q-in .text-opt { animation: none; } }
/* v24d · matching: the words in a row on top, the pictures in a row underneath (fits one screen) */
.match-grid { grid-template-columns: 1fr; gap: 16px; }
.match-words { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
.m-word { padding: 8px 10px 8px 18px; gap: 12px; border-radius: 999px; }
.match-pics { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; max-width: calc(var(--n, 4) * 178px); margin: 0 auto; width: 100%; }
.m-pic { padding: 8px 8px 4px; }
.m-pic .m-slot { min-height: 32px; display: flex; align-items: center; justify-content: center; margin-top: 6px; border-radius: 12px; background: #fff; border: 2px dashed #d9cdf7; padding: 2px 6px; }
.m-pic .m-slot:not(:empty) { border-style: solid; border-color: #f0c14a; background: #fff4d6; color: #2c2350; }
.m-pic.m-text .m-label { padding: 14px 4px 8px; }
.match-hint { margin-bottom: 4px; }
@media (max-width: 560px) { .match-pics { grid-template-columns: repeat(2, 1fr); } .match-pics[style*="--n:3"] { grid-template-columns: 1fr; } }
/* v24e · keep matching and sorting inside one screen on a laptop (about 650 px tall) */
.match-hint { font-size: .92rem; margin-bottom: 10px; } .match-hint br { display: none; } .match-hint span::before { content: '  ·  '; }
.match-pics { max-width: calc(var(--n, 4) * 160px); gap: 12px; }
.sort-pool { padding: 10px 12px; margin-bottom: 12px; gap: 9px; min-height: 52px; }
.s-chip { padding: 6px 8px 6px 14px; font-size: 1rem; } .s-chip.long { padding: 8px 14px; }
.s-group { min-height: 0; padding: 10px; }
.s-head { flex-direction: row; justify-content: center; gap: 10px; margin-bottom: 6px; } .s-head img { width: 62px; height: 62px; }
.s-ico { width: 38px; height: 38px; }
.s-drop { min-height: 42px; align-items: center; }
@media (max-height: 760px) and (min-width: 701px) {
  .test-top { margin-bottom: 16px; } .instr-row { margin-bottom: 12px; } .q-card { padding: 20px 26px 22px; } .q-actions { margin-top: 12px; }
  .q-actions .btn { padding-top: 11px; padding-bottom: 11px; }
}
.q-split .listen-mia { width: 108px; height: 108px; } .q-split .listen-btn { width: 84px; height: 84px; }
@media (max-width: 700px) { .q-split .listen-panel { width: 100%; box-sizing: border-box; justify-content: flex-start; } .listen-cap { min-width: 0; } .q-split .listen-btn { width: 76px; height: 76px; } }
/* v25 · the last page: "Big Idea" in big letters, "What can we learn?" under it (Dominika, 24 Nov) */
.moral-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0 4px; }
.moral-head .moral-chip { margin-left: 0; font-family: 'Baloo 2', sans-serif; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800;
  padding: 6px 20px 6px 14px; gap: 9px; box-shadow: 0 5px 0 #f0d27a; }
.moral-ask { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #7a5fb0; }
/* v25b · only "What can we learn?" on the last page, as a purple button (Dominika, 24 Nov) */
.moral-ask { display: inline-flex; align-items: center; gap: 9px; color: #fff; background: linear-gradient(180deg, #9b7fe6, #7a5fb0);
  border-radius: 999px; padding: 8px 22px 8px 16px; box-shadow: 0 5px 0 #5b4392; font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.2; }
.moral-ask svg { flex: none; color: #ffe08a; }
/* v25c · "What can we learn?" made nicer: glossy purple pill, glowing bulb badge, sparkles, a soft shine */
.moral-head { margin: 12px 0 8px; }
.moral-ask { position: relative; overflow: visible; display: inline-flex; align-items: center; gap: 12px; isolation: isolate;
  padding: 7px 26px 7px 7px; border-radius: 999px; color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.15; letter-spacing: .2px; text-shadow: 0 1px 0 rgba(60,30,120,.35);
  background: linear-gradient(180deg, #b49bff 0%, #8f6fe8 48%, #7652d6 100%);
  box-shadow: 0 6px 0 #5a3fb0, 0 12px 24px rgba(118,82,214,.35), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(60,30,140,.25);
  animation: maIn .6s cubic-bezier(.34,1.56,.64,1) both; }
.moral-ask::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; overflow: hidden;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  animation: maShine 3.6s ease-in-out 1s infinite; }
.ma-bulb { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: #8a5a00; background: radial-gradient(circle at 35% 30%, #fff6cf, #ffd45e 55%, #f5b52e);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 0 18px rgba(255,212,94,.8); animation: maGlow 2.4s ease-in-out infinite; }
.ma-txt { padding-top: 1px; }
.ma-spark { position: absolute; width: 12px; height: 12px; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 20%, #ffe08a 0 30%, transparent 0 45%, #ffe08a 0 55%, transparent 0 70%, #ffe08a 0 80%, transparent 0 95%, #ffe08a 0);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: maTwinkle 2.2s ease-in-out infinite; }
.ma-spark.s1 { right: -8px; top: -8px; } .ma-spark.s2 { right: 14px; bottom: -10px; width: 9px; height: 9px; animation-delay: .7s; }
.ma-spark.s3 { left: 46px; top: -9px; width: 8px; height: 8px; animation-delay: 1.4s; }
@keyframes maIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes maShine { 0%, 55% { background-position: -150% 0; } 85%, 100% { background-position: 250% 0; } }
@keyframes maGlow { 50% { box-shadow: 0 0 0 3px rgba(255,255,255,.45), 0 0 28px rgba(255,212,94,1); } }
@keyframes maTwinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@media (max-width: 560px) { .moral-ask { gap: 9px; padding-right: 18px; } .ma-bulb { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .moral-ask, .moral-ask::before, .ma-bulb, .ma-spark { animation: none; } }

.moral-ask .ma-bulb svg { color: #8a5a00; }
.ma-spark { background: #ffd45e; width: 16px; height: 16px; filter: drop-shadow(0 0 4px rgba(255,212,94,.9)); }
.ma-spark.s1 { right: -9px; top: -9px; } .ma-spark.s2 { width: 11px; height: 11px; right: 18px; bottom: -11px; } .ma-spark.s3 { width: 10px; height: 10px; left: 50px; top: -10px; }
/* v26 · test result: every story of the level, three to a row (Dominika, 24 Nov) */
.rec-grid.all { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; }
@media (max-width: 700px) { .rec-grid.all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rec-grid.all { grid-template-columns: 1fr; } }

