/* ---------- Design tokens ---------- */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --border: #dde3ee;
  --text: #172033;
  --muted: #5e6b82;
  --accent: #4f6bed;
  --accent-2: #8b5cf6;
  --accent-ink: #ffffff;
  --accent-soft: #e6eaff;
  --ok: #1f9d6b;
  --ok-soft: #e1f6ed;
  --bad: #d64545;
  --bad-soft: #fdeaea;
  --glow-1: rgba(79, 107, 237, .18);
  --glow-2: rgba(139, 92, 246, .14);
  --glow-3: rgba(31, 157, 107, .10);
  --shadow: 0 1px 2px rgba(20, 30, 60, .05), 0 10px 30px -8px rgba(20, 30, 60, .12);
  --shadow-lift: 0 2px 4px rgba(20, 30, 60, .06), 0 18px 40px -10px rgba(40, 60, 140, .25);
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #141b2b;
  --surface-2: #1c2538;
  --border: #2a3550;
  --text: #e8edf6;
  --muted: #98a5bb;
  --accent: #7d94ff;
  --accent-2: #b18cff;
  --accent-ink: #0b1020;
  --accent-soft: #212b4d;
  --ok: #3ccf91;
  --ok-soft: #12322a;
  --bad: #ff7b7b;
  --bad-soft: #3b1f25;
  --glow-1: rgba(125, 148, 255, .16);
  --glow-2: rgba(177, 140, 255, .12);
  --glow-3: rgba(60, 207, 145, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -10px rgba(0, 0, 0, .55);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 20px 44px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
/* Lets the result ring animate its percentage. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font: clamp(16px, .95rem + .25vw, 18px)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 0% -10%, var(--glow-1), transparent 60%),
    radial-gradient(50vmax 40vmax at 110% 0%, var(--glow-2), transparent 60%),
    radial-gradient(60vmax 40vmax at 50% 120%, var(--glow-3), transparent 60%);
}
.prompt, .answer .text, .info, h1, .card h2 { overflow-wrap: break-word; hyphens: auto; }
main { width: min(100%, 1180px); margin: 0 auto; padding: 8px var(--gutter) calc(64px + env(safe-area-inset-bottom)); }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; margin: .2em 0 .4em; text-wrap: balance; }
h2 { text-wrap: balance; }
p { text-wrap: pretty; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
pre { background: var(--surface-2); padding: 12px 14px; border-radius: 10px; overflow-x: auto; }
pre code { background: none; padding: 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent-soft); }

/* Screens have a comfortable reading width; the home grid and the two-column quiz use more. */
.screen { max-width: 860px; margin-inline: auto; }
#home { max-width: 1100px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.topbar-inner { width: min(100%, 1180px); margin: 0 auto; padding: 12px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 750; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
#header-md { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img.figure { display: inline; height: 32px; width: auto; margin: 0; border: 0; background: none; vertical-align: middle; cursor: pointer; }
.logo {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800;
  box-shadow: 0 4px 14px -4px var(--accent);
}
.tools { display: flex; gap: 8px; flex: none; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 1.1rem;
  transition: border-color .15s, transform .15s var(--ease);
}
.icon-btn:active { transform: scale(.94); }
.i-sun, [data-theme="dark"] .i-moon { display: none; }
[data-theme="dark"] .i-sun { display: block; }
#lang { font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
/* Language menu: a popover under the top bar's right edge. */
.menu {
  position: fixed; inset: auto; margin: 0;
  top: calc(env(safe-area-inset-top) + 62px);
  right: max(var(--gutter), (100vw - 1180px) / 2 + var(--gutter));
  min-width: 180px; padding: 6px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift);
  transition: opacity .15s, transform .2s var(--ease), overlay .2s allow-discrete, display .2s allow-discrete;
}
.menu:popover-open { display: grid; gap: 2px; }
@starting-style { .menu:popover-open { opacity: 0; transform: translateY(-6px); } }
.menu button {
  justify-content: flex-start; gap: 12px; width: 100%; min-height: 40px; padding: 8px 12px;
  background: none; color: var(--text); font-weight: 500; border-radius: 9px;
}
.menu button b { width: 2.2em; font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.menu button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }

/* ---------- Buttons ---------- */
button, .button {
  font: inherit; font-weight: 650; border-radius: var(--radius-sm); padding: 11px 20px; min-height: 44px;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s var(--ease), box-shadow .2s, filter .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
button:active, .button:active { transform: scale(.97); }
.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2))); color: var(--accent-ink); box-shadow: 0 6px 18px -8px var(--accent); }
.secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.danger { background: var(--bad); color: #fff; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Panels & cards ---------- */
.panel {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow); margin: 16px auto;
}
.hero { margin: clamp(16px, 4vw, 40px) 0 22px; }
.hero h1 {
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0 0 .6em; max-width: 65ch; }
.hero h1:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 140px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); color: var(--text); text-decoration: none;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .9; }
.card h2 { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.card .meta { margin-top: auto; padding-top: 8px; }
.card.broken { border-style: dashed; }
.card.broken::before { background: var(--bad); }
.meta { color: var(--muted); font-size: .88rem; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 11px; font-weight: 650; }

.back { color: var(--muted); text-decoration: none; font-size: .92rem; }
#intro-meta { margin: 14px 0 24px; }

/* ---------- Mode choice ---------- */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.mode {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; justify-items: start;
  padding: 18px 20px; text-align: left; font-size: 1.05rem; border-radius: 16px;
}
.mode-icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.4rem; background: rgba(255, 255, 255, .2); }
.secondary .mode-icon { background: var(--accent-soft); }
.mode .small { font-weight: 450; opacity: .88; line-height: 1.4; }

/* ---------- Quiz ---------- */
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
#progress-text { font-weight: 650; color: var(--text); }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; margin: 10px 0 0; overflow: hidden; border: 1px solid var(--border); }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .5s var(--ease); }
.prompt { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); font-weight: 650; line-height: 1.45; }
.prompt p { margin: 0 0 .6em; }
.prompt ul, .prompt ol { font-weight: 400; }
#kind { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; font-size: .75rem; color: var(--accent); }
.figure { display: block; margin: 12px auto; max-height: 380px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: zoom-in; }

/* Background text, above the question. */
.info {
  margin-bottom: 26px; padding: clamp(18px, 3vw, 28px) clamp(20px, 3.5vw, 32px); border-radius: 16px; line-height: 1.75; font-size: 1.02rem;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}
.info .label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.info .label::before { content: "📖"; font-size: 1rem; }
.info-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.info-head .label { margin: 0; }
.speak {
  min-height: 36px; padding: 6px 14px; font-size: .85rem; border-radius: 99px;
  background: var(--surface); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.speak[data-i18n="stopReading"] { background: var(--accent); color: var(--accent-ink); }
/* The part that is being read aloud */
.info .reading { background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 6px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); transition: background .2s, box-shadow .2s; }
.info-title { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.75rem); line-height: 1.25; letter-spacing: -.01em; margin: .1em 0 .6em; }
/* Headings written in the background text: # / ## / ### */
.info h1, .info h2:not(.info-title), .info h3 { line-height: 1.3; margin: 1.2em 0 .4em; }
.info h1 { font-size: 1.22rem; }
.info h2:not(.info-title) { font-size: 1.12rem; }
.info h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.info .info-title + h1, .info .info-title + h2, .info .info-title + h3 { margin-top: .2em; }
.info .figure { max-height: 300px; margin: 10px 0; background: none; }
.figure + br { display: none; } /* an image already starts its own line */
.info p { margin: 0 0 .8em; }
.info ul, .info ol { margin: 0 0 .9em; padding-left: 1.4em; }
.info li { margin: .15em 0; }
/* Tables (wide ones scroll sideways on phones) */
.table-wrap { overflow-x: auto; margin: .4em 0 1em; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.45; }
.table-wrap th, .table-wrap td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { white-space: nowrap; }
.info p:last-child { margin-bottom: 0; }

.answers { display: grid; gap: 10px; margin: 20px 0 8px; }
.answer {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; min-height: 56px;
  border: 2px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface);
  transition: border-color .15s, background .15s, transform .15s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.answer input { position: absolute; opacity: 0; pointer-events: none; }
.answer .key { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-weight: 750; font-size: .9rem; transition: background .15s, color .15s; }
.answer.multi .key { border-radius: 50%; }
.answer .text { padding-top: 2px; }
.answer .text img { display: block; max-height: 220px; margin: 6px 0 0; cursor: pointer; }
.answer:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.answer:has(input:checked) .key { background: var(--accent); color: var(--accent-ink); }
.answer:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.answers.done .answer { cursor: default; transform: none; }
.answers.done .answer.correct { border-color: var(--ok); background: var(--ok-soft); animation: pop .35s var(--ease); }
.answers.done .answer.correct .key { background: var(--ok); color: #fff; }
.answers.done .answer.wrong { border-color: var(--bad); background: var(--bad-soft); animation: shake .4s; }
.answers.done .answer.wrong .key { background: var(--bad); color: #fff; }
.answers.done .answer:not(.correct):not(.wrong) { opacity: .55; }

#feedback:empty { display: none; }
#feedback { border-radius: 14px; padding: 14px 18px; margin-top: 14px; border-left: 4px solid var(--muted); background: var(--surface-2); animation: rise .3s var(--ease); }
#feedback.ok { border-color: var(--ok); background: var(--ok-soft); }
#feedback.bad { border-color: var(--bad); background: var(--bad-soft); }
#feedback.warn { border-color: var(--accent); }
#feedback strong.title { display: block; margin-bottom: 2px; }
#feedback p { margin: 4px 0 0; }

.actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; }
.keys { margin-right: auto; }
kbd { font: .8em ui-monospace, monospace; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface-2); }
#streak { min-width: 3em; text-align: right; font-weight: 650; color: var(--ok); }

/* ---------- Results ---------- */
.score-wrap { display: flex; gap: clamp(16px, 4vw, 32px); align-items: center; flex-wrap: wrap; }
.ring {
  --c: var(--accent); flex: none; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0);
  transition: --p 1.2s var(--ease);
  box-shadow: 0 10px 30px -12px var(--c);
}
.ring span { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: var(--surface); font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
#review h2 { font-size: 1.1rem; margin: 30px 0 10px; }
.review-item { border: 1px solid var(--border); border-left: 4px solid var(--bad); border-radius: 14px; padding: 14px 18px; margin: 10px 0; background: var(--surface); }
.review-item .q { font-weight: 650; }
.review-item .q p { margin: 0 0 .4em; }
.review-item ul { margin: 6px 0 0; padding-left: 20px; }
.review-item li.right { color: var(--ok); }
.review-item li.picked { color: var(--bad); text-decoration: line-through; }
.review-item .explain { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.review-item .explain p { margin: 4px 0 0; }

#error-msg { white-space: pre-wrap; color: var(--bad); }

/* ---------- Dialogs ---------- */
dialog { transition: opacity .2s, transform .25s var(--ease), overlay .25s allow-discrete, display .25s allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(12px) scale(.97); } }
dialog::backdrop { background: rgba(5, 8, 15, .55); backdrop-filter: blur(4px); }
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
dialog#lightbox::backdrop { background: rgba(5, 8, 15, .85); }
dialog#lightbox img { display: block; max-width: 95vw; max-height: 95vh; background: #fff; border-radius: 12px; cursor: zoom-out; }
dialog.sheet {
  width: min(92vw, 420px); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift);
}
dialog.sheet p { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* Hover effects only where there is a mouse; on touch screens they stick after a tap. */
@media (hover: hover) {
  .icon-btn:hover { border-color: var(--accent); }
  .menu button:hover { background: var(--surface-2); }
  .primary:hover { filter: brightness(1.07); box-shadow: 0 10px 24px -8px var(--accent); }
  .secondary:hover { border-color: var(--accent); }
  .danger:hover { filter: brightness(1.07); }
  .card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
  .back:hover { color: var(--accent); }
  .mode:hover { transform: translateY(-2px); }
  .answer:hover { border-color: var(--accent); transform: translateX(2px); }
  .answers.done .answer:not(.correct):not(.wrong):hover { border-color: var(--border); }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { 50% { transform: scale(1.02); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.stage.enter .info, .stage.enter .prompt, .stage.enter #kind { animation: rise .4s var(--ease) both; }
.stage.enter .answer { animation: rise .4s var(--ease) both; }
.stage.enter .answer:nth-child(1) { animation-delay: .05s; }
.stage.enter .answer:nth-child(2) { animation-delay: .1s; }
.stage.enter .answer:nth-child(3) { animation-delay: .15s; }
.stage.enter .answer:nth-child(4) { animation-delay: .2s; }
.stage.enter .answer:nth-child(n+5) { animation-delay: .25s; }
.card { animation: rise .45s var(--ease) both; }
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(n+4) { animation-delay: .15s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  :root { --pad: 16px; }
  main { padding-top: 4px; }
  .topbar-inner { padding-block: 8px; }
  .icon-btn { width: 38px; height: 38px; border-radius: 11px; }
  .logo { width: 30px; height: 30px; border-radius: 9px; }
  .brand { font-size: .95rem; gap: 8px; }
  .menu { top: calc(env(safe-area-inset-top) + 54px); }
  .panel { padding: 20px var(--pad); border-radius: 16px; }
  .hero { margin: 14px 0 16px; }
  .hero p { font-size: .95rem; }
  .keys { display: none; }
  .modes { gap: 10px; }
  .mode { padding: 14px 16px; }
  .mode-icon { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 12px; }

  /* The quiz card uses the full screen width. */
  .quiz-head { margin-top: 8px; font-size: .85rem; }
  .progress { height: 8px; }
  .stage {
    margin: 12px calc(-1 * var(--gutter)) 0; border-inline: 0; border-radius: 18px 18px 0 0;
    padding: 18px var(--pad) 0; min-height: calc(100dvh - 150px); box-shadow: none;
  }
  .info { padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; line-height: 1.6; border-radius: 14px; }
  .prompt { font-size: 1.07rem; }
  .answers { gap: 8px; margin-top: 16px; }
  .answer { padding: 12px 14px; min-height: 52px; gap: 12px; border-radius: 13px; }
  .answer .key { width: 28px; height: 28px; }
  #feedback { scroll-margin-bottom: 96px; }
  /* Check / Next stay in reach of the thumb. */
  .qa .actions {
    position: sticky; bottom: 0; z-index: 5;
    margin: 16px calc(-1 * var(--pad)) 0;
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .actions button, .actions .button { flex: 1; }
  #results .actions { flex-direction: column; align-items: stretch; }
  .ring { width: 108px; height: 108px; }
  .ring span { width: 82px; height: 82px; font-size: 1.4rem; }
  .score-wrap { justify-content: center; text-align: center; }
}
