/* Visa interview practice. Light only (Hugo's apps are light mode). Palette and type from the approved mockup. */
:root {
  --bg: #EEEBE3;
  --paper: #F8F6F1;
  --ink: #15161A;
  --muted: #6F6C64;
  --line: #D6D1C6;
  --accent: #1B9FB2;
  --accent-soft: rgba(27, 159, 178, 0.11);
  --stop: #B4432B;
  --sans: "Archivo", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light only;
}
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.jp { font-family: var(--jp); }
/* The page language switch (Hugo 09-27): page text comes as an English .l-en and a Japanese .l-ja
   side by side, and the page shows one of them. The study material and the transcript keep both
   languages; they have their own Swap and Translation buttons. */
html:not([data-ui="ja"]) .l-ja, html[data-ui="ja"] .l-en { display: none !important; }
.l-ja { font-family: var(--jp); }
.mono .l-ja { letter-spacing: 0.04em; }
.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* The switch keeps its size; a long visa name is cut short with "…" instead (it squeezed 日本語 into a column). */
.ui-lang { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.ui-lang button { border: 0; background: transparent; border-radius: 999px; padding: 5px 11px; font: 600 12.5px/1.2 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; }
.ui-lang button:last-child { font-family: var(--jp); }
.ui-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; display: block; }
.brand b { color: var(--ink); font-weight: 500; }
.screen { height: 100%; box-sizing: border-box; padding-inline: max(16px, 2.4vw); }
@keyframes pulse { 50% { opacity: 0.3; } }
/* Pause shows the pause bars; paused, it shows the play triangle (Resume). */
#b-pause .i-play, #b-pause.paused .i-pause { display: none; }
#b-pause.paused .i-play { display: block; }
#b-pause:disabled { opacity: 0.4; cursor: default; }

/* ---------------- opening / status ---------------- */
#boot { display: grid; place-items: center; overflow-y: auto; }
.boot { width: min(560px, 100%); display: grid; gap: 10px; justify-items: start; padding-block: 32px; }
.boot .brand { margin-bottom: 18px; }
.boot h1 { margin: 12px 0 0; font-size: clamp(28px, 5vw, 42px); letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.boot p { margin: 0; font-size: 17px; line-height: 1.5; }

/* ---------------- main menu ---------------- */
#menu { overflow-y: auto; }
.menu { max-width: 760px; margin: 0 auto; padding-block: 22px 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.visa { border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visa:empty { display: none; }
.hello h1 { margin: 10px 0 0; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.hello p.how { margin: 16px 0 0; font-size: 17px; color: var(--ink); }
.group { display: grid; gap: 12px; }
.step-head { display: grid; gap: 6px; }
.step-head h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; text-wrap: balance; }
.study-card { width: 100%; padding: 18px 20px; }
.study-card .txt { display: grid; gap: 2px; min-width: 0; }
.study-card .txt small { color: var(--ink); font-size: 14.5px; margin-top: 4px; }
.study-card .arrow { margin-left: auto; width: 22px; height: 22px; flex: none; color: var(--muted); }
.opt .badge { justify-self: start; margin-bottom: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: #137584; }
.opt .badge.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.group-label { display: flex; align-items: baseline; gap: 10px; }
.group-label .n { color: var(--ink); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  position: relative; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 18px 20px; display: grid; gap: 4px; align-content: start;
  transition: border-color 150ms, box-shadow 150ms;
}
.opt:hover { border-color: var(--muted); }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt .big { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.opt .desc { font-size: 15px; color: var(--ink); margin-top: 4px; }
.opt .tick { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; box-sizing: border-box; }
.opt[aria-pressed="true"] .tick { background: var(--ink); border-color: var(--ink); }
.opt[aria-pressed="true"] .tick::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opts.rows { grid-template-columns: 1fr; }
.opts.rows .opt { padding-right: 52px; }
.opts.rows .big { font-size: 20px; }
/* The arrows that lead from one step to the next (Hugo 09-27). */
.step-arrow { display: flex; justify-content: center; color: var(--accent); margin-block: -16px; }
.step-arrow svg { width: 26px; height: 26px; }
.gobox { display: grid; gap: 10px; }
.go {
  width: 100%; height: 68px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 14px; transition: transform 120ms, background 150ms;
}
.go:hover { background: #26272d; }
.go:active { transform: scale(0.99); }
.go:disabled { opacity: 0.45; cursor: not-allowed; }
.go svg { width: 22px; height: 22px; }
.note { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.note.warn { color: var(--stop); }
.more { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; text-align: left; }
button.card { cursor: pointer; }
button.card:hover { border-color: var(--muted); }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }
.card b { display: block; font-size: 17px; font-weight: 600; }
.card small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.card .score { margin-left: auto; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card .score span { font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------------- study my letter ---------------- */
#study { display: grid; grid-template-rows: auto 1fr; padding-block: 14px 0; overflow: hidden; }
.study-top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; }
.study-top h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.study-top .sp { flex: 1; }
.back { height: 40px; padding: 0 14px 0 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.back:hover, .swap-sm:hover { border-color: var(--muted); }
.back svg { width: 18px; height: 18px; }
.swap-sm { height: 40px; min-width: 64px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 1px; line-height: 1; }
.swap-sm .a, .swap-sm .k { width: 17px; text-align: center; font-weight: 700; transition: color 250ms ease; }
.swap-sm .a { font-size: 17px; color: var(--ink); }
.swap-sm .k { font-size: 15px; font-family: var(--jp); color: #B9B4A9; }
.swap-sm .sl { font-size: 14px; color: var(--line); }
.swap-sm.flip .a { color: #B9B4A9; } .swap-sm.flip .k { color: var(--ink); }
.practice-btn { height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.practice-btn:hover { background: #26272d; }
.practice-btn svg { width: 16px; height: 16px; }
.practice-btn .lbl-short { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; min-height: 0; }
.pane { overflow-y: auto; min-height: 0; scroll-behavior: smooth; padding-bottom: 28px; }
.sheet {
  background: #FFFEFB; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(21, 22, 26, 0.04), 0 12px 32px -18px rgba(21, 22, 26, 0.25);
  padding: clamp(24px, 4.5vw, 56px) clamp(22px, 4.5vw, 60px);
  font-family: var(--serif); font-size: 16.5px; line-height: 1.7; color: #2A2B30; overflow-wrap: anywhere;
}
.sheet p { margin: 0 0 1em; white-space: pre-line; }
.sheet { transition: color 400ms ease; }
.sheet.focus { color: #BDB8AD; }
.pass { cursor: pointer; border-radius: 3px; transition: color 400ms ease; }
.pass .qn {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; margin-right: 5px;
  border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500;
  vertical-align: 2px; line-height: 1; transition: background 300ms, color 300ms;
}
.pass .hl {
  background-image: linear-gradient(rgba(255, 213, 102, 0.62), rgba(255, 213, 102, 0.62));
  background-repeat: no-repeat; background-size: 0% 100%; padding: 1px 0;
  transition: background-size 900ms cubic-bezier(0.4, 0, 0.2, 1);
}
.pass:hover .hl { background-image: linear-gradient(rgba(27, 159, 178, 0.10), rgba(27, 159, 178, 0.10)); background-size: 100% 100%; transition: none; }
.sheet.focus .pass.on { color: var(--ink); }
.pass.on .hl { background-image: linear-gradient(rgba(255, 213, 102, 0.62), rgba(255, 213, 102, 0.62)); background-size: 100% 100%; }
.pass.on .qn { background: var(--ink); color: #fff; }
.qhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; }
.qlist { display: grid; gap: 10px; }
.q { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; transition: border-color 200ms, box-shadow 200ms; }
.q.open { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.q-btn { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.q-btn .mono { grid-column: 1 / -1; color: var(--accent); }
.q-btn .chev { width: 20px; height: 20px; color: var(--muted); transition: transform 250ms ease; margin-top: 2px; }
.q.open .q-btn .chev { transform: rotate(180deg); }
.bi { display: flex; flex-direction: column; }
.bi .t { display: block; }
.bi .t.ja { font-family: var(--jp); }
.bi-wrap[data-focus="ja"] .bi .t.ja { order: -1; }
.bi-wrap[data-focus="en"] .bi .t.ja, .bi-wrap[data-focus="ja"] .bi .t.en { font-size: 0.78em; font-weight: 400; color: var(--muted); margin-top: 3px; }
.q-btn .bi { font-size: 18px; font-weight: 600; line-height: 1.3; }
.q-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms ease; }
.q.open .q-body { grid-template-rows: 1fr; }
.q-body > div { overflow: hidden; }
.q-inner { padding: 0 16px 16px; display: grid; gap: 14px; }
.say { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.say li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 16px; line-height: 1.4; }
.say li .mk { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 18px; font-weight: 700; margin-top: 1px; }
.okbox { display: grid; gap: 8px; }
.okrow { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 16px; line-height: 1.4; }
.okrow .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.okrow.yes .mk { background: rgba(46, 125, 80, 0.13); color: #2E7D50; }
.okrow.no .mk { background: rgba(180, 67, 43, 0.11); color: var(--stop); }
.okrow.no { color: #4A4B50; }
.example { position: relative; background: #FFFEFB; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 44px; font-size: 17px; line-height: 1.45; font-weight: 500; }
.example::before { content: "\201C"; position: absolute; left: 14px; top: 6px; font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--accent); }
.jp-note { font-family: var(--jp); font-size: 14px; line-height: 1.7; color: var(--ink); background: rgba(255, 213, 102, 0.22); border-radius: 10px; padding: 10px 12px; }
.next { justify-self: start; height: 36px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.next:hover { border-color: var(--muted); }
.bi-wrap { transition: opacity 280ms ease, filter 280ms ease; }
.bi-wrap.swapping { opacity: 0; filter: blur(6px); transition-duration: 150ms; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; }
  .practice-btn .lbl { display: none; }
  .practice-btn .lbl-short { display: inline; }
  .study-top h1 { font-size: 18px; }
  .sheet { font-size: 15.5px; }
}
@media (max-width: 440px) {
  .study-top { gap: 8px; }
  .study-top h1 { display: none; }
}

/* ---------------- interview ---------------- */
#talk { display: grid; grid-template-rows: auto 1fr auto; padding-block: 18px 20px; overflow: hidden; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#talk-label { flex: 1; min-width: 0; }
#timer { flex: 1; text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.pill.you { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pill.you .dot { background: #fff; animation: pulse 1.2s ease-in-out infinite; }
.stage { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 92%, transparent 100%); }
.track { position: absolute; top: 0; left: 50%; width: min(880px, 100%); translate: -50% 0; transition: opacity 320ms ease, filter 320ms ease; }
.track.swapping { opacity: 0; filter: blur(8px); transition-duration: 170ms; }
.track.instant .item { transition: none !important; }
.item { transform: translateY(var(--y, 0px)) scale(var(--s, 1)); opacity: var(--o, 1); filter: blur(var(--b, 0px));
  transition: transform 950ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms), opacity 700ms ease var(--d, 0ms), filter 700ms ease var(--d, 0ms); }
.item.enter { opacity: 0; }
.tag { margin: 1.5em 0 0.55em; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.tag.you { color: var(--ink); justify-content: flex-end; }
.tag .dot { width: 7px; height: 7px; } .tag.you .dot { background: var(--ink); }
.ln { margin: 0 0 0.45em; display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(24px, 3.2vw, 42px); transform-origin: left center; }
.ln.you { align-items: flex-end; text-align: right; transform-origin: right center; margin-left: auto; max-width: 88%; }
.ln.unsaved::after { content: "not saved"; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stop); margin-top: 4px; }
html[data-ui="ja"] .ln.unsaved::after { content: "保存できませんでした"; font-family: var(--jp); letter-spacing: 0.04em; }
.t { display: block; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.t:empty { display: none; }
.t.ja { font-family: var(--jp); letter-spacing: 0; line-height: 1.36; }
.track[data-focus="ja"] .t.ja { order: -1; }
.track[data-focus="en"] .t.ja, .track[data-focus="ja"] .t.en {
  font-size: clamp(15px, 0.44em, 21px); font-weight: 500; line-height: 1.45; letter-spacing: 0; color: var(--muted); margin-top: 0.35em; }
.track.nosub[data-focus="en"] .t.ja, .track.nosub[data-focus="ja"] .t.en { display: none; }
.t span, .t.fresh { animation: rise 320ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rise { from { opacity: 0; } }
.controls { display: flex; justify-content: center; align-items: flex-start; gap: 36px; padding-top: 12px; border-top: 1px solid var(--line); }
.ctrl { display: grid; justify-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; }
.ctrl .b { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--line); transition: background 150ms, border-color 150ms, color 150ms; }
.ctrl:hover .b { border-color: var(--muted); }
.ctrl svg { width: 24px; height: 24px; }
.ctrl .l { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.ctrl.off .b { background: var(--ink); color: #fff; border-color: var(--ink); }
.ctrl.end .b { color: var(--stop); border-color: rgba(180, 67, 43, 0.35); }
.ctrl.end:hover .b { border-color: var(--stop); }
.ctrl .b.swapb { display: flex; align-items: center; justify-content: center; gap: 1px; line-height: 1; }
.swapb .a, .swapb .k { width: 17px; text-align: center; font-weight: 700; color: var(--ink); transition: color 250ms ease; }
.swapb .a { font-size: 18px; }
.swapb .k { font-size: 16px; font-family: var(--jp); color: #B9B4A9; }
.swapb .sl { font-size: 15px; color: var(--line); }
.ctrl.flip .swapb .a { color: #B9B4A9; }
.ctrl.flip .swapb .k { color: var(--ink); }
/* your mic: a small wave between the Mic and End buttons */
.voice { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; width: 170px; }
.vbox { width: 100%; height: 58px; box-sizing: border-box; padding: 0 18px; border-radius: 29px; background: var(--paper); border: 1.5px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
#wave { width: 100%; height: 32px; display: block; }
.vrow { display: flex; align-items: center; gap: 8px; height: 22px; }
.chip { height: 22px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
#sens { width: 92px; accent-color: var(--ink); }

/* loading: from Go until Marin's first words */
.loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding-inline: 16px; transition: opacity 450ms ease; }
.loading.gone { opacity: 0; pointer-events: none; }
.orb { position: relative; width: 84px; height: 84px; margin-bottom: 8px; }
.orb.small { width: 56px; height: 56px; margin: 0; }
.orb span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ripple 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.orb span:nth-child(2) { animation-delay: 0.8s; } .orb span:nth-child(3) { animation-delay: 1.6s; }
.orb::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.orb.stopped span, .orb.stopped::after { animation: none; opacity: 0; }
@keyframes ripple { 0% { transform: scale(0.35); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.lt { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; max-width: 30ch; text-wrap: balance; }
.lt.err { color: var(--stop); }
.steps { display: flex; gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; flex-wrap: wrap; justify-content: center; }
.steps li { display: flex; align-items: center; gap: 7px; opacity: 0.45; }
.steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.steps li.on { opacity: 1; color: var(--ink); } .steps li.on::before { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.steps li.ok { opacity: 1; } .steps li.ok::before { content: "✓"; width: auto; height: auto; background: none; color: var(--accent); font-weight: 700; }

/* ---------------- results ---------------- */
#done { overflow-y: auto; }
.results { max-width: 700px; margin: 0 auto; padding-block: 22px 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.results h2 { margin: 18px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; font-weight: 700; }
.scorebox { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 12px; }
.scoreline { display: flex; align-items: baseline; gap: 10px; }
.scoreline .num { font-size: clamp(64px, 11vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.scoreline .of { font-size: 22px; color: var(--muted); font-weight: 500; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 1100ms cubic-bezier(0.22, 1, 0.36, 1); }
.verdict { font-size: 18px; font-weight: 600; }
.list h3 { margin: 0 0 10px; }
.list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 17px; line-height: 1.4; }
.list .mk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.list.good .mk { background: var(--accent-soft); color: var(--accent); }
.list.work .mk { background: rgba(21, 22, 26, 0.07); color: var(--ink); }
.again { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.again .go { height: 60px; font-size: 20px; }
.ghost { height: 60px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; }
.ghost:hover { border-color: var(--muted); }
.ghost.small { height: 46px; font-size: 16px; margin-top: 10px; }

@media (max-width: 560px) {
  .opts, .more, .again { grid-template-columns: 1fr; }
  .mono { font-size: 11px; letter-spacing: 0.08em; }
  .ln.you { max-width: 94%; }
  .controls { gap: 6px; }
  /* Six controls on a phone (Pause joined them): the buttons keep their size, the wave takes what is left. */
  .voice { width: auto; flex: 1 1 0; min-width: 56px; max-width: 110px; } .vbox { height: 46px; padding: 0 10px; }
  .ctrl { width: 50px; flex: none; } .ctrl .b { width: 46px; height: 46px; }
  .ctrl .l { font-size: 11px; }
  /* The clock was cut off at the right edge: it keeps its width, the mode label wraps instead. */
  #timer { flex: none; white-space: nowrap; }
  .pill { padding: 6px 11px; font-size: 13px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .item { transition-duration: 200ms; transition-delay: 0ms; }
  .orb span, .orb::after, .steps li.on::before, .pill.you .dot { animation: none; }
  .orb span:first-child { opacity: 0.5; }
  .pass .hl, .q-body, .sheet, .pass { transition: none; }
  .pane { scroll-behavior: auto; }
}
