:root {
  --paper: #f7f6f0;
  --white: #fffefa;
  --ink: #233b32;
  --muted: #5f6b62;
  --line: #dedfd3;
  --orange: #c54724;
  --orange-light: #fff0dc;
  --green: #227453;
  --sans: "Helvetica Neue", Arial, "PingFang HK", "Noto Sans CJK TC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.3; margin-bottom: 0; }
h2 { font-size: 22px; line-height: 1.4; }
.site-shell { max-width: 1240px; padding: 0 32px 40px; margin: auto; }
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; background: var(--orange); color: var(--white); width: 44px; height: 44px; font-size: 28px; font-weight: 700; border-radius: 10px 10px 10px 2px; }
.brand-mark > span { position: absolute; right: -5px; top: -7px; background: var(--paper); color: var(--orange); font-size: 22px; width: 20px; height: 22px; line-height: 22px; }
.brand-type { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.nav { display: flex; gap: 28px; }
.nav-link { border: 0; background: none; padding: 16px 0; color: var(--muted); font-size: 16px; text-decoration: none; }
.nav-link.active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px var(--orange); }
.demo-badge, .pill { font-size: 14px; border: 1px solid var(--line); border-radius: 24px; padding: 4px 12px; white-space: nowrap; }
.demo-badge { display: flex; align-items: center; gap: 8px; }
.demo-badge > span, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero { max-width: 1000px; margin-inline: auto; padding: 32px 0 24px; }
.orange { color: var(--orange); }
.arena-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1000px; margin-inline: auto; gap: 20px; align-items: start; }
#arena-view:not(.has-race) .hero { max-width: 640px; margin-inline: auto; }
#arena-view:not(.has-race) .arena-grid { max-width: 640px; }
.round-summary { padding: 18px 24px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; background: var(--white); }
.round-details { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px 24px; margin: 0; }
.round-details > div { min-width: 0; }
.round-details dt { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.round-details dd { margin: 0; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.round-article dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.round-length { color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.round-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.race-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card-topline { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.race-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.status-dot.live { background: var(--orange); }
.subtle-label { color: var(--muted); font-size: 14px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 12px; }
.metric { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-label, .metric-unit { font-size: 14px; color: var(--muted); }
.metric strong { font-size: 40px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
#time { font-size: 36px; line-height: 1.5556; }
.race-overview { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; }
.component-stats { min-width: 0; padding: 18px 24px; border-left: 1px solid var(--line); }
.component-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.component-heading h2 { margin: 0; font-size: 16px; }
.component-heading > span { color: var(--muted); font-size: 14px; }
.component-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; }
.component-row + .component-row { margin-top: 8px; }
.component-label { padding-top: 4px; font-size: 14px; color: var(--muted); }
.component-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.component-cell { display: flex; flex-direction: column; align-items: center; width: 44px; padding: 3px 2px; border: 1px solid var(--line); border-radius: 4px; background: #f2f2eb; color: var(--muted); font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.component-sound { font-weight: 600; }
.component-rate { font-size: 14px; }
.component-cell.correct { background: #e6f2e9; border-color: #bfd7c5; color: #1e6547; }
.component-cell.incorrect { background: #fbe9e4; border-color: #e5b9ac; color: #9a3321; }
.component-cell.mixed { background: #fff0dc; border-color: #e5c99f; color: #805116; }
@media (min-width: 901px) {
  .race-overview .metrics { grid-template-columns: 1fr; gap: 14px; padding: 20px 24px; }
  .race-overview .metric { display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 0; }
  .race-overview .metric + .metric { border: 0; }
  .race-overview .metric strong { grid-column: 2; grid-row: 1 / span 2; font-size: 32px; line-height: 1.3; }
  .race-overview .metric-unit { grid-column: 1; }
  .race-overview #time { font-size: 28px; }
}
.time-track { height: 3px; background: #edeee5; }
.time-track > div { height: 100%; width: 0; background: var(--green); transition: width .15s linear; }
.typing-area { position: relative; padding: 24px; }
.passage-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
#sentence-label { font-weight: 600; }
.hint-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 16px; white-space: nowrap; }
.hint-toggle::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.hint-toggle[aria-pressed="true"] { color: var(--green); border-color: #bfd7c5; background: #e6f2e9; }
.hint-toggle[aria-pressed="true"]::before { background: currentColor; }
.hint-toggle:hover:not(:disabled) { border-color: var(--green); }
.hint-toggle:disabled { opacity: .5; }
.typing-surface { position: relative; margin: 24px 0 28px; }
.typing-surface:focus-visible { outline: 2px solid var(--green); outline-offset: 8px; border-radius: 4px; }
body.running .typing-surface { cursor: text; }
.passage { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 6px; margin: 0; padding: 0 0 10px; font-size: 36px; line-height: 1.3; font-weight: 600; }
.glyph { position: relative; display: inline-flex; flex-direction: column; align-items: center; width: max-content; min-width: 64px; max-width: 100%; color: #89938b; }
.glyph-hanzi { position: relative; display: inline-block; }
.glyph-ruby { display: inline-flex; flex-direction: column-reverse; align-items: center; max-width: 100%; }
.glyph-reading { display: block; min-height: 28px; max-width: 100%; text-align: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 17px; font-weight: 500; line-height: 28px; overflow-wrap: anywhere; }
.reading-hint { color: #737c73; }
.reading-typed { color: #202722; }
.reading-correct, .reading-wrong { margin-inline: 1px; padding: 2px 3px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.reading-correct { color: #20643f; background: #d7ebdc; }
.reading-wrong { color: #a12e2e; background: #f4dada; text-decoration: line-through; text-decoration-thickness: 2px; }
.glyph.current { color: var(--orange); }
.glyph.current .glyph-hanzi::after { content: ""; position: absolute; bottom: -7px; left: 0; width: 100%; height: 4px; border-radius: 2px; background: var(--orange); }
body.running .typing-surface:not(.focused) .glyph.current .glyph-hanzi::after { background: #adb5aa; }
.glyph.correct { color: var(--green); }
.glyph.incorrect { color: #ad3323; }
.glyph.incorrect .glyph-hanzi { text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.punctuation { color: #89938b; }
.glyph.punctuated { min-width: 90px; padding-right: 26px; }
.glyph > .punctuation { position: absolute; right: 0; bottom: 0; }
.typing-capture { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; }
.focus-hint { display: none; position: absolute; top: 100%; margin-top: 0; color: var(--muted); font-size: 14px; font-weight: 400; }
body.running .typing-surface:not(.focused) .focus-hint { display: block; }
.up-next { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.up-next > span { white-space: nowrap; }
.up-next p { margin: 0; }
.up-next ruby { vertical-align: bottom; }
.up-next .glyph-reading { min-height: 21px; font-size: 14px; line-height: 1.5; }
.up-next .show-hints { font-size: 16px; line-height: 2.6; }
.typing-form { margin: 0; }
.input-bottom { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.input-bottom p { margin: 0; font-size: 14px; color: var(--muted); }
.input-bottom p:empty { display: none; }
.key-hint { font-size: 14px; color: var(--muted); }
kbd { font: inherit; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; background: #fafaf5; }
.card-foot { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); padding: 12px 24px; color: var(--muted); font-size: 14px; }
.hint-used { margin-right: auto; color: #805116; }
.setup-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #eef0e6; }
.setup-heading h2 { margin-bottom: 20px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.nickname-input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd3c3; border-radius: 6px; background: var(--white); color: var(--ink); font-size: 16px; }
.nickname-input::placeholder { color: var(--muted); }
.group-heading { margin-top: 20px; }
.group-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.group-option { position: relative; display: flex; gap: 8px; align-items: flex-start; text-align: left; min-height: 100px; padding: 12px 10px; border: 1px solid #cbd3c3; border-radius: 7px; background: transparent; }
.group-option svg { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.group-option > span { font-size: 16px; font-weight: 600; }
.group-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.group-option.selected { background: var(--white); border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.choice-dot { position: absolute; bottom: 10px; right: 10px; width: 10px; height: 10px; border: 1px solid #a8b59f; border-radius: 50%; }
.selected .choice-dot { background: var(--green); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--green); }
.article-info { margin-top: 20px; }
.article-info strong { display: block; font-size: 18px; font-weight: 600; }
.article-info p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.start-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 24px; padding: 13px 16px; border: 1px solid var(--orange); border-radius: 7px; background: var(--orange); color: #fff; font-size: 18px; font-weight: 600; }
.start-button:hover:not(:disabled) { background: #ac3a1c; }
.start-button > span { font-size: 24px; line-height: 1; }
.start-button:disabled { background: var(--ink); border-color: var(--ink); }
.start-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.start-note:empty { display: none; }
.text-button { border: 0; padding: 0; background: transparent; font-size: 16px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.text-button > span { margin-left: 8px; }
.cancel-button { color: var(--muted); text-decoration: underline; }
.demo-note { display: flex; gap: 8px; margin-top: 20px; color: var(--muted); }
.demo-note p { margin: 0; font-size: 14px; }
.countdown-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #fffefaf7; }
.countdown-overlay > span { font-size: 18px; }
.countdown-overlay strong { font-size: 88px; line-height: 1.4; color: var(--orange); }
.result { display: flex; gap: 16px; padding: 20px; margin-top: 20px; border: 1px solid #cfddc8; border-radius: 9px; background: #eaf1e5; }
.result-icon { font-size: 32px; color: var(--green); }
.result h2 { margin: 0 0 8px; font-size: 22px; }
.result p { margin-bottom: 12px; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.result .text-button { color: var(--green); }
.secondary-view { padding-top: 32px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { font-size: 32px; }
.outline-button { border: 1px solid var(--ink); border-radius: 7px; padding: 10px 16px; background: transparent; font-size: 16px; white-space: nowrap; }
.outline-button:hover { background: #e9eddf; }
.board-filters { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: #e5e8dc; }
.segmented button { flex: 1; padding: 10px 20px; border: 0; border-radius: 5px; background: transparent; font-size: 16px; white-space: nowrap; }
.segmented button.selected { background: var(--white); }
.board-article { font-size: 14px; color: var(--muted); }
.board-card { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.board-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px; }
.board-heading h2 { margin-bottom: 6px; }
.board-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.pill { background: #f2f4ea; }
.score-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.score-table th { padding: 12px 24px; background: #f1f3e9; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.score-table td { padding: 18px 24px; border-top: 1px solid #e9ecdf; font-variant-numeric: tabular-nums; }
.score-table td:first-child { width: 70px; color: var(--muted); }
.score-table td:nth-last-child(-n+2), .score-table th:nth-last-child(-n+2) { text-align: right; }
.score-table td strong { font-size: 24px; font-weight: 600; }
.score-table tr.best td { background: #fff6e9; }
.score-table tr.best td:first-child { color: var(--orange); font-weight: 700; }
.score-name { font-weight: 600; overflow-wrap: anywhere; }
.score-name > small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
#hinted-board .score-table td:first-child { width: auto; color: var(--ink); }
.empty-state { padding: 32px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.empty-state > span { display: none; }
.empty-state p { margin: 8px 0 0; font-size: 16px; }
.storage-note { margin: 12px 24px; color: #ad3323; font-size: 14px; }
.storage-note:empty { display: none; }
.clear-scores { margin: 16px 24px 20px; color: var(--muted); font-size: 14px; text-decoration: underline; }
.board-rule { margin: 24px 0 0; font-size: 16px; color: var(--muted); }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rule-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.rule-card h2 { margin: 0 0 12px; }
.rule-card p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.rule-card p:last-child { margin-bottom: 0; }
.rule-card code { font: inherit; padding: 2px 5px; border-radius: 4px; color: var(--orange); background: var(--orange-light); }
.rule-highlight { background: #edf0e4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 10px 20px; border-radius: 5px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
@media (max-width: 1000px) and (min-width: 901px) {
  .site-shell { padding-left: 24px; padding-right: 24px; }
  .setup-card { padding: 20px; }
  .metric strong { font-size: 34px; }
  #time { font-size: 28px; line-height: 1.7; }
}
@media (max-width: 900px) {
  .race-card { display: grid; grid-template-columns: minmax(0, 1fr); }
  .race-overview { display: contents; }
  .component-stats { grid-row: 5; border-left: 0; border-top: 1px solid var(--line); }
  body.running .hero { display: none; }
  body.running .arena-grid { margin-top: 24px; }
}
@media (max-width: 600px) {
  .site-shell { padding: 0 16px 24px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-top: 20px; }
  .brand-mark { width: 40px; height: 40px; font-size: 26px; }
  .brand-type { font-size: 20px; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 0; }
  .nav-link { flex: 1; padding: 12px 8px; }
  .demo-badge { font-size: 14px; padding: 4px 10px; }
  .hero { padding: 24px 0 20px; }
  h1, .page-heading h1 { font-size: 28px; }
  .round-summary { padding: 16px 18px; }
  .round-details { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .round-details dd { font-size: 18px; }
  .round-article { grid-column: 1 / -1; }
  .setup-card { padding: 20px; }
  .setup-card fieldset { display: block; }
  .group-heading { margin-top: 20px; }
  .group-option { min-height: 86px; padding: 12px; }
  .group-option svg { width: 20px; height: 20px; margin-top: 3px; }
  .card-topline { padding: 16px 18px; }
  .metrics { padding: 20px 6px; }
  .metric { padding: 0 4px; }
  .metric strong { font-size: 30px; }
  #time { font-size: 26px; line-height: 1.6154; }
  .metric-label, .metric-unit { font-size: 14px; }
  .typing-area { padding: 20px 18px; }
  .component-stats { padding: 20px 18px; }
  .passage { font-size: 32px; gap: 22px 4px; }
  .glyph { min-width: 60px; }
  .glyph.punctuated { min-width: 86px; }
  .up-next { gap: 10px; }
  .card-foot { padding: 12px 18px; }
  .secondary-view { padding-top: 24px; }
  .page-heading { gap: 16px; margin-bottom: 24px; }
  .outline-button { padding: 8px 12px; }
  .board-filters { gap: 12px; }
  .board-heading { padding: 20px 16px; flex-wrap: wrap; gap: 10px; }
  .board-heading h2 { font-size: 20px; }
  .score-table th { padding: 12px 8px; white-space: nowrap; }
  .score-table td { padding: 16px 8px; }
  .score-table td:first-child { width: 44px; }
  .score-table td strong { font-size: 22px; }
  .score-name > small { font-size: 14px; }
  .rules-grid { grid-template-columns: 1fr; gap: 20px; }
  .rule-card { padding: 24px; }
  .result { padding: 16px; gap: 12px; }
  .result-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; scroll-behavior: auto !important; }
}

/* 設定卡玩法選項卡：兩張全寬卡揀官方三輪或自由練習，揀「自由練習」先展開入口面板。 */
.path-options { display: grid; gap: 10px; }
.path-option { display: block; width: 100%; min-height: 64px; padding: 10px 14px; border: 1px solid #cbd3c3; border-radius: 7px; background: transparent; text-align: left; }
.path-option.selected { background: var(--white); border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.path-option-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 600; }
.path-option-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 400; }
.path-badge { padding: 2px 10px; border: 1px solid #f0cfae; border-radius: 24px; background: var(--orange-light); color: var(--orange); font-size: 13px; font-weight: 600; white-space: nowrap; }
/* 兩個玩法說明都係一句，預留一行高度免得切換選項卡時設定卡跳動。 */
.flow-note { margin: 12px 0 0; min-height: 1.6em; color: var(--muted); font-size: 14px; }
.practice-panel { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #cbd3c3; }
.practice-panel-lead { margin: 0; font-size: 14px; }
.practice-panel-label { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
/* 自由練習面板：單篇留喺本頁，其餘 chip 連去遊戲大廳各模式。 */
.practice-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.practice-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; border: 1px solid #cbd3c3; border-radius: 24px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.practice-chip:hover { border-color: var(--green); color: var(--green); }
.practice-lobby-link { display: inline-block; margin-top: 12px; color: var(--green); font-size: 14px; }
@media (max-width: 600px) {
  .practice-links { display: grid; grid-template-columns: 1fr 1fr; }
}

/* 完場區：輸入提示同完場卡疊喺同一格，預留高度令完場時卡片高度唔跳。 */
.result-slot { display: grid; min-height: 152px; }
.result-slot > * { grid-area: 1 / 1; }
.result-slot .result { margin-top: 0; }
.round-actions { min-height: 46px; }
/* 「下一句」預覽喺粵拼提示開／關時高度唔同，預留高度免得切換時推低輸入區。 */
.up-next { min-height: 48px; }

/* 高頻更新嘅數字容器用等寬數字，內容改變時闊度唔變。 */
.card-foot { font-variant-numeric: tabular-nums; }
.countdown-overlay strong { font-variant-numeric: tabular-nums; }

/* 排行榜正式分欄：排名表右對齊，未達篇章門檻標灰兼加註。 */
.score-table.ranked th:nth-last-child(-n+3), .score-table.ranked td:nth-last-child(-n+3) { text-align: right; }
.score-official strong { font-size: 24px; font-weight: 600; }
.score-official small { display: block; margin-top: 4px; color: #ad3323; font-size: 14px; font-weight: 400; }
.score-official.below-threshold strong { color: var(--muted); }
/* 內文用嘅連結式撳掣（例如排行榜規則指向玩法頁）。 */
.inline-link { border: 0; padding: 0; background: none; color: var(--green); font: inherit; text-decoration: underline; }
