:root {
  --ink: #20382f;
  --muted: #6f7e76;
  --cream: #fffaf0;
  --paper: #fffdf7;
  --green: #2d7a5c;
  --green-dark: #1f5a43;
  --coral: #ef755b;
  --yellow: #f5c954;
  --line: rgba(32, 56, 47, .13);
  --shadow: 0 18px 50px rgba(73, 74, 52, .11);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #f9f4e7; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background:
    radial-gradient(circle at 76% 9%, rgba(255, 224, 121, .4), transparent 22rem),
    linear-gradient(180deg, #fff5cf 0, #fffaf0 30rem, #f7f4e9 100%);
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sun { position: absolute; top: 58px; right: 9%; width: 82px; height: 82px; border-radius: 50%; background: #ffd85d; box-shadow: 0 0 0 16px rgba(255,216,93,.14); }
.cloud { position: absolute; width: 124px; height: 32px; border-radius: 40px; background: rgba(255,255,255,.7); filter: blur(.2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 46px; height: 46px; left: 20px; bottom: 3px; }
.cloud::after { width: 64px; height: 64px; right: 14px; bottom: 2px; }
.cloud-one { top: 165px; left: -38px; transform: scale(.75); }
.cloud-two { top: 285px; right: -28px; transform: scale(.55); }

.app-shell { position: relative; z-index: 1; width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 60px; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 11px; border: 0; background: none; cursor: pointer; padding: 0; text-align: left; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; font: 800 24px/1 Georgia, serif; background: var(--green); border-radius: 15px 15px 20px 12px; transform: rotate(-3deg); box-shadow: 0 6px 0 #1f6048; }
.brand b { display: block; font-size: 17px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font: 700 10px/1.2 Georgia, serif; letter-spacing: .14em; text-transform: uppercase; }
.status-pills { display: flex; gap: 8px; }
.status-pill { display: flex; align-items: center; gap: 3px; padding: 8px 12px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.8); border-radius: 999px; box-shadow: 0 5px 18px rgba(86,78,43,.07); font-size: 13px; }
.status-pill i { font-style: normal; margin-right: 2px; }
.install-app-button { padding: 8px 13px; border: 1px solid rgba(45,122,92,.18); border-radius: 999px; color: #fff; background: var(--green); box-shadow: 0 5px 14px rgba(45,122,92,.18); cursor: pointer; font-size: 12px; font-weight: 800; }
.install-app-button:hover { background: var(--green-dark); }

.screen { display: none; }
.screen.active { display: block; animation: rise .46s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.hero { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 325px; overflow: hidden; background: rgba(255,253,247,.83); border: 1px solid rgba(255,255,255,.9); border-radius: 34px; box-shadow: var(--shadow); }
.hero-copy { padding: 52px 28px 44px 56px; z-index: 2; }
.eyebrow { margin: 0 0 11px; color: var(--green); font: 800 11px/1.2 Georgia, serif; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.045em; }
h1 span { color: var(--green); }
.hero-copy > p:not(.eyebrow) { max-width: 540px; margin: 20px 0 28px; color: var(--muted); line-height: 1.8; }

.primary-button, .secondary-button { min-height: 50px; border-radius: 16px; padding: 0 22px; border: 0; font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; }
.primary-button { color: #fff; background: var(--green); box-shadow: 0 7px 0 var(--green-dark), 0 12px 20px rgba(45,122,92,.16); }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.primary-button:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--green-dark); }
.primary-button span { margin-left: 16px; }

.hero-art { position: relative; min-height: 325px; background: radial-gradient(circle at 50% 44%, #fff3b4 0 8rem, transparent 8.1rem); }
.hero-art::after { content: ""; position: absolute; right: -50px; bottom: -64px; width: 400px; height: 165px; border-radius: 50%; background: #b8d895; transform: rotate(-8deg); }
.owl { position: absolute; z-index: 2; left: 50%; bottom: 58px; width: 156px; height: 176px; transform: translateX(-50%); border-radius: 48% 48% 42% 42%; background: #d88a57; box-shadow: inset -16px -10px rgba(105,59,44,.1), 0 20px 28px rgba(91,62,40,.13); }
.owl-ears::before, .owl-ears::after { content: ""; position: absolute; top: -14px; border-style: solid; border-width: 0 32px 52px; border-color: transparent transparent #d88a57; }
.owl-ears::before { left: 3px; transform: rotate(-12deg); }
.owl-ears::after { right: 3px; transform: rotate(12deg); }
.owl-face { position: absolute; top: 28px; left: 19px; display: flex; gap: 8px; }
.owl-face i { width: 55px; height: 55px; border: 13px solid #f5d9ae; border-radius: 50%; background: #263b34; box-shadow: inset 7px 0 #fff; }
.owl-beak { position: absolute; top: 78px; left: 66px; border: 12px solid transparent; border-top-color: #efb32f; }
.owl-book { position: absolute; left: 19px; bottom: -8px; width: 126px; height: 69px; padding-top: 22px; color: #fff; background: #3f8065; border-radius: 7px 7px 20px 20px; text-align: center; font: 800 17px Georgia, serif; transform: perspective(120px) rotateX(-5deg); box-shadow: inset 0 5px rgba(255,255,255,.12); }
.leaf { position: absolute; z-index: 3; color: var(--coral); font-size: 26px; }
.leaf-a { top: 44px; left: 18%; transform: rotate(15deg); }
.leaf-b { top: 81px; right: 13%; color: var(--green); transform: scale(.6); }

.daily-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: -1px 32px 34px; padding: 18px 24px; border-radius: 0 0 22px 22px; background: #263f35; color: #fff; box-shadow: 0 14px 24px rgba(44,65,56,.13); }
.progress-copy { display: flex; align-items: center; gap: 10px; }
.progress-copy div { min-width: 105px; }
.progress-copy b, .progress-copy small { display: block; }
.progress-copy small { margin-top: 3px; color: #b9cac2; font-size: 11px; }
.progress-icon { font-size: 26px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.13); }
.progress-track span, .step-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--yellow); transition: width .5s ease; }

.learning-map { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(4, 1fr); gap: 11px; align-items: stretch; margin: 0 4px 34px; }
.map-intro, .map-stat { border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,255,255,.62); box-shadow: 0 10px 24px rgba(60,73,65,.07); }
.map-intro { padding: 21px 23px; }
.map-intro .eyebrow { margin-bottom: 5px; }
.map-intro h2 { font-size: 23px; }
.map-intro small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.map-stat { display: grid; place-items: center; align-content: center; min-height: 108px; padding: 13px 8px; }
.map-stat span { font-size: 22px; }
.map-stat b { margin: 5px 0 2px; font: 800 27px/1 Georgia, serif; }
.map-stat small { color: var(--muted); font-size: 11px; font-weight: 800; }
.map-stat.due { background: #fde5dc; }.map-stat.growing { background: #e4f0d7; }.map-stat.mastered { background: #cfe6d8; }.map-stat.new { background: #e7e2f0; }

.vocab-test-callout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin: 0 4px 34px; padding: 25px 28px; border: 1px solid rgba(255,255,255,.84); border-radius: 27px; background: linear-gradient(115deg, #dbe9f0, #e7dfef 70%, #f8dfc7); box-shadow: 0 14px 30px rgba(62,75,79,.1); }
.vocab-test-mark { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 31px 25px 29px 24px; color: #fff; background: #355d70; transform: rotate(-4deg); box-shadow: 0 7px 0 #284957; }
.vocab-test-mark span { font: 800 35px/1 Georgia, serif; }
.vocab-test-mark small { margin-top: -14px; font: 800 8px/1 Georgia, serif; letter-spacing: .16em; }
.vocab-test-copy .eyebrow { margin-bottom: 5px; }
.vocab-test-copy h2 { font-size: clamp(23px,3vw,30px); }
.vocab-test-copy > p:not(.eyebrow) { margin: 8px 0 0; color: #5f706a; font-size: 13px; line-height: 1.6; }
.vocab-test-button { white-space: nowrap; background: #355d70; box-shadow: 0 7px 0 #284957, 0 12px 20px rgba(53,93,112,.16); }
.last-estimate { display: inline-block; margin-top: 9px; padding: 5px 9px; border-radius: 999px; color: #355d70; background: rgba(255,255,255,.62); font-size: 11px; font-weight: 800; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 4px 18px; }
.section-heading .eyebrow { margin-bottom: 6px; }
h2 { margin: 0; font: 800 clamp(24px,4vw,34px)/1.2 Georgia, "Microsoft YaHei", serif; }
.text-button { padding: 8px; border: 0; color: var(--muted); background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.data-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }

.practice-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.practice-card { position: relative; grid-column: span 3; min-height: 150px; padding: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.practice-card:nth-child(-n+3) { grid-column: span 2; }
.practice-card:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 0 15px 28px rgba(50,66,59,.12); }
.practice-card > i { position: absolute; top: 16px; right: 17px; color: rgba(32,56,47,.28); font: 700 11px Georgia, serif; }
.card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 17px; border-radius: 18px; background: rgba(255,255,255,.75); font: 800 24px/1 Georgia, serif; transform: rotate(-3deg); }
.card-icon span { font-size: 10px; }
.card-copy b, .card-copy small { display: block; }
.card-copy b { font-size: 17px; }
.card-copy small { margin-top: 6px; color: #65766e; font-size: 12px; }
.peach { background: #f9d8c4; }.mint { background: #cde6d5; }.yellow { background: #f8e6a6; }.blue { background: #cfe1ed; }.lilac { background: #e4d8eb; }

.frog-callout { display: grid; grid-template-columns: 280px 1fr auto; gap: 28px; align-items: center; margin-top: 34px; padding: 22px 27px; overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: 28px; background: linear-gradient(120deg, #d8efcf 0 37%, #e7f4dc 37% 70%, #fff0bd); box-shadow: 0 14px 30px rgba(53,91,65,.1); }
.frog-mini-scene { position: relative; height: 118px; overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, #9bd6e1, #68b9d0); box-shadow: inset 0 -12px 25px rgba(31,111,139,.14); }
.frog-mini-scene::after { content: ""; position: absolute; inset: 12px 0 auto; height: 2px; background: rgba(255,255,255,.28); box-shadow: 0 32px rgba(255,255,255,.2), 0 68px rgba(255,255,255,.16); }
.mini-bank { position: absolute; z-index: 2; bottom: -28px; width: 74px; height: 77px; border-radius: 50%; background: #70aa5b; }
.mini-bank.bank-left { left: -30px; }.mini-bank.bank-right { right: -30px; }
.mini-pad { position: absolute; z-index: 2; width: 42px; height: 24px; border-radius: 50%; background: #4f9a55; box-shadow: inset -8px -4px rgba(30,105,62,.18); }
.mini-pad::after { content: ""; position: absolute; top: 1px; right: 1px; border: 8px solid transparent; border-top-color: #79c66b; transform: rotate(33deg); }
.pad-one { left: 25%; top: 67px; }.pad-two { left: 45%; top: 38px; }.pad-three { left: 66%; top: 61px; }
.mini-frog { position: absolute; z-index: 4; left: 45%; top: 12px; font-size: 38px; filter: drop-shadow(0 5px 3px rgba(36,76,48,.18)); transform: rotate(-8deg); }
.frog-callout-copy h2 { font-size: clamp(24px,3vw,31px); }
.frog-callout-copy > p:not(.eyebrow) { margin: 8px 0 0; color: #587064; font-size: 13px; line-height: 1.65; }
.frog-start-button { white-space: nowrap; }

.frog-game-card { max-width: 880px; margin: 0 auto; padding: 22px; border: 1px solid rgba(255,255,255,.88); border-radius: 32px; background: rgba(255,253,247,.95); box-shadow: var(--shadow); }
.river-scene { position: relative; height: 245px; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, #a9e0e7 0, #70bed3 45%, #5babc7 100%); box-shadow: inset 0 -25px 45px rgba(23,103,138,.13); }
.river-scene::before { content: ""; position: absolute; inset: 24px 0 auto; height: 3px; background: rgba(255,255,255,.28); box-shadow: 0 49px rgba(255,255,255,.2), 0 105px rgba(255,255,255,.16), 0 165px rgba(255,255,255,.13); transform: skewY(-2deg); }
.river-bank { position: absolute; z-index: 2; bottom: -82px; width: 185px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 50% 18%, #8ac56c, #5e9e55 72%); box-shadow: inset 0 13px rgba(255,255,255,.12); }
.river-bank span { position: absolute; top: 32px; padding: 6px 11px; border-radius: 999px; color: #315c3b; background: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.river-bank-start { left: -105px; }.river-bank-start span { left: 111px; }
.river-bank-goal { right: -105px; }.river-bank-goal span { right: 111px; }
.lily-pad { position: absolute; z-index: 3; width: 74px; height: 43px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #86cf73, #3d8e50 72%); box-shadow: inset -12px -7px rgba(25,103,60,.17), 0 8px 9px rgba(25,92,116,.16); }
.lily-pad::after { content: ""; position: absolute; top: -2px; right: 4px; border: 15px solid transparent; border-top-color: #78c86b; transform: rotate(32deg); }
.lily-one { left: 15%; top: 151px; }.lily-two { left: 31%; top: 88px; }.lily-three { left: 47%; top: 142px; }.lily-four { left: 63%; top: 79px; }.lily-five { left: 78%; top: 141px; }
.game-frog { --frog-x: 5%; --frog-y: 31%; position: absolute; z-index: 5; left: var(--frog-x); bottom: var(--frog-y); font-size: 49px; filter: drop-shadow(0 7px 4px rgba(32,76,51,.2)); transform: translateX(-50%); transition: left .65s cubic-bezier(.22,.85,.3,1), bottom .65s cubic-bezier(.22,.85,.3,1); }
.game-frog.hop { animation: frogHop .65s ease; }
@keyframes frogHop { 50% { transform: translate(-50%, -65px) rotate(-8deg) scale(1.08); } }
.frog-question { max-width: 690px; margin: 27px auto 6px; text-align: center; }
.frog-question .question-badge { margin-bottom: 13px; }
.frog-sound-button { display: inline-grid; place-items: center; width: 46px; height: 46px; margin: 0 10px 0 0; border: 0; border-radius: 50%; color: #fff; background: var(--coral); box-shadow: 0 5px 0 #be5946; cursor: pointer; vertical-align: 8px; }
.frog-word { display: inline-block; font-size: clamp(42px,7vw,60px); }
.frog-question > p { margin: 4px 0 8px; color: var(--coral); font: 500 16px Georgia, serif; }
.frog-options { margin-top: 20px; }
.frog-victory { padding: 45px 20px 30px; text-align: center; }
.victory-frog { display: block; margin-bottom: 18px; font-size: 74px; animation: victoryBounce .8s ease-in-out infinite alternate; }
@keyframes victoryBounce { to { transform: translateY(-12px) rotate(5deg); } }
.frog-victory > p:not(.eyebrow) { color: var(--muted); }
.frog-result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; margin: 28px auto; }
.frog-result-stats div { padding: 17px 8px; border-radius: 18px; background: #edf2df; }
.frog-result-stats b, .frog-result-stats small { display: block; }
.frog-result-stats b { font: 800 27px Georgia, serif; }.frog-result-stats small { margin-top: 4px; color: var(--muted); }
.frog-victory .primary-button, .frog-victory .secondary-button { width: min(310px, 100%); }

.memory-card { display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: start; margin-top: 34px; padding: 32px 40px; border: 1px dashed rgba(45,122,92,.35); border-radius: 28px; background: rgba(255,255,255,.66); }
.memory-visual { display: grid; place-items: center; min-height: 140px; border-radius: 50% 44% 52% 40%; background: #f6e9bb; font-size: 74px; transform: rotate(-3deg); }
.memory-visual span { font-size: 68px; filter: drop-shadow(0 7px 5px rgba(75,69,40,.13)); }
.memory-copy h3 { margin: 0 0 12px; font: 800 31px Georgia, serif; }
.memory-copy h3 span { color: var(--coral); font-size: 16px; font-weight: 500; }
.memory-copy > p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.memory-copy .memory-meaning { display: table; margin-top: -5px; padding: 5px 10px; border-radius: 9px; color: var(--green-dark); background: #e1efdf; font-weight: 800; }
.memory-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.sound-button { padding: 9px 14px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); background: transparent; font-weight: 800; cursor: pointer; }
.sound-button span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 5px; border-radius: 50%; color: #fff; background: var(--green); font-size: 9px; }
.shuffle-button { padding: 9px 14px; border: 1px dashed rgba(45,122,92,.45); border-radius: 999px; color: var(--green-dark); background: rgba(255,255,255,.55); font-weight: 800; cursor: pointer; }
.shuffle-button:hover { background: #fff; }
.shuffle-button span { display: inline-block; margin-right: 5px; font-size: 16px; transition: transform .35s ease; }
.shuffle-button:hover span { transform: rotate(180deg); }
.memory-tip-box { position: relative; padding: 15px 17px; border-radius: 17px; color: #675d42; background: linear-gradient(110deg, #fff0bd, #f8e2ac); }
.memory-tip-box::after { content: ""; position: absolute; right: 16px; top: -7px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.48); box-shadow: -25px 8px rgba(255,255,255,.35); }
.memory-tip-box b { display: block; margin-bottom: 6px; color: #745f28; font-size: 12px; }
.memory-tip-box p { margin: 0; font-size: 13px; line-height: 1.7; }
.memory-examples { margin-top: 18px; }
.memory-examples-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.memory-examples-head > b { font-size: 13px; }
.memory-all-sound { padding: 6px 10px; border: 0; border-radius: 999px; color: var(--green); background: #e4f0df; font-size: 11px; font-weight: 800; cursor: pointer; }
.memory-all-sound span { margin-right: 3px; }
.memory-example-list { display: grid; gap: 8px; }
.memory-example-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid rgba(45,122,92,.12); border-radius: 14px; background: rgba(255,255,255,.82); }
.memory-example-sound { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: var(--coral); box-shadow: 0 3px 0 #be5946; cursor: pointer; font-size: 10px; }
.memory-example-row b, .memory-example-row small { display: block; }
.memory-example-row b { font: 700 14px/1.45 Georgia, serif; }
.memory-example-row small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.memory-card.is-changing .memory-visual, .memory-card.is-changing .memory-copy { animation: memorySwap .3s ease both; }
@keyframes memorySwap { 50% { opacity: .35; transform: translateY(4px) scale(.98); } }

.practice-topline { display: flex; align-items: center; gap: 18px; max-width: 780px; margin: 15px auto 22px; }
.back-button { border: 0; padding: 10px 0; background: none; color: var(--muted); cursor: pointer; }
.step-track { flex: 1; height: 10px; border-radius: 999px; background: rgba(32,56,47,.1); }
.step-track span { background: var(--green); }
.practice-topline > span { min-width: 38px; color: var(--muted); font-weight: 700; font-size: 13px; }
.question-card { max-width: 780px; min-height: 520px; margin: 0 auto; padding: clamp(28px, 6vw, 58px); border: 1px solid rgba(255,255,255,.9); border-radius: 32px; background: rgba(255,253,247,.94); box-shadow: var(--shadow); }
.question-badge { display: table; margin: 0 auto 26px; padding: 7px 13px; border-radius: 999px; color: var(--green); background: #e0efdf; font-size: 12px; font-weight: 800; }
.question-mastery { display: table; margin: -17px auto 24px; color: var(--muted); font-size: 11px; font-weight: 700; }
.question-prompt { text-align: center; }
.question-emoji { display: block; margin-bottom: 10px; font-size: 70px; filter: drop-shadow(0 8px 7px rgba(82,73,40,.11)); }
.question-prompt h2 { font-size: clamp(38px, 8vw, 60px); }
.question-prompt h2.english { font-family: Georgia, serif; }
.question-prompt p { margin: 12px 0 25px; color: var(--muted); }
.speak-big { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 20px; border: 0; border-radius: 50%; color: #fff; background: var(--coral); box-shadow: 0 7px 0 #be5946; cursor: pointer; font-size: 24px; }
.speak-big:active { transform: translateY(4px); box-shadow: 0 3px 0 #be5946; }
.listening-prompt .speak-big { width: 88px; height: 88px; margin-top: 12px; font-size: 31px; animation: soundPulse 1.8s ease-in-out infinite; }
.listening-prompt h2 { font-size: clamp(30px, 6vw, 43px); }
@keyframes soundPulse { 50% { box-shadow: 0 7px 0 #be5946, 0 0 0 14px rgba(239,117,91,.12); } }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0; }
.option-button { min-height: 66px; padding: 13px 18px; border: 2px solid var(--line); border-radius: 17px; background: #fff; text-align: left; font-weight: 800; cursor: pointer; transition: border .15s, background .15s, transform .15s; }
.option-button:hover { transform: translateY(-2px); border-color: rgba(45,122,92,.35); }
.option-button.selected { border-color: var(--green); background: #e8f3e8; }
.option-button.correct { border-color: var(--green); background: #d9f0dc; }
.option-button.wrong { border-color: var(--coral); background: #fde3dc; }

.answer-input, .sentence-input { display: block; width: 100%; margin: 24px 0 14px; padding: 17px 18px; border: 2px solid var(--line); border-radius: 16px; outline: none; background: #fff; color: var(--ink); font-size: 20px; text-align: center; transition: border .15s, box-shadow .15s; }
.sentence-input { min-height: 110px; resize: vertical; text-align: left; font-size: 16px; line-height: 1.6; }
.answer-input:focus, .sentence-input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(45,122,92,.1); }
.letter-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 18px 0 26px; }
.letter-tile { width: 45px; height: 49px; border: 1px solid var(--line); border-radius: 12px; color: var(--green-dark); background: #fff; box-shadow: 0 4px 0 #d8d8c9; font: 800 20px Georgia, serif; cursor: pointer; }
.letter-tile:disabled { opacity: .28; box-shadow: none; transform: translateY(4px); }
.clear-letters { display: block; margin: -12px auto 14px; border: 0; color: var(--muted); background: none; cursor: pointer; text-decoration: underline; }
.hint { padding: 12px 15px; border-radius: 14px; color: #675d42; background: #fff0bd; font-size: 13px; line-height: 1.6; }
.example-intro { display: flex; justify-content: center; gap: 9px; margin: 18px 0 22px; }
.example-list { display: grid; gap: 11px; margin: 18px 0; }
.example-row { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.example-sound { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: var(--coral); cursor: pointer; box-shadow: 0 4px 0 #be5946; }
.example-sound:active { transform: translateY(2px); box-shadow: 0 2px 0 #be5946; }
.example-row b, .example-row small { display: block; }
.example-row b { font: 700 16px/1.45 Georgia, serif; }
.example-row small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.review-note { display: table; margin: -14px auto 20px; padding: 7px 12px; border-radius: 999px; color: #a64737; background: #fde3dc; font-size: 12px; font-weight: 800; }
.vocab-question-card { position: relative; }
.vocab-question-count { position: absolute; top: 28px; right: 32px; color: var(--muted); font: 700 12px Georgia, serif; letter-spacing: .08em; }
.vocab-prompt h2 { font-size: clamp(46px, 9vw, 68px); }
.unknown-button { display: block; width: 100%; min-height: 50px; margin-top: 12px; border: 1px dashed rgba(32,56,47,.28); border-radius: 16px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.unknown-button:hover { color: #a64737; border-color: rgba(239,117,91,.55); background: rgba(253,227,220,.55); }
.vocab-result-card { max-width: 690px; }
.estimate-orbit { display: grid; place-items: center; width: 245px; height: 245px; margin: 30px auto 18px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 34% 27%, #5c8492, #294f5f 70%); box-shadow: 0 0 0 14px rgba(53,93,112,.09), 0 20px 40px rgba(41,79,95,.2); }
.estimate-orbit small, .estimate-orbit span { font-weight: 700; }
.estimate-orbit small { margin-bottom: -26px; opacity: .75; }
.estimate-orbit strong { font: 800 62px/1 Georgia, serif; letter-spacing: -.04em; }
.estimate-orbit span { margin-top: -25px; font-size: 13px; opacity: .88; }
.level-chip { display: table; margin: 0 auto 12px; padding: 8px 16px; border-radius: 999px; color: #355d70; background: #dbe9f0; font-weight: 800; }
.vocab-result-card > p:not(.eyebrow):not(.estimate-note) { color: var(--ink); font-weight: 700; }
.vocab-result-stats { grid-template-columns: repeat(2,1fr); }
.estimate-note { max-width: 510px; margin: 0 auto 28px; padding: 12px 15px; border-radius: 14px; color: var(--muted); background: #f1eedf; font-size: 12px; line-height: 1.65; }
.feedback { display: none; margin: 16px 0 20px; padding: 14px 17px; border-radius: 15px; font-weight: 700; line-height: 1.6; }
.feedback.show { display: block; animation: pop .25s ease both; }
.feedback.success { color: #1f6549; background: #dbefdf; }
.feedback.error { color: #a64737; background: #fde3dc; }
@keyframes pop { 50% { transform: scale(1.02); } }
.check-button, .next-button { display: block; width: 100%; margin-top: 18px; }
.hidden { display: none !important; }

.result-card { max-width: 650px; margin: 38px auto 0; padding: 55px 40px; border-radius: 34px; background: rgba(255,253,247,.95); box-shadow: var(--shadow); text-align: center; }
.result-burst { display: grid; place-items: center; width: 118px; height: 118px; margin: 0 auto 28px; border-radius: 44% 55% 45% 55%; background: var(--yellow); box-shadow: 0 0 0 13px rgba(245,201,84,.18); transform: rotate(-7deg); }
.result-burst span { font-size: 54px; transform: rotate(7deg); }
.result-card > p:not(.eyebrow) { color: var(--muted); }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 30px 0; }
.result-stats div { padding: 17px 8px; border-radius: 18px; background: #f1eedf; }
.result-stats b, .result-stats span { display: block; }
.result-stats b { font: 800 28px Georgia, serif; }
.result-stats span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.result-card .primary-button, .result-card .secondary-button { width: min(310px, 100%); }
.secondary-button { display: block; margin: 18px auto 0; color: var(--green); background: transparent; }

footer { position: relative; z-index: 1; padding: 5px 20px 30px; color: #839087; text-align: center; font-size: 11px; }
.app-toast { position: fixed; z-index: 20; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); padding: 12px 17px; border-radius: 14px; color: #fff; background: #263f35; box-shadow: 0 10px 35px rgba(32,56,47,.28); text-align: center; font-size: 13px; font-weight: 700; transform: translateX(-50%); animation: toastIn .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
#confetti { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; top: -20px; width: 9px; height: 16px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translate(var(--drift), 105vh) rotate(720deg); } }

@media (max-width: 720px) {
  .app-shell { width: min(100% - 22px, 600px); padding-top: 17px; }
  .topbar { margin-bottom: 17px; }
  .status-pills { align-items: center; }
  .install-app-button { padding: 8px 10px; }
  .status-pill { padding: 7px 9px; }
  .hero { display: block; min-height: auto; border-radius: 27px; }
  .hero-copy { padding: 34px 25px 6px; }
  .hero-copy > p:not(.eyebrow) { margin: 15px 0 22px; font-size: 14px; }
  .hero-art { min-height: 238px; }
  .owl { transform: translateX(-50%) scale(.86); transform-origin: bottom; }
  .daily-progress { margin: -1px 12px 29px; padding: 15px; gap: 10px; }
  .learning-map { grid-template-columns: repeat(4, 1fr); margin-bottom: 29px; }
  .map-intro { grid-column: 1 / -1; }
  .map-stat { min-height: 88px; border-radius: 18px; }
  .map-stat b { font-size: 22px; }
  .vocab-test-callout { grid-template-columns: 68px 1fr; gap: 15px; padding: 20px 18px; }
  .vocab-test-mark { width: 68px; height: 68px; border-radius: 23px 19px 22px 18px; }
  .vocab-test-mark span { font-size: 28px; }
  .vocab-test-copy h2 { font-size: 20px; }
  .vocab-test-copy > p:not(.eyebrow) { font-size: 12px; }
  .vocab-test-button { grid-column: 1 / -1; width: 100%; }
  .progress-copy b { font-size: 13px; }
  .progress-copy small { font-size: 10px; }
  .progress-icon { display: none; }
  .section-heading { align-items: flex-start; }
  .data-actions { max-width: 175px; }
  .data-actions .text-button { padding: 5px 6px; font-size: 11px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .practice-card, .practice-card:nth-child(-n+3) { grid-column: span 1; min-height: 140px; padding: 18px; }
  .practice-card:last-child { grid-column: 1 / -1; min-height: 125px; }
  .frog-callout { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .frog-mini-scene { height: 105px; }
  .frog-start-button { width: 100%; }
  .frog-game-card { padding: 12px; border-radius: 27px; }
  .river-scene { height: 190px; }
  .river-bank { bottom: -98px; }
  .lily-pad { width: 53px; height: 32px; }
  .lily-one { left: 13%; top: 118px; }.lily-two { left: 29%; top: 70px; }.lily-three { left: 45%; top: 113px; }.lily-four { left: 61%; top: 62px; }.lily-five { left: 76%; top: 111px; }
  .game-frog { font-size: 40px; }
  .frog-question { margin: 22px 8px 4px; }
  .frog-options { grid-template-columns: 1fr; }
  .frog-result-stats { gap: 7px; }
  .card-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .card-copy b { font-size: 15px; }
  .card-copy small { line-height: 1.4; }
  .memory-card { grid-template-columns: 82px 1fr; gap: 17px; padding: 22px 18px; }
  .memory-visual { min-height: 100px; font-size: 50px; }
  .memory-visual span { font-size: 48px; }
  .memory-copy h3 { font-size: 25px; }
  .memory-copy > p:not(.eyebrow) { font-size: 13px; }
  .memory-tip-box, .memory-examples { grid-column: 1 / -1; }
  .memory-tip-box { margin-left: calc(-82px - 17px); }
  .memory-examples { margin-left: calc(-82px - 17px); }
  .question-card { min-height: 480px; padding: 28px 20px; border-radius: 27px; }
  .vocab-question-count { position: static; margin: -12px 0 16px; text-align: center; }
  .estimate-orbit { width: 205px; height: 205px; }
  .estimate-orbit strong { font-size: 52px; }
  .option-grid { grid-template-columns: 1fr; }
  .practice-topline { gap: 10px; padding: 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
