:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f6fbff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, rgba(28,180,190,.16), transparent 34%), radial-gradient(circle at 86% 12%, rgba(255,188,84,.30), transparent 25%), #f7fbff; }
button { cursor: pointer; font: inherit; }
p, h1, h2 { margin: 0; }
.topbar { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px clamp(14px,4vw,38px); border-bottom: 1px solid rgba(23,32,51,.12); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.home-button { width: 42px; height: 42px; border: 0; border-radius: 12px; color: #fff; background: #14a6a6; font-size: 23px; font-weight: 900; }
.eyebrow { color: #087f7d; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
h1 { margin-top: 4px; font-size: clamp(22px,4vw,34px); line-height: 1.12; }
h2 { margin-top: 4px; font-size: clamp(28px,5vw,44px); line-height: 1.06; }
.count { border-radius: 999px; padding: 8px 13px; color: #172033; background: #ffe39f; font-size: 14px; font-weight: 850; white-space: nowrap; }
main { width: min(1120px,100%); margin: 0 auto; padding: 18px clamp(14px,3vw,28px) 44px; }
.hero, .controls, .blind-test { border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(33,64,96,.10); }
.hero { margin-bottom: 18px; padding: clamp(20px,4vw,34px); }
.hero p:last-child { max-width: 660px; margin-top: 10px; color: #536477; line-height: 1.55; }
.hero .source-note { max-width: none; margin-top: 18px; border-left: 4px solid #ffad42; border-radius: 0 12px 12px 0; padding: 11px 14px; color: #6b4b16; background: #fff6df; font-size: 14px; font-weight: 750; }
.unit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.unit-card { display: grid; gap: 10px; min-height: 108px; border: 0; border-radius: 18px; padding: 18px; color: #172033; background: linear-gradient(135deg,#fff,#dff8f7); text-align: left; box-shadow: 0 12px 28px rgba(33,64,96,.12); }
.unit-card:nth-child(2n) { background: linear-gradient(135deg,#fff,#fff0c9); }
.unit-card:nth-child(3n) { background: linear-gradient(135deg,#fff,#e8e0ff); }
.unit-card:hover { transform: translateY(-2px); }
.unit-title { font-size: 25px; font-weight: 900; line-height: 1.1; }
.unit-meta { color: #536477; font-size: 14px; font-weight: 800; }
.controls { display: grid; grid-template-columns: minmax(180px,1fr) auto; gap: 12px; align-items: end; margin-bottom: 16px; padding: 14px; }
.search-box { display: grid; gap: 6px; color: #536477; font-size: 13px; font-weight: 850; }
input[type=search] { width: 100%; height: 42px; border: 1px solid #c7d7df; border-radius: 12px; padding: 0 12px; background: #fbfeff; color: #172033; font-size: 16px; }
.button-row, .blind-actions, .blind-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.button-row button, .blind-actions button, .blind-buttons button { min-height: 42px; border: 0; border-radius: 12px; padding: 0 13px; color: #172033; background: #edf5f7; font-weight: 850; }
.button-row button:hover, .button-row button[aria-pressed=true], .blind-buttons button:first-child { color: #fff; background: #14a6a6; }
.blind-buttons button:nth-child(2) { color: #fff; background: #ff8a3d; }
.blind-test { margin-bottom: 16px; overflow: hidden; }
.blind-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px; background: #dff8f7; }
.blind-card { display: grid; justify-items: center; gap: 14px; padding: clamp(18px,4vw,34px); text-align: center; }
.blind-progress { color: #087f7d; font-size: 15px; font-weight: 900; }
.blind-play { min-width: min(100%,280px); min-height: 68px; border: 0; border-radius: 18px; color: #fff; background: #ff8a3d; font-size: 24px; font-weight: 950; }
.blind-answer { width: min(100%,580px); border-radius: 18px; padding: 16px; background: #fff4d7; text-align: left; }
.blind-word { color: #172033; font-size: clamp(30px,7vw,50px); font-weight: 950; overflow-wrap: anywhere; }
.blind-meaning { margin-top: 12px; color: #172033; font-size: 18px; font-weight: 850; line-height: 1.45; }
.blind-hint { max-width: 560px; color: #536477; font-size: 15px; line-height: 1.55; }
.word-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.word-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; min-height: 122px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 10px 22px rgba(33,64,96,.09); }
.word-card.is-playing { outline: 3px solid #14a6a6; }
.play-button { width: 44px; height: 44px; border: 0; border-radius: 14px; color: #fff; background: #14a6a6; font-weight: 900; }
.word-main { min-width: 0; }
.word-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.word-no { color: #ff8a3d; font-size: 13px; font-weight: 900; }
.word-text { min-width: 0; border: 0; padding: 0; color: #172033; background: transparent; font-size: 25px; font-weight: 900; line-height: 1.1; text-align: left; overflow-wrap: anywhere; }
.phonetic { flex: 0 1 auto; color: #087f7d; font-size: 15px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.star-button { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 10px; color: #8ea0ad; background: #edf5f7; font-size: 22px; font-weight: 950; line-height: 1; }
.star-button[aria-pressed=true] { color: #fff; background: #ff8a3d; }
.meaning { margin-top: 10px; color: #46576b; font-size: 16px; font-weight: 750; line-height: 1.45; }
.example { margin-top: 8px; color: #68798c; font-size: 14px; line-height: 1.45; }
.audio-status { min-height: 18px; margin-top: 8px; color: #b54708; font-size: 13px; font-weight: 750; }
body.hide-chinese .chinese { display: none; }
.empty-state { grid-column: 1/-1; padding: 36px 18px; border-radius: 18px; color: #536477; background: #fff; text-align: center; }
@media (max-width: 820px) { .unit-grid, .word-grid { grid-template-columns: 1fr; } .controls { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .topbar { grid-template-columns: 42px minmax(0,1fr); } .count { grid-column: 2; width: fit-content; } .blind-head { display: grid; align-items: start; } }
