/* Lesson page /listening */
.top-r { display: flex; align-items: center; gap: 10px; }
.btn-present { padding: 9px 16px; font-size: 13px; background: var(--clay); }
.lesson { max-width: 980px; }
.stage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 40px); margin: 22px 0; }
.hero-stage { background: var(--ink); color: var(--paper); border: 0; }
.hero-stage h1 { margin-top: 6px; }
.hero-stage .lead { color: #D9D0C2; }
.goals { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.goals li { background: rgba(255,255,255,.07); border-radius: 16px; padding: 10px 14px; }
.goals b { color: var(--sun); margin-right: 6px; }
.wb { margin: 0; color: var(--sun); font-weight: 700; }
.step { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 99px; background: var(--sage-l); color: #3E5C39; font-weight: 800; font-size: 13px; }
.stage h2 { font-size: clamp(22px, 3vw, 34px); }
.stage h3 { font-family: Unbounded, sans-serif; font-weight: 500; font-size: 16px; margin: 22px 0 10px; }
.ask { font-size: 18px; }
.wx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.wx div { background: var(--cream); border-radius: 22px; padding: 16px 8px; text-align: center; font-weight: 800; }
.wx span { display: block; font-size: 44px; animation: float 6s ease-in-out infinite; }
.wx div:nth-child(2) span { animation-delay: -1.5s; } .wx div:nth-child(3) span { animation-delay: -3s; } .wx div:nth-child(4) span { animation-delay: -4.5s; }

.vocab { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.vocab label, .order label, .who label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--cream); }
.vocab b { flex: 1; }
.say { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); flex: none; }
.defs { columns: 2; gap: 24px; color: var(--soft); margin: 14px 0; }
.defs li { margin: 3px 0; break-inside: avoid; }
select, .gaps input { font: inherit; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.gaps input { width: 9em; padding: 3px 8px; }
.order, .who { display: grid; gap: 8px; margin: 14px 0; }
.player { width: 100%; margin: 6px 0 14px; }
.mcq { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
fieldset { border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px; margin: 0; }
legend { font-weight: 800; padding: 0 6px; }
fieldset label { display: block; padding: 3px 0; cursor: pointer; }
fieldset input { accent-color: var(--clay); margin-right: 6px; }
.gaps li { margin: 8px 0; line-height: 2; }
.right { border-color: var(--sage) !important; background: var(--sage-l) !important; }
.wrong { border-color: var(--clay) !important; background: #FBE3DA !important; }
.check { margin-top: 14px; }
.score { margin-left: 12px; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 18px; display: inline-block; }
.score.pop { animation: pop .5s var(--ease); }
.script { margin-top: 16px; } .script summary { cursor: pointer; font-weight: 800; color: var(--clay-d); }
.script p { color: var(--soft); }
.talk { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.bubbles { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.bubbles span { padding: 8px 14px; border-radius: 18px 18px 18px 4px; background: var(--sky); font-weight: 700; font-size: 15px; }
.bubbles.phr span:nth-child(odd) { background: #F6D9C9; } .bubbles.cq span { background: #E8E0F6; }
.btn-ai { background: var(--sage); }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.qs { padding-left: 20px; } .qs li { margin: 4px 0; font-weight: 700; }
.snow { margin: 0; } .snow svg { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.snow figcaption { font-size: 13px; color: var(--soft); margin-top: 6px; }
.flakes circle { animation: snowfall 4s linear infinite; } .flakes circle:nth-child(3n) { animation-duration: 5.5s; } .flakes circle:nth-child(3n+1) { animation-duration: 3.2s; }
.walker { animation: trudge 1.6s ease-in-out infinite; transform-origin: center bottom; } .w2 { animation-delay: -.8s; }
@keyframes snowfall { from { transform: translate(0, -30px); } to { transform: translate(-14px, 200px); } }
@keyframes trudge { 50% { transform: translateY(-2px) rotate(-2deg); } }
.traffic { display: grid; gap: 10px; }
.traffic div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--cream); }
.traffic p { margin: 0; font-weight: 700; }
.traffic span { display: flex; gap: 6px; flex: none; }
.traffic button { font-size: 24px; width: 46px; height: 46px; border-radius: 50%; opacity: .35; transition: .2s var(--ease); }
.traffic button.on { opacity: 1; transform: scale(1.15); background: var(--paper); box-shadow: var(--shadow); }

/* presentation */
.deck-nav { display: none; }
body.present .top, body.present footer { display: none; }
body.present main.lesson { max-width: none; padding: 0; }
body.present .stage { display: none; }
body.present .stage.current { display: block; position: fixed; inset: 0; margin: 0; border-radius: 0; border: 0; overflow-y: auto; padding: 5vh 7vw 100px; font-size: 1.3em; animation: sheet .5s var(--ease); z-index: 10; }
body.present .stage.current h2 { font-size: clamp(30px, 4vw, 54px); }
body.present .deck-nav { display: flex; position: fixed; z-index: 20; right: 20px; bottom: 20px; gap: 8px; align-items: center; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 6px 8px 6px 16px; font-weight: 800; font-size: 14px; }
.deck-nav button { width: 40px; height: 40px; border-radius: 50%; color: var(--paper); font-size: 18px; }
.deck-nav button:hover { background: rgba(255,255,255,.12); }

@media (max-width: 720px) {
  .wx { grid-template-columns: repeat(2, 1fr); }
  .vocab, .cols { grid-template-columns: 1fr; }
  .defs { columns: 1; }
  .traffic div { flex-direction: column; align-items: flex-start; }
  .btn-present { display: none; }
}
.join { display: flex; align-items: center; gap: 16px; }
#qr { background: #fff; padding: 8px; border-radius: 14px; flex: none; } #qr img, #qr canvas { display: block; width: 120px; height: 120px; }
.photo { margin: 16px 0; } .photo img, .snow img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); }
body.present .photo img { max-height: 52vh; object-fit: cover; }
