/* Jiaming's bright identity, shared by public, member and admin pages. */
:root {
  color-scheme: light;
  --red: #c8101d;
  --red-dark: #a60914;
  --gold: #794300;
  --gold-bright: #ffbd35;
  --ink: #20242b;
  --muted: #515965;
  --paper: #ffffff;
  --line: #e4d7d0;
  --red-soft: #fff1ee;
  --gold-soft: #fff4d2;
}
html { scrollbar-color: var(--red) var(--gold-soft); }
body { background: #fff; }
input, textarea { caret-color: var(--red); }
input::placeholder, textarea::placeholder { color: #626874; opacity: 1; }
:focus-visible { outline-color: #215caa; }
h1, h2, h3 { font-weight: 600; }
.site-header { height: auto; min-height: 108px; background: #fff; border-top: 5px solid var(--red); }
.header-inner { gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand img { width: 72px; height: 72px; flex-shrink: 0; }
.brand strong { color: var(--red); font-weight: 700; font-size: 22px; }
.brand small { color: var(--gold); font-weight: 700; letter-spacing: .13em; margin-top: 6px; }
.nav a { font-weight: 700; }
.nav .button, .nav .button:hover { color: #fff; }
.nav-toggle { background: var(--gold-bright); color: #442500; border-color: #d99516; font-weight: 700; }
.button, button.primary { border-radius: 9px; }
.button.secondary, .button-secondary { background: #fff; color: var(--red); border-color: var(--red); }
.button.secondary:hover, .button-secondary:hover { color: var(--red-dark); background: var(--red-soft); border-color: var(--red-dark); }
.button.small { min-height: 42px; }
.lead { color: #434b57; }
.hero { gap: 65px; padding: 72px 0 76px; min-height: 650px; }
.hero-art { background: #ffd269; border-radius: 100px 16px 16px 16px; }
.hero-hanzi { color: var(--red); font-weight: 700; }
.art-line { color: #563300; border-color: #b47b21; gap: 15px; }
.art-line > span:last-child { white-space: nowrap; flex-shrink: 0; }
.practice-slip { border-radius: 12px; box-shadow: 0 18px 35px #7040081c; margin-right: -50px; }
.practice-slip .hanzi { color: var(--red); }
.panel { border-radius: 14px; }
.section .grid > .program { padding: 28px; background: #fff8e4; border: 1px solid #e5bd62; border-radius: 14px; }
.section .grid > .program:nth-child(2n) { background: #fff3ef; border-color: #efc2b9; }
.program .hanzi { font-size: 38px; font-weight: 700; margin-bottom: 22px; }
.text-link { font-weight: 800; }
.text-link:hover { text-decoration: underline; }
.tag { background: var(--gold-bright); color: #4f2b00; font-weight: 800; padding: 5px 10px; border-radius: 6px; }
.tag.success { background: #d9f4df; color: #165c2b; }
.tag.pending { background: #ffdf87; color: #5d3600; }
.tag.danger { background: #ffe2e2; color: #a00817; }
.cta-band { border-radius: 16px; }
.cta-band p { color: #fff; }
.cta-band .button { background: var(--gold-bright); color: #4a2500; border-color: var(--gold-bright); }
.cta-band .button:hover { background: #ffd269; border-color: #ffd269; }
.site-footer { background: #fff7df; border-top: 5px solid var(--gold-bright); }
.footer-links { font-weight: 600; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { border-color: #d7b878; color: #594c37; }
.prose h2 { color: var(--red); }
.auth-wrap .panel { border-color: #deb666; background: #fffdf7; }
.field label { font-weight: 800; }
.field input, .field select, .field textarea { border-color: #8a9099; border-radius: 8px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.notice { background: var(--gold-soft); color: #634100; border: 1px solid #d8ae42; }
.notice.error { background: #ffeded; border-color: #e9aaa9; color: #990a19; }
.notice.success { background: #e4f8e8; border-color: #83b991; color: #175a2a; }
.app-shell { grid-template-columns: 225px minmax(0,1fr); gap: 34px; padding: 32px 0; align-items: start; }
.sidebar { background: var(--red); color: #fff; border: 0; border-radius: 14px; padding: 16px 12px 18px; }
.sidebar-title { color: #fff; font-weight: 800; margin: 12px 12px 18px; }
.sidebar a { font-weight: 600; border-radius: 8px; margin-bottom: 4px; }
.sidebar a:hover { background: var(--red-dark); color: #fff; }
.sidebar a.active { background: var(--gold-bright); color: #4b2400; font-weight: 800; }
.sidebar .button.secondary { background: transparent; color: #fff; border-color: #fff; margin: 14px 0 0 8px; }
.sidebar .button.secondary:hover { background: var(--red-dark); }
.sidebar :focus-visible { outline-color: #fff; }
.app-content > .page-heading { padding-top: 20px; }
.stat-grid:has(.stat:nth-child(5)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stat { padding: 22px; border: 1px solid #ebc4bc; border-radius: 12px; background: var(--red-soft); }
.stat strong { color: var(--red); font-size: 35px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: #6f3438; font-weight: 600; }
.stat:first-child { background: var(--red); border-color: var(--red); }
.stat:first-child strong, .stat:first-child span { color: #fff; }
.stat:nth-child(2) { background: var(--gold-bright); border-color: #e5a426; }
.stat:nth-child(2) strong, .stat:nth-child(2) span { color: #4a2900; }
.stat:nth-child(3n) { background: #fff; border-color: #d5ac5d; }
.stat:nth-child(3n) span { color: var(--muted); }
.empty { background: #fffaf0; border-color: #bc852c; border-radius: 14px; }
.empty h3 { color: var(--red); }
.empty p { color: #62513e; }
.table-wrap { border-radius: 12px; }
table { font-variant-numeric: tabular-nums; }
th { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .035em; }
tbody tr:nth-child(even) { background: #fffaf0; }
tbody tr:hover { background: var(--gold-soft); }
.level-badge { background: var(--gold-bright); color: #7b1018; font-weight: 700; }
.level-row.locked { opacity: 1; }
.level-row.locked .level-badge { background: #f2f3f5; color: #5d626a; }
.level-row.locked .tag { background: #e9ecf0; color: #454c57; }
.lesson-body { border-color: #deb666; border-radius: 14px; }
.lesson-body .hanzi { color: var(--red); }
.option { border-color: #959ba4; border-radius: 9px; }
.option:has(input:checked) { background: var(--gold-soft); border-color: #a26c17; }
.flashcard { background: #fff8e5; border-color: #dca439; border-radius: 14px; }
.flashcard .hanzi { color: var(--red); font-weight: 500; }
.flashcard .pinyin { color: var(--gold); font-weight: 600; }
.game-stage, [data-game-stage]:not(:empty) { background: #fff8e5; border: 1px solid #dca439; border-radius: 14px; padding: 32px; margin-top: 22px; min-height: 280px; }
.game-options button, .word-token { background: #fff; color: var(--red); border-color: var(--red); font-weight: 700; border-radius: 9px; }
.game-options button:hover { background: var(--red); color: #fff; }
.progress { background: #f6dda3; height: 8px; }
summary::marker { color: var(--red); }
.sentence-answer { background: #fff; border-color: #a26c17; border-radius: 9px; }
.memory-prompts, .memory-meanings { grid-template-columns: repeat(2,minmax(0,1fr)); }
.game-prompt { color: var(--red); font-size: 32px; }
[data-game-stage] .button[aria-pressed=true] { background: var(--red-dark); color: #fff; }
[data-game-stage] .button { margin: 4px; }

@media(max-width:1100px) {
  .brand img { width: 60px; height: 60px; }
  .brand strong { font-size: 20px; }
  .hero { gap: 40px; }
  .practice-slip { margin-right: -25px; }
  .app-shell { grid-template-columns: 195px minmax(0,1fr); gap: 25px; }
  .stat-grid, .stat-grid:has(.stat:nth-child(5)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .site-header { min-height: 88px; }
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .brand img { width: 56px; height: 56px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 8px; letter-spacing: .1em; }
  .nav { top: 88px; background: #fff; border-bottom: 2px solid var(--gold-bright); }
  .hero { padding: 44px 0; gap: 30px; min-height: 0; }
  .hero h1 { font-size: 44px; }
  .hero-art { border-top-left-radius: 70px; margin-right: 12px; }
  .practice-slip { margin: 15px -25px 0 0; padding: 20px; }
  .section .grid > .program { padding: 24px; }
  .app-shell { display: block; padding-top: 20px; }
  .sidebar { padding: 10px; margin-bottom: 24px; border-radius: 10px; scrollbar-color: var(--gold-bright) var(--red-dark); }
  .sidebar a { margin: 0; padding: 10px 13px; }
  .sidebar .button.secondary { margin: 0; white-space: nowrap; }
  .stat { padding: 18px; }
  .stat strong { font-size: 29px; }
  .game-stage, [data-game-stage]:not(:empty) { padding: 22px; }
}
@media print {
  .sidebar, .site-header, .site-footer { display: none!important; }
  body { background: #fff; }
}

/* Compact account navigation on phones; full sidebar on larger screens. */
.workspace-toggle { display: none; }
@media (max-width: 760px) {
  .sidebar { display: block; overflow: visible; padding: 0; border: 0; }
  .workspace-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 14px 18px; background: var(--red); color: #fff; border: 0; border-radius: 10px; text-align: left; font: 700 15px var(--sans); cursor: pointer; }
  .workspace-toggle-state { margin-left: auto; font-size: 24px; line-height: 1; }
  .workspace-toggle[aria-expanded="true"] .workspace-toggle-state { transform: rotate(45deg); }
  .workspace-toggle[aria-expanded="true"] { border-radius: 10px 10px 0 0; }
  .workspace-links { display: none; padding: 0 10px 14px; max-height: 65vh; overflow-y: auto; }
  .workspace-links.open { display: block; }
  .workspace-links a { display: block; white-space: normal; padding: 12px 14px; margin: 3px 0; }
  .workspace-links .button.secondary { margin: 10px 0 0; }
}

/* HSK course: readable materials and short, resumable practice sessions. */
.course-entry { background: var(--gold-soft); padding: 28px; border-radius: 12px; margin: 20px 0 35px; }
.course-entry h2 { margin: 0 0 12px; }
.course-entry p { max-width: 65ch; }
.course-intro { display: flex; gap: 40px; padding: 26px 0; border-block: 1px solid var(--line); }
.course-intro strong { display: block; font-size: 25px; color: var(--red); }
.course-intro span { display: block; font-size: 13px; margin-top: 6px; }
.course-context { margin: 22px 0 32px; max-width: 75ch; line-height: 1.8; }
.course-part-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 20px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.course-part-number { display: grid; place-items: center; background: var(--gold-bright); color: #4b2400; border-radius: 50%; height: 48px; width: 48px; font-size: 22px; font-weight: 700; }
.course-part-copy h2 { font-size: 24px; margin: 2px 0 12px; }
.course-part-copy p { font-size: 14px; max-width: 65ch; }
.course-part-action { max-width: 180px; }
.course-part-copy progress { width: 100%; height: 8px; accent-color: var(--red); border: 0; border-radius: 8px; background: var(--gold-soft); }
.course-part-copy progress::-webkit-progress-bar { background: var(--gold-soft); border-radius: 8px; }
.course-part-copy progress::-webkit-progress-value { background: var(--red); border-radius: 8px; }
.course-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.course-goals, .course-materials, .course-vocabulary, .course-sessions, .course-review { margin: 45px 0; }
.course-goals h2, .course-materials h2, .course-vocabulary h2, .course-sessions h2, .course-review h2 { font-size: 28px; }
.course-goals li { margin: 10px 0; line-height: 1.7; }
.course-lesson summary { font-size: 16px; padding: 10px 0; color: var(--red); }
.course-lesson-body { max-width: 72ch; line-height: 1.95; font-size: 16px; padding: 14px 0 24px; overflow-wrap: anywhere; }
.course-hanzi { font-size: 21px; }
.course-session-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
.course-session-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.course-session-item > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.course-session-item h3 { font-size: 23px; margin: 0; }
.course-session-item .actions { margin-top: 14px; gap: 14px; }
.course-questions { margin: 28px 0; }
.course-question { min-width: 0; padding: 20px 0 30px; margin: 0 0 32px; border: 0; border-bottom: 1px solid var(--line); }
.course-question legend { width: 100%; padding: 0; }
.course-question-label { display: block; font-size: 12px; color: var(--red); font-weight: 700; margin-bottom: 12px; }
.course-question-prompt { display: block; font-size: 19px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.course-question .option { font-size: 16px; min-height: 54px; cursor: pointer; }
.course-question .option:has(input:checked) { background: var(--gold-soft); border-color: var(--red); }
.course-question .option:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.course-question input { flex-shrink: 0; width: 18px; height: 18px; }
.course-result-summary { display: flex; gap: 28px; align-items: center; padding: 26px; background: var(--gold-soft); border-radius: 12px; }
.course-result-summary > strong { font-size: 52px; color: var(--red); }
.course-result-summary h2 { font-size: 28px; margin: 0 0 10px; }
.course-result-summary p { margin: 0; }
.course-review-question { padding: 26px 0; border-bottom: 1px solid var(--line); }
.course-review-question h3 { font: 600 18px/1.8 var(--sans); margin: 18px 0; overflow-wrap: anywhere; }
.course-explanation { background: var(--gold-soft); padding: 18px; border-radius: 8px; line-height: 1.8; font-size: 15px; }
@media (max-width:760px) {
  .course-intro { flex-direction: column; gap: 22px; }
  .course-part-row { grid-template-columns: 42px minmax(0,1fr); gap: 14px; }
  .course-part-number { width: 40px; height: 40px; font-size: 19px; }
  .course-part-copy h2 { font-size: 23px; }
  .course-part-action { grid-column: 2; max-width: none; }
  .course-session-grid { grid-template-columns: 1fr; }
  .course-entry { padding: 22px; }
  .course-result-summary { flex-direction: column; align-items: start; gap: 10px; padding: 22px; }
  .course-result-summary > strong { font-size: 44px; }
  .course-question-prompt { font-size: 18px; }
  .course-lesson-body { font-size: 15px; }
}

/* Answer-by-answer practice and retained grading history. */
[data-course-practice] [hidden] { display: none!important; }
.course-live-control { display: none; }
.course-live .course-live-control { display: inline-flex; }
.course-live .course-question { scroll-margin-top: 24px; }
.course-live .course-question .option:has(input:disabled:checked) { background: var(--gold-soft); border-color: var(--red); }
.course-live .course-question input:disabled { opacity: 1; }
.course-live .course-question [data-question-feedback] { line-height: 1.8; margin: 22px 0; font-size: 15px; }
.course-grade-scale { display: flex; gap: 12px 22px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.course-grade-scale span:first-child { color: var(--red); font-weight: 700; }
.course-grade-scale b { margin-right: 5px; }
.course-attempt-stats { line-height: 1.8; margin: 24px 0; font-size: 15px; }
.course-result-summary .tag { margin-bottom: 12px; }
.course-history-pages { align-items: center; justify-content: space-between; font-size: 13px; }
.course-live .course-question [data-question-feedback] { white-space: pre-line; }

/* Vocabulary practice: five readable alternatives per card. */
.vocab-grid{align-items:start}.vocab-practice{text-align:left;margin:24px 0 0}.vocab-choices{border:0;padding:0;margin:0 0 20px;min-width:0}.vocab-choices legend{font-weight:700;margin-bottom:12px;font-size:14px}.vocab-choice{display:flex;align-items:center;gap:10px;padding:12px;margin:8px 0;background:#fff;border:1px solid var(--line);border-radius:10px;cursor:pointer;line-height:1.5;font-weight:500;min-height:52px}.vocab-choice input[type=radio]{width:18px;height:18px;margin:0;flex:0 0 18px;accent-color:var(--red)}.vocab-choice:has(input:checked){border-color:var(--red);background:#fff0ee}.vocab-choice:has(input:focus-visible){outline:3px solid var(--gold);outline-offset:2px}.vocab-letter{font-weight:800;color:var(--red);flex:0 0 18px}.vocab-feedback{text-align:left;padding:14px;border-radius:10px;background:#fff;border:1px solid var(--line)}.vocab-feedback[data-correct=true]{border-color:#28734c;color:#1c5b38}.vocab-feedback[data-correct=false]{border-color:var(--red);color:var(--red-dark)}.vocab-pagination{justify-content:center;flex-wrap:wrap;margin-top:30px}.vocab-pagination span{font-size:13px}.vocab-choice:has(input:disabled){cursor:default}

/* Game sessions stay visible above the catalog on phones and desktop. */
.game-stage{scroll-margin-top:24px;margin:24px 0 32px;background:#fff8df;border:1px solid #bd8f22;border-radius:14px;padding:24px}.game-stage[hidden]{display:none}.game-stage>.button{margin:8px 8px 8px 0}.game-stage .game-name{font-weight:700;color:var(--red)}.game-stage .game-prompt{font-size:30px;line-height:1.5;overflow-wrap:anywhere}.game-stage .game-options{margin-top:18px}.game-stage .game-options button{min-height:54px;background:#fff}.game-feedback{margin-top:20px}.game-feedback p{margin:8px 0 0}.game-feedback[data-correct=true]{border-color:#28734c;color:#1c5b38;background:#f0fff6}.game-feedback[data-correct=false]{border-color:var(--red);color:#941219;background:#fff3f0}.game-result-score{font-size:24px;font-weight:700;color:var(--red)}.memory-prompts,.memory-meanings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.memory-prompts button,.memory-meanings button{white-space:normal;overflow-wrap:anywhere;min-height:60px}.memory-prompts button[aria-pressed=true]{background:#ffbd35;color:#4b2400}.sentence-answer:empty{min-height:58px;border:1px dashed #ad7a18}.sentence-answer,.sentence-tokens{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.sentence-answer button,.sentence-tokens button{margin:0}@media(max-width:760px){.game-stage{padding:20px}.game-stage .game-prompt{font-size:28px}}
[data-game-stage] [hidden]{display:none!important}

/* Contact and footer: clear channels, compact mobile navigation. */
.contact-page{padding-bottom:24px}.contact-page .page-heading{padding-bottom:32px}.contact-page .page-heading h1{max-width:750px}.contact-page .page-heading p{max-width:560px}.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}.contact-desk{background:var(--red);border-radius:16px;padding:38px;color:#fff}.contact-desk>img{display:block;border-radius:12px;margin-bottom:26px;background:#fff}.contact-desk h2{color:#fff;font-size:34px;line-height:1.2;margin-bottom:18px;letter-spacing:-.025em}.contact-desk>p{color:#fff;line-height:1.8;font-size:15px;max-width:42ch}.contact-desk .contact-invitation{font-size:14px;margin:24px 0 0}.contact-actions{display:flex;align-items:flex-start;flex-direction:column;gap:16px;margin-top:26px}.contact-actions .button{background:var(--gold-bright);color:#4b2400;border-color:var(--gold-bright);font-size:14px;min-height:48px}.contact-actions .button:hover{background:#ffd16b}.contact-program-link{color:#fff;font-size:14px;font-weight:700;text-underline-offset:5px;padding:4px 0}.contact-details{margin:26px 0 0}.contact-details>div{padding:14px 0;border-top:1px solid #ffffff40}.contact-details dt{font-size:12px;color:#ffe0a0;margin:0 0 4px}.contact-details dd{margin:0;font-size:15px;overflow-wrap:anywhere}.contact-desk a:focus-visible{outline-color:var(--gold-bright)}.contact-community{padding:14px 0 0}.contact-community h2{font-size:30px;line-height:1.25;max-width:390px;margin-bottom:14px}.contact-community>p{color:var(--muted);font-size:15px;max-width:44ch;margin-bottom:26px}.social-list{border-top:1px solid var(--line)}.social-row{display:flex;align-items:center;gap:16px;padding:22px 0;border-bottom:1px solid var(--line);text-decoration:none;min-height:106px}.social-icon{display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;background:var(--gold-soft);border-radius:12px;color:var(--red)}.social-copy{display:flex;flex-direction:column;min-width:0;gap:3px}.social-copy strong{font-size:16px;line-height:1.5;font-weight:750}.social-copy>span{color:var(--red-dark);font-size:13px;overflow-wrap:anywhere}.social-copy small{font-size:12px;color:var(--muted)}.social-arrow{margin-left:auto;flex:0 0 20px;color:var(--red)}.social-row:hover .social-copy strong{color:var(--red);text-decoration:underline;text-underline-offset:4px}.social-row:hover .social-icon{background:var(--gold-bright)}
.site-footer{background:#fff;border-top:3px solid var(--gold-bright);padding:44px 0 22px;margin-top:60px}.footer-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:48px;padding-bottom:32px}.footer-brand-block .brand{gap:12px;align-items:center}.footer-brand-block .brand img{width:66px;height:66px}.footer-brand-block .brand strong{font-size:22px}.footer-brand-block .brand small{font-size:9px;letter-spacing:.09em}.footer-brand-block>p{font-size:14px;color:var(--muted);line-height:1.8;margin:16px 0 10px}.footer-community-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:700;color:var(--red);text-decoration:none}.footer-community-link:hover{text-decoration:underline}.footer-group{display:flex;flex-direction:column;align-items:flex-start}.footer-group h2{font:750 15px/1.5 var(--sans);letter-spacing:0;margin:4px 0 10px;color:var(--red)}.footer-group>a{font-size:14px;min-height:40px;display:flex;align-items:center;text-decoration:none;color:var(--ink)}.footer-group>a:hover{color:var(--red);text-decoration:underline}.footer-bottom{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-color:var(--line);font-size:12px;color:var(--muted);line-height:1.8;padding-top:20px;margin-top:0}
@media(max-width:900px){.contact-layout{gap:28px}.contact-desk{padding:28px}.contact-desk h2{font-size:30px}.footer-main{gap:28px}.footer-brand-block .brand strong{font-size:19px}}
@media(max-width:760px){.contact-page .page-heading{padding-top:30px;padding-bottom:24px}.contact-page .page-heading h1{font-size:38px;line-height:1.14}.contact-layout{grid-template-columns:minmax(0,1fr);gap:34px}.contact-desk{padding:26px;border-radius:14px}.contact-desk>img{width:64px;height:64px;margin-bottom:22px}.contact-desk h2{font-size:30px}.contact-actions .button{padding:12px 16px;width:100%;text-align:center}.contact-community{padding-top:0}.contact-community h2{font-size:29px;margin-bottom:12px}.contact-community>p{margin-bottom:20px}.social-row{gap:12px;padding:20px 0}.social-icon{flex-basis:40px;width:40px;height:40px}.social-copy strong{font-size:15px}.social-copy>span{font-size:12px}.social-arrow{width:18px;flex-basis:18px}.site-footer{margin-top:40px;padding:30px 0 20px}.footer-main{grid-template-columns:1fr 1fr;gap:28px 20px;padding-bottom:24px}.footer-brand-block{grid-column:1/-1}.footer-brand-block .brand img{width:58px;height:58px}.footer-brand-block .brand strong{font-size:21px}.footer-brand-block .brand small{font-size:8px}.footer-brand-block>p{margin:12px 0 4px;line-height:1.7}.footer-group h2{margin-top:0;margin-bottom:6px}.footer-group>a{font-size:13px;min-height:44px}.footer-bottom{display:block;padding-top:18px}.footer-bottom>span{display:block}.footer-bottom>span+span{margin-top:3px}}

/* Single, clearly priced WhatsApp membership offer and owned receipt. */
.membership-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;margin:12px 0 32px}.membership-plan{background:var(--red);color:#fff;padding:34px;border-radius:16px}.membership-plan>img{background:#fff;border-radius:12px;margin-bottom:20px;display:block}.membership-plan h2{color:#fff;font-size:34px;margin-bottom:22px}.membership-price{font-size:38px;font-weight:800;line-height:1.25;margin:0 0 22px;color:#fff}.membership-price span{display:block;font-size:14px;font-weight:600;color:#ffe4a8;margin-top:6px}.membership-plan>p:not(.membership-price){font-size:15px;line-height:1.8}.membership-plan .fine{font-size:12px;color:#fff}.membership-benefits{padding:0 0 0 20px;margin:24px 0}.membership-benefits li{margin:12px 0;line-height:1.7;font-size:14px}.membership-checkout{padding:20px 0}.membership-checkout h2{font-size:30px;margin:16px 0}.membership-checkout p{color:var(--muted);font-size:15px;line-height:1.8}.membership-checkout form>.button{width:100%;margin-top:16px;font-size:14px}.membership-checkout .check{align-items:start;font-size:13px;line-height:1.8}.membership-checkout .check input{width:19px;height:19px;flex:0 0 19px;margin-top:4px;accent-color:var(--red)}.membership-checkout>.button{margin-top:12px}.membership-receipt{margin:20px 0;padding:18px;background:var(--gold-soft);border-radius:10px}.membership-receipt>div+div{margin-top:12px}.membership-receipt dt{font-size:12px;color:#634100}.membership-receipt dd{margin:2px 0 0;font-size:14px;overflow-wrap:anywhere;font-weight:650}.membership-checkout .actions{flex-wrap:wrap;gap:12px}.membership-checkout .actions form{margin:0}@media(max-width:760px){.membership-layout{grid-template-columns:minmax(0,1fr);gap:16px}.membership-plan{padding:26px}.membership-plan h2{font-size:30px}.membership-price{font-size:36px}.membership-checkout{padding:8px 0 0}.membership-checkout h2{font-size:28px}}
@media(min-width:761px) and (max-width:1000px){.site-header .nav-toggle{display:block}.site-header .nav{display:none;position:absolute;top:108px;left:0;right:0;z-index:20;padding:22px;background:#fff;border-bottom:2px solid var(--gold-bright);flex-direction:column;align-items:stretch}.site-header .nav.open{display:flex}}

/* Founders: institutional profiles, no unprovided biographies or photographs. */
.founder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.founder-profile{min-width:0;border:1px solid #dfd7cd;border-radius:20px;overflow:hidden;background:#fff}.founder-monogram{height:180px;background:#b92026;color:#fff;display:flex;align-items:center;justify-content:center;gap:24px;font-family:Georgia,serif;font-size:72px;font-weight:700}.founder-monogram span{font-size:25px;border-left:1px solid currentColor;padding-left:24px}.founder-monogram-gold{background:#ffbd35;color:#542c0a}.founder-copy{padding:30px}.founder-copy h3{font-size:30px;line-height:1.2;margin:20px 0 12px;overflow-wrap:anywhere}.founder-copy p{line-height:1.75}.founder-institution{font-weight:700;color:#a91420}.founder-section .eyebrow{font-size:12px;font-weight:800;letter-spacing:.1em;color:#a91420}@media(max-width:760px){.founder-grid{grid-template-columns:1fr;gap:24px}.founder-monogram{height:150px;font-size:60px}.founder-copy{padding:24px}.founder-copy h3{font-size:28px}}

.nav .header-logout{margin:0}.nav .header-logout .button{background:#fff;color:#a91420;border-color:#a91420;white-space:nowrap}.nav .header-logout .button:hover{background:#fff3e0;color:#8e101b}@media(max-width:1000px){.nav .header-logout .button{width:100%}}

/* Main mobile menu owns scrolling while the document keeps its position. */
@media(max-width:1000px){body.main-menu-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}body.main-menu-open .site-header{position:fixed;top:0;left:0;right:0;z-index:100}body.main-menu-open #main-nav{position:fixed;top:var(--mobile-header-height,88px);bottom:0;left:0;right:0;max-height:calc(100dvh - var(--mobile-header-height,88px));overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;justify-content:flex-start;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}}

.founder-photo{display:block;width:100%;height:360px;object-fit:cover;object-position:50% 35%}@media(max-width:760px){.founder-photo{height:320px}}

.preview-layout{align-items:center;gap:40px}.preview-card{margin:0;padding:36px 28px}.preview-card .hanzi{line-height:1.3;margin-bottom:14px}.preview-card .pinyin{margin:0 0 26px}.preview-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:360px;margin:0 auto}.preview-card-actions .button{width:100%;padding:12px 10px;min-height:48px}.preview-card [data-audio-status]{margin:16px 0 0;min-height:24px}.preview-card .preview-meaning{font-size:24px;font-weight:700;margin:22px 0 8px}.preview-card [data-card-back] .fine{margin-bottom:0}.preview-intro{padding:8px 0}@media(max-width:760px){.preview-layout{gap:28px}.preview-card{padding:32px 22px}.preview-intro{padding:0}.preview-card-actions{gap:12px}}

.footer-socials{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.footer-social-item{display:flex;flex-direction:column;align-items:center;gap:6px}.footer-social-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #ded9d5;border-radius:14px;color:#383332;background:#fff;text-decoration:none}.footer-social-icon:hover{color:#b92026;border-color:#b92026;background:#fff8e5}.footer-social-icon.social-coming{color:#77716c;background:#faf9f7}.footer-social-label{font-size:10px;font-weight:600}.footer-social-item small{font-size:9px;color:#77716c;line-height:1.2}.footer-social-icon:focus-visible{outline:3px solid #b92026;outline-offset:3px}

/* One primary menu owns public and account navigation. */
.unified-shell{display:block;padding-top:28px}.has-account-nav .nav-toggle{display:block}.has-account-nav .nav{display:none}.has-account-nav .nav.open{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:20px max(22px,calc((100vw - 760px)/2));background:#fff}.nav-account-section{border-block:1px solid #e5ded8;padding:18px 0;margin:8px 0}.nav-section-title{font:750 12px/1.5 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#a91420;margin:0 0 12px}.nav-account-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nav-account-links>a{display:block;padding:12px 14px;border-radius:8px;min-height:44px;background:#f8f6f3;color:#302c29}.nav-account-links>a[aria-current="page"]{background:#b92026;color:#fff}.has-account-nav .nav> a{min-height:44px;display:flex;align-items:center;padding:10px 0}.has-account-nav .header-logout .button{width:100%;margin-top:12px}body.has-account-nav.main-menu-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}body.has-account-nav.main-menu-open .site-header{position:fixed;top:0;left:0;right:0;z-index:100}body.has-account-nav.main-menu-open #main-nav{position:fixed;top:var(--mobile-header-height,108px);bottom:0;left:0;right:0;max-height:calc(100dvh - var(--mobile-header-height,108px));overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;justify-content:flex-start;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}@media(max-width:480px){.nav-account-links{grid-template-columns:1fr}.unified-shell{padding-top:24px}}

.lesson-packages{border-top:1px solid var(--line);margin-top:24px}.lesson-packages .eyebrow{font-size:12px;letter-spacing:.08em;font-weight:800;color:#a91420}.package-note{padding:18px 22px;background:#fff8e5;border-left:3px solid #ffbd35;border-radius:0 10px 10px 0;line-height:1.8;font-size:14px}.package-format{margin:40px 0 48px}.package-format-heading h3{font-size:30px;margin:16px 0 12px}.package-format-heading>p{max-width:65ch}.package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.package-card{display:flex;flex-direction:column;min-width:0;padding:28px;border:1px solid #e0d8cf;border-radius:16px;background:#fff}.package-type{color:#a91420;font-weight:800;font-size:13px}.package-card h4{font:600 26px/1.2 var(--serif);margin:16px 0}.package-card>p.muted{font-size:14px;line-height:1.8}.package-price{font:750 27px/1.3 var(--sans);color:#a91420;margin:10px 0 22px}.package-price>span{display:block;font:400 12px/1.6 var(--sans);color:var(--muted);margin-top:5px}.package-card ul{padding:20px 0 0 18px;margin:0 0 28px;border-top:1px solid #ece5dc;font-size:13px;line-height:1.8}.package-card li+li{margin-top:10px}.package-card>.button{margin-top:auto;width:100%}@media(max-width:900px){.package-grid{grid-template-columns:1fr;gap:20px}.package-card{padding:24px}.package-card h4{font-size:26px}.package-format{margin:32px 0 38px}}

/* Answer review: clear question, response, and explanation hierarchy. */
.review-section-heading{margin-bottom:24px}.review-section-heading h2{margin:0 0 12px}.review-section-heading>p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}.review-question-list{display:grid;gap:22px}.course-review-question{padding:28px;border:1px solid #e2dcd5;border-radius:16px;background:#fff;min-width:0}.review-question-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.review-question-number{font-size:12px;font-weight:800;letter-spacing:.04em;color:#6b5540}.review-outcome{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:750;color:#28613e}.review-outcome>span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#e9f4ec;font-size:16px}.review-incorrect .review-outcome{color:#a91420}.review-incorrect .review-outcome>span{background:#fff0ee}.course-review-question h3{font:700 20px/1.65 var(--sans);margin:22px 0;letter-spacing:0;overflow-wrap:anywhere}.review-answer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 24px}.review-answer-list>div{padding:16px 18px;border-radius:10px;background:#f7f6f3;min-width:0}.review-answer-list dt{font-size:11px;font-weight:700;color:#6d655e;margin-bottom:8px}.review-answer-list dd{margin:0;font-size:17px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}.review-correct .review-answer-list{grid-template-columns:1fr}.review-incorrect .review-chosen-answer{background:#fff1ee}.review-incorrect .review-chosen-answer dd{color:#a91420}.review-answer-list .review-correct-answer{background:#f1f6ee}.review-correct-answer dd{color:#28613e}.course-review-question .course-explanation{background:transparent;border-top:1px solid #ece5dc;border-radius:0;padding:20px 0 0;font-size:15px;line-height:1.9}.course-explanation h4{font:800 11px/1.5 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#9e4915;margin:0 0 10px}.course-explanation p{margin:0;overflow-wrap:anywhere}@media(max-width:760px){.course-review-question{padding:22px}.course-review-question h3{font-size:18px;margin:20px 0}.review-answer-list{grid-template-columns:1fr}.review-question-list{gap:18px}.course-review-question .course-explanation{font-size:14px}}

/* Visual HSK learning: illustrated patterns, dialogue, and revealable word cards. */
.visual-course-header{position:relative;isolation:isolate;padding:30px 32px 18px;margin-top:26px;border-radius:18px;background:#fff7df;border:1px solid #ead7a7;overflow:hidden}.visual-course-header .page-heading{padding:15px 85px 10px 0}.visual-course-header h1{font-size:clamp(28px,3.4vw,43px);margin-bottom:16px}.visual-course-header .lead{font-size:15px;line-height:1.8;margin-bottom:0}.visual-course-mark{position:absolute;right:22px;top:34px;font:80px/1.1 serif;color:#bc242b;opacity:.2;z-index:-1}.learning-eyebrow{font-size:10px;letter-spacing:.1em;font-weight:800;color:#a91420}.learning-jump-links{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0}.learning-jump-links>a{border:1px solid #e5d7bc;background:white;border-radius:30px;text-decoration:none;padding:10px 18px;font-size:12px;font-weight:750;color:#96301c;min-height:42px}.learning-jump-links>a:hover{background:#ffedbf}.visual-section-title{display:flex;align-items:center;gap:15px;margin-bottom:20px}.visual-section-title h2{margin:6px 0 0;font-size:28px}.learning-section-number{display:grid;place-items:center;flex:0 0 42px;height:42px;background:#ffbd35;border-radius:13px;font-size:15px;font-weight:800;color:#572b0a}.learning-goal-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.learning-goal-grid>li{display:flex;align-items:center;gap:14px;padding:20px;background:#fff;border:1px solid #e7e0d7;border-radius:14px;font-size:14px;line-height:1.6}.goal-symbol{display:grid;place-items:center;flex:0 0 40px;height:40px;background:#fff2cf;border-radius:10px;color:#b92026;font:25px serif}.visual-lesson-list{display:grid;gap:16px}.visual-lesson{border:1px solid #e2d8cb;border-radius:15px;padding:0;overflow:hidden;background:#fff}.visual-lesson>summary{display:flex;align-items:center;gap:14px;list-style:none;padding:20px;font-size:16px;line-height:1.5;color:#292927}.visual-lesson>summary::-webkit-details-marker{display:none}.visual-lesson-number{display:grid;place-items:center;flex:0 0 36px;height:36px;background:#fff0bd;border-radius:10px;color:#70350f;font-weight:800;font-size:12px}.visual-lesson>summary small{display:block;font-size:10px;font-weight:400;color:#75695f;margin-top:4px}.visual-lesson-toggle{margin-left:auto;color:#a91420;font-size:25px;font-weight:400}.visual-lesson[open]>.visual-lesson-toggle{transform:rotate(45deg)}.visual-lesson[open]>summary{background:#fff8e8;border-bottom:1px solid #e8ddca}.visual-lesson[open]>summary .visual-lesson-toggle{transform:rotate(45deg)}.visual-lesson .visual-lesson-body{padding:24px;line-height:1.8}.learning-mini-title{font:750 12px/1.5 var(--sans);margin:0 0 16px;color:#65422b}.tone-visual-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:15px 0 24px}.tone-visual{display:flex;flex-direction:column;align-items:center;padding:16px 8px;background:#fffaed;border:1px solid #f0dfb8;border-radius:12px;text-align:center}.tone-pinyin{font-size:30px;font-weight:650;color:#a91420}.tone-visual svg{max-width:100%;height:50px}.tone-visual strong{font:700 11px/1.5 var(--sans)}.tone-visual small{font-size:10px;color:#7e6c56;margin-top:5px}.learning-tip{border-left:3px solid #ffbd35;background:#fff8e6;padding:18px 20px;margin:24px 0;border-radius:0 10px 10px 0;font-size:14px;line-height:1.8}.learning-tip>strong{font-size:12px;color:#854418}.learning-tip>p{margin:8px 0 0}.learning-dialogue{margin:26px 0}.dialogue-bubble{display:flex;align-items:flex-start;gap:12px;margin:14px 40px 14px 0}.dialogue-bubble>span{display:grid;place-items:center;flex:0 0 28px;height:28px;background:#b92026;color:#fff;font-size:11px;font-weight:800;border-radius:50%;margin-top:5px}.dialogue-bubble>div{padding:15px 18px;border-radius:0 14px 14px;background:#f4f2ee;min-width:0}.dialogue-bubble strong{display:block;font:500 24px/1.5 var(--sans);overflow-wrap:anywhere}.dialogue-bubble small{display:block;font-size:12px;line-height:1.7;color:#675c51;margin-top:5px}.dialogue-bubble.reply{margin-left:40px;margin-right:0;flex-direction:row-reverse}.dialogue-bubble.reply>span{background:#ffbd35;color:#542800}.dialogue-bubble.reply>div{background:#fff0c5;border-radius:14px 0 14px 14px}.learning-check{border:1px solid #d9c398;background:#fffdf7;border-radius:12px;padding:0;margin:24px 0}.learning-check>summary{padding:18px;font-size:14px;line-height:1.7;color:#282825}.learning-check>summary>span{display:block;color:#a91420;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.learning-check>p{padding:0 18px 18px;margin:0;font-size:14px}.learning-full-text{border:0;border-top:1px solid #eee4d5;margin-top:26px;padding:16px 0 0}.learning-full-text>summary{font-size:12px;font-weight:600;color:#776451}.learning-full-text>div{font-size:14px;line-height:1.9;padding-top:18px}.pronoun-visuals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pronoun-visuals>div{display:flex;flex-direction:column;align-items:center;background:#fff8e6;border:1px solid #efdeb8;border-radius:12px;padding:18px 10px;text-align:center}.pronoun-visuals strong{font:36px/1.5 serif;color:#a91420}.pronoun-visuals span{font-size:14px;font-weight:650;color:#704b1c}.pronoun-visuals small{font-size:11px;margin-top:4px}.sentence-visual{padding:22px;margin:20px 0;border:1px solid #eadfcf;border-radius:12px;background:#fffdf8}.sentence-tokens{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:18px 0}.sentence-tokens>span{display:inline-flex;flex-direction:column;align-items:center;padding:12px 15px;border-radius:10px;background:#f1ede6;font-size:26px;line-height:1.5}.sentence-tokens>span small{font:10px/1.5 var(--sans);margin-top:5px;color:#706250}.sentence-tokens>span.token-focus{background:#ffbd35;color:#562400}.sentence-tokens>b{font-size:15px;color:#9c8771}.sentence-visual>p:last-child{font-size:14px;line-height:1.9;margin:0}.learning-reading-panel{display:flex;align-items:flex-start;gap:16px;margin-bottom:20px;padding:22px;background:#fffaf0;border-radius:12px}.learning-reading-number{font-size:12px;font-weight:800;color:#a96b22;padding-top:3px}.learning-reading-panel>p{font-size:15px;line-height:1.95;margin:0;overflow-wrap:anywhere}.lesson-word-companions{margin-top:26px}.lesson-word-companions>div{display:flex;gap:10px;flex-wrap:wrap}.lesson-word-companions>div>span{padding:12px 15px;border:1px solid #e7dfd5;border-radius:10px}.lesson-word-companions strong{display:block;color:#a91420;font-size:23px}.lesson-word-companions small{font-size:11px}.learning-word-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.learning-word{border:1px solid #e5dacb;border-radius:14px;background:#fff;padding:24px 18px 14px;text-align:center;min-width:0}.learning-word-hanzi{font-size:42px;line-height:1.6;color:#b92026;display:block;overflow-wrap:anywhere;min-height:68px}.learning-word-hanzi.long-word{font-size:27px}.learning-word-pinyin{font-size:14px;line-height:1.6;color:#7c5221;font-weight:650;margin:8px 0 18px;overflow-wrap:anywhere}.learning-word-actions{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:start;gap:8px}.learning-word-actions>details{padding:0;border:0;min-width:0}.learning-word-actions>details>summary{list-style:none;border:1px solid #e7d3b9;border-radius:8px;min-height:44px;padding:10px 5px;font-size:11px;color:#7e381a;display:grid;place-items:center}.learning-word-actions>details>summary::-webkit-details-marker{display:none}.learning-word-actions>details>p{font-size:13px;line-height:1.6;margin:12px 0 0;overflow-wrap:anywhere}.learning-word-actions>button{height:44px;min-height:44px;display:grid;place-items:center;background:#ffbd35;color:#542800;border:1px solid #e4a020;border-radius:8px;padding:0}.learning-word>[data-audio-status]{font-size:10px;line-height:1.6;margin:10px 0 0}.more-learning-words{margin-top:16px;border:1px solid #e3d4bf;border-radius:12px;padding:0 18px}.more-learning-words>summary{padding:16px 0;font-size:13px;color:#943e19}.more-learning-words .learning-word-grid{padding-bottom:18px}#materi,#kosakata,#sesi{scroll-margin-top:24px}
@media(max-width:900px){.learning-goal-grid{grid-template-columns:1fr}.learning-word-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-course-header{padding:24px}.visual-course-header .page-heading{padding-right:35px}.visual-course-mark{right:10px;font-size:68px}}@media(max-width:760px){.visual-course-header{padding:22px 20px 16px;margin-top:16px}.visual-course-header .page-heading{padding:12px 0 0}.visual-course-header .page-heading h1{font-size:28px;margin-bottom:14px}.visual-course-header .lead{font-size:14px}.visual-course-mark{top:15px;opacity:.12}.visual-section-title h2{font-size:24px;line-height:1.25}.learning-section-number{flex-basis:36px;height:36px;font-size:12px;border-radius:11px}.learning-jump-links{gap:8px}.learning-jump-links>a{font-size:11px;padding:10px 13px}.learning-goal-grid>li{padding:16px;font-size:13px}.visual-lesson>summary{padding:16px 14px;font-size:14px;gap:10px}.visual-lesson .visual-lesson-body{padding:18px 14px}.tone-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tone-visual:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 80px 1fr;align-items:center;padding:10px 14px}.tone-visual:last-child small{grid-column:3;margin:0}.tone-pinyin{font-size:29px}.learning-tip{padding:15px;font-size:13px}.dialogue-bubble{margin-right:20px;gap:8px}.dialogue-bubble.reply{margin-left:20px}.dialogue-bubble>div{padding:13px}.dialogue-bubble strong{font-size:21px}.dialogue-bubble small{font-size:11px}.sentence-visual{padding:16px}.sentence-tokens{gap:6px}.sentence-tokens>span{font-size:23px;padding:10px 11px}.learning-reading-panel{padding:16px;gap:10px}.learning-reading-panel>p{font-size:14px;line-height:1.9}.learning-word-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.learning-word{padding:18px 10px 10px}.learning-word-hanzi{font-size:37px;min-height:60px}.learning-word-hanzi.long-word{font-size:23px}.learning-word-pinyin{font-size:12px}.learning-word-actions{grid-template-columns:minmax(0,1fr) 36px;gap:6px}.learning-word-actions>details>summary{font-size:10px}.more-learning-words{padding:0 12px}.learning-full-text>div{font-size:13px}.learning-check>summary{font-size:13px}.pronoun-visuals{grid-template-columns:repeat(2,minmax(0,1fr))}.pronoun-visuals>div:last-child{grid-column:1/-1}}

.visual-lesson .visual-lesson-body{max-width:900px;margin:0 auto}.learning-reading-panel>p{max-width:68ch}

.account-footer{margin-top:40px;padding:20px 0;border-top:1px solid #e5dfd7;background:#fff;color:#776d63;font-size:11px}.account-footer>.container{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.account-footer nav{display:flex;gap:20px}.account-footer a{min-height:40px;display:inline-flex;align-items:center;text-decoration:none;color:#665c52}.account-footer a:hover{color:#a91420;text-decoration:underline}

/* Vocabulary level choice: visible tiles instead of a native full-screen select. */
.vocab-filter-form{padding:26px;border:1px solid #e6d9c7;border-radius:18px;background:#fffdf8;margin:12px 0 28px}.vocab-filter-search{max-width:600px}.vocab-filter-search .field{margin-bottom:24px}.vocab-level-picker{padding:0;margin:0;border:0;min-width:0}.vocab-level-picker legend{font-weight:800;font-size:14px;padding:0}.vocab-level-picker>p{font-size:12px;color:#776a5b;margin:8px 0 16px;line-height:1.7}.vocab-level-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}.vocab-level-choice{position:relative;display:block;min-width:0;cursor:pointer}.vocab-level-choice>input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.vocab-level-choice>span{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:86px;gap:5px;border:1px solid #e3d5bd;border-radius:12px;background:#fff;color:#704b25;padding:12px 6px}.vocab-level-choice small{font-size:10px;font-weight:700;letter-spacing:.09em}.vocab-level-choice strong{font:750 27px/1.2 var(--sans)}.vocab-level-choice strong.all-levels{font-size:18px}.level-selected-mark{position:absolute;right:5px;top:5px;opacity:0}.vocab-level-choice>input:checked+span{background:#b92026;border-color:#b92026;color:#fff}.vocab-level-choice>input:checked+span .level-selected-mark{opacity:1}.vocab-level-choice>input:focus-visible+span{outline:3px solid #a86515;outline-offset:3px}.vocab-level-choice:hover>span{border-color:#b92026}.vocab-filter-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:24px}.vocab-filter-actions .text-link{font-size:12px}@media(max-width:900px){.vocab-level-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.vocab-filter-form{padding:20px 16px}.vocab-level-grid{gap:10px}.vocab-level-choice>span{min-height:76px;padding:10px 4px}.vocab-level-choice strong{font-size:24px}.vocab-level-choice strong.all-levels{font-size:15px}.vocab-level-choice small{font-size:9px}.vocab-filter-actions>.button{width:100%}.vocab-filter-actions{gap:14px;margin-top:20px}}

/* Game Center: expressive illustrations, concise choices, existing game lifecycle. */
.game-hub-hero{position:relative;display:flex;align-items:center;gap:28px;justify-content:space-between;background:#b92026;color:#fff;padding:36px;border-radius:20px;margin:8px 0 18px;overflow:hidden}.game-hub-eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:#ffdc8a}.game-hub-hero h1{font-size:clamp(34px,4.4vw,54px);line-height:1.1;margin:18px 0}.game-hub-hero p{font-size:15px;line-height:1.8;max-width:48ch;margin:0;color:#fff1d1}.game-hub-controller{flex:0 0 180px;width:180px;height:140px}.game-hub-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.game-hub-facts>span{padding:16px;background:#fff8e4;border:1px solid #ead9b7;border-radius:12px;display:flex;flex-direction:column;gap:5px;font-size:11px;color:#7b6145}.game-hub-facts b{font-size:17px;color:#a91420;line-height:1.3}.game-hub-help{font-size:12px;line-height:1.8;color:#766b5f;margin:12px 0 20px}.game-hub-status{font-size:13px;line-height:1.7;padding:14px 18px;border:1px solid #e4d7c3;border-radius:12px;background:#fffdf7;margin:18px 0}.game-hub-selection{margin:32px 0}.game-selection-heading{margin-bottom:22px}.game-selection-heading h2{font-size:29px;margin-bottom:10px}.game-selection-heading p{font-size:13px;color:#766b5f;margin:0}.game-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.game-hub-card{border:1px solid #e4d9cd;border-radius:18px;background:#fff;overflow:hidden;display:flex;flex-direction:column;min-width:0}.game-hub-art{height:160px;background:#fff4d9;display:flex;justify-content:center;align-items:center;border-bottom:1px solid #ecdfc4}.game-hub-art>svg{width:100%;max-width:350px;height:145px}.game-hub-match .game-hub-art{background:#fff0e7}.game-hub-meaning .game-hub-art{background:#fff8e7}.game-hub-sentence .game-hub-art{background:#f8f3e9}.game-hub-tone .game-hub-art{background:#ffefcc}.game-hub-card-copy{padding:26px;display:flex;flex-direction:column;flex:1}.game-hub-category{font-size:10px;letter-spacing:.09em;color:#ad4624;font-weight:800}.game-hub-card h3{font-size:29px;margin:12px 0}.game-hub-card-copy>p{font-size:14px;line-height:1.8;color:#706459;margin:0 0 18px;max-width:42ch}.game-audio-hint{font-size:10px;color:#8b7051;line-height:1.7;margin:0 0 20px}.game-hub-card .button{width:100%;margin-top:auto;justify-content:space-between;min-height:46px}.game-hub-card .button>span{font-size:21px;line-height:1}.game-hub-card .button:disabled{opacity:.6}@media(max-width:760px){.game-hub-hero{padding:26px 22px;gap:0;align-items:flex-start}.game-hub-hero h1{font-size:36px;margin-top:16px;max-width:7.2em}.game-hub-hero p{font-size:13px;max-width:27ch}.game-hub-controller{position:absolute;right:-16px;top:7px;width:105px;height:90px;opacity:.95}.game-hub-facts{gap:8px}.game-hub-facts>span{padding:13px 10px;font-size:9px}.game-hub-facts b{font-size:15px}.game-hub-grid{grid-template-columns:1fr;gap:22px}.game-hub-art{height:145px}.game-hub-card-copy{padding:22px}.game-hub-card h3{font-size:28px}.game-selection-heading h2{font-size:27px}}

@media(max-width:760px){.game-hub-controller{right:10px;top:12px;width:82px;height:64px}}
/* Focused, mobile-first game session. */
.game-is-playing .game-hub-hero,.game-is-playing .game-hub-facts,.game-is-playing .game-hub-help,.game-is-playing .game-hub-selection{display:none}
.game-is-playing .game-hub-status{margin-top:12px;padding:12px 16px;font-size:14px;background:#fff;border-color:#ded8cb}
.game-stage[data-game-stage]{position:relative;background:#fff;border-color:#e0d7c6;padding:28px;margin-top:18px;overflow:hidden;scroll-margin-top:100px}
.game-session-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:0}
.game-stage .game-name{font-size:15px;margin:0;color:#a60914;font-weight:750}
.game-clock{background:#fff0c5;border-radius:8px;padding:8px 12px;font-size:14px;font-weight:700;color:#4b2400;font-variant-numeric:tabular-nums;white-space:nowrap}
.game-session-progress{display:flex;gap:6px;margin:20px 0 12px}
.game-session-progress span{height:7px;flex:1;border-radius:4px;background:#eee9df}.game-session-progress .done{background:#c8101d}.game-session-progress .current{background:#ffbd35}
.game-exit{margin:0 0 24px;text-align:right}.game-exit summary{font-size:13px;color:#635b51;cursor:pointer;display:inline-block;text-decoration:underline;text-underline-offset:3px}.game-exit p{text-align:left;margin:12px 0}
.game-stage .game-question-count{font-family:inherit;font-size:14px;font-weight:700;text-align:center;color:#655a45;margin:18px 0 8px}
.game-stage .game-prompt{text-align:center;font-size:30px;font-weight:650;line-height:1.4;margin:12px 0 26px;overflow-wrap:anywhere}
.game-stage .game-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0 0}
.game-stage .game-choice{display:flex;align-items:center;gap:14px;text-align:left;margin:0;width:100%;padding:14px;min-height:66px;border-color:#d9d2c7;color:#20242b;font-size:18px}
.game-choice-letter{display:grid;place-items:center;flex:0 0 32px;height:32px;background:#fff1c9;color:#794300;border-radius:8px;font-size:14px}
.game-stage .game-choice:enabled:hover{border-color:#c8101d;background:#fff3f1;color:#a60914}.game-stage .game-choice:disabled{opacity:.6}
.game-audio-area{display:flex;flex-direction:column;align-items:center;gap:12px;margin:18px 0 24px}
.game-stage .game-audio-play{display:flex;flex-direction:column;align-items:center;gap:12px;background:#c8101d;color:white;border:0;padding:24px 30px;border-radius:16px;min-width:220px;font-size:16px;margin:0}
.game-listen-mark{display:grid;place-items:center;font-size:44px;line-height:1;width:80px;height:80px;border:2px solid #ffcf69;border-radius:50%;color:#ffcf69}
.game-stage .game-skip{font-size:13px;padding:8px 12px;min-height:44px;border-color:transparent;background:white;color:#665d51;margin:0;text-decoration:underline;text-underline-offset:3px}
.game-stage .game-feedback{padding:18px;margin-top:24px;border-radius:12px}.game-feedback strong{font-size:19px}.game-feedback p{font-size:16px;line-height:1.5}
.game-stage .game-next{display:block;width:100%;margin:16px 0 0;background:#c8101d;color:white}
.game-stage.game-result{text-align:center;padding:36px 24px}.game-result-mark{display:grid;place-items:center;width:96px;height:96px;margin:0 auto 20px;background:#ffbd35;border-radius:50%;color:#7d2b13;font-size:32px;font-weight:700}.game-result h2{margin:0 0 14px}.game-result-note{color:#515965;max-width:40ch;margin:12px auto 24px}
@media(max-width:760px){.game-stage[data-game-stage]{padding:20px 18px}.game-stage .game-options{grid-template-columns:1fr}.game-stage .game-prompt{font-size:26px}.game-session-top{gap:8px}.game-clock{padding:7px 9px;font-size:13px}.game-stage .game-name{font-size:14px}.game-stage .game-choice{font-size:17px}.game-stage .game-feedback strong{font-size:17px}}

.game-stage .game-choice{justify-content:flex-start!important}.game-stage .game-choice:disabled{opacity:1;color:#515965;background:#faf9f6}.game-stage .game-choice[data-chosen][data-correct=true]{border-color:#28734c;background:#f0fff6;color:#1c5b38}.game-stage .game-choice[data-chosen][data-correct=false]{border-color:#c8101d;background:#fff3f0;color:#941219}.game-stage .game-audio-play:disabled{opacity:.75}
/* One clear game flow: lobby, challenge, then result. */
[data-game-lobby][hidden]{display:none!important}
.game-stage[data-game-stage]{max-width:860px;margin-left:auto;margin-right:auto}
.game-session-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e8e1d5;margin-bottom:20px}
.game-session-tools details{border:0;padding:8px 0;margin:0;flex:1}.game-session-tools summary{min-height:44px;display:flex;align-items:center;font-size:13px;text-decoration:underline;text-underline-offset:4px;color:#655a45}.game-session-tools .game-exit summary{justify-content:flex-end}.game-session-tools p{font-size:14px;margin:8px 0 16px;line-height:1.6}.game-session-tools .game-exit{text-align:right}
.game-stage .game-instruction{text-align:center;color:#515965;font-size:15px;margin:12px 0 20px;line-height:1.6}
.game-stage .game-area-label{font-family:inherit;font-size:14px;letter-spacing:0;font-weight:700;margin:18px 0 10px;color:#794300}
.game-sentence-count,.game-pair-count{font-size:14px;font-weight:700;color:#794300;margin:10px 0}
.sentence-answer{background:#fff8e5;min-height:94px!important;border:1px dashed #b78b32!important;padding:14px}.sentence-answer:empty:before{content:'Ketuk pilihan kata di bawah';color:#796848;font-size:14px;align-self:center}.game-stage .sentence-answer button,.game-stage .sentence-tokens button{min-height:54px;padding:12px 18px;font-size:23px;background:#fff;color:#a60914;border-color:#d8c9aa;margin:0}
.game-match-board{display:grid;grid-template-columns:1fr 1fr;gap:14px}.game-match-board .memory-prompts,.game-match-board .memory-meanings{display:flex;flex-direction:column;gap:10px;margin:0}.game-match-board h3{margin:0 0 4px!important}.game-match-board .button{margin:0;min-height:90px;display:flex;flex-direction:column;gap:4px;padding:12px 8px;background:#fff;color:#20242b;border-color:#d8c9aa;font-size:17px;line-height:1.4}.game-match-board .game-match-hanzi{font-size:30px;color:#a60914}.game-match-board small{font-size:12px;color:#655a45}.game-match-board .button[data-paired=true]{background:#fff3ce;border-color:#d4ac4e}.game-match-board .button[aria-pressed=true]{background:#c8101d!important;color:#fff!important;border-color:#c8101d}.game-match-board .button[aria-pressed=true] span,.game-match-board .button[aria-pressed=true] small{color:#fff}
.game-stage .game-match-title{font-size:30px;text-align:center;margin:10px 0}.game-stage .game-match-submit,.game-stage .button-primary{display:flex;width:100%;margin:20px 0 0;background:#c8101d;color:#fff}.game-stage.game-result>.game-play-again{background:#c8101d;color:#fff;border-color:#c8101d}.game-stage.game-result>.button{min-width:190px}.game-stage .game-prompt{font-family:'Noto Sans SC',var(--sans)}
@media(max-width:760px){.game-match-board{gap:10px}.game-match-board .button{min-height:88px;font-size:15px}.game-stage.game-result>.button{display:flex;width:100%;margin:12px 0}.game-session-tools p{font-size:13px}.game-stage .game-match-title{font-size:26px}}
/* Community ranking includes every registered member. */
.leaderboard-periods{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 18px}.leaderboard-periods .button{margin:0}.leaderboard-periods [aria-current=page]{background:#c8101d;color:#fff;border-color:#c8101d}.leaderboard-caption{font-size:14px;color:#515965;max-width:65ch}.leaderboard-table td{vertical-align:middle}.leaderboard-table th:first-child{width:90px}.leaderboard-table td:last-child,.leaderboard-table th:last-child{text-align:right}.leaderboard-rank{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:9px;font-weight:700}.leaderboard-top{background:#fff0be;color:#794300}.leaderboard-self{background:#fff8e5}.leaderboard-you{display:inline-block;margin-left:8px;font-size:11px;font-weight:700;color:#a60914}.leaderboard-table td:nth-child(2){overflow-wrap:anywhere}@media(max-width:760px){.leaderboard-periods{gap:8px}.leaderboard-periods .button{font-size:12px;padding:10px 12px}.leaderboard-table td,.leaderboard-table th{padding:14px 12px}.leaderboard-table th:first-child{width:72px}.leaderboard-caption{font-size:13px}}
/* Membership action is visible directly beside the one-time price. */
.membership-card-action{margin:20px 0 26px;padding:20px 0;border-top:1px solid #ffffff50;border-bottom:1px solid #ffffff50}.membership-plan .membership-card-action .button,.membership-plan .membership-card-action button.primary{display:flex;width:100%;background:#ffbd35;color:#4b2400;border-color:#ffbd35;font-size:15px;padding:14px 18px;line-height:1.5;text-align:center}.membership-plan .membership-card-action .button:hover,.membership-plan .membership-card-action button.primary:hover{background:#ffd174;border-color:#ffd174}.membership-card-action .check{font-size:13px;line-height:1.7;align-items:flex-start;margin:0 0 12px}.membership-card-action .check input{flex:0 0 20px;width:20px;height:20px;margin:3px 0 0;accent-color:#ffbd35}.membership-card-action a:not(.button){color:#fff;text-decoration:underline}.membership-card-action .fine{font-size:12px;line-height:1.7;margin:12px 0 0}.membership-card-action form>.fine{margin:0 0 16px}.membership-card-action .button:focus-visible,.membership-card-action button:focus-visible,.membership-card-action input:focus-visible{outline:3px solid white;outline-offset:4px}
.membership-access{max-width:760px;margin:18px auto 32px;padding:28px;border:1px solid #e0d7c6;border-radius:16px;background:#fff}.membership-access>h2{margin-top:20px}.membership-access>.button{display:flex;width:100%;margin:24px 0 14px}.membership-access .panel{padding:24px}.membership-access .panel h3{font-size:26px}@media(max-width:760px){.membership-access{padding:22px 18px}.membership-access .panel{padding:18px}.membership-access .panel .button{width:100%}}
