/* =========================================================
   Animated lesson player. The stage keeps its own dark look in
   both themes (like a video); everything inside is sized in em
   from the stage width, so it scales like a video frame.
   ========================================================= */
.anim { padding: 12px; }
.stage {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; color: #f3f5fb; isolation: isolate;
  background:
    radial-gradient(60% 55% at 100% 0%, rgba(255, 106, 61, .38), transparent 62%),
    radial-gradient(55% 60% at 0% 100%, rgba(46, 200, 140, .26), transparent 62%),
    radial-gradient(50% 50% at 60% 110%, rgba(70, 130, 255, .30), transparent 60%),
    #151936;
  --s: #63e2aa; --o: #8cc4ff; --sfx: #ffb347; --dim: rgba(243, 245, 251, .62);
  --glass: rgba(255, 255, 255, .09); --glass-line: rgba(255, 255, 255, .16);
}
.stage-inner { position: absolute; inset: 0; font-size: clamp(8px, 2.5cqw, 30px); line-height: 1.35; }

/* ---------- Scenes ---------- */
.sc {
  position: absolute; inset: 0; padding: 3.2em 2.4em 1.6em; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .9em; text-align: center;
  opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity .45s, transform .6s, visibility 0s .45s;
}
.sc.active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s, transform .6s; }
.kicker {
  position: absolute; top: 1.3em; left: 1.6em; font-size: .78em; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); background: var(--glass); padding: .35em .9em; border-radius: 99em;
}

/* ---------- Beat-driven visibility ---------- */
.a { opacity: 0; transform: translateY(.9em); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.2); }
.a.on { opacity: 1; transform: none; }
.a.a-pop { transform: scale(.4); }
.a.a-pop.on { transform: none; }
.a.gone:not(.on), .off { display: none !important; }
.a.gone.on { animation: rise .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.a.a-pop.gone.on { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(.9em); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.hl { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); filter: brightness(1.25); } }

.stage .s { color: var(--s); } .stage .o { color: var(--o); } .stage .sfx { color: var(--sfx); }
.stage .good { color: var(--s); } .stage .bad { color: #ff9d94; }
.stage b { font-weight: 800; }

/* ---------- Shared pieces ---------- */
.headline { font-size: 2.3em; font-weight: 800; letter-spacing: -.01em; }
.headline span { color: var(--dim); font-weight: 600; }
.headline small { display: block; font-size: .45em; font-weight: 600; color: var(--dim); margin-top: .5em; }
.soft { font-size: 1.15em; color: var(--dim); font-weight: 600; }
.x-tr { font-size: 1.1em; color: var(--dim); }
.sent { display: flex; gap: .6em; justify-content: center; flex-wrap: wrap; }
.x-chip {
  display: inline-flex; flex-direction: column; align-items: center; padding: .45em .9em .35em; border-radius: .7em;
  background: var(--glass); border: .09em solid var(--glass-line); transition: background .4s, border-color .4s, color .4s;
}
.x-chip b { font-size: 1.9em; line-height: 1.15; }
.x-chip small { font-size: .68em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .4s; }
.x-chip.lit small { opacity: .95; }
.x-chip.r-s.lit { background: rgba(99, 226, 170, .18); border-color: var(--s); color: var(--s); }
.x-chip.r-o.lit { background: rgba(140, 196, 255, .18); border-color: var(--o); color: var(--o); }
.x-chip.r-v.lit { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.x-chip.plain { opacity: .75; }
.cols2, .cols3 { display: flex; gap: 1em; justify-content: center; align-items: stretch; width: 100%; }
.box, .col {
  flex: 1; max-width: 17em; background: var(--glass); border: .09em solid var(--glass-line); border-radius: 1em;
  padding: .9em 1em; text-align: left;
}
.box.x-hot, .col.hl { border-color: var(--sfx); background: rgba(255, 179, 71, .12); }
.box h4 { margin: 0 0 .4em; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.box p { margin: .15em 0; font-size: 1.45em; font-weight: 600; transition: color .25s, transform .25s; transform-origin: left; }
.box p.hl, .exs p.hl { color: var(--sfx); animation: none; transform: scale(1.06); }
.rule, .x-formula {
  background: var(--glass); border: .09em solid var(--glass-line); border-radius: 1em; padding: .7em 1.2em;
  font-size: 1.25em; font-weight: 600;
}
.rule i, .x-formula i { margin: 0 .7em; opacity: .5; font-style: normal; }
.x-formula > div { font-size: 1.5em; font-weight: 800; }
.x-formula small { display: block; margin-top: .4em; font-size: .85em; color: var(--dim); font-weight: 600; }

/* ---------- Scene 1 ---------- */
.logo {
  width: 3.4em; height: 3.4em; border-radius: 1em; display: grid; place-items: center; font-size: 1.5em; font-weight: 800;
  background: linear-gradient(135deg, #ff5a36, #ffb020); box-shadow: 0 .5em 1.4em rgba(255, 90, 54, .45);
}
.brandname { font-size: 1.05em; font-weight: 700; color: var(--dim); letter-spacing: .04em; }
.x-title { margin: 0; font-size: 2.9em; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.topics { display: flex; gap: .7em; flex-wrap: wrap; justify-content: center; }
.tcard {
  display: flex; align-items: center; gap: .6em; padding: .55em .95em; border-radius: .8em; font-weight: 700; font-size: 1.1em;
  background: var(--glass); border: .09em solid var(--glass-line);
}
.tcard i { font-style: normal; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #151936; font-size: .85em; font-weight: 800; }

/* ---------- Scene 2 ---------- */
.slots { display: flex; align-items: center; gap: .6em; font-size: 1.5em; font-weight: 800; flex-wrap: wrap; justify-content: center; }
.slots em { font-style: normal; opacity: .5; }
.slot { padding: .45em .9em; border-radius: .7em; border: .12em dashed currentColor; }
.slot.r-s { color: var(--s); } .slot.r-o { color: var(--o); }
.actors { display: flex; align-items: center; justify-content: center; gap: .4em; }
.actor { display: inline-flex; flex-direction: column; align-items: center; font-size: 3em; line-height: 1; animation: bob 2.6s ease-in-out infinite; }
.actor:last-child { animation-delay: -1.3s; }
.actor small { font-size: .26em; font-weight: 700; color: var(--dim); margin-top: .5em; }
@keyframes bob { 50% { transform: translateY(-.12em); } }
.love { position: relative; width: 9em; height: 2.4em; }
.heart { position: absolute; top: .2em; left: 0; font-style: normal; font-size: 1.7em; }
.heart.to-right.on { animation: flyR 1.7s ease-in-out infinite; }
.heart.to-left.on { animation: flyL 1.7s ease-in-out infinite; }
@keyframes flyR { 0% { left: 0; opacity: 0; transform: scale(.5); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 1.2em); opacity: 0; transform: scale(1.25); } }
@keyframes flyL { 0% { left: calc(100% - 1.2em); opacity: 0; transform: scale(.5); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 0; opacity: 0; transform: scale(1.25); } }

/* ---------- Scene 3 ---------- */
.x-pair { font-size: 1.15em; font-weight: 700; }
.x-pair b:last-child { color: var(--sfx); font-size: 1.25em; }
.col .ex { font-size: 1.1em; font-weight: 600; margin-top: .35em; }
.col .x-tr { font-size: .9em; }
.col.hl { animation: none; transform: translateY(-.25em); }
.cmp { display: flex; gap: .7em; flex-wrap: wrap; justify-content: center; font-size: 1.3em; font-weight: 700; }
.cmp span { background: var(--glass); border-radius: .7em; padding: .4em .8em; }
.chant { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; }
.chant .si, .pcard { transition: transform .2s, background .2s, border-color .2s; }
.chant .si { font-size: 1.3em; font-weight: 800; padding: .35em .8em; border-radius: 99em; background: var(--glass); border: .09em solid var(--glass-line); }
.chant .si.hl { animation: none; background: var(--sfx); border-color: var(--sfx); color: #151936; transform: scale(1.12); }

/* ---------- Scene 4 ---------- */
.story { text-align: left; background: var(--glass); border: .09em solid var(--glass-line); border-radius: 1em; padding: .8em 1.4em; }
.story p { margin: .25em 0; font-size: 1.6em; font-weight: 600; }
.story .name { display: inline-block; color: #ffd166; font-weight: 800; }
.story .name.hl { animation: shake .5s ease-in-out infinite; color: #ff9d94; }
@keyframes shake { 25% { transform: translateX(-.08em) rotate(-1.5deg); } 75% { transform: translateX(.08em) rotate(1.5deg); } }
.story .new { display: inline-block; font-weight: 800; background: rgba(99, 226, 170, .18); border-radius: .35em; padding: 0 .3em; }
.note { font-size: 1.25em; font-weight: 700; }
.defs { display: flex; gap: .8em; flex-wrap: wrap; justify-content: center; font-size: 1.35em; font-weight: 600; }
.defs span { background: var(--glass); border: .09em solid var(--glass-line); border-radius: .8em; padding: .45em 1em; }

/* ---------- Scene 5 ---------- */
.forms { display: flex; gap: .7em; flex-wrap: wrap; justify-content: center; }
.x-badge { font-size: 1.05em; font-weight: 800; letter-spacing: .04em; padding: .45em 1em; border-radius: 99em; }
.b-s { background: rgba(99, 226, 170, .2); color: var(--s); } .b-o { background: rgba(140, 196, 255, .2); color: var(--o); }

/* ---------- Scene 6 ---------- */
.pairs7 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6em; width: 100%; max-width: 44em; }
.pcard { background: var(--glass); border: .09em solid var(--glass-line); border-radius: .9em; padding: .6em .5em .7em; }
.pcard small { display: block; font-size: .78em; font-weight: 700; color: var(--dim); margin-bottom: .2em; }
.pcard div { font-size: 1.45em; font-weight: 800; white-space: nowrap; }
.pcard i { font-style: normal; opacity: .45; margin: 0 .3em; font-size: .7em; }
.pcard.hl { animation: none; transform: scale(1.09); border-color: var(--sfx); background: rgba(255, 179, 71, .16); }

/* ---------- Scene 7 ---------- */
.mnemo {
  font-size: 2.3em; font-weight: 800; padding: .35em 1em; border-radius: .6em; letter-spacing: -.01em;
  background: linear-gradient(135deg, rgba(255, 90, 54, .35), rgba(255, 176, 32, .3)); border: .07em solid var(--sfx);
}
.exs { text-align: left; }
.exs p { margin: .2em 0; font-size: 1.7em; font-weight: 600; transition: color .25s, transform .25s; transform-origin: left; }

/* ---------- Scene 8 ---------- */
.quiz { display: flex; flex-direction: column; align-items: center; gap: .8em; width: 100%; }
.qn { font-size: .85em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sfx); }
.qs { font-size: 1.75em; font-weight: 700; line-height: 1.5; }
.qs .x-lead { display: block; color: var(--dim); font-weight: 600; font-size: .85em; }
.x-blank { display: inline-block; min-width: 2.6em; border-bottom: .12em solid var(--sfx); text-align: center; color: var(--sfx); margin: 0 .15em; }
.x-blank b { display: inline-block; color: var(--s); }
.x-opts { display: flex; gap: .7em; }
.x-opt { font-size: 1.5em; font-weight: 800; padding: .3em 1.1em; border-radius: .6em; background: var(--glass); border: .09em solid var(--glass-line); transition: all .4s; }
.x-opt.x-ok.lit { background: var(--s); border-color: var(--s); color: #10352a; transform: scale(1.1); }
.x-opt.x-no.lit { opacity: .35; text-decoration: line-through; }
.x-think { font-size: 1.15em; font-weight: 700; color: var(--dim); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.x-why { font-size: 1.15em; font-weight: 700; color: var(--s); }

/* ---------- Scene 9 ---------- */
.sum { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; text-align: left; counter-reset: sum; }
.sum li { counter-increment: sum; font-size: 1.3em; font-weight: 600; background: var(--glass); border: .09em solid var(--glass-line); border-radius: .8em; padding: .5em 1em .5em 2.8em; position: relative; }
.sum li::before { content: counter(sum); position: absolute; left: .7em; top: 50%; translate: 0 -50%; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; color: #151936; display: grid; place-items: center; font-size: .8em; font-weight: 800; }
.sum li.hl { animation: none; border-color: var(--sfx); background: rgba(255, 179, 71, .14); }
.bye { font-size: 2.1em; font-weight: 800; }

/* ---------- Overlays ---------- */
.stage-cover {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; cursor: pointer;
  background: rgba(15, 18, 40, .55); backdrop-filter: blur(3px); border: 0; color: #fff; font: inherit; width: 100%;
}
.stage-cover[hidden] { display: none; }
.cover-play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 32px; padding-left: 6px;
  background: linear-gradient(135deg, #ff5a36, #ffb020); box-shadow: 0 10px 30px rgba(255, 90, 54, .5); transition: transform .2s;
}
.stage-cover:hover .cover-play { transform: scale(1.08); }
.cover-title { font-size: 18px; font-weight: 800; }
.cover-sub { font-size: 14px; opacity: .8; margin-top: 2px; }
.stage-end { cursor: default; }
.stage-end .btn-row { justify-content: center; margin-top: 14px; }

/* ---------- Subtitles & controls ---------- */
.subs {
  min-height: 3.4em; margin: 12px 4px 4px; padding: 10px 14px; border-radius: 12px; background: var(--soft);
  font-size: 17px; line-height: 1.5; font-weight: 600; text-align: center; display: grid; place-items: center;
}
.subs[hidden] { display: none; }
.subs .en { color: var(--obj); font-weight: 800; }
.subs span { opacity: .6; transition: opacity .2s; }
.subs span.en { opacity: .8; }
.subs span.cur { opacity: 1; }
.subs .idle { opacity: .6; font-weight: 500; }

.ctrl { display: flex; align-items: center; gap: 8px; padding: 8px 4px 2px; flex-wrap: wrap; }
.ctrl button, .ctrl select {
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: 700 14px/1 var(--font); cursor: pointer;
}
.ctrl button:hover, .ctrl select:hover { background: var(--soft); }
.ctrl .play { background: var(--brand); border-color: var(--brand); color: #fff; min-width: 96px; }
.ctrl .play:hover { background: var(--brand); filter: brightness(1.06); }
.ctrl button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ctrl .time { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctrl .spacer { flex: 1; }
.seek { width: 100%; margin: 10px 0 0; accent-color: var(--brand); height: 22px; cursor: pointer; }
.scene-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 4px 4px; }
.scene-chips button {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 700 13px/1 var(--font);
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.scene-chips button:hover { color: var(--ink); }
.scene-chips button.cur { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.scene-chips button.past::before { content: "✓ "; color: var(--subj); }
.scene-chips button.cur.past::before { color: inherit; }

/* Listen-only mode */
.anim.listen .stage { display: none; }
.listen-card { display: none; text-align: center; padding: 26px 16px 8px; }
.anim.listen .listen-card { display: block; }
.listen-card .big-ico { font-size: 44px; }
.listen-card h3 { margin: 6px 0 2px; font-size: 20px; }
.anim.listen .subs { font-size: 20px; min-height: 5em; }

/* ---------- Phones: taller stage, stacked layouts ---------- */
@media (max-width: 640px) {
  .anim { padding: 8px; }
  .stage { aspect-ratio: 4 / 5; }
  .stage-inner { font-size: 4.05cqw; }
  .sc { padding: 3.4em 1.1em 1.2em; gap: .75em; }
  .kicker { left: 1.1em; top: 1.1em; }
  .x-title { font-size: 2.3em; }
  .headline { font-size: 1.9em; }
  .topics { flex-direction: column; align-items: stretch; width: 82%; gap: .5em; }
  .cols2, .cols3 { flex-direction: column; align-items: stretch; gap: .55em; }
  .box, .col { max-width: none; padding: .6em .9em; }
  .box p { font-size: 1.3em; margin: .05em 0; }
  .col { display: grid; grid-template-columns: auto 1fr; column-gap: .8em; align-items: center; }
  .col .x-pair { grid-row: span 2; font-size: 1.15em; }
  .col .ex { margin-top: 0; font-size: 1.05em; }
  .x-chip b { font-size: 1.55em; }
  .x-chip { padding: .4em .6em .3em; }
  .sent { gap: .35em; }
  .actor { font-size: 2.6em; }
  .love { width: 6em; }
  .rule, .x-formula { font-size: 1.05em; padding: .6em .8em; }
  .rule i, .x-formula i { display: block; height: .2em; visibility: hidden; margin: 0; }
  .x-formula > div { font-size: 1.35em; }
  .pairs7 { grid-template-columns: repeat(2, 1fr); gap: .45em; }
  .pcard { padding: .35em .4em .45em; }
  .pcard div { font-size: 1.45em; }
  .pcard:last-child { grid-column: span 2; }
  .story p { font-size: 1.3em; }
  .story { padding: .7em 1em; }
  .mnemo { font-size: 1.75em; }
  .exs p { font-size: 1.35em; }
  .qs { font-size: 1.45em; }
  .cmp { font-size: 1.1em; flex-direction: column; align-items: center; gap: .4em; }
  .chant .si { font-size: 1.1em; }
  .sum li { font-size: 1.1em; }
  .subs { font-size: 16px; }
  .ctrl { gap: 6px; }
  .ctrl button, .ctrl select { padding: 0 10px; }
  .ctrl .play { min-width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .actor, .heart.on, .hl, .x-think, .story .name.hl { animation: none !important; }
  .heart { left: calc(50% - .6em); }
}

/* Fixes after first run */
.logo { flex-shrink: 0; }
.sc > * { flex-shrink: 0; }
@media (max-width: 640px) {
  .logo { width: 2.6em; height: 2.6em; }
  .sc[data-scene="pembuka"] { gap: .55em; }
  .tcard { padding: .4em .8em; font-size: 1em; }
}

/* English grammar terms next to the Indonesian ones */
.x-chip small i { display: block; font-style: normal; font-weight: 700; opacity: .75; letter-spacing: .06em; }
.slot { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; opacity: .4; transition: opacity .35s, transform .35s; }
.slot.lit { opacity: 1; transform: scale(1.04); }
.slot small { font-size: .6em; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.x-badge { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; border-radius: 1em; }
.x-badge small { font-size: .78em; font-weight: 700; opacity: .85; letter-spacing: .05em; }
.x-formula .en-line { font-size: 1em; font-weight: 700; margin-top: .15em; opacity: .9; }
.sc[data-scene="pembuka"] { gap: .55em; padding-top: 1.6em; }
.logo { width: 2.7em; height: 2.7em; }
.x-title { font-size: 2.5em; }
@media (max-width: 640px) { .logo { width: 2.3em; height: 2.3em; } .x-title { font-size: 2.1em; } }

/* ---------- Chapter 2 pieces ---------- */
.dlg { width: 100%; max-width: 30em; display: grid; gap: .7em; }
.dlg p { margin: 0; display: flex; align-items: center; gap: .6em; }
.dlg p.right { justify-content: flex-end; }
.dlg .who { font-size: 2.6em; line-height: 1; }
.dlg .bubble { background: var(--glass); border: .09em solid var(--glass-line); border-radius: 1em; padding: .5em .9em; font-size: 1.5em; font-weight: 700; text-align: left; }
.dlg b { display: inline-block; }
.pcard em { display: block; font-style: normal; font-size: .82em; font-weight: 600; color: var(--dim); margin-top: .15em; }
.own { display: flex; flex-direction: column; align-items: center; gap: .25em; }
.own .ico { font-size: 3.2em; line-height: 1.1; animation: bob 2.6s ease-in-out infinite; }
.own p { margin: 0; font-size: 1.9em; font-weight: 700; }
.own .x-why { margin-top: .5em; background: var(--glass); border-radius: 99em; padding: .3em 1em; }
.box .x-tr { font-size: .9em; font-weight: 600; margin: .1em 0 0; }
.x-chip.plain small { opacity: .8; }
@media (max-width: 640px) {
  .dlg .bubble { font-size: 1.2em; }
  .dlg .who { font-size: 2.1em; }
  .own p { font-size: 1.45em; }
  .own .ico { font-size: 2.6em; }
  .pcard em { font-size: .75em; }
}

/* ---------- Pieces shared by Chapters 3 to 11 ---------- */
.own p.x-tr { font-size: 1.15em; font-weight: 600; }
.f3 { display: grid; gap: .5em; width: 100%; max-width: 31em; text-align: left; }
.f3 p {
  margin: 0; display: flex; align-items: center; gap: .7em; font-size: 1.5em; font-weight: 700; border-radius: .7em; padding: .4em .8em;
  background: var(--glass); border: .09em solid var(--glass-line); transition: opacity .45s, transform .55s, border-color .3s, background .3s;
}
.f3 p > i { font-style: normal; flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85em; }
.f3 .pos { background: rgba(99, 226, 170, .25); color: var(--s); }
.f3 .neg { background: rgba(255, 157, 148, .25); color: #ff9d94; }
.f3 .ask { background: rgba(140, 196, 255, .25); color: var(--o); }
.f3 p.hl { animation: none; border-color: var(--sfx); background: rgba(255, 179, 71, .14); }
.nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45em; width: 100%; max-width: 40em; }
.nums.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 32em; }
.nums.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 26em; }
.nums.n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 44em; }
.nums .si, .vgrid .si {
  background: var(--glass); border: .09em solid var(--glass-line); border-radius: .7em; font-weight: 700;
  transition: opacity .45s, transform .25s, background .25s, border-color .25s, color .25s;
}
.nums .si { display: flex; flex-direction: column; align-items: center; padding: .35em .1em; font-size: .95em; }
.nums .si b { font-size: 1.45em; line-height: 1.15; color: var(--sfx); }
.nums .si.hl { animation: none; background: var(--sfx); border-color: var(--sfx); color: #151936; transform: scale(1.1); }
.nums .si.hl b { color: inherit; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em; width: 100%; max-width: 34em; }
.vgrid.v1 { grid-template-columns: minmax(0, 1fr); max-width: 22em; }
.vgrid.v3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 42em; }
.vgrid .si { padding: .4em .5em; font-size: 1.3em; font-weight: 800; }
.vgrid .si i { font-style: normal; opacity: .45; margin: 0 .35em; font-size: .75em; }
.vgrid .si small { display: block; font-size: .6em; font-weight: 600; color: var(--dim); }
.vgrid .si.hl { animation: none; transform: scale(1.06); border-color: var(--sfx); background: rgba(255, 179, 71, .16); }
.pairs7.p3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 36em; }
.tl { position: relative; width: 100%; max-width: 28em; height: 4.6em; }
.tl .bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1.9em; border-radius: 99em; display: grid; place-items: center; font-weight: 800;
  background: rgba(99, 226, 170, .2); border: .09em solid var(--s); color: var(--s);
}
.tl .pin { position: absolute; left: 66%; top: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; font-weight: 800; color: var(--o); }
.tl .pin::after { content: ""; width: .16em; height: 3em; border-radius: 99em; background: var(--o); }
.tl .hl { animation: none; filter: brightness(1.35); }
.own.plain p { font-size: 1.7em; }
@media (max-width: 640px) {
  .f3 p { font-size: 1.2em; padding: .4em .6em; gap: .5em; }
  .nums, .nums.n7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nums.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums .si { flex-direction: row; justify-content: center; gap: .4em; padding: .3em .1em; }
  .nums .si b { font-size: 1.2em; }
  .vgrid .si { font-size: 1.1em; }
  .vgrid.v3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pairs7.even .pcard:last-child { grid-column: auto; }
  .pairs7.p3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defs { font-size: 1.15em; gap: .5em; }
  .own.plain p { font-size: 1.35em; }
}
.x-opts { flex-wrap: wrap; justify-content: center; }
@media (max-width: 640px) {
  .nums.n3 .si { flex-direction: column; gap: 0; font-size: .9em; }
  .x-opt { font-size: 1.25em; padding: .3em .8em; }
}
/* Four-point summaries need a little more room */
.sc[data-scene="penutup"] { gap: .6em; }
.sum li { font-size: 1.2em; padding: .4em 1em .4em 2.8em; }
.bye { font-size: 1.8em; }
@media (max-width: 640px) { .sum li { font-size: 1.05em; } .bye { font-size: 1.6em; } }
/* "they → them" must stay inside its card on wide screens */
@media (min-width: 641px) { .pcard div { font-size: 1.3em; } .pcard i { margin: 0 .2em; } .pairs7.even .pcard div { font-size: 1.45em; } }
