/* THE PHRASAL VERBS MASTER SERIES — sister site to the Modal Verbs Master Series
   VOICE: warm, lively, welcoming — Ivy's HelloTalk café lessons
   COLOUR: bright lavender + soft pink, deep-purple headings, light panels; MINT accent for particles
   COLOUR CODE: verb = purple · particle = mint · object = blue
   AWNING: pink and cream scallops, thin gold trim bar, string lights
   TYPE: Fredoka titles, Nunito body, Caveat accents. Mobile first. */

:root {
  color-scheme: light;
  --bg: #fbf7ff; --lav: #f1e8ff; --lav2: #e6d8ff; --pink: #ffe6f2; --pink2: #fbcfe8;
  --ink: #2a1650; --head: #3b0f7a; --soft: #5d4a86; --line: #e2d4fb;
  --p: #7c3aed; --pd: #5b21b6; --rose: #db2777;
  --peach: #ffe5d2; --peachink: #b4501c; --sky: #dcecff; --skyink: #1e40af;
  --good: #dcfce7; --goodink: #166534; --bad: #ffe4e6; --badink: #be123c;
  --mint: #d3f4e5; --mintink: #0c6b51; --mintd: #2bb789; --obj: #dfeeff; --objink: #1d4ed8; --verb: #ede4ff; --verbink: #5b21b6; --gold: #d9b36a;
  --card: #fff; --shadow: 0 14px 34px -22px #5b21b6;
}
* { box-sizing: border-box; min-width: 0 }
html { scroll-padding-top: 76px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Nunito, system-ui, sans-serif; overflow-x: clip }
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; color: var(--head); line-height: 1.1; margin: 0; text-wrap: balance }
h1 { font-size: clamp(32px, 5.4vw, 52px) }
h2 { font-size: clamp(26px, 4vw, 36px) }
h3 { font-size: 21px }
p { margin: 0 0 10px }
button { font: inherit; color: inherit; cursor: pointer }
:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; border-radius: 10px }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(4vw, 16px) }
.hand { font-family: Caveat, cursive; font-weight: 700 }
.v { background: var(--verb); color: var(--verbink); border-radius: 8px; padding: 0 .3em; font-weight: 800; white-space: nowrap; box-shadow: inset 0 -2px 0 #c4b0f5 }
.pt { background: var(--mint); color: var(--mintink); border-radius: 8px; padding: 0 .3em; font-weight: 800; white-space: nowrap; box-shadow: inset 0 -2px 0 #8fdcbc }
.ob { background: var(--obj); color: var(--objink); border-radius: 8px; padding: 0 .3em; font-weight: 800; box-shadow: inset 0 -2px 0 #a9c8f5 }
.mod { background: var(--p); color: #fff; border-radius: 8px; padding: 0 .32em; font-weight: 800; white-space: nowrap }

/* awning: pink + cream scallops, gold trim, string lights */
.awning { position: relative; height: 150px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%2296%22%20viewBox%3D%220%200%20120%2096%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22p%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23fbc3da%22%2F%3E%3Cstop%20offset%3D%22.7%22%20stop-color%3D%22%23f5a3c6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ec88b4%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22c%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23fffaf2%22%2F%3E%3Cstop%20offset%3D%22.7%22%20stop-color%3D%22%23fbf0e2%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f1dfca%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22s%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23000%22%20stop-opacity%3D%22.08%22%2F%3E%3Cstop%20offset%3D%22.25%22%20stop-color%3D%22%23000%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%22.75%22%20stop-color%3D%22%23fff%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fff%22%20stop-opacity%3D%22.2%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M0%200h60v62a30%2030%200%200%201-60%200z%22%20fill%3D%22url%28%23p%29%22%2F%3E%3Cpath%20d%3D%22M60%200h60v62a30%2030%200%200%201-60%200z%22%20fill%3D%22url%28%23c%29%22%2F%3E%3Cpath%20d%3D%22M0%200h60v62a30%2030%200%200%201-60%200z%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Cpath%20d%3D%22M60%200h60v62a30%2030%200%200%201-60%200z%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Cpath%20d%3D%22M4%2062a26%2026%200%200%200%2052%200%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.45%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M64%2062a26%2026%200%200%200%2052%200%22%20fill%3D%22none%22%20stroke%3D%22%23d9b36a%22%20stroke-opacity%3D%22.75%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") repeat-x 0 18px / 120px 96px; filter: drop-shadow(0 10px 8px #db277726) }
.awning::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: linear-gradient(#f07aac, #e45f98); box-shadow: 0 4px 0 var(--gold), 0 8px 10px -4px #9d174d44; z-index: 1 }
.awning::after { content: ""; position: absolute; left: 0; right: 0; top: 98px; height: 46px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%2244%22%20viewBox%3D%220%200%20180%2044%22%3E%3Cpath%20d%3D%22M0%206%20Q45%2030%2090%206%20Q135%2030%20180%206%22%20fill%3D%22none%22%20stroke%3D%22%238a6a44%22%20stroke-width%3D%221.4%22%2F%3E%3Cg%20stroke%3D%22%23c9a35e%22%20stroke-width%3D%22.8%22%3E%3Crect%20x%3D%2220%22%20y%3D%2213%22%20width%3D%225%22%20height%3D%225%22%20fill%3D%22%239a7b4f%22%2F%3E%3Cellipse%20cx%3D%2222.5%22%20cy%3D%2225%22%20rx%3D%226%22%20ry%3D%228%22%20fill%3D%22%23fff1b8%22%2F%3E%3Crect%20x%3D%2257%22%20y%3D%2215.5%22%20width%3D%225%22%20height%3D%225%22%20fill%3D%22%239a7b4f%22%2F%3E%3Cellipse%20cx%3D%2259.5%22%20cy%3D%2227.5%22%20rx%3D%226%22%20ry%3D%228%22%20fill%3D%22%23ffd3e6%22%2F%3E%3Crect%20x%3D%22110%22%20y%3D%2215.5%22%20width%3D%225%22%20height%3D%225%22%20fill%3D%22%239a7b4f%22%2F%3E%3Cellipse%20cx%3D%22112.5%22%20cy%3D%2227.5%22%20rx%3D%226%22%20ry%3D%228%22%20fill%3D%22%23d3f4e5%22%2F%3E%3Crect%20x%3D%22152%22%20y%3D%2213%22%20width%3D%225%22%20height%3D%225%22%20fill%3D%22%239a7b4f%22%2F%3E%3Cellipse%20cx%3D%22154.5%22%20cy%3D%2225%22%20rx%3D%226%22%20ry%3D%228%22%20fill%3D%22%23fff1b8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x 0 0 / 180px 44px; filter: drop-shadow(0 0 5px #fff6c8) }
@media (max-width: 600px) { .awning { height: 116px; background-size: 90px 72px; background-position: 0 15px } .awning::before { height: 11px } .awning::after { top: 74px; height: 36px; background-size: 140px 34px } }
@media (prefers-reduced-motion: no-preference) { .awning::after { animation: glow 3.2s ease-in-out infinite alternate } }
@keyframes glow { to { filter: drop-shadow(0 0 9px #fff2a8) brightness(1.06) } }

/* compact header on inner pages */
.brand { display: none; text-decoration: none; font: 600 clamp(19px, 3vw, 24px) Fredoka, sans-serif; color: var(--head); padding: 14px 0 6px }
.brand .hand { color: var(--rose); font-size: .95em; margin-right: 6px }
header.compact .brand { display: block } header.compact .hero, header.compact .parts, header.compact .menuhand { display: none }
.menuhand { display: block; color: var(--rose); font-size: 24px; margin-top: 18px }
header.compact .menuhand { display: none }
/* hero */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3.5vw, 44px); align-items: center; padding: clamp(18px, 3vw, 34px) 0 10px }
.pillsub { display: inline-block; background: var(--pink); color: var(--p); font-family: Fredoka, sans-serif; font-weight: 600; font-size: clamp(17px, 2.2vw, 21px); padding: 6px 18px; border-radius: 999px; margin: 12px 0 14px; border: 2px solid #fff; box-shadow: 0 6px 16px -10px var(--rose) }
.lede { color: var(--soft); font-size: 18px; max-width: 46ch }
.ready { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--pd); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px }
.ready i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #22c55e33 }
.btns { display: flex; flex-wrap: wrap; gap: 10px }
.btn { border: 0; background: var(--p); color: #fff; font-weight: 800; font-size: 16px; padding: 12px 22px; border-radius: 999px; min-height: 48px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 20px -12px var(--pd) }
.btn:hover { background: var(--pd) }
.btn.soft { background: #fff; color: var(--pd); border: 2px solid var(--line); box-shadow: none }
.btn.soft:hover { border-color: var(--p) }
.btn[disabled] { opacity: .45; cursor: not-allowed }

/* scenes */
.scene { margin: 0; container-type: inline-size }
.stage { position: relative; aspect-ratio: 16/11; overflow: hidden; border-radius: 30px; border: 6px solid #fff; box-shadow: 0 24px 50px -28px #5b21b6aa; background: var(--lav) }
.bd { position: absolute; inset: 0; width: 100%; height: 100% }
.pp { position: absolute; bottom: 22%; height: auto; filter: drop-shadow(0 10px 10px #5b21b62a); z-index: 2 }
.pp.back { bottom: 26%; z-index: 1 }
.tb { position: absolute; left: -5%; width: 110%; bottom: -3%; height: 33%; z-index: 3 }
.it { position: absolute }
.it img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 5px #5b21b62e) }
.sb { position: absolute; top: 4%; z-index: 5; max-width: 46%; background: #fff; border: 2.5px solid var(--lav2); border-radius: 20px; padding: .45em .85em; font-weight: 800; font-size: max(13px, 2.5cqw); line-height: 1.35; color: var(--head); box-shadow: 0 10px 22px -14px #5b21b6 }
.sb::after { content: ""; position: absolute; bottom: -12px; width: 18px; height: 18px; background: #fff; border: 2.5px solid var(--lav2); border-top: 0; border-left: 0; transform: rotate(45deg) skew(10deg, 10deg) }
.sb.tl::after { left: 38% } .sb.tr::after { right: 38% }
.chat { display: none; margin-top: 12px; gap: 8px; flex-direction: column }
.chat p { display: flex; align-items: center; gap: 10px; margin: 0; background: #fff; border: 2px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 12px; font-weight: 800; color: var(--head); align-self: flex-start; max-width: 92% }
.chat p.r { align-self: flex-end; border-radius: 18px 18px 6px 18px; flex-direction: row-reverse }
.chat img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--lav); flex: none }
@container (max-width: 520px) { .sb { display: none } .chat { display: flex } }
.scene.photo .stage { aspect-ratio: 1586/992 }
.scene.photo .paint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.scene.photo .chat { display: flex }
.lcard .thumb { width: calc(100% + 32px); margin: -16px -16px 4px; aspect-ratio: 1586/992; object-fit: cover; border-radius: 22px 22px 0 0; display: block }

/* parts roadmap */
.parts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; padding: 0; list-style: none }
.part { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 18px 6px 6px }
.part b { flex: none; background: var(--p); color: #fff; font: 600 14px/1 Fredoka, sans-serif; border-radius: 999px; padding: 8px 11px; white-space: nowrap }
.part small { display: block; font-size: 13px; font-weight: 700; color: var(--mintink) }
.part.later { border-style: dashed; background: transparent }
.part.later b { background: var(--lav); color: var(--pd) }
.part.later small { color: var(--rose) }
.part span { color: var(--head); font-weight: 800; font-size: 15px; line-height: 1.3 }

/* nav */
nav.tabs { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--line) }
nav .row { display: flex; gap: 8px; overflow-x: auto; padding: 10px max(4vw, 16px); scrollbar-width: none }
nav a { flex: none; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--head); font-weight: 800; font-size: 16px; background: #fff; border: 2px solid var(--line); padding: 8px 16px 8px 10px; border-radius: 999px; min-height: 46px }
nav a .navico { height: 30px; width: auto; max-width: 44px; object-fit: contain }
nav a[aria-current="page"] { background: var(--p); border-color: var(--p); color: #fff }

main.wrap { padding-top: 26px; padding-bottom: 96px; min-height: 60vh }
.view { display: none } .view.on { display: block; animation: rise .35s ease-out }
@keyframes rise { from { opacity: 0; transform: translateY(8px) } }
.sec { margin-top: 34px }
.sechead { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap }
.sechead .hand { color: var(--rose); font-size: 24px; display: block; line-height: 1 }
.muted { color: var(--soft) }

/* lesson grid */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px }
.lcard { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; min-height: 160px; position: relative }
a.lcard:hover { transform: translateY(-3px); border-color: var(--p) }
.lcard .num { font: 600 15px Fredoka, sans-serif; color: var(--p); background: var(--lav); border-radius: 999px; padding: 3px 12px; align-self: flex-start }
.lcard h3 { font-size: 20px }
.lcard .faces { display: flex; margin-top: auto }
.lcard .faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--pink); border: 2.5px solid #fff; margin-right: -10px }
.lcard .done { position: absolute; right: 14px; top: 14px; font-size: 13px; font-weight: 800; color: var(--goodink); background: var(--good); border-radius: 999px; padding: 3px 10px }
.lcard.soon { background: transparent; border-style: dashed; box-shadow: none; min-height: 110px }
.lcard.soon .num { background: #fff }
.lcard.soon h3 { color: var(--soft); font-size: 18px }
.tag-soon { font-size: 13px; font-weight: 800; color: var(--rose); background: var(--pink); border-radius: 999px; padding: 3px 10px; align-self: flex-start }

/* lesson detail */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scroll-snap-type: x proximity }
.strip a, .strip span { flex: none; scroll-snap-align: start; min-width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font: 600 17px Fredoka, sans-serif; text-decoration: none; border: 2px solid var(--line); background: #fff; color: var(--head) }
.strip a[aria-current="page"] { background: var(--p); color: #fff; border-color: var(--p) }
.strip span { color: #b9a9d9; border-style: dashed; background: transparent; font-size: 15px }
.lhead { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(18px, 3vw, 36px); align-items: center; margin-top: 8px }
.lhead .hand { color: var(--rose); font-size: 26px }
.uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px }
.use { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow) }
.use .lab { display: inline-block; background: var(--lav); color: var(--pd); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px }
.use .ex { font-size: 19px; font-weight: 700; margin: 4px 0; line-height: 1.5 }
.use .note { color: var(--soft); font-size: 15.5px; margin: 10px 0 0; padding-top: 10px; border-top: 2px dashed var(--line) }
.say { border: 0; background: var(--lav); color: var(--pd); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 7px 14px; min-height: 38px; margin-top: 10px }
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px }
.form { background: linear-gradient(160deg, var(--lav), #fff); border-radius: 22px; padding: 14px 16px; border: 2px solid #fff }
.form b { display: block; font-size: 13px; text-transform: uppercase; color: var(--p); letter-spacing: .03em }
.form p { font-size: 18px; font-weight: 700; margin: 4px 0 0 }
.form small { color: var(--soft); font-weight: 700 }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px }
.rule { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 14px 16px }
.no, .yes { display: block; border-radius: 12px; padding: 6px 12px; font-weight: 800; margin-bottom: 6px }
.no { background: var(--bad); color: var(--badink); text-decoration: line-through; text-decoration-thickness: 2px }
.yes { background: var(--good); color: var(--goodink) }
.rule small { color: var(--soft); font-weight: 700; font-size: 15px }
.tip { display: flex; gap: 14px; align-items: center; background: var(--pink); border-radius: 24px; padding: 14px 18px; font-weight: 800; color: var(--head); font-size: 18px; border: 2px solid #fff; box-shadow: 0 10px 24px -18px var(--rose) }
.tip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; flex: none }
.turn { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: clamp(16px, 3vw, 26px) }
.turn ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px }
.turn li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; background: var(--bg); border-radius: 18px; padding: 10px 12px }
.turn li > b { width: 34px; height: 34px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; font-family: Fredoka; grid-row: span 2 }
.turn .q { font-size: 18px; font-weight: 800 }
.turn .ans { display: none; color: var(--goodink); font-weight: 700 }
.turn .ans small { display: block; color: var(--soft); font-weight: 600; font-size: 15px }
.turn li.open .ans { display: block }
.reveal { border: 0; background: none; color: var(--p); font-weight: 800; padding: 0; justify-self: start; min-height: 32px; text-decoration: underline; text-underline-offset: 3px }
.turn li.open .reveal { display: none }
.next { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 30px }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin }
.chip { flex: none; border: 2px solid var(--line); background: #fff; color: var(--head); font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 999px; min-height: 44px }
.chip[aria-pressed="true"] { background: var(--p); border-color: var(--p); color: #fff }
.chip[disabled] { opacity: .45; cursor: not-allowed }

/* quiz */
.qwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 24px; align-items: start }
.qcard { background: #fff; border: 2px solid var(--line); border-radius: 30px; padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow) }
.qtop { display: flex; justify-content: space-between; color: var(--soft); font-weight: 800; font-size: 14px }
.bar { height: 10px; background: var(--lav); border-radius: 9px; margin: 10px 0 18px; overflow: hidden }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--p), var(--mintd)); transition: width .35s }
.asker { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 14px }
.face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; background: linear-gradient(160deg, var(--lav2), var(--pink)); border: 4px solid #fff; box-shadow: 0 8px 18px -10px var(--pd); flex: none }
.qbub { background: var(--lav); border-radius: 22px 22px 22px 6px; padding: 12px 18px; font: 600 clamp(20px, 3vw, 25px)/1.3 Fredoka, sans-serif; color: var(--head) }
.blank { display: inline-block; min-width: 3em; border-bottom: 3px solid var(--p); text-align: center; color: var(--p) }
.multi { background: var(--pink); color: var(--rose); font-weight: 800; border-radius: 14px; padding: 8px 12px; font-size: 15px; margin-bottom: 12px }
.opts { display: grid; gap: 10px }
.opt { text-align: left; border: 2.5px solid var(--line); background: var(--bg); border-radius: 18px; padding: 12px 16px; font-weight: 800; font-size: 18px; min-height: 54px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; align-items: center }
.opt::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--lav2); background: #fff; grid-row: span 2 }
.opt.box::before { border-radius: 7px }
.opt[aria-pressed="true"] { border-color: var(--p); background: var(--lav) }
.opt[aria-pressed="true"]::before { background: var(--p); border-color: var(--p); box-shadow: inset 0 0 0 4px #fff }
.opt:hover:not(:disabled) { border-color: var(--p) }
.opt .why { display: none; font-weight: 600; font-size: 15.5px; color: var(--ink); grid-column: 2 }
.checked .opt .why { display: block }
.opt.right { background: var(--good); border-color: #22c55e }
.opt.right::before { content: "✓"; background: #22c55e; border-color: #22c55e; color: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: none }
.opt.wrong { background: var(--bad); border-color: #fb7185 }
.opt.wrong::before { content: "✗"; background: #fb7185; border-color: #fb7185; color: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: none }
.opt.missed { border-style: dashed; border-color: #22c55e }
.verdict { margin-top: 14px; font-weight: 800; font-size: 17px }
.side { position: sticky; top: 90px; display: grid; gap: 14px }
.statcard { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 16px; display: flex; gap: 12px; align-items: center }
.statcard b { font: 600 30px Fredoka; color: var(--p) }
.ivyend { display: flex; gap: 16px; align-items: center; margin: 8px 0 14px }
.ivyend .face { width: 116px; height: 116px }

/* flashcards */
.flip { perspective: 1400px; max-width: 640px; height: 360px; cursor: pointer; margin-bottom: 14px }
.fi { position: relative; width: 100%; height: 100%; transition: transform .55s; transform-style: preserve-3d }
.flip.turned .fi { transform: rotateY(180deg) }
.fc { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 30px; border: 3px solid #fff; box-shadow: 0 22px 44px -26px #5b21b6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; overflow: hidden }
.ffront { background: radial-gradient(circle at 50% 115%, var(--pink2), transparent 55%), linear-gradient(155deg, var(--lav2), #fff) }
.ffront .icon img { height: 110px; width: auto; margin-bottom: 8px; filter: drop-shadow(0 10px 10px #5b21b633) }
.ffront .lt { font-weight: 800; color: var(--soft); font-size: 15px }
.ffront h3 { font-size: clamp(30px, 6vw, 44px); margin: 6px 0 }
.ffront small { color: var(--p); font-weight: 800 }
.fback { background: #fff; transform: rotateY(180deg); justify-content: flex-end; padding-bottom: 0 }
.fback .exs { font-size: 19px; font-weight: 700; margin-bottom: 6px }
.fback .note { color: var(--soft); font-size: 15px; max-width: 46ch }
.fback img { width: 150px; margin-top: auto; display: block }
.ctrls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }

/* review */
.nine { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px }
.nine div { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 14px }
.nine .mod { font-size: 20px }
.nine p { margin: 8px 0 6px; color: var(--soft); font-weight: 700; font-size: 15px }
.nine a { font-weight: 800; color: var(--p); font-size: 14px; margin-right: 8px }
.meanbox { background: #fff; border: 2px solid var(--p); border-radius: 24px; padding: 18px }
.meanbox .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px }
.meanbox .row .mod { font-size: 18px }
.peek { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px }
.peek > div { background: rgba(255,255,255,.6); border: 2px dashed var(--lav2); border-radius: 22px; padding: 16px }
.peek h3 { font-size: 19px; margin-bottom: 6px }
.progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px }

/* coach */
.coach { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: flex-end; gap: 6px; max-width: min(400px, calc(100vw - 24px)); pointer-events: none; opacity: 0; transform: translateY(30px) scale(.92); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1) }
.coach.show { opacity: 1; transform: none }
.coach .who { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(160deg, var(--lav2), var(--pink)); border: 4px solid #fff; box-shadow: 0 14px 28px -12px #5b21b6aa; overflow: hidden }
.coach .who img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.coach .badge { position: absolute; left: 76px; top: -10px; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 25px; box-shadow: 0 6px 14px -6px #0006; z-index: 2 }
.coach.ok .badge { animation: five .6s ease-out } .coach.miss .who { animation: nod .7s ease-in-out }
@keyframes five { 0% { transform: scale(.2) rotate(-40deg) } 60% { transform: scale(1.3) rotate(15deg) } }
@keyframes nod { 30% { transform: rotate(-6deg) } 60% { transform: rotate(5deg) } }
.coach .say2 { background: #fff; border: 2.5px solid var(--p); border-radius: 22px 22px 22px 6px; padding: 12px 16px; box-shadow: 0 14px 30px -14px #5b21b6aa; margin-bottom: 30px }
.coach .say2 b { display: block; font: 700 28px/1 Caveat, cursive; color: var(--p); margin-bottom: 4px }
.coach .say2 span { font-weight: 700; font-size: 16px }
.conf { position: fixed; z-index: 49; pointer-events: none; width: 11px; height: 11px; border-radius: 3px; animation: pop 1.1s ease-out forwards }
@keyframes pop { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0 } }
.coachwrap { position: relative; flex: none }

footer { background: linear-gradient(90deg, #efe4ff, #fde4f1); color: var(--head); text-align: center; padding: 22px 16px 26px; font-weight: 800; font-size: 17px; border-top: 2px solid #fff; box-shadow: 0 -10px 30px -24px #5b21b6 }
footer .line { display: block; line-height: 1.6 }
footer .line::before { content: "💜"; margin-right: 10px }
footer .line::after { content: "💜"; margin-left: 10px }

@media (max-width: 860px) {
  .hero, .lhead, .qwrap { grid-template-columns: minmax(0, 1fr) }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) }
}
@media (max-width: 600px) {
  body { font-size: 16px }
  .flip { height: 400px }
  .coach { left: 10px; right: 10px; bottom: 10px; max-width: none }
  .coach .who { width: 86px; height: 86px } .coach .badge { left: 56px }
  .stage { border-width: 4px; border-radius: 22px }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } .conf { display: none } }

/* ===== PHRASAL VERB FEATURES ===== */
/* color key */
.key { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 800; font-size: 15px; color: var(--soft); margin: 12px 0 0 }
.key span { font-size: 16px }
/* painting placeholder (until Sam's café scene arrives) */
.stage.ph { display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, var(--pink2), transparent 60%), linear-gradient(160deg, var(--lav2), #fff8ef) }
.stage.ph .crew { display: flex; justify-content: center }
.stage.ph .crew img { width: clamp(54px, 13cqw, 86px); height: clamp(54px, 13cqw, 86px); border-radius: 50%; object-fit: cover; object-position: top; background: #fff; border: 4px solid #fff; margin: 0 -8px; box-shadow: 0 10px 20px -12px var(--pd) }
.stage.ph p { margin: 12px 0 0; text-align: center; font: 700 clamp(20px, 4.5cqw, 28px) Caveat, cursive; color: var(--rose) }
/* sample + review marks */
.ribbon { display: inline-block; background: #fff3c4; color: #8a5a00; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 10px; align-self: flex-start }
.notice { background: #fff8db; border: 2px dashed #f0c95a; border-radius: 20px; padding: 12px 16px; font-weight: 700; color: #6b4a00; margin-bottom: 16px }
.byc { display: none; font: 800 12px Nunito, sans-serif; color: #8a5a00; background: #fff3c4; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap }
body.rv .byc { display: inline-block }
/* literal / figurative badge */
.kind { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; margin: 0 0 8px 6px; vertical-align: top }
.kind.literal { background: var(--obj); color: var(--objink) }
.kind.figurative { background: var(--pink); color: var(--rose) }
/* watch the object move */
.mover { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: clamp(16px, 3vw, 24px); box-shadow: var(--shadow) }
.mover .lineup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; min-height: 86px; font-size: clamp(22px, 5vw, 32px); background: var(--bg); border-radius: 20px; padding: 14px; margin: 12px 0 }
.mover .lineup span { padding: .08em .4em; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1) }
.mover .lineup .ob { animation: hop .45s ease-out }
@keyframes hop { 40% { transform: translateY(-12px) } }
.mover .res { border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: 17px }
.mover .res.ok { background: var(--good); color: var(--goodink) }
.mover .res.no { background: var(--bad); color: var(--badink) }
.mover .res small { display: block; font-weight: 600; font-size: 15px; color: var(--ink) }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--lav); border-radius: 999px; padding: 4px }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 15px; color: var(--pd); min-height: 40px }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 4px 10px -6px var(--pd) }
.mover .ctrlrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between }
/* one phrasal verb, many meanings */
.many { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: clamp(16px, 3vw, 24px); box-shadow: var(--shadow) }
.many h3 { font-size: 26px; margin-bottom: 10px }
.mcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; background: var(--bg); border-radius: 20px; padding: 14px; margin-top: 12px }
.mcard .emo { font-size: 34px; grid-row: span 2 }
.mcard b { font-size: 17px; color: var(--head) }
.mcard p { margin: 0; font-size: 19px; font-weight: 700 }
/* particle map */
.pmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px }
.pmap > div { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 14px 16px }
.pmap .pt { font-size: 24px; font-family: Fredoka, sans-serif; font-weight: 600 }
.pmap ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px }
.pmap li b { display: block; color: var(--head); font-size: 15px }
.pmap li span { color: var(--soft); font-weight: 700; font-size: 15px }
/* dictionary */
.search { width: 100%; font: 700 18px Nunito, sans-serif; padding: 14px 18px; border-radius: 999px; border: 2.5px solid var(--line); background: #fff; color: var(--ink); min-height: 54px; margin-bottom: 12px }
.search:focus { border-color: var(--p); outline: none; box-shadow: 0 0 0 4px var(--lav) }
.dict { display: grid; gap: 10px }
.entry { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px }
.entry .sense { padding-top: 8px; margin-top: 8px; border-top: 2px dashed var(--line) }
.entry .sense:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0 }
.entry .from a { font-weight: 800; color: var(--p); font-size: 14px }
.entry .from { margin: 2px 0 0 }
.entry .say { margin: 0 0 0 4px; min-height: 32px; padding: 4px 10px; vertical-align: middle }
.entry h3 { font-size: 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.entry .m { color: var(--ink); font-weight: 700; margin: 2px 0 }
.entry .ex { font-size: 17px; font-weight: 700; margin: 0 }
.entry .side2 { display: flex; flex-direction: column; align-items: flex-end; gap: 6px }
.entry .side2 a { font-weight: 800; color: var(--p); font-size: 14px; white-space: nowrap }
.ty { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: var(--lav); color: var(--pd); white-space: nowrap }
.empty { text-align: center; padding: 30px 10px; color: var(--soft); font-weight: 700 }
.lvl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; font-weight: 800; color: var(--soft) }
@media (max-width: 600px) {
  .awning + header .hero { padding-top: 8px }
  nav .row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px 10px; overflow: visible }
  nav a { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 12.5px; border-radius: 16px; min-height: 58px; justify-content: center; text-align: center } nav a .navico { height: 26px }
}

.lcard .pvw { color: var(--soft); font-weight: 700; font-size: 14px; line-height: 1.4 }
.entry .cmp { margin: 8px 0 0; color: var(--soft); font-weight: 700; font-size: 15px } .entry .cmp b { color: var(--head) }
