/* assets/vx/vx.css — THE OBSERVATORY LIBRARY (the vocabulary section, Phase 5, 29 Oct 2026)
   Night: deep ink navy with brass, parchment word cards. Day: warm paper, ink-navy text, brass, white cards.
   Its own design: nothing here is shared with the homepage. Plain CSS (no Tailwind), phone first (360 px), up to 1920 px.
   Motion: only transform / opacity, and none at all with prefers-reduced-motion (html.vx-still). */

:root {
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --num: 'Orbitron', 'Inter', system-ui, sans-serif;
  /* day */
  --bg: #f6f1e6; --bg2: #ece3cf; --surf: #fffdf8; --surf2: #f8f2e4;
  --ink: #17203d; --ink2: #434b69; --mute: #6f7290;
  --brass: #94681f; --brass2: #c1913c; --brass-soft: rgba(148,104,31,.12);
  --line: rgba(23,32,61,.12); --line2: rgba(23,32,61,.22);
  --card: #ffffff; --card2: #fbf7ee; --card-ink: #1d1a14; --card-mute: #6b6252; --card-line: rgba(29,26,20,.12);
  --ok: #2c7a4b; --bad: #b2373a; --due: #3b62c4;
  --wood1: #b88a58; --wood2: #87592f; --case: #efe5d0; --case2: #e5d8bd;
  --shadow: 0 1px 2px rgba(23,32,61,.08), 0 14px 34px -16px rgba(23,32,61,.32);
  --ring-bg: rgba(23,32,61,.1);
  --top-h: 62px;
  color-scheme: light;
}
html.dark {
  --bg: #0b1022; --bg2: #121a33; --surf: #121a33; --surf2: #172041;
  --ink: #ede6d4; --ink2: #bcc2d6; --mute: #8990ac;
  --brass: #d9b26a; --brass2: #f2cf86; --brass-soft: rgba(217,178,106,.13);
  --line: rgba(217,178,106,.15); --line2: rgba(217,178,106,.3);
  --card: #f3ead7; --card2: #ebe0c8; --card-ink: #1d1a14; --card-mute: #6d624f; --card-line: rgba(29,26,20,.13);
  --ok: #7fd49b; --bad: #ff8f86; --due: #9db8ff;
  --wood1: #5c3a20; --wood2: #3a2312; --case: #0f1630; --case2: #0c1227;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.75);
  --ring-bg: rgba(217,178,106,.16);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.vx-body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15.5px/1.55 var(--sans); overflow-x: hidden; }
body.vx-body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 520px at 72% -8%, rgba(193,145,60,.12), transparent 70%), radial-gradient(800px 600px at -10% 110%, rgba(23,32,61,.06), transparent 70%); }
html.dark body.vx-body::before {
  background:
    radial-gradient(1px 1px at 23px 41px, rgba(242,207,134,.65), transparent 70%),
    radial-gradient(1px 1px at 131px 87px, rgba(255,255,255,.45), transparent 70%),
    radial-gradient(1.4px 1.4px at 197px 173px, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(1px 1px at 61px 199px, rgba(242,207,134,.4), transparent 70%),
    radial-gradient(1px 1px at 251px 21px, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(1200px 600px at 75% -12%, rgba(217,178,106,.11), transparent 70%),
    radial-gradient(900px 700px at -10% 110%, rgba(70,90,170,.14), transparent 70%);
  background-size: 280px 240px, 280px 240px, 280px 240px, 280px 240px, 280px 240px, auto, auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass2); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.vx-skip { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--brass); color: #1a1408; padding: 8px 14px; border-radius: 8px; }
.vx-skip:focus { left: 8px; }

/* ───────── buttons, rings, small things ───────── */
.vx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; transition: transform .15s ease, opacity .15s; -webkit-tap-highlight-color: transparent; }
.vx-btn:active { transform: scale(.97); }
.vx-btn.brass { background: linear-gradient(180deg, #f5d692 0%, #d9b26a 55%, #b98b43 100%); color: #1d1406; border-color: #8f6a2e; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 18px -8px rgba(185,139,67,.7); }
.vx-btn.ghost { background: var(--brass-soft); border-color: var(--line2); }
.vx-btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.vx-btn.wide { width: 100%; }
.vx-btn[disabled] { opacity: .45; cursor: default; }
.vx-link { color: var(--brass); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vx-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--due); color: #0b1022; font: 700 11px/1 var(--sans); font-style: normal; }
.vx-ring { --p: 0; --s: 40px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brass2) calc(var(--p) * 1%), var(--ring-bg) 0); }
.vx-ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ringhole, var(--surf)); }
.vx-ring span { position: relative; font: 700 10.5px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink2); letter-spacing: .02em; }
.vx-ring.big { --s: 64px; }
.vx-ring.big::before { inset: 6px; }
.vx-ring.big span { font-size: 13px; }
.vx-loading { color: var(--mute); padding: 24px 0; }
.vx-say { width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .8; display: inline-grid; place-items: center; flex: none; padding: 0; }
.vx-say::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16.5 8.5a5 5 0 0 1 0 7M19 6a9 9 0 0 1 0 12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16.5 8.5a5 5 0 0 1 0 7M19 6a9 9 0 0 1 0 12'/%3E%3C/svg%3E") center / contain no-repeat; }
.vx-say:hover { opacity: 1; }
.vx-say.sm { width: 30px; height: 30px; }
.vx-say.sm::before { width: 14px; height: 14px; }
mark { background: linear-gradient(transparent 58%, rgba(217,178,106,.5) 58%); color: inherit; font-weight: 600; padding: 0 1px; }
.vx-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 3000; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; }
.vx-toast.on { opacity: 1; }

/* ───────── top bar ───────── */
.vx-top { position: sticky; top: 0; z-index: 100; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: rgba(246,241,230,.94); border-bottom: 1px solid var(--line); }
html.dark .vx-top { background: rgba(11,16,34,.93); }
.vx-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brass); flex: none; }
.vx-bname { display: flex; flex-direction: column; line-height: 1.05; }
.vx-bname b { font: 700 19px/1.05 var(--serif); color: var(--ink); }
.vx-bname small { font-size: 11.5px; color: var(--mute); font-weight: 500; margin-top: 2px; }
.vx-nav { display: none; gap: 4px; margin-left: 18px; }
.vx-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 14.5px; }
.vx-nav a svg { color: var(--brass); }
.vx-nav a:hover { color: var(--ink); background: var(--brass-soft); }
.vx-nav a.on { color: var(--ink); background: var(--brass-soft); box-shadow: inset 0 0 0 1px var(--line2); }
.vx-nav .vx-badge { margin-left: 2px; }
.vx-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.vx-ic, .vx-lang .gr-langs summary { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); background: transparent; color: var(--ink); padding: 0; cursor: pointer; }
.vx-ic:hover, .vx-lang .gr-langs summary:hover { border-color: var(--brass); color: var(--brass); }
.vx-tools [data-act="find"] { display: none; }
html.dark .vx-sun, html:not(.dark) .vx-moon { display: none; }
.vx-sun, .vx-moon { display: grid; }
.vx-home { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--ink2); font-size: 13.5px; font-weight: 600; padding: 0 4px 0 6px; }
.vx-home img { border-radius: 50%; }
.gr-langs { position: relative; display: inline-block; }
.gr-langs summary { list-style: none; }
.gr-langs summary::-webkit-details-marker { display: none; }
.vx-lang .gr-langs-l, .vx-lang .gr-langs-car { display: none; }
.vx-lang .gr-langs-cur { font-size: 0; display: grid; place-items: center; }
.gr-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.2); flex: none; }
.gr-langs-menu { display: none; }
.gr-lsheet { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(5,8,20,.62); }
.gr-lsheet-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.gr-lsheet-box h2 { margin: 0 0 14px; font: 700 20px/1.2 var(--serif); padding-right: 40px; }
.gr-lsheet-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.gr-lsheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gr-lsheet-grid a { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.gr-lsheet-grid a:hover, .gr-lsheet-grid a:focus-visible { border-color: var(--brass); outline: none; }
.gr-lsheet-grid a[aria-current] { border-color: var(--brass); background: var(--brass-soft); }
.gr-lsheet-grid a span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gr-lsheet-grid a b { font-size: 15px; } .gr-lsheet-grid a small { font-size: 11.5px; color: var(--mute); }
@media (max-width: 480px) { .gr-lsheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phones: the sections are a bar at the bottom */
.vx-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(246,241,230,.97); border-top: 1px solid var(--line); }
html.dark .vx-tabbar { background: rgba(11,16,34,.97); }
.vx-tabbar a, .vx-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border: 0; background: transparent; text-decoration: none; color: var(--mute); font-size: 11.5px; font-weight: 600; border-radius: 12px; }
.vx-tabbar svg { color: inherit; }
.vx-tabbar .on { color: var(--brass); }
.vx-tabbar .vx-badge { position: absolute; top: 0; left: calc(50% + 6px); }
@media (min-width: 900px) {
  .vx-nav { display: flex; }
  .vx-tabbar { display: none; }
  .vx-tools [data-act="find"] { display: grid; }
  .vx-home { display: inline-flex; }
  .vx-top { padding: 0 28px; }
}
@media (max-width: 380px) { .vx-bname small { display: none; } .vx-bname b { font-size: 17px; } .vx-emblem { width: 32px; height: 32px; } }

/* ───────── page frame ───────── */
.vx-main { max-width: 1260px; margin: 0 auto; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .vx-main { padding: 0 32px 80px; } }
@media (min-width: 1700px) { .vx-main { max-width: 1440px; } }
.vx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0 6px; font-size: 13.5px; color: var(--mute); }
.vx-crumbs a { color: var(--ink2); text-decoration: none; }
.vx-crumbs a:hover { color: var(--brass); text-decoration: underline; }
.vx-crumbs i { font-style: normal; opacity: .5; }
.vx-foot { padding: 40px 0 0; text-align: center; color: var(--mute); font-size: 13px; }
.vx-phead { padding: 8px 0 18px; }
.vx-phead h1 { margin: 0; font: 700 clamp(30px, 6vw, 46px)/1.1 var(--serif); }
.vx-phead p { margin: 8px 0 0; color: var(--ink2); max-width: 60ch; }

/* ───────── 1. LIBRARY — the hero with the astrolabe ───────── */
.vx-hero { display: grid; gap: 20px; padding: 26px 0 8px; align-items: center; }
.vx-greet { margin: 0 0 6px; color: var(--brass); font: italic 700 17px/1.3 var(--serif); }
.vx-hero h1 { margin: 0; font: 700 clamp(38px, 9vw, 74px)/1.02 var(--serif); letter-spacing: -.01em; }
.vx-lead { margin: 14px 0 0; max-width: 46ch; color: var(--ink2); font-size: 16.5px; }
.vx-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vx-hero-acts .vx-btn { min-height: 48px; }
#vx-continue { max-width: 100%; }
#vx-continue [data-t] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
#vx-continue [data-t] b { font-weight: 700; margin-right: 4px; }
.vx-search { position: relative; margin-top: 22px; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; border-radius: 14px; border: 1px solid var(--line2); background: var(--surf); color: var(--mute); }
.vx-search:focus-within { border-color: var(--brass); }
.vx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: 16px; color: var(--ink); }
.vx-sres { list-style: none; margin: 0; padding: 6px; }
.vx-search .vx-sres { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; max-height: 360px; overflow: auto; background: var(--surf); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); }
.vx-sres a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.vx-sres a:hover, .vx-sres a:focus-visible, .vx-sres a.on { background: var(--brass-soft); outline: none; }
.vx-sres a b { font: 700 16.5px/1.2 var(--serif); }
.vx-sres a small { grid-column: 2; font-size: 12.5px; color: var(--mute); }
.vx-sres .dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brass)); }
.vx-sres .hint { padding: 10px; color: var(--mute); font-size: 14px; }

.vx-astro { position: relative; margin: 0 auto; width: min(300px, 80vw); }
.vx-astro-svg { display: block; width: 100%; height: auto; overflow: visible; }
.a-rim { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: .7; }
.a-ticks line { stroke: var(--brass); stroke-width: 1; opacity: .5; }
.a-ticks { transform-origin: 160px 160px; }
.a-track { fill: none; stroke: var(--ring-bg); stroke-width: 13; }
.a-arc { fill: none; stroke-width: 13; stroke-linecap: round; stroke-dasharray: 0 1000; }
.a-l { stroke: url(#vxBrass); }
.a-m { stroke: var(--brass2); }
html:not(.dark) .a-m { stroke: #6b4a12; }
.a-d { stroke: var(--due); }
.a-core { fill: var(--surf); stroke: var(--line2); stroke-width: 1; }
.vx-astro-c { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1 / 1; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.vx-astro-c b { font: 700 clamp(30px, 8vw, 40px)/1 var(--serif); }
.vx-astro-c span { font-size: 11.5px; color: var(--mute); line-height: 1.2; margin-top: 4px; }
.vx-astro-key { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 14px; font-size: 13.5px; color: var(--ink2); }
.vx-astro-key > span { display: flex; align-items: center; gap: 7px; }
.vx-astro-key i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.vx-astro-key b { font: 700 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.vx-astro-key small { color: var(--mute); font-size: 12px; }
.k-l i { background: var(--brass); } .k-m i { background: var(--brass2); } html:not(.dark) .k-m i { background: #6b4a12; } .k-d i { background: var(--due); }
.k-s svg { color: #e0884a; }
.vx-astro.on .a-ticks { animation: vx-turn 1.4s cubic-bezier(.2,.7,.2,1) both; }
.vx-astro.on .a-arc { animation: vx-fade .9s .25s both; }
@keyframes vx-turn { from { transform: rotate(-40deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes vx-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 900px) {
  .vx-hero { grid-template-columns: 1.25fr 1fr; gap: 48px; padding: 48px 0 20px; }
  .vx-astro { width: min(380px, 100%); }
}

/* homework strip */
.vx-hwstrip { margin: 28px 0 0; }
.vx-hwstrip h2, .vx-case-h h2 { margin: 0; font: 700 24px/1.2 var(--serif); }
.vx-hwstrip ul { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 12px; margin: 12px -16px 0; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.vx-hwc { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line2); border-left: 4px solid var(--c); }
.vx-hwc.done { opacity: .78; }
.vx-hwc-g { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.vx-hwc-g span { color: var(--brass); font-weight: 600; white-space: nowrap; }
.vx-hwc-t { text-decoration: none; display: flex; flex-direction: column; }
.vx-hwc-t small { font-size: 12.5px; color: var(--mute); }
.vx-hwc-t b { font: 700 18px/1.25 var(--serif); }
.vx-hwc-t:hover b { color: var(--brass); }
.vx-hwc-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.vx-hwc-p { font-size: 13px; color: var(--mute); }
.vx-hw-wait { font-size: 13px; color: var(--mute); font-style: italic; }
.vx-hw-ok { font-size: 13.5px; color: var(--ok); font-weight: 700; }
@media (min-width: 900px) { .vx-hwstrip ul { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 12px 0 0; padding: 2px 0 0; overflow: visible; } }

/* word of the day + daily challenge */
.vx-desk { display: grid; gap: 16px; margin: 32px 0 0; }
@media (min-width: 900px) { .vx-desk { grid-template-columns: 1.5fr 1fr; gap: 22px; } }
.vx-wotd { position: relative; padding: 22px 22px 20px; border-radius: 6px 16px 16px 6px; background: var(--card); color: var(--card-ink); box-shadow: var(--shadow); border: 1px solid var(--card-line); }
html.dark .vx-wotd { background: radial-gradient(120% 90% at 0% 0%, #f8f1e1, transparent 60%), linear-gradient(160deg, #f3ead7, #e7dbc0); }
.vx-wotd::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brass2); }
.vx-wotd-l { margin: 0; font-size: 13px; font-weight: 600; color: #8a6420; }
.vx-wotd-r { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.vx-wotd h2 { margin: 0; font: 700 clamp(32px, 7vw, 44px)/1.05 var(--serif); }
.vx-wotd-ipa { margin: 4px 0 0; color: var(--card-mute); font-size: 14.5px; }
.vx-wotd-ipa em { font-family: var(--serif); font-weight: 700; font-style: italic; margin-left: 6px; }
.vx-wotd-tr { margin: 10px 0 0; font-weight: 700; font-size: 17px; color: #4a3a17; }
.vx-wotd-def { margin: 8px 0 0; font-size: 16px; }
.vx-wotd-ex { margin: 10px 0 14px; font: italic 700 16.5px/1.5 var(--serif); color: #3a3323; }
.vx-wotd .vx-link { color: #7c5714; }
.vx-dailyc { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--ink); background: linear-gradient(150deg, var(--surf2), var(--surf)); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.vx-medal { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #6e4c12; background: radial-gradient(circle at 35% 30%, #fbe6b2, #d9b26a 55%, #a87b33); box-shadow: inset 0 -3px 8px rgba(0,0,0,.25), 0 8px 20px -10px rgba(185,139,67,.9); }
.vx-medal svg { width: 52px; height: 52px; }
.vx-dailyc-t { display: flex; flex-direction: column; gap: 4px; }
.vx-dailyc-t b { font: 700 22px/1.2 var(--serif); }
.vx-dailyc-t span { color: var(--ink2); font-size: 14.5px; }
.vx-dailyc-t em { font-style: normal; color: var(--brass); font-weight: 600; font-size: 13.5px; }
.vx-dailyc:hover b { color: var(--brass); }

/* ───────── the bookshelf ───────── */
.vx-case { margin: 46px 0 0; }
.vx-case-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.vx-case-h p { margin: 0; color: var(--mute); font-size: 14.5px; }
.vx-shelf {
  --bw: 124px; --bh: 178px; --bd: 20px; --top: 30px; --plank: 20px; --drop: 64px;
  --row: calc(var(--top) + var(--bh) + var(--plank) + var(--drop));
  position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: var(--row); padding: 0 10px;
  border-radius: 14px 14px 8px 8px; border: 1px solid var(--line2); box-shadow: inset 0 18px 40px -20px rgba(0,0,0,.35), inset 0 0 0 6px var(--case2);
  background-color: var(--case);
  background-image: linear-gradient(to bottom, transparent 0, transparent calc(100% - var(--plank) - var(--drop)),
      #ecc887 calc(100% - var(--plank) - var(--drop)), #b48541 calc(100% - var(--plank) - var(--drop) + 2px),
      var(--wood1) calc(100% - var(--plank) - var(--drop) + 2px), var(--wood2) calc(100% - var(--drop)),
      rgba(0,0,0,.32) calc(100% - var(--drop)), transparent calc(100% - var(--drop) + 16px), transparent 100%);
  background-size: 100% var(--row); background-repeat: repeat-y; }
html:not(.dark) .vx-shelf { box-shadow: inset 0 18px 40px -24px rgba(80,50,20,.35), inset 0 0 0 6px var(--case2); }
.vx-book { position: relative; display: block; width: var(--bw); height: var(--bh); margin-top: var(--top); justify-self: center; perspective: 820px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.vx-b3 { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(26deg); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.vx-book::after { content: ''; position: absolute; left: 4%; right: -6%; bottom: -5px; height: 12px; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); z-index: -1; }
.vx-cover, .vx-spine, .vx-pages { position: absolute; backface-visibility: hidden; }
.vx-cover { inset: 0; transform: translateZ(calc(var(--bd) / 2)); border-radius: 2px 6px 6px 2px; padding: 14px 12px 12px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #f7dfa6; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0, rgba(0,0,0,.1) 5px, rgba(255,255,255,.16) 7px, rgba(0,0,0,0) 11px),
    radial-gradient(130% 80% at 25% 12%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(165deg, rgba(14,10,30,.18), rgba(14,10,30,.66)),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset -2px 0 3px rgba(0,0,0,.25); }
.vx-cover::before { content: ''; position: absolute; inset: 8px 8px 8px 14px; border: 1px solid rgba(247,223,166,.6); border-radius: 2px; pointer-events: none; }
.vx-cover::after { content: ''; position: absolute; inset: 11px 11px 11px 17px; border: 1px solid rgba(247,223,166,.25); border-radius: 1px; pointer-events: none; }
.vx-cv-lv { position: relative; font-size: 9.5px; font-weight: 600; letter-spacing: .02em; opacity: .9; margin-top: 4px; }
.vx-cv-t { position: relative; font: 700 15px/1.15 var(--serif); margin-top: 10px; text-shadow: 0 1px 0 rgba(0,0,0,.35); overflow-wrap: anywhere; hyphens: auto; }
.vx-cv-em { position: relative; width: 30px; height: 30px; margin: auto 0 6px; opacity: .85; }
.vx-cv-m { position: relative; font-size: 9.5px; line-height: 1.35; opacity: .9; }
.vx-spine { top: 0; bottom: 0; left: calc(50% - var(--bd) / 2); width: var(--bd); transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2)); border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 30%, rgba(255,255,255,.12) 50%, rgba(0,0,0,.3)), var(--c);
  display: grid; place-items: center; overflow: hidden; }
.vx-spine::before, .vx-spine::after { content: ''; position: absolute; left: 3px; right: 3px; height: 1px; background: rgba(247,223,166,.7); top: 14px; box-shadow: 0 4px 0 rgba(247,223,166,.5); }
.vx-spine::after { top: auto; bottom: 18px; }
.vx-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 9.5px/1 var(--serif); color: #f7dfa6; white-space: nowrap; max-height: 72%; overflow: hidden; text-overflow: ellipsis; }
.vx-pages { top: 3px; bottom: 3px; left: calc(50% - var(--bd) / 2); width: calc(var(--bd) - 2px); transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f4ead2 0 1px, #d8cba9 1px 2px); }
.vx-top-ed { display: none; }
.vx-ribbon { position: absolute; left: 58%; top: calc(100% - 4px); width: 15px; display: flex; flex-direction: column; align-items: center; }
.vx-ribbon b { display: block; width: 15px; height: calc(30px + var(--p, 0) * .26px); background: linear-gradient(90deg, #6e1a24, #a3313d 50%, #7c1f2a); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%); }
.vx-ribbon i { margin-top: 4px; font: 700 11px/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; color: var(--brass2); white-space: nowrap; }
html:not(.dark) .vx-ribbon i { color: var(--brass); }
.vx-book.soon { cursor: default; }
.vx-book.soon .vx-b3 { filter: grayscale(.9) brightness(.62); opacity: .6; transform: rotateY(32deg); }
html:not(.dark) .vx-book.soon .vx-b3 { filter: grayscale(.9) brightness(.95); opacity: .5; }
.vx-book:focus-visible { outline: none; }
.vx-book:focus-visible .vx-cover { outline: 2px solid var(--brass2); outline-offset: 3px; }
@media (hover: hover) {
  .vx-book:not(.soon):hover .vx-b3 { transform: rotateY(8deg) translate3d(0, -8px, 14px); }
}
.vx-book:not(.soon):focus-visible .vx-b3 { transform: rotateY(8deg) translate3d(0, -8px, 14px); }
@media (min-width: 640px) { .vx-shelf { --bw: 142px; --bh: 204px; --bd: 24px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); padding: 0 18px; } .vx-cv-t { font-size: 16.5px; } }
@media (min-width: 1100px) { .vx-shelf { --bw: 158px; --bh: 226px; --bd: 26px; --top: 36px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); padding: 0 26px; } .vx-cv-t { font-size: 18px; } .vx-cv-lv, .vx-cv-m { font-size: 10.5px; } }

/* ───────── 2. BOOK — the opened book ───────── */
.vx-spread { position: relative; margin-top: 10px; border-radius: 8px 8px 12px 12px; background: var(--card); color: var(--card-ink); box-shadow: var(--shadow), 0 0 0 1px var(--card-line); --ringhole: var(--card); }
html.dark .vx-spread { background: linear-gradient(90deg, #e9dec4 0%, #f3ead7 6%, #f5eedd 50%, #f3ead7 94%, #e7dbc0 100%); }
.vx-spread::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -6px; height: 8px; border-radius: 0 0 10px 10px; background: repeating-linear-gradient(90deg, #e1d4b5 0 2px, #cdbf9c 2px 3px); z-index: -1; }
html:not(.dark) .vx-spread::after { background: repeating-linear-gradient(90deg, #ece6da 0 2px, #ddd5c6 2px 3px); }
.vx-leaf { padding: 22px 18px; }
.vx-leaf-r { border-top: 1px solid var(--card-line); }
.vx-bk-hero { display: flex; gap: 18px; align-items: center; }
.vx-bk-hero .vx-book { --bw: 96px; --bh: 138px; --bd: 16px; margin: 0; pointer-events: none; justify-self: auto; flex: none; }
.vx-bk-hero .vx-cv-t { font-size: 11.5px; margin-top: 6px; }
.vx-bk-hero .vx-cv-lv, .vx-bk-hero .vx-cv-m { display: none; }
.vx-bk-hero .vx-cv-em { width: 22px; height: 22px; }
.vx-bk-hero .vx-ribbon { display: none; }
.vx-bk-lv { margin: 0; font-size: 13.5px; font-weight: 600; color: #7c5714; }
.vx-leaf h1 { margin: 4px 0 0; font: 700 clamp(26px, 5vw, 38px)/1.1 var(--serif); }
.vx-bk-n { margin: 6px 0 0; color: var(--card-mute); font-size: 14.5px; }
.vx-bk-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-top: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line); }
.vx-bk-stats div { padding: 12px 6px; display: flex; flex-direction: column; align-items: flex-start; }
.vx-bk-stats div + div { border-left: 1px solid var(--card-line); padding-left: 14px; }
.vx-bk-stats b { font: 700 28px/1.1 var(--serif); }
.vx-bk-stats span { font-size: 13px; color: var(--card-mute); }
.vx-meter { position: relative; height: 8px; margin-top: 16px; border-radius: 4px; background: rgba(29,26,20,.1); overflow: hidden; }
.vx-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; transform: scaleX(0); border-radius: 4px; }
.vx-meter .m-l { background: #c99a46; } .vx-meter .m-m { background: #6b4a12; }
.vx-bk-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vx-spread .vx-btn.ghost { color: var(--card-ink); border-color: rgba(29,26,20,.25); background: rgba(29,26,20,.04); }
.vx-soonmsg { margin: 20px 0 0; color: var(--card-mute); font-style: italic; }
.vx-leaf-r h2 { margin: 0 0 6px; font: italic 700 24px/1.2 var(--serif); }
.vx-toc { list-style: none; margin: 0; padding: 0; }
.vx-toc li + li { border-top: 1px solid var(--card-line); }
.vx-toc a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 4px 12px; padding: 13px 4px; text-decoration: none; color: var(--card-ink); border-radius: 8px; }
.vx-toc a:hover { background: rgba(193,145,60,.1); }
.vx-toc-n { font: italic 700 26px/1 var(--serif); color: #9a6f25; text-align: center; }
.vx-toc-t { display: flex; flex-direction: column; min-width: 0; }
.vx-toc-t small { font-size: 12.5px; color: var(--card-mute); display: flex; align-items: center; gap: 8px; }
.vx-toc-t b { font: 700 17.5px/1.25 var(--serif); }
.vx-toc-t i { font-size: 12.5px; color: var(--card-mute); font-style: italic; }
/* L5 (1 Nov 2026): the listening tests' units — number and "Test N" first, the four part topics as a quiet two-line note */
.vx-toc-test .vx-toc-t b { font-size: 18px; }
.vx-toc-test .vx-toc-topics { font-style: normal; font-size: 12.5px; line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vx-toc-test .vx-toc-t small:empty { display: none; }
.vx-uh-topics { font-style: normal; font-size: 15px; max-width: 46rem; }
.vx-toc-d { display: none; }
.vx-toc-c { display: none; font-size: 13px; color: var(--card-mute); text-align: right; white-space: nowrap; }
.vx-toc-c small { display: block; font-size: 12px; color: #7c5714; }
.vx-toc .vx-ring { --ringhole: var(--card); }
html.dark .vx-toc .vx-ring { --ringhole: #f4ecdb; }
.vx-toc .vx-ring { background: conic-gradient(#b78838 calc(var(--p) * 1%), rgba(29,26,20,.1) 0); }
.vx-toc .vx-ring span { color: #4a3f2c; }
.vx-hwtag { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #3b62c4; padding: 2px 7px; border-radius: 6px; }
@media (min-width: 900px) {
  .vx-spread { display: grid; grid-template-columns: minmax(330px, .82fr) 1.18fr; }
  .vx-leaf { padding: 36px 40px; }
  .vx-leaf-l { box-shadow: inset -26px 0 28px -26px rgba(60,40,10,.4); }
  .vx-leaf-in { position: sticky; top: calc(var(--top-h) + 24px); }
  .vx-leaf-r { border-top: 0; box-shadow: inset 26px 0 28px -26px rgba(60,40,10,.4); }
  .vx-toc a { grid-template-columns: 46px minmax(0, 1fr) minmax(24px, 1fr) auto 40px; }
  .vx-toc a .vx-ring { grid-column: 5; }
  .vx-toc-test a { grid-template-columns: 46px minmax(0, 2.6fr) minmax(24px, .6fr) auto 40px; }   /* L5: room for the four topics */
  .vx-toc-d { display: block; height: 1px; align-self: end; margin-bottom: 9px; border-bottom: 2px dotted rgba(29,26,20,.25); }
  .vx-toc-c { display: block; }
  .vx-bk-hero .vx-book { --bw: 120px; --bh: 172px; --bd: 20px; }
  .vx-bk-hero .vx-cv-t { font-size: 13.5px; margin-top: 12px; }
}

/* ───────── 3. UNIT STUDIO ───────── */
.vx-uhead { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: end; padding: 12px 0 18px; }
.vx-uh-t { grid-column: 1 / -1; }
.vx-uh-k { margin: 0; font: italic 700 20px/1.2 var(--serif); color: var(--brass); }
.vx-uhead h1 { margin: 2px 0 0; font: 700 clamp(32px, 7vw, 58px)/1.05 var(--serif); letter-spacing: -.005em; }
.vx-uh-en { margin: 6px 0 0; color: var(--mute); font-style: italic; }
/* L4 (31 Oct 2026): a listening test's unit links back to the test itself */
.vx-uh-test { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--brass); box-shadow: inset 0 0 0 1.5px var(--brass); transition: background .15s, color .15s; }
.vx-uh-test:hover { background: var(--brass); color: #1b1407; }
.vx-uh-p { display: flex; align-items: center; gap: 12px; }
.vx-uh-p div { display: flex; flex-direction: column; }
.vx-uh-p b { font-weight: 700; }
.vx-uh-p span[data-n] { font-size: 13.5px; color: var(--ink2); }
.vx-uh-nav { display: flex; align-items: center; gap: 8px; }
.vx-uh-nav a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); text-decoration: none; font-size: 22px; line-height: 1; color: var(--ink); }
.vx-uh-nav a:hover { border-color: var(--brass); color: var(--brass); }
@media (min-width: 900px) { .vx-uhead { grid-template-columns: 1fr auto auto; padding: 18px 0 24px; } .vx-uh-t { grid-column: auto; } }
.vx-hwban { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 13px 16px; margin: 0 0 16px; border-radius: 14px; border: 1px solid rgba(59,98,196,.45); background: rgba(59,98,196,.1); }
html.dark .vx-hwban { border-color: rgba(157,184,255,.35); background: rgba(157,184,255,.08); }
.vx-hwban svg { color: var(--due); flex: none; }
.vx-hwban p { margin: 0; flex: 1; min-width: 180px; }
.vx-hwban p span { color: var(--ink2); }
.vx-hwban.done { border-color: rgba(44,122,75,.4); background: rgba(44,122,75,.08); }

/* the index tabs */
.vx-tabs { position: sticky; top: var(--top-h); z-index: 40; display: flex; gap: 2px; margin: 0 -16px; padding: 8px 16px 0; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line2); }
.vx-tabs::-webkit-scrollbar { display: none; }
.vx-tabs button { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--ink2); font-weight: 600; font-size: 15px; margin-bottom: -1px; }
.vx-tabs button:hover { color: var(--ink); }
.vx-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surf); border-color: var(--line2); box-shadow: inset 0 3px 0 var(--brass); }
@media (min-width: 900px) { .vx-tabs { margin: 0; padding: 8px 0 0; } .vx-tabs button { padding: 0 22px; font-size: 15.5px; } }
.vx-panel { padding: 18px 0 0; }
html.vx-js .vx-ssr { display: none; }
.vx-ssr li { margin: 0 0 10px; }

/* words toolbar */
.vx-wbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.vx-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surf); overflow-x: auto; max-width: 100%; }
.vx-seg button { flex: none; min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.vx-seg button[aria-pressed="true"] { background: var(--brass); color: #1a1408; }
html:not(.dark) .vx-seg button[aria-pressed="true"] { color: #fff; }
.vx-seg small { font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; opacity: .75; margin-left: 4px; }
.vx-wq { flex: 1 1 180px; min-width: 0; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surf); color: var(--mute); }
.vx-wq input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.vx-wq:focus-within { border-color: var(--brass); }
.vx-tgl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); cursor: pointer; user-select: none; }
.vx-tgl input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--ring-bg); position: relative; margin: 0; cursor: pointer; border: 1px solid var(--line2); }
.vx-tgl input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink2); transition: transform .18s; }
.vx-tgl input:checked { background: var(--brass); border-color: var(--brass); }
.vx-tgl input:checked::after { transform: translateX(16px); background: #1a1408; }
.vx-wbar .vx-print-btn { margin-left: auto; }

.vx-grp { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; }
.vx-grp:first-child { margin-top: 4px; }
.vx-grp h3 { margin: 0; font: italic 700 23px/1.2 var(--serif); }
.vx-grp span { font: 600 13px/1 var(--sans); color: var(--mute); }
.vx-grp::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.vx-wgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .vx-wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vx-wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1700px) { .vx-wgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the parchment word card */
.vx-wc { position: relative; display: flex; flex-direction: column; padding: 16px 16px 14px; border-radius: 4px 14px 14px 4px; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 10px 24px -16px rgba(0,0,0,.45); --ringhole: var(--card); }
html.dark .vx-wc { background: radial-gradient(140% 70% at 0% 0%, #f8f2e4 0%, transparent 60%), linear-gradient(170deg, #f3ead7, #ebe0c7); border-color: rgba(0,0,0,.2); }
.vx-wc.flash { box-shadow: 0 0 0 3px var(--brass2), 0 14px 30px -14px rgba(0,0,0,.6); }
.vx-wc-h { display: flex; align-items: center; gap: 10px; }
.vx-wc-h h4 { margin: 0; flex: 1; min-width: 0; font: 700 25px/1.12 var(--serif); overflow-wrap: anywhere; }
.vx-wc .vx-say { color: #5a4a2a; }
.vx-lvl { flex: none; font: 600 10px/1 var(--num); padding: 5px 7px; border-radius: 6px; border: 1px solid rgba(29,26,20,.25); color: #5a4a2a; }
.vx-st { flex: none; width: 34px; height: 34px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; border-radius: 50%; }
.vx-st svg { width: 24px; height: 24px; }
.vx-st path { fill: none; stroke: #9a8d72; stroke-width: 1.5; }
.vx-wc.b1 .vx-st path, .vx-wc.b2 .vx-st path, .vx-wc.b3 .vx-st path { fill: #c99a46; stroke: #9a6f25; }
.vx-wc.b4 .vx-st path, .vx-wc.b5 .vx-st path, .vx-wc.b6 .vx-st path { fill: #f0c255; stroke: #a87412; }
.vx-wc.b4 .vx-st, .vx-wc.b5 .vx-st, .vx-wc.b6 .vx-st { background: radial-gradient(closest-side, rgba(255,205,90,.55), transparent); }
.vx-wc-ipa { margin: 2px 0 0; color: var(--card-mute); font-size: 14px; }
.vx-wc-ipa em { font: italic 700 14px/1 var(--serif); margin-left: 6px; color: #5a4a2a; }
.vx-wc-tr { margin: 10px 0 0; font-weight: 700; color: #3f3115; font-size: 16px; }
.vx-wc-def { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; }
.vx-wc-ex { margin: 10px 0 0; padding-left: 12px; border-left: 2px solid #d4b57a; font: italic 700 15.5px/1.5 var(--serif); color: #3a3323; }
.vx-wc-col { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.vx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(29,26,20,.18); background: rgba(255,255,255,.45); color: var(--card-ink); font-size: 13.5px; }
button.vx-chip { cursor: pointer; }
button.vx-chip:hover { border-color: #b78838; }
.vx-wc-more { margin: 10px 0 0; font-size: 14px; }
.vx-wc-more summary { cursor: pointer; color: #7c5714; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.vx-wc-more summary::-webkit-details-marker { display: none; }
.vx-wc-more summary::before { content: '+'; font: 700 16px/1 var(--sans); width: 18px; text-align: center; }
.vx-wc-more[open] summary::before { content: '−'; }
.vx-wc-more dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.vx-wc-more dt { color: var(--card-mute); font-size: 13px; }
.vx-wc-more dd { margin: 0; }
.vx-wc-more dd small { color: var(--card-mute); }
.vx-wc-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.vx-wc-s { flex: 1 1 100%; font-size: 12.5px; color: var(--card-mute); }
.vx-wc-s.due { color: #2f55b5; font-weight: 700; }
.vx-wc .vx-btn { min-height: 36px; padding: 6px 13px; font-size: 13.5px; color: var(--card-ink); border-color: rgba(29,26,20,.25); }
.vx-wc .vx-btn.brass { color: #1d1406; border-color: #8f6a2e; }
.vx-more-sent { height: 1px; }
.vx-empty { padding: 34px 18px; text-align: center; color: var(--ink2); border: 1px dashed var(--line2); border-radius: 14px; }
.vx-empty b { display: block; font: 700 22px/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }

/* sessions (learn, review, daily) */
.vx-stage { max-width: 720px; margin: 0 auto; }
.vx-sess-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vx-prog { flex: 1; height: 6px; border-radius: 3px; background: var(--ring-bg); overflow: hidden; }
.vx-prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brass), var(--brass2)); transform-origin: left; transform: scaleX(0); transition: transform .35s ease; }
.vx-sess-n { font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--mute); white-space: nowrap; }
.vx-qcard { position: relative; padding: 22px 20px; border-radius: 6px 18px 18px 6px; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); box-shadow: var(--shadow); --ringhole: var(--card); }
html.dark .vx-qcard { background: radial-gradient(140% 70% at 0% 0%, #f8f2e4 0%, transparent 60%), linear-gradient(170deg, #f3ead7, #ebe0c7); }
.vx-qk { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #7c5714; }
.vx-qw { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vx-qw h2 { margin: 0; font: 700 clamp(30px, 7vw, 46px)/1.08 var(--serif); }
.vx-qp { margin: 6px 0 0; font: 700 clamp(19px, 4.4vw, 24px)/1.4 var(--serif); }
.vx-qp.sent { font-style: italic; }
.vx-qcard .vx-wc-def { font-size: 17px; }
.vx-opts { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 700px) { .vx-opts { grid-template-columns: 1fr 1fr; } }
.vx-opt { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 56px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(29,26,20,.2); background: rgba(255,255,255,.55); color: var(--card-ink); font-size: 15.5px; line-height: 1.35; transition: transform .12s; }
.vx-opt:hover:not([disabled]) { border-color: #b78838; }
.vx-opt:active:not([disabled]) { transform: scale(.985); }
.vx-opt kbd { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 600 12px/1 var(--sans); border: 1px solid rgba(29,26,20,.25); color: #6d624f; }
.vx-opt.w { font: 700 18px/1.25 var(--serif); }
.vx-opt.ok { border-color: #2c7a4b; background: rgba(44,122,75,.14); box-shadow: inset 0 0 0 1px #2c7a4b; }
.vx-opt.no { border-color: #b2373a; background: rgba(178,55,58,.1); }
.vx-opt[disabled] { cursor: default; }
.vx-fb { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 15px; background: rgba(29,26,20,.05); }
.vx-fb b.ok { color: #2c7a4b; } .vx-fb b.no { color: #b2373a; }
.vx-type { display: flex; gap: 10px; margin-top: 18px; }
.vx-type input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(29,26,20,.25); background: #fffdf7; color: #1d1a14; font: 700 20px/1 var(--serif); }
.vx-type input:focus { outline: 2px solid #b78838; }
.vx-sacts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.vx-sum h2 { margin: 0; font: 700 32px/1.15 var(--serif); }
.vx-sum > p { color: var(--ink2); }
.vx-sumlist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.vx-sumlist li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); }
.vx-sumlist b { font: 700 17px/1.2 var(--serif); flex: 1; min-width: 0; }
.vx-sumlist span { font-size: 13px; color: var(--mute); white-space: nowrap; }
.vx-sumlist .up { color: var(--ok); font-weight: 700; } .vx-sumlist .dn { color: var(--bad); font-weight: 700; }
.vx-sacts.left { justify-content: flex-start; }
.vx-intro { display: grid; gap: 16px; align-items: center; padding: 22px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line2); }
.vx-intro h2 { margin: 0; font: 700 28px/1.2 var(--serif); }
.vx-intro p { margin: 6px 0 0; color: var(--ink2); }
.vx-intro ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink2); }

/* games grid */
.vx-gchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.vx-gchips button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font-weight: 600; font-size: 14px; }
.vx-gchips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vx-ggrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vx-gcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--surf); color: var(--ink); min-height: 180px; overflow: hidden; transition: transform .18s ease; }
.vx-gcard::before { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, var(--ac), transparent); opacity: .22; }
.vx-gcard:not([disabled]):hover { transform: translateY(-3px); border-color: var(--ac); }
.vx-gic { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--ac); border: 1.5px solid var(--ac); background: var(--bg); }
.vx-gic svg { width: 26px; height: 26px; }
.vx-gcard b { position: relative; font: 700 21px/1.2 var(--serif); }
.vx-gcard p { position: relative; margin: 0; font-size: 14px; color: var(--ink2); }
.vx-gsk { position: relative; margin-top: auto; font-size: 12px; font-weight: 600; color: var(--ac); }
.vx-gcard[disabled] { cursor: default; opacity: .55; }
.vx-gcard[disabled] .vx-gic { filter: grayscale(1); }

/* the game host: full screen */
.vx-gh { position: fixed; inset: 0; z-index: 1500; display: flex; flex-direction: column; background: var(--bg); }
.vx-gh-top { flex: none; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; border-bottom: 1px solid var(--line2); background: var(--surf); }
.vx-gh-top .vx-ic { width: 40px; height: 40px; font-size: 22px; line-height: 1; }
.vx-gh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.vx-gh-t b { font: 700 18px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-gh-t small { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-gh-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.vx-gh-res { position: absolute; inset: 0; overflow: auto; padding: 24px 16px 40px; }
.vx-res { max-width: 560px; margin: 0 auto; text-align: center; }
.vx-res-stars { display: flex; justify-content: center; gap: 6px; }
.vx-res-stars svg { width: 58px; height: 58px; }
.vx-res-stars path { fill: none; stroke: var(--brass); stroke-width: 1.2; }
.vx-res-stars .on path { fill: url(#vxStarG); stroke: #a87412; }
.vx-res-stars .on { animation: vx-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.vx-res-stars .on:nth-child(2) { animation-delay: .15s; } .vx-res-stars .on:nth-child(3) { animation-delay: .3s; }
@keyframes vx-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.vx-res h2 { margin: 12px 0 0; font: 700 34px/1.15 var(--serif); }
.vx-res-n { display: flex; justify-content: center; gap: 0; margin: 18px 0 0; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.vx-res-n div { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; }
.vx-res-n div + div { border-left: 1px solid var(--line2); }
.vx-res-n b { font: 700 24px/1.1 var(--serif); }
.vx-res-n span { font-size: 12.5px; color: var(--mute); }
.vx-res h3 { margin: 22px 0 8px; font: italic 700 19px/1.2 var(--serif); text-align: left; }
.vx-mist { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.vx-mist li { padding: 10px 14px; border-radius: 12px; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); }
.vx-mist b { font: 700 17px/1.2 var(--serif); }
.vx-mist span { display: block; font-size: 14px; color: var(--card-mute); }
.vx-res .vx-sacts { justify-content: center; margin-top: 24px; }
.vx-res p { color: var(--ink2); }

/* write */
.vx-wr { display: grid; gap: 18px; }
@media (min-width: 1000px) { .vx-wr { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.vx-wr-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.vx-wr-pick select { flex: 1 1 200px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(29,26,20,.25); background: #fffdf7; color: #1d1a14; font-size: 15.5px; }
.vx-wr textarea { width: 100%; min-height: 110px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(29,26,20,.25); background: #fffdf7; color: #1d1a14; font-size: 16.5px; line-height: 1.5; resize: vertical; }
.vx-wr textarea:focus { outline: 2px solid #b78838; }
.vx-wr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.vx-aiq { font-size: 13px; color: var(--card-mute); }
.vx-wout { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(29,26,20,.05); }
.vx-wout .sc { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.vx-wout .sc i { font-style: normal; color: #c99a46; letter-spacing: 2px; }
.vx-wout .sc i em { color: rgba(29,26,20,.2); font-style: normal; }
.vx-wout ul { margin: 8px 0 0; padding-left: 18px; }
.vx-wout .bt { margin: 10px 0 0; font: italic 700 16px/1.5 var(--serif); }
.vx-wout .bt small { font: 600 12px/1 var(--sans); font-style: normal; color: var(--card-mute); display: block; margin-bottom: 4px; }
.vx-mine h3 { margin: 0 0 10px; font: italic 700 22px/1.2 var(--serif); }
.vx-mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vx-mine li { padding: 12px 14px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); }
.vx-mine li p { margin: 0; }
.vx-mine li .m-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.vx-mine li .m-h b { font: 700 16px/1.2 var(--serif); color: var(--ink); }
.vx-mine li .m-s { font-size: 15px; }
.vx-mine li .m-f { font-size: 13.5px; color: var(--ink2); margin-top: 4px; }
.vx-sc { font: 700 12px/1 var(--sans); padding: 4px 7px; border-radius: 6px; }
.vx-sc.s0 { background: rgba(178,55,58,.14); color: var(--bad); } .vx-sc.s1 { background: rgba(217,178,106,.2); color: var(--brass); }
.vx-sc.s2, .vx-sc.s3 { background: rgba(44,122,75,.16); color: var(--ok); }

/* daily */
.vx-daily .vx-intro { text-align: center; justify-items: center; }
.vx-daily .vx-medal { width: 96px; height: 96px; }
.vx-daily .vx-medal svg { width: 66px; height: 66px; }
.vx-board { margin-top: 20px; text-align: left; width: 100%; }
.vx-board h3 { margin: 0 0 8px; font: italic 700 20px/1.2 var(--serif); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vx-board h3 small { font: 500 13px/1 var(--sans); font-style: normal; color: var(--mute); }
.vx-board ol { margin: 0; padding: 0; list-style: none; counter-reset: b; }
.vx-board li { counter-increment: b; display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.vx-board li::before { content: counter(b); font: italic 700 15px/1 var(--serif); color: var(--brass); }
.vx-board li:nth-child(odd) { background: var(--brass-soft); }
.vx-board li.me { box-shadow: inset 0 0 0 1px var(--brass); }
.vx-board li small { color: var(--mute); font-size: 12.5px; }
.vx-streak { color: #e0884a; font-weight: 700; }

/* class game dialog + find dialog */
.vx-modal, .vx-find { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: start center; padding: 70px 16px 16px; background: rgba(5,8,20,.62); }
.vx-modal-box, .vx-find-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 90px); overflow: auto; border-radius: 18px; background: var(--surf); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.vx-modal-box { padding: 22px; }
.vx-modal-box h2 { margin: 0 0 14px; font: 700 24px/1.2 var(--serif); padding-right: 40px; }
.vx-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-size: 22px; line-height: 1; flex: none; }
.vx-modal-box > .vx-x { position: absolute; top: 14px; right: 14px; }
.vx-cg { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); text-decoration: none; color: var(--ink); margin-top: 10px; }
.vx-cg:hover { border-color: var(--brass); }
.vx-cg b { display: block; font: 700 17px/1.25 var(--serif); } .vx-cg small { color: var(--ink2); font-size: 13.5px; }
.vx-cg .ic { font-size: 26px; }
.vx-find-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); color: var(--mute); }
.vx-find-row input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); }

/* print: "Print my word list" — a clean sheet the student fills in */
.vx-print { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  html, body.vx-body { background: #fff !important; color: #000 !important; }
  body.vx-body::before { display: none; }
  body.vx-body > *:not(#vx-print) { display: none !important; }
  .vx-print { display: block !important; font: 10.5pt/1.4 var(--sans); color: #000; }
  .vx-print h1 { font: 700 20pt/1.15 var(--serif); margin: 0; }
  .vx-print .pm { margin: 2pt 0 10pt; font-size: 10pt; color: #333; display: flex; justify-content: space-between; border-bottom: 1px solid #000; padding-bottom: 6pt; }
  .vx-print table { width: 100%; border-collapse: collapse; }
  .vx-print th { text-align: left; font-size: 8.5pt; border-bottom: 1px solid #000; padding: 4pt; }
  .vx-print td { vertical-align: top; padding: 5pt 4pt; border-bottom: 1px solid #bbb; page-break-inside: avoid; }
  .vx-print td.w b { font: 700 12.5pt/1.2 var(--serif); display: block; }
  .vx-print td.w small { color: #444; }
  .vx-print td.n { width: 18pt; color: #555; }
  .vx-print .ex { font-style: italic; color: #222; margin-top: 2pt; }
  .vx-print .tr { font-weight: 700; margin-top: 2pt; }
  .vx-print .ln { height: 30pt; border-bottom: 1px dotted #777; }
}

/* reduced motion: nothing moves by itself */
html.vx-still *, html.vx-still *::before, html.vx-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.vx-ring.full span { font-size: 15px; color: #8a6420; }
html.dark .vx-uh-p .vx-ring.full span { color: var(--brass2); }
.vx-hero > *, .vx-desk > *, .vx-uhead > * { min-width: 0; }
#vx-continue [data-t] { min-width: 0; display: block; }
.vx-astro-key small { white-space: nowrap; }

.vx-qcard .vx-btn:not(.brass), .vx-spread .vx-btn:not(.brass) { color: var(--card-ink); border-color: rgba(29,26,20,.25); background: rgba(29,26,20,.04); }
.vx-qcard .vx-btn:not(.brass):hover { border-color: #b78838; }
@media (max-width: 899px) {
  .vx-crumbs { font-size: 13px; padding-top: 14px; }
  .vx-uh-nav { justify-content: flex-start; }
  .vx-wbar .vx-print-btn { margin-left: 0; }
}
.vx-cv-t { overflow-wrap: normal; word-break: normal; }
.vx-bk-hero .vx-cv-t { font-size: 10px; }
@media (max-width: 520px) { .vx-bk-stats b { font-size: 21px; } .vx-bk-stats div + div { padding-left: 10px; } }
@media (max-width: 520px) { .vx-tabs button { padding: 0 12px; font-size: 14.5px; } }
/* day: some games have pale accents (cream, white) — the icon and the skill label use ink, the accent stays as a tint */
html:not(.dark) .vx-gic { color: var(--ink); border-color: var(--line2); background: var(--surf); overflow: hidden; }
html:not(.dark) .vx-gic::after { content: ''; position: absolute; inset: 0; background: var(--ac); opacity: .22; border-radius: 50%; }
html:not(.dark) .vx-gic svg { position: relative; z-index: 1; }
html:not(.dark) .vx-gsk { color: var(--ink2); }
html:not(.dark) .vx-gsk::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); margin-right: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
html:not(.dark) .vx-gcard::before { opacity: .35; }

/* ───────── 6 Nov 2026: mastering a unit, "+ translation", the 10-second Learn cards, the "Not saved" warning ───────── */
/* "Not saved — you are offline. We will retry." — a small pill under the top bar, above everything */
.vx-net { position: fixed; left: 50%; top: calc(var(--top-h) + 8px); z-index: 3100; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px;
  background: #fdeaea; color: #8e1f22; border: 1px solid #e8b4b4; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); text-align: center; }
.vx-net a { color: inherit; font-weight: 800; }
html.dark .vx-net { background: #3a1517; color: #ffd0cc; border-color: #7a3337; }
/* "+ translation" (Learn cards only) */
.vx-trb { margin-left: 10px; padding: 3px 10px; border-radius: 999px; border: 1px dashed rgba(29,26,20,.35); background: transparent; color: #7c5714; font: 600 12.5px/1.3 var(--sans); vertical-align: middle; }
.vx-trb:hover { border-style: solid; }
.vx-sacts .vx-trb { margin: 0 auto 0 0; min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.vx-trbox { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line2); }
.vx-trbox small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.vx-trbox p { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
/* the 10-second wait on Got it / Next */
.vx-btn.vx-hold { opacity: .72; }
.vx-cd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(29,26,20,.16); font: 800 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.vx-sum-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.vx-sum-note.ok { border-color: rgba(44,122,75,.45); color: var(--ok); } .vx-sum-note.no { border-color: rgba(178,55,58,.4); color: var(--bad); }
.vx-lprog { margin: 6px 0 0; font-size: 14.5px; }
/* the unit header: "Master this unit: 2 of 4 steps done →" */
.vx-uh-mast { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--brass); text-decoration: none; }
.vx-uh-mast:hover { text-decoration: underline; }
.vx-uh-mast.open { color: var(--ok); } .vx-uh-mast.done { color: var(--ok); }
/* Review tab: "What's left" */
.vx-mast { margin: 0 0 18px; padding: 20px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.vx-mast.open { border-color: rgba(44,122,75,.55); }
.vx-mast.done { border-color: rgba(44,122,75,.55); background: linear-gradient(160deg, var(--surf), rgba(44,122,75,.08)); }
.vx-mast h2 { margin: 0; font: 700 26px/1.2 var(--serif); }
.vx-mast > p { margin: 6px 0 0; color: var(--ink2); }
.vx-mast h3 { margin: 16px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.vx-mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vx-mlist button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-align: left; }
.vx-mlist button:hover { border-color: var(--line2); }
.vx-mlist .ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); font-weight: 800; font-size: 14px; }
.vx-mlist li.ok .ic { background: var(--ok); border-color: var(--ok); color: #fff; }
html.dark .vx-mlist li.ok .ic { color: #0b1022; }
.vx-mlist .tx { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; }
.vx-mlist .tx b { font-weight: 800; }
.vx-mlist .tx span { color: var(--ink2); }
.vx-mlist li.no .tx span { color: var(--ink); }
.vx-mlist .go { flex: none; font-size: 22px; line-height: 1; color: var(--mute); }
.vx-mnote { margin: 12px 0 0; font-size: 14px; color: var(--ink2); }
/* Write tab: one sentence per word */
.vx-wcount { float: right; font-weight: 600; color: var(--card-mute); }
.vx-wnow { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(29,26,20,.05); border-left: 3px solid #c99a46; }
.vx-wnow small { display: block; font-size: 12px; font-weight: 700; color: var(--card-mute); }
.vx-wnow p { margin: 3px 0 0; font-size: 15px; }
.vx-imp { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); margin-right: 6px; }
.vx-imp-l { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: #2c7a4b; } .vx-imp-l.no { color: #b2373a; }
@media (max-width: 520px) { .vx-mast { padding: 16px; } .vx-mast h2 { font-size: 22px; } .vx-wcount { float: none; display: block; margin-top: 2px; } }

/* ── 9 Nov 2026 (owner note 24): the class test's kinds of questions in Learn / Review, and the practice test card ── */
.vx-qhint { margin: 12px 2px 0; font-size: 14px; color: #6d624f; }
.vx-qhint b { color: var(--card-ink); }
.vx-blank { display: inline-block; min-width: 3em; border-bottom: 3px solid #b78838; color: transparent; line-height: 1.1; }
.vx-scr-line { display: flex; flex-wrap: wrap; gap: 6px; min-height: 56px; margin-top: 16px; padding: 8px; border-radius: 12px; border: 1.5px dashed rgba(29,26,20,.3); align-items: center; }
.vx-scr-line.ok { border-style: solid; border-color: #2c7a4b; background: rgba(44,122,75,.1); } .vx-scr-line.no { border-style: solid; border-color: #b2373a; background: rgba(178,55,58,.08); }
.vx-scr-ph { color: #8a7d66; font-size: 14px; padding: 0 6px; }
.vx-scr-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vx-tile { width: 44px; height: 48px; border-radius: 10px; border: 1px solid rgba(29,26,20,.25); background: #fffdf7; color: var(--card-ink); font: 700 22px/1 var(--serif); cursor: pointer; transition: transform .12s; box-shadow: 0 2px 0 rgba(29,26,20,.18); }
.vx-tile:active:not([disabled]) { transform: translateY(2px); box-shadow: none; }
.vx-tile[disabled] { opacity: .25; cursor: default; box-shadow: none; }
.vx-tile.on { background: #f6e3b6; border-color: #b78838; }
.vx-scr-line .vx-tile[disabled] { opacity: 1; }
.vx-pt { margin-top: 18px; }
.vx-pt .vx-intro { border: 1.5px solid #b78838; border-radius: 16px; padding: 16px 18px; background: rgba(183,136,56,.08); }
@media (max-width: 520px) { .vx-tile { width: 40px; height: 44px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .vx-tile { transition: none; } }

/* ── 9 Nov 2026 (owner note 10): word family · synonyms · opposites · origin (Learn card open, word card behind "More") ── */
.vx-more, .vx-wc-more dl.vx-more { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(183,136,56,.08); border: 1px solid rgba(183,136,56,.25); }
.vx-wc-more dl.vx-more { margin-top: 8px; }
.vx-mrow { display: flex; gap: 6px 10px; align-items: baseline; flex-wrap: wrap; }
.vx-mrow dt { flex: none; min-width: 118px; font: 600 12.5px/1.3 var(--sans); color: #7c5714; }
.vx-mrow dd { margin: 0; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vx-mchip { border: 1px solid rgba(29,26,20,.18); background: #fffdf7; color: var(--card-ink); border-radius: 999px; padding: 3px 10px; font: 600 14px/1.35 var(--serif); cursor: pointer; }
.vx-mchip:hover { border-color: #b78838; }
.vx-mchip small { font: 500 11px/1 var(--sans); color: #8a7d66; }
.vx-orig dd { display: block; font: italic 14.5px/1.45 var(--serif); color: var(--card-ink); }
@media (max-width: 520px) { .vx-mrow dt { min-width: 0; width: 100%; } }

/* 12 Nov 2026: translation-first books — the English definition behind "+ definition" on a word card */
.vx-den { margin-top: 2px; }
.vx-den-p { margin: 2px 0 0; font-size: 14px; color: var(--card-mute); }
