:root {
  color-scheme: light;
  --paper: #f9f7ee;
  --ink: #25213c;
  --muted: #605b70;
  --line: #ded8cb;
  --cream: #fffdf6;
  --lavender: #e4daf5;
  --gold: #f5cb67;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, .brand, .word { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
:focus-visible { outline: 3px solid #7359b0; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 3; left: 16px; top: 16px; background: white; padding: 12px; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.interface-language { margin-left: auto; }
.interface-language select { border: 1px solid var(--line); background: var(--cream); color: var(--ink); font: inherit; border-radius: 9px; min-height: 40px; padding: 4px 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.55rem; font-weight: 700; white-space: nowrap; }
.brand i { font-weight: 400; }
.tabs { display: flex; align-items: center; gap: 5px; background: #efebe1; border-radius: 999px; padding: 4px; }
.tabs a { min-height: 40px; padding: 8px 17px; border-radius: 999px; font-size: .92rem; font-weight: 650; color: var(--muted); }
.tabs a[aria-current] { background: var(--ink); color: white; }
.tabs a:not([aria-current]):hover { background: #e5dfd3; }
main { min-height: calc(100dvh - 155px); padding-block: 36px 68px; }
.hero {
  display: grid; grid-template-columns: 1.12fr .88fr; min-height: 325px; border-radius: 28px;
  overflow: hidden; background: #eee5f8; border: 1px solid #dcd0ed;
}
.hero-copy { align-self: center; padding: clamp(24px, 4vw, 46px); padding-right: 15px; position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(3rem, 6vw, 5.35rem); line-height: .96; max-width: 12ch; font-weight: 700; }
.hero-copy p { margin: 14px 0 18px; color: #504767; font-size: 1.05rem; max-width: 36ch; }
.daily-start { display: flex; flex-wrap: wrap; gap: 8px; }
.daily-controls { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: .91rem; }
.daily-controls > span { margin-right: 4px; }
.size-choice {
  background: #f7f0ff; color: var(--ink); border: 1px solid #d6c6e8; border-radius: 999px;
  min-width: 36px; min-height: 36px; padding: 3px 7px; cursor: pointer;
}
.size-choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.size-choice:hover:not([aria-pressed="true"]) { background: #e8ddf4; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 49px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; background: var(--ink);
  color: #fffaf0; font-weight: 700; cursor: pointer; transition: background .16s, color .16s;
}
.button:hover { background: #474066; }
.button.secondary { background: var(--cream); border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: #f2ecdf; }
.button.warm { background: var(--gold); color: var(--ink); }
.button.warm:hover { background: #ebbb4e; }
.button svg { width: 19px; height: 19px; }
.hero-art { min-height: 285px; display: grid; place-items: center; isolation: isolate; overflow: hidden; position: relative; }
.hero-art::before {
  content: ""; position: absolute; width: 76%; aspect-ratio: 1; background: #e0d1f6; border-radius: 50%;
}
.hero-art img {
  position: absolute; width: clamp(125px, 18vw, 225px); height: auto; aspect-ratio: 1; object-fit: cover;
  border: clamp(4px, 1vw, 8px) solid #fff9eb; border-radius: 19px; box-shadow: 0 8px 25px #34274326;
}
.hero-art img:nth-child(1) { transform: translate(-31%, -20%) rotate(-18deg); }
.hero-art img:nth-child(2) { transform: translate(35%, -5%) rotate(15deg); }
.hero-art img:nth-child(3) { transform: translate(-4%, 31%) rotate(-6deg); }
.sprig { color: #75609e; position: absolute; font-size: 1.9rem; }
.sprig.top { top: 10%; right: 12%; }
.sprig.bottom { left: 12%; bottom: 12%; font-size: 1.1rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 38px 0 17px; }
.section-heading h2, .page-title { font-size: clamp(2.2rem, 5vw, 3.35rem); line-height: 1.03; }
.section-heading p, .intro, .count { color: var(--muted); }
.section-link { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; white-space: nowrap; padding-block: 4px; }
.intro { margin-top: 12px; max-width: 55ch; }
.page-top { margin: 12px 0 25px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.curated-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.peach { --tile: #f6e1d6; } .gold { --tile: #f8edc8; } .lilac { --tile: #ede3f5; }
.mint { --tile: #dcece5; } .rose { --tile: #f2dee3; } .sky { --tile: #dfebf6; }
.sage { --tile: #e5ebd6; }
.topic { display: block; border: 1px solid var(--line); background: var(--cream); border-radius: 18px; overflow: hidden; }
.topic:hover { border-color: #9c8ead; }
.topic-art { display: flex; height: 120px; align-items: center; justify-content: center; background: var(--tile, #eee5f8); overflow: hidden; }
.topic-art img {
  width: 46%; max-width: 104px; height: auto; mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at center, #000 62%, transparent 98%);
}
.topic-art img + img { margin-left: -10px; }
.topic-art img:nth-child(1) { transform: rotate(-8deg) translateY(3px); }
.topic-art img:nth-child(2) { transform: rotate(9deg) translateY(-2px); }
.topic-art img:nth-child(3) { display: none; }
.topic-art img:only-child {
  width: min(94%, 150px); max-width: none; max-height: 100%; object-fit: contain; transform: none;
}
.topic-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.topic-meta strong { font-size: 1rem; }
.count { font-size: .88rem; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: .93rem; }
.crumbs a:hover { text-decoration: underline; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lesson { width: min(600px, 100%); margin: 0 auto; }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.lesson-top a { color: var(--muted); padding-block: 6px; }
.lesson-top a:hover { text-decoration: underline; }
progress { appearance: none; display: block; background: #e8e2d6; border: 0; border-radius: 999px; color: #8873b3; overflow: hidden; }
progress::-webkit-progress-bar { background: #e8e2d6; }
progress::-webkit-progress-value { background: #8873b3; }
progress::-moz-progress-bar { background: #8873b3; }
.progress { width: 100%; height: 7px; margin-bottom: 16px; }
.word-card { overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: var(--cream); }
.word-art { display: grid; place-items: center; background: var(--tile, #eee5f8); min-height: 230px; }
.word-art img { width: min(100%, 350px); height: clamp(200px, 37vh, 360px); object-fit: contain; mix-blend-mode: multiply; }
.word-face { min-height: 136px; padding: 20px 14px; display: grid; place-content: center; justify-items: center; gap: 9px; text-align: center; }
.word { font-size: clamp(2.8rem, 8vw, 4.65rem); line-height: 1.05; }
.play { min-height: 46px; padding: 8px 18px; font-size: .94rem; }
.swipe-area { touch-action: pan-y; }
.swipe-area img { user-select: none; -webkit-user-drag: none; }
.lesson-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.lesson-actions.recall { justify-content: center; }
.lesson-choices { margin-top: 16px; }
.word-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.word-buttons [aria-pressed="true"], .play-mode [aria-pressed="true"] { background: var(--lavender); }
.play-mode { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.play-mode .button { min-height: 36px; padding: 5px 13px; font-size: .9rem; }
.situation-preview { height: auto; min-height: 128px; border-radius: 18px; }
.today-review { display: inline-block; margin-top: 12px; color: #4a366f; font-weight: 700; text-decoration: underline; }
.city-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; margin-bottom: 16px; max-width: 760px; }
.city-entry-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.city-entry .topic-meta { padding: clamp(10px, 2.5vw, 24px); display: grid; gap: 5px; }
.city-entry .topic-meta strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3.4vw, 1.95rem); line-height: 1.1; }
.city-board { max-width: 1080px; }
.city-pin {
  position: absolute; left: var(--pin-x); top: var(--pin-y); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
}
.city-pin-dot { width: 25px; height: 25px; border: 3px solid white; border-radius: 50%; background: #302544; box-shadow: 0 1px 5px #221a2b9c; }
.city-pin:hover .city-pin-dot, .city-pin:focus-visible .city-pin-dot { background: var(--gold); border-color: #302544; }
.city-pin:focus-visible { outline-offset: -2px; background: #fff9; }
.city-pin-label {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%); pointer-events: none;
  white-space: nowrap; border-radius: 999px; padding: 3px 8px; background: #fffdf6;
  color: #302544; font-size: .85rem; font-weight: 750; box-shadow: 0 1px 4px #221a2b57;
}
.city-districts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px 25px; }
.city-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); align-items: start; gap: 12px; }
.city-place { min-width: 0; }
.city-extra { display: inline-block; padding: 6px 2px; color: #51416f; text-decoration: underline; }
.listening-prompt {
  display: grid; justify-items: center; align-content: center; gap: 14px; min-height: clamp(180px, 30vw, 260px);
  padding: 18px; background: #eae0f3; text-align: center;
}
.listening-prompt .page-title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.meaning-caption { font-size: clamp(1.08rem, 2.6vw, 1.65rem); line-height: 1.3; letter-spacing: -.025em; }
.offline-note, .offline-state { margin-top: 10px; }
[data-offline-controls] .row-actions { margin-top: 8px; }
[data-offline-controls] { min-height: 3rem; }
.scene-cover { overflow: hidden; background: #e8dcc5; }
.scene-cover img, .scene-board > img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
}
.explore-intro { margin-bottom: 16px; }
.scene-board {
  position: relative; margin: 0; max-width: 900px; overflow: hidden;
  border: 1px solid var(--line); border-radius: clamp(12px, 2vw, 22px); background: #e8dcc5;
}
.scene-pin {
  position: absolute; left: var(--pin-x); top: var(--pin-y); transform: translate(-50%, -50%);
  display: grid; width: 44px; height: 44px; place-items: center;
  border: 0; border-radius: 50%; padding: 0; background: transparent; cursor: pointer;
}
.scene-pin > span {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid white;
  background: #302544; box-shadow: 0 1px 5px #221a2b9c;
}
.scene-pin:hover > span, .scene-pin[aria-pressed="true"] > span { background: var(--gold); border-color: #302544; }
.scene-pin:focus-visible { outline-offset: -3px; background: #fff9; }
.scene-panel {
  max-width: 900px; margin-block: 12px; min-height: 70px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--cream);
}
.scene-word { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.scene-word .word { font-size: clamp(1.7rem, 5vw, 2.45rem); overflow-wrap: anywhere; }
.scene-panel > .word-list-picker { margin-top: 6px; }
.scene-objects { display: grid; grid-template-columns: repeat(auto-fit, minmax(46px, 1fr)); gap: 6px; max-width: 900px; }
.object-tile { padding: 0; min-height: 44px; border: 2px solid transparent; border-radius: 11px; background: #f7eedc; cursor: pointer; }
.object-tile img { width: 100%; height: auto; border-radius: 8px; }
.object-tile:hover, .object-tile[aria-pressed="true"] { border-color: #7359b0; }
.family-scene { max-width: 430px; }
.family-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; max-width: 660px; }
.family-object { display: grid; align-content: start; color: var(--ink); font: inherit; text-align: center; }
.family-object span { padding: 5px 5px 8px; overflow-wrap: anywhere; }
.british-word { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.british-word summary { cursor: pointer; font-weight: 650; }
.british-word > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.journey-count { margin-top: 10px; }
.journey-list { display: grid; gap: 10px; max-width: 760px; margin: 0; padding-left: 26px; }
.journey-list li::marker { color: #584481; font-weight: 700; }
.journey-stop { display: flex; align-items: center; }
.journey-stop .topic-art { flex: 0 0 min(28%, 138px); height: 72px; }
.journey-stop .topic-art img { max-width: 65%; }
.journey-stop .topic-meta { flex: 1; }
.word-lists { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; }
.word-lists .topic { background: #f2eaf9; }
.word-list-picker, .list-settings { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.word-list-picker summary, .list-settings summary { cursor: pointer; font-weight: 650; }
.word-list-picker p { margin-top: 8px; }
.word-list-picker a { text-decoration: underline; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; }
.inline-form :is(input, select) { max-width: 100%; min-width: 0; min-height: 42px; border: 1px solid #a89cbb; border-radius: 9px; background: white; padding: 6px 9px; color: var(--ink); font: inherit; }
.inline-form .button { min-height: 42px; padding: 6px 13px; }
.list-result { font-size: .9rem; color: var(--muted); }
.saved-words li { min-width: 0; }
.saved-words a strong, .word-lists strong { overflow-wrap: anywhere; }
.list-remove { margin: 4px 0 0; padding: 7px 10px; min-height: 40px; border: 0; background: transparent; color: #51416f; text-decoration: underline; cursor: pointer; }
.list-settings details { margin-top: 12px; }
.list-settings details p { margin-block: 6px; }
.lesson-actions button:disabled { opacity: .46; cursor: default; }
.lesson-actions button:disabled:hover { background: var(--cream); }
.recall-box, .finished { border: 1px solid var(--line); border-radius: 23px; background: var(--cream); padding: clamp(22px, 5vw, 44px); }
.finished { text-align: center; }
.finished .row-actions { justify-content: center; }
.finished .intro { margin-inline: auto; }
.learn-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.search-box { display: flex; flex-direction: column; gap: 4px; flex: 1 1 250px; max-width: 450px; font-weight: 650; }
.search-box input {
  min-width: 0; min-height: 49px; width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--cream); color: var(--ink); padding: 9px 13px; font: inherit; font-weight: 400;
}
#search-results:not(:empty) { max-width: 700px; margin-top: 13px; }
.search-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 7px; padding: 0; list-style: none; }
.search-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; background: var(--cream); }
.search-list a:hover, .related-list a:hover { border-color: #9c8ead; }
.search-list img { width: 40px; height: 40px; border-radius: 6px; }
.search-list a span { color: var(--muted); font-size: .86rem; }
.search-with-senses { display: grid; gap: 5px; }
.search-senses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(126px, 100%), 1fr)); gap: 6px; }
.search-senses a { display: grid; align-content: start; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: var(--cream); }
.search-senses img { width: 58px; height: auto; border-radius: 6px; }
.travel-entry { max-width: 360px; margin-bottom: 12px; }
.guide-entries { max-width: 640px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 18px; }
.guide-entries .count:empty { display: none; }
.guide-object { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: start; gap: 12px; max-width: 700px; }
.guide-object .word-art { min-height: 0; }
.guide-object .word-art img { max-height: 290px; }
.foundation-entries { max-width: 860px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); margin-block: 18px; }
.foundation-entries .count:empty { display: none; }
.action-player { max-width: 500px; }
.action-stage { margin: 0; border-radius: 17px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.action-stage img { display: block; width: 100%; height: auto; }
.action-steps, .action-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.action-steps [aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.action-static { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 10px; }
.action-static figure { margin: 0; }
.action-static img { border-radius: 13px; height: auto; }
.sound-grid .word-buttons { flex-wrap: wrap; }
.starter-progress { width: min(100%, 380px); margin-block: 12px 3px; }
.guide-lesson-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 13px 22px; padding-left: 26px; }
.guide-lesson-list li::marker { color: #66518c; font-weight: 700; }
.travel-grid .topic-meta strong, .search-list a strong { overflow-wrap: anywhere; }
.word-context-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 7px; padding: 0; list-style: none; }
.word-context-list a { display: grid; min-height: 48px; align-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 11px; background: var(--cream); }
.word-context-list a:hover, .search-senses a:hover { border-color: #9c8ead; }
.word-context-list a span { color: var(--muted); font-size: .85rem; }
.word-detail .word { overflow-wrap: anywhere; }
.comparison-note { margin: 0 auto; max-width: 32ch; color: var(--muted); }
.word-detail audio, .compare-grid audio { display: block; width: min(100%, 320px); min-width: 0; margin: 8px 0; }
.word-detail .word-face audio, .compare-grid audio { margin-inline: auto; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-width: 800px; }
.compare-grid .word-art { min-height: 0; }
.compare-grid .word-art img { height: auto; aspect-ratio: 1; }
.compare-grid .word { font-size: clamp(1.45rem, 4vw, 3.3rem); overflow-wrap: anywhere; }
.related { margin-top: 25px; }
.related h2, .progress-panel h2 { font-size: 1.55rem; line-height: 1.15; }
.related-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.related-list a { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; font-size: .86rem; text-align: center; background: var(--cream); }
.related-list img { width: 100%; height: auto; aspect-ratio: 1; }
.related-list span { display: block; padding: 6px 4px; }
.word-feedback { margin-top: 20px; color: var(--muted); font-size: .91rem; }
.word-feedback summary { cursor: pointer; display: list-item; width: fit-content; min-height: 44px; padding-block: 9px; }
.word-feedback a { text-decoration: underline; }
.feedback-result { margin-top: 7px; color: #42644e; }
.progress-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.progress-panel p { margin-top: 8px; }
.progress-list { padding: 0; list-style: none; margin: 14px 0 0; }
.progress-list li { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; margin: 7px 0; }
.progress-list progress { width: 100%; height: 7px; }
.progress-list li > span:last-child { white-space: nowrap; color: var(--muted); font-size: .88rem; }
.reports-title { margin-top: 24px; }
#status:not(.sr-only) { width: min(600px, calc(100% - 32px)); margin: 0 auto 15px; padding: 10px 13px; border-radius: 10px; background: #ede3f5; color: var(--ink); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer a { color: var(--ink); text-decoration: underline; padding-block: 10px; }
.footer nav { display: flex; flex-wrap: wrap; column-gap: 13px; align-items: center; }
.legal-page { width: min(760px, 100%); }
.legal-page .intro { max-width: 65ch; }
.legal-page section { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-page h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); line-height: 1.15; }
.legal-page p { margin-top: 10px; max-width: 68ch; }
.legal-page a:not(.button) { text-decoration: underline; text-underline-offset: .15em; }
.legal-page li + li { margin-top: 6px; }
.legal-draft { border: 1px solid #dcd0ed; border-radius: 12px; background: #eee5f8; padding: 11px 15px; }
.legal-page dl { margin-bottom: 0; }
.legal-page dt { font-weight: 700; }
.legal-page dd { margin: 3px 0 12px; }
.topic-directory .intro { max-width: 62ch; }
.directory-count { margin-top: 10px; color: var(--muted); font-size: .94rem; }
.directory-words { padding: 0; margin: 16px 0 0; list-style: none; }
.directory-words .topic { height: 100%; }
.directory-words .topic-art { background: #f7eedc; }

@media (max-width: 810px) {
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic-meta { flex-wrap: wrap; gap: 2px 8px; }
}
@media (max-width: 585px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 0; padding-block: 12px; flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 1.28rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .tabs a { min-height: 34px; padding: 5px 10px; font-size: .86rem; }
  main { padding-block: 17px 43px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 21px; }
  .hero-copy { padding: 19px 17px 4px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 9.2vw, 3.25rem); max-width: 16ch; }
  .hero-copy p { margin: 8px 0 12px; }
  .daily-start .button { padding-inline: 12px; font-size: .91rem; min-height: 45px; }
  .hero-art { min-height: 126px; }
  .hero-art::before { width: 40%; }
  .hero-art img { width: clamp(72px, 21vw, 110px); border-radius: 10px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topic-art { height: 94px; }
  .topic-meta { padding: 9px 10px; }
  .section-heading { margin-top: 27px; align-items: flex-start; }
  .section-heading p { text-align: right; font-size: .88rem; }
  .progress-grid, .search-list { grid-template-columns: 1fr; }
  .compare-grid .word-face { min-height: 108px; padding: 9px 6px; }
  .compare-grid .word-buttons .button { min-height: 40px; padding: 5px 10px; }
  .city-pin-label { display: none; }
  .city-pin-dot { width: 21px; height: 21px; }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-actions.recall { flex-wrap: wrap; }
  .footer { flex-wrap: wrap; gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
