:root {
  color-scheme: light;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #17294c;
  background: #faf9f5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --muted: #5d686b;
  --lime: #afca0b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #537c74; outline-offset: 5px; }
.page { max-width: 980px; margin: auto; padding: 12px 40px 18px; }
.header { display: flex; justify-content: center; align-items: center; margin-bottom: 14px; }
.brand { display: inline-flex; align-items: center; flex: 0 1 232px; min-width: 0; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 232px; max-width: 100%; height: auto; }
.intro { position: relative; text-align: center; }
.intro-decoration { position: absolute; height: auto; pointer-events: none; user-select: none; }
.intro-decoration--left { width: 90px; left: 0; bottom: 14px; transform: rotate(-18deg); transform-origin: 36% 88%; }
.intro-decoration--right { width: 74px; right: 2px; bottom: 15px; transform: scaleX(-1) rotate(-13deg); transform-origin: 55% 88%; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: #53766c; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: .03em; line-height: 1.4; margin: 0 0 15px; }
.practice { border: 2px solid #7b9180; border-radius: 24px; background: #fffef9; overflow: hidden; box-shadow: 0 6px 0 #ccd6bf; }
.sound-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 24px; border-bottom: 2px solid #a6b59b; background: #eef2e2; }
.sound-title { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.sound-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.sound-toggle { border: 1px solid #9dac99; background: #fafbf4; border-radius: 100px; min-height: 44px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sound-toggle[data-state="on"] { background: var(--lime); border-color: var(--lime); color: #121d54; }
.speaker { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound-on { display: none; }
[data-state="on"] .sound-on { display: block; }
[data-state="on"] .sound-off { display: none; }
.toggle-track { width: 28px; height: 17px; background: #87978c; border-radius: 20px; padding: 3px; display: block; }
.toggle-track span { display: block; width: 11px; height: 11px; border-radius: 50%; background: white; transition: transform .16s ease; }
[aria-pressed="true"] .toggle-track { background: #17294c; }
[aria-pressed="true"] .toggle-track span { transform: translateX(11px); }
.typing-area { padding: 35px 40px 30px; text-align: center; }
.practice-label { color: #53766c; font-size: 12px; letter-spacing: .07em; }
h2 { margin: 13px 0 17px; font-size: clamp(22px, 3vw, 28px); line-height: 1.7; }
.roman { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 500; font-size: clamp(19px, 3vw, 28px); line-height: 1.6; letter-spacing: .05em; margin-bottom: 27px; }
.roman .done { color: #6b8883; }
.roman .current { background: #e6efb4; box-shadow: 0 2px 0 #8aa63c; border-radius: 3px; }
label[for="typing-field"] { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
input { display: block; width: 100%; height: 63px; border: 1.5px solid #d0dcd4; border-radius: 14px; background: #fbfcf8; color: #17294c; text-align: center; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 21px; padding: 10px 16px; transition: border-color .15s; }
input::placeholder { color: #8e9b97; }
input:focus { outline: 3px solid #e3eed1; border-color: #618578; }
.typing-bottom { text-align: center; margin-top: 14px; }
.typing-bottom p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.7; }
.companion { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 24px; background: #f2f6ed; }
.companion-mascot { position: relative; flex: 0 0 90px; width: 90px; height: 90px; }
.companion-idle { width: 100%; height: 100%; transform-origin: 50% 87%; }
.companion-image { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 87%; }
.companion-shadow { position: absolute; width: 33px; height: 5px; bottom: 7px; left: calc(50% - 16.5px); border-radius: 50%; background: #dde6d1; }
.companion-copy { flex: 0 1 280px; min-width: 0; }
.celebration { position: absolute; width: 0; height: 0; top: 45%; left: 54%; pointer-events: none; }
.party-particle { position: absolute; display: block; width: 5px; height: 9px; border-radius: 70% 30% 65% 35%; background: currentColor; pointer-events: none; }
.party-particle--star { width: 13px; height: 13px; background: none; border-radius: 0; font-size: 13px; line-height: 1; }
.companion-title { font-size: 12px; font-weight: 700; line-height: 1.8; }
.companion p { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.7; }
.status { min-height: 20px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; margin: 16px 10px 0; }
footer { text-align: center; font-size: 12px; color: #626e6b; padding: 24px 0 0; }
.motion-toggle { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 8px 13px; background: #f3f5ed; border: 1px solid #dce3d4; border-radius: 22px; font-size: 12px; }
.motion-toggle[hidden] { display: none; }
.motion-pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .motion-pause-icon { display: block; }
.motion-toggle[aria-pressed="true"] .motion-play-icon { display: none; }

.game-panel { padding: 30px 34px; text-align: center; }
.page[data-phase="setup"] .companion { display: none; }
.setup-panel { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); padding: 0; }
.menu-preview { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 26px 25px; background: #f1f5e8; border-right: 2px solid #d5dfca; }
.menu-greeting { position: relative; margin: 0 0 2px; padding: 10px 15px; border: 1px solid #acbea0; border-radius: 16px; background: #fffef9; font-size: 13px; font-weight: 700; }
.menu-greeting::after { content: ''; position: absolute; bottom: -5px; left: calc(50% - 5px); width: 8px; height: 8px; border-right: 1px solid #acbea0; border-bottom: 1px solid #acbea0; background: #fffef9; transform: rotate(45deg); }
.menu-scene { position: relative; width: min(100%, 236px); height: 184px; flex-shrink: 0; }
.scene-ground { position: absolute; width: 90%; height: 27px; border-radius: 50%; background: #dbe5c7; bottom: 16px; left: 5%; }
.menu-mascot { position: absolute; width: 166px; height: 166px; left: calc(50% - 83px); bottom: 9px; transform-origin: 50% 87%; }
.menu-mascot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.menu-example { width: 100%; min-width: 0; padding-top: 10px; }
.menu-example-label { display: block; color: #596d5d; font-size: 12px; }
.menu-example strong { display: block; margin: 10px 0 6px; font-size: 23px; line-height: 1.5; overflow-wrap: anywhere; }
.menu-example-keys { display: block; color: #596d5d; font: 13px/1.7 ui-monospace, 'SFMono-Regular', Consolas, monospace; overflow-wrap: anywhere; }
.menu-controls { min-width: 0; padding: 24px 30px 22px; }
.setup-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.level-options { display: grid; gap: 3px; }
.level-option, .time-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.option-card { position: relative; display: grid; align-items: center; border: 2px solid transparent; border-radius: 16px; color: #17294c; height: 100%; }
.level-option .option-card { grid-template-columns: 12px 25px minmax(0, 1fr) 38px; column-gap: 10px; padding: 6px 11px; min-height: 51px; text-align: left; }
.level-option .option-card::before { content: ''; grid-column: 1; grid-row: 1 / 3; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #365947; opacity: 0; }
.option-card strong { font-size: 16px; font-weight: 700; line-height: 1.4; }
.option-card small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.level-option .option-card strong { grid-column: 3; grid-row: 1; }
.level-option .option-card small { grid-column: 3; grid-row: 2; }
.level-number { grid-column: 2; grid-row: 1 / 3; color: #677d64; font: 700 15px/1 ui-monospace, 'SFMono-Regular', Consolas, monospace; text-align: center; }
.level-meter { grid-column: 4; grid-row: 1 / 3; display: flex; align-items: flex-end; gap: 3px; }
.level-meter i { display: block; width: 6px; height: 7px; background: #dce4d4; border-radius: 2px; }
.level-meter i:nth-child(2) { height: 11px; }
.level-meter i:nth-child(3) { height: 15px; }
.level-meter i:nth-child(4) { height: 19px; }
.level-meter i.is-filled { background: #63806a; }
.level-option input:checked + .option-card,
.time-option input:checked + .option-card { background: #edf1c9; border-color: #70825d; }
.level-option input:checked + .option-card::before { opacity: 1; }
.level-option input:focus-visible + .option-card,
.time-option input:focus-visible + .option-card { outline: 3px solid #537c74; outline-offset: 3px; }
.setup-panel .time-picker { margin: 17px 0 18px; padding-top: 15px; border-top: 1px solid #dbe2d2; }
.duration-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.duration-label { font-size: 12px; font-weight: 700; }
.time-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-option .option-card { grid-template-columns: auto auto; justify-content: center; gap: 5px; min-height: 46px; padding: 7px 9px; border-color: #cbd6bd; background: #f5f7ee; }
.time-option strong { font-size: 18px; }
.time-option small { font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; width: min(100%, 300px); min-height: 54px; padding: 12px 20px; border: 2px solid #788734; border-radius: 16px; background: #afca0b; color: #121d54; box-shadow: 0 4px 0 #788734; font-size: 17px; font-weight: 800; }
.primary-button span { font-size: 21px; }
#start-button { width: 100%; }
.primary-button .start-icon { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
.primary-button kbd { margin-left: auto; border: 1px solid #879928; border-radius: 4px; padding: 3px 5px; font-family: inherit; font-size: 12px; line-height: 1.2; }
#start-button .start-icon { margin-right: auto; }
.primary-button:active { box-shadow: inset 0 3px 0 #91a51d; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 14px; border: 1px solid #d3dfcf; border-radius: 22px; background: #f8faf3; font-size: 12px; }
.text-button { display: block; min-height: 44px; margin: 8px auto 0; padding: 10px 14px; border: 0; background: none; color: #526b5b; font-size: 12px; }
.panel-hint { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 13px 0 0; }
.countdown-panel { padding-block: 34px 22px; }
.selection-confirmation { display: inline-block; margin: 0 0 7px; padding: 7px 13px; border-radius: 20px; background: #f0f4e9; font-size: 12px; color: #526b5b; }
.countdown-panel h2 { font-size: 23px; margin: 10px 0 19px; }
.countdown-number { display: grid; place-items: center; width: 168px; height: 168px; margin: 0 auto 21px; border-radius: 50%; background: #eff5df; color: #567866; font: 700 100px/1 ui-rounded, 'Hiragino Maru Gothic ProN', sans-serif; font-variant-numeric: tabular-nums; }
.play-panel { padding: 20px 0 0; }
.round-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 35px 14px; }
.round-actions { display: flex; align-items: center; gap: 8px; }
.time-remaining { display: flex; align-items: baseline; gap: 10px; }
.time-remaining span { font-size: 12px; color: var(--muted); }
.time-remaining strong { font-size: 31px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.time-remaining[data-urgent="true"] strong { color: #89611c; }
.live-score { display: flex; align-items: baseline; gap: 7px; }
.live-score strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.live-score span { font-size: 12px; color: var(--muted); }
.typing-stats { display: flex; justify-content: center; gap: 28px; margin: 0; padding: 0 18px 12px; }
.typing-stats > div, .typing-stats dd { display: flex; align-items: baseline; gap: 6px; }
.typing-stats dt { font-size: 12px; color: var(--muted); }
.typing-stats dd { margin: 0; }
.typing-stats strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.typing-stats dd span { font-size: 12px; color: var(--muted); }
.time-track { height: 4px; margin: 0 34px; background: #eef1e7; overflow: hidden; border-radius: 3px; }
.time-track span { display: block; height: 100%; background: #afca0b; transform-origin: left center; }
.start-sign { height: 26px; line-height: 26px; margin-top: 12px; color: #5d7b3d; font-size: 13px; font-weight: 700; }
.play-panel .typing-area { padding: 4px 40px 23px; }
.question { min-height: 174px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.question h2 { max-width: 100%; font-size: clamp(20px, 3vw, 27px); line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.prompt-reading { min-height: 20px; margin: 5px 0 13px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.question .roman { max-width: 100%; min-height: 54px; margin: 0 0 15px; font-size: clamp(18px, 2.8vw, 24px); line-height: 1.65; letter-spacing: .01em; overflow-wrap: anywhere; white-space: pre-wrap; }
.pause-panel, .result-panel { padding-block: 34px 22px; }
.pause-panel h2, .result-panel h2 { font-size: 29px; margin: 12px 0 8px; }
.pause-message, .result-selection, .result-message { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 10px 0 19px; }
.paused-time { font-size: 12px; color: var(--muted); margin: 20px 0 28px; }
.paused-time strong { font-size: 33px; color: #17294c; margin-left: 10px; font-variant-numeric: tabular-nums; }
.pause-panel .restart-button { display: flex; width: min(100%, 300px); margin: 12px auto 0; }
.result-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: 460px; margin: 22px auto; }
.result-stats > div { background: #f4f7ec; border-radius: 17px; padding: 20px 12px; }
.result-stats dt { font-size: 12px; color: #526b5b; }
.result-stats dd { margin: 13px 0 0; display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.result-stats strong { font-size: 37px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result-stats dd span { font-size: 12px; }
.result-stats #result-accuracy { font-size: 32px; }
.accuracy-help { margin: -9px 0 18px; font-size: 12px; color: var(--muted); }
[data-motion="on"] .primary-button,
[data-motion="on"] .secondary-button,
[data-motion="on"] .option-card { transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
[data-motion="on"] .start-sign:not(:empty) { animation: start-sign 340ms ease-out; }
@keyframes start-sign { from { opacity: 0; transform: translateY(3px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

[data-motion="on"] .page.is-arriving .header { animation: arrive 480ms both; }
[data-motion="on"] .page.is-arriving .intro { animation: arrive 580ms 70ms both; }
[data-motion="on"] .page.is-arriving .practice { animation: arrive 650ms 140ms both; }
[data-motion="on"] .intro-decoration--left { animation: leaf-left 5.8s ease-in-out infinite; }
[data-motion="on"] .intro-decoration--right { animation: leaf-right 6.7s -.9s ease-in-out infinite; }
[data-motion="on"] .companion-idle { animation: dinosaur-idle 4.4s ease-in-out infinite; }
[data-motion="on"] .page[data-phase="setup"] .menu-mascot { animation: dinosaur-idle 4.4s ease-in-out infinite; }
[data-motion="on"] .companion-shadow { animation: dinosaur-shadow 4.4s ease-in-out infinite; }
[data-motion="on"] .brand-logo,
[data-motion="on"] .sound-toggle,
[data-motion="on"] .motion-toggle { transition: background-color 140ms ease, border-color 140ms ease; }
[data-motion="on"] .practice { transition: border-color 180ms ease; }
[data-motion="off"] .toggle-track span { transition: none; }
[data-offscreen="true"].intro-decoration,
[data-offscreen="true"].menu-scene .menu-mascot,
[data-offscreen="true"] .companion-idle,
[data-offscreen="true"] .companion-shadow,
[data-page-hidden="true"] * { animation-play-state: paused !important; }

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover { background: #bdd426; border-color: #526630; }
  .secondary-button:hover,
  .sound-toggle[data-state="off"]:hover,
  .motion-toggle:hover { background: #e7edda; border-color: #7b9180; }
  .sound-toggle[data-state="on"]:hover { background: #bdd426; }
  .level-option:hover input:not(:checked) + .option-card,
  .time-option:hover input:not(:checked) + .option-card { background: #eaf0df; border-color: #b4c3a4; }
}

@keyframes arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes leaf-left {
  0%, 100% { transform: rotate(-18deg) translateY(0); }
  50% { transform: rotate(-13deg) translateY(-2px); }
}
@keyframes leaf-right {
  0%, 100% { transform: scaleX(-1) rotate(-13deg) translateY(0); }
  50% { transform: scaleX(-1) rotate(-18deg) translateY(-3px); }
}
@keyframes dinosaur-idle {
  0%, 100% { transform: translateY(0) rotate(-1.1deg); }
  50% { transform: translateY(-2.5px) rotate(1.1deg); }
}
@keyframes dinosaur-shadow {
  0%, 100% { transform: scaleX(1); opacity: .85; }
  50% { transform: scaleX(.85); opacity: .6; }
}

@media (max-width: 820px) {
  .page { padding-inline: 22px; }
  .menu-controls { padding-inline: 22px; }
  .menu-preview { padding-inline: 18px; }
  .duration-row { gap: 10px; }
}

@media (max-width: 680px) {
  .page { padding: 8px 16px 18px; }
  .header { margin-bottom: 7px; }
  .brand { flex-basis: 218px; }
  .brand-logo { width: 218px; }
  .setup-panel { grid-template-columns: minmax(0, 1fr); }
  .menu-preview { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 15px; min-height: 160px; padding: 10px 21px; border-right: 0; border-bottom: 1px solid #cbd6bd; text-align: left; }
  .menu-greeting { display: none; }
  .menu-scene { width: 86px; height: 88px; }
  .menu-mascot { width: 88px; height: 88px; left: calc(50% - 44px); bottom: 0; }
  .scene-ground { height: 12px; bottom: 6px; }
  .intro-decoration--left { width: 37px; left: -6px; bottom: 5px; }
  .intro-decoration--right { width: 31px; right: -5px; bottom: 6px; }
  .menu-example { padding: 0; }
  .menu-example-label { font-size: 12px; }
  .menu-example strong { font-size: 17px; margin: 4px 0; }
  .menu-example-keys { font-size: 12px; }
  .menu-controls { padding: 20px; }
  h1 { font-size: 22px; margin-bottom: 12px; }
  .eyebrow { font-size: 12px; }
  .practice { border-radius: 20px; }
  .sound-bar { padding: 9px 16px; gap: 8px; }
  .sound-toggle { gap: 6px; padding: 8px 10px; font-size: 12px; }
  .speaker { width: 18px; }
  .sound-title { font-size: 12px; }
  .typing-area { padding: 27px 18px 18px; }
  .roman { letter-spacing: 0; margin-bottom: 22px; }
  input { font-size: 17px; padding: 10px; height: 57px; }
  .typing-bottom p { font-size: 12px; }
  .companion { padding: 10px 18px; gap: 5px; }
  .companion-mascot { flex-basis: 80px; width: 80px; height: 80px; }
  .companion-title { font-size: 12px; }
  .companion p { font-size: 12px; }
  .status { margin-top: 14px; }
  .game-panel { padding: 24px 18px; }
  .setup-panel { padding: 0; }
  .level-option .option-card { column-gap: 8px; }
  .time-option .option-card { padding-inline: 5px; }
  .time-option strong { font-size: 17px; }
  .primary-button { font-size: 16px; min-height: 52px; }
  .play-panel { padding: 15px 0 0; }
  .round-bar { padding: 0 18px 13px; gap: 9px; flex-wrap: wrap; }
  .round-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
  .round-bar .live-score { margin-left: auto; }
  .time-remaining { gap: 7px; }
  .time-remaining strong { font-size: 27px; }
  .time-remaining span { font-size: 12px; }
  .live-score { gap: 4px; }
  .live-score strong { font-size: 17px; }
  .live-score span { font-size: 12px; }
  .pause-button { font-size: 12px; padding: 8px 11px; gap: 5px; }
  .time-track { margin-inline: 18px; }
  .play-panel .typing-area { padding: 4px 18px 17px; }
  .question { min-height: 188px; }
  .question h2 { font-size: 22px; }
  .question .roman { font-size: 18px; min-height: 58px; }
  .prompt-reading { font-size: 12px; }
  .countdown-panel h2 { font-size: 20px; }
  .countdown-number { width: 146px; height: 146px; font-size: 87px; }
  .result-stats { gap: 10px; }
  .result-stats > div { padding: 18px 8px; }
  .result-stats dt { font-size: 12px; }
  .result-stats strong { font-size: 33px; }
  .result-stats #result-accuracy { font-size: 28px; }
}

@media (max-width: 380px) {
  .page { padding-inline: 12px; }
  .menu-controls { padding: 18px 14px; }
  .menu-preview { padding-inline: 14px; gap: 10px; min-height: 180px; }
  .duration-label { font-size: 12px; }
  .duration-row { gap: 8px; }
  .time-option .option-card { gap: 3px; }
  .sound-bar { padding-inline: 12px; }
  .companion-title { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Readable game guidance and a clear reward at the end of a round. */
label[for="typing-field"], .typing-bottom p, .panel-hint { font-size: 14px; }
input::placeholder { color: #5d686b; }
#ime-help { color: #744217; font-weight: 700; margin-bottom: 8px; }
.companion-title, .companion p { font-size: 14px; }
.status, .option-card small, .time-option small, .menu-example-label,
.menu-example-keys, .prompt-reading, .time-remaining span, .live-score span,
.typing-stats dt, .typing-stats dd span, .result-stats dt, .accuracy-help { font-size: 12px; }
.page[data-phase="results"] .companion { display: none; }
.result-growth { margin: 10px auto 0; }
.result-growth img { display: block; width: 200px; height: 200px; max-width: 100%; object-fit: contain; margin: auto; }
.result-growth figcaption { font-size: 18px; font-weight: 700; line-height: 1.6; }
.result-message { color: #365947; font-size: 16px; margin: 6px 0 18px; }
@media (hover: none) {
  .primary-button kbd { display: none; }
  #start-button .start-icon { margin-right: 0; }
}

.game-panel h2[tabindex="-1"]:focus { outline: none; }

footer .tool-policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 16px 0 8px; }
footer .tool-policy-links a { display: inline-flex; align-items: center; min-height: 44px; color: #17345b; font-size: 14px; text-underline-offset: 4px; }
footer .tool-copyright { display: block; font-size: 12px; padding-bottom: 20px; }
