:root {
  color-scheme: light;
  --paper: #f5f0e2;
  --ink: #171d2d;
  --blue: #2346b7;
  --lime: #e2ff51;
  --line: #c9c3b1;
  font: 16px/1.53 Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #134ccf; outline-offset: 3px; }
.shell { max-width: 1672px; margin-inline: auto; padding-inline: max(clamp(12px, 3.2vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right)); }
.masthead { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.masthead h1, .masthead .home { display: flex; align-items: center; gap: 11px; margin: 0; font-size: clamp(29px, 3.25vw, 52px); font-weight: 900; line-height: .96; letter-spacing: -.075em; text-decoration: none; }
.brand-mark { width: clamp(28px, 3.2vw, 42px); flex-shrink: 0; }
.header-link { font-weight: 750; font-size: .94rem; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.frame { margin-bottom: 6px; }
#game {
  --edge: clamp(12px, 2.4vw, 33px);
  --score-size: clamp(24px, 3vw, 43px);
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; height: clamp(390px, calc(100dvh - 106px), 890px);
  min-width: 0; background: var(--blue); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 2px; box-shadow: 0 5px 0 var(--ink);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
#game:focus-visible { outline-color: #3c65e5; }
#game button:focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px #151e34; }
#game .dialog button:focus-visible { outline-color: #1642b3; box-shadow: none; }
#game canvas { display: block; width: 100%; height: 100%; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cover { position: absolute; }
.menu { left: clamp(25px, 6vw, 108px); top: 50%; transform: translateY(-57%); }
.display {
  font-family: "Arial Black", Arial, Helvetica, sans-serif; font-size: clamp(70px, 9.3vw, 155px);
  margin: 0 0 .11em -.035em; font-weight: 1000; line-height: .78; text-transform: uppercase;
  letter-spacing: -.095em; font-style: italic; color: #f9f2d9; text-shadow: .043em .045em 0 #15255b;
}
.display span { display: block; padding-right: .11em; }
.display span:last-child { color: var(--lime); }
.menu p { font-size: clamp(.94rem, 1.44vw, 1.25rem); color: #fff; font-weight: 700; margin: 22px 0 19px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button, .control, .plain, .setting { min-height: 44px; min-width: 44px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 2px; padding: 8px 26px; font-size: 1.03rem; line-height: 1.1; font-weight: 850; min-height: 51px; }
.primary { color: var(--ink); background: var(--lime); box-shadow: 3px 4px 0 var(--ink); }
.primary:hover { background: #f0ff95; }
.outline { border-color: #ebf0ff; color: white; background: #19347d; }
.outline:hover { background: #14295f; }
.dark-outline { color: var(--ink); background: transparent; }
.dark-outline:hover, .plain:hover { background: #e9e1ca; }
.button:active, .control:active { transform: translateY(2px); }
.hud { position: absolute; top: var(--edge); left: var(--edge); right: var(--edge); display: grid; grid-template-columns: 1fr minmax(70px, 230px) 1fr; align-items: start; gap: 13px; pointer-events: none; }
.counter { justify-self: start; min-width: 81px; border: 2px solid var(--ink); padding: 5px 10px 6px; background: #17265b; box-shadow: 3px 3px 0 var(--ink); line-height: 1; }
.counter span { display: block; font-size: .84rem; font-weight: 750; margin-bottom: 3px; }
.counter strong { display: block; font-variant-numeric: tabular-nums; font-size: var(--score-size); letter-spacing: -.07em; }
.run-progress { height: 12px; display: flex; align-items: stretch; margin-top: 16px; border: 2px solid #162557; background: #152b70; box-shadow: 0 0 0 1px #91a8f3; }
.run-progress b { width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left center; }
.control { justify-self: end; padding: 8px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); pointer-events: auto; box-shadow: 3px 3px 0 var(--ink); }
.control:hover { background: var(--lime); }
.control svg { width: 23px; height: 23px; display: block; fill: currentColor; }
.prompt {
  position: absolute; z-index: 1; width: max-content; max-width: calc(100% - 24px); left: var(--edge);
  top: calc(var(--edge) + max(63px, var(--score-size) + .84rem + 24px));
  margin: 0; padding: 5px 11px; pointer-events: none; font-weight: 800;
  background: #f9f0d7; color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
#game[data-motion="full"] .dialog { animation: stamp-in 145ms ease-out both; }
@keyframes stamp-in {
  from { opacity: .48; scale: .975; }
  to { opacity: 1; scale: 1; }
}
.veil { position: absolute; z-index: 2; inset: 0; background: #0e1b4e65; }
.veil[data-state="over"] { background: #0e1b4e38; }
.veil[data-state="won"] { background: #0e1b4e12; }
.dialog {
  position: absolute; z-index: 3; left: 50%; top: 48%; transform: translate(-50%, -50%);
  border: 2px solid var(--ink); padding: clamp(14px, 2.5vw, 32px); width: min(460px, calc(100% - 34px));
  background: #f9f0d7; color: var(--ink); box-shadow: 7px 8px 0 var(--ink);
}
.dialog h2 { margin: 0 0 13px; font-size: clamp(38px, 6vw, 71px); font-weight: 900; font-style: italic; letter-spacing: -.09em; line-height: .9; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 9px; margin: 14px 0 8px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 7px; background: #eee3c5; border: 1px solid #444038; font-weight: 700; text-align: left; font-size: .87rem; line-height: 1.1; }
.setting b { padding: .18em .35em; min-width: 2.35em; background: #fff8e4; border: 1px solid currentColor; text-align: center; }
.setting[aria-pressed="true"] b { background: var(--lime); }
.setting:hover { background: #e0d1a9; }
.plain { border: 0; padding: 4px 9px; background: transparent; text-decoration: underline; text-underline-offset: .25em; font-weight: 750; }
.result { top: 43%; left: 67%; width: min(475px, calc(62% - 34px)); }
.result h2 { font-size: clamp(37px, 4.2vw, 55px); }
.result[data-state="won"] { background: #e6ff73; }
.result[data-state="won"] .primary { background: #192344; color: #fff5d8; box-shadow: 3px 4px 0 #597241; }
.result[data-state="won"] .primary:hover { background: #2a3d6c; }
.result-tag { margin: 0 0 7px; font-weight: 850; }
.result-score { font-size: clamp(30px, 4vw, 44px); margin: 0; font-weight: 900; line-height: 1; letter-spacing: -.059em; }
.result-info { margin: 10px 0 17px; font-weight: 650; }
.languages { display: flex; flex-wrap: wrap; column-gap: 16px; }
.languages a { display: inline-flex; align-items: center; min-height: 44px; }
.languages [aria-current="page"] { font-weight: 800; text-decoration-thickness: .14em; }
.site-links { flex-wrap: wrap; }
.footer small { display: block; font-size: .875rem; font-weight: 400; }
.reading h2, .reading h3 { overflow-wrap: anywhere; }
.reading-columns section { min-width: 0; }
.reading-columns h3:not(:first-child) { margin-top: 1.15em; }
.reading { max-width: 1140px; padding-top: clamp(35px, 7vw, 94px); padding-bottom: 45px; scroll-margin-top: 24px; }
.reading-head { max-width: 720px; margin: 0 0 37px; }
.reading h2, .document h1 { font-size: clamp(35px, 5.2vw, 64px); line-height: .99; letter-spacing: -.066em; margin: 0 0 15px; }
.reading-head p { font-size: clamp(17px, 2.3vw, 22px); }
.reading-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 6vw, 76px); padding: 20px 0 10px; border-top: 2px solid var(--ink); }
.reading h3, .document h2 { font-size: clamp(21px, 3vw, 31px); line-height: 1.12; letter-spacing: -.04em; margin: 9px 0 10px; }
.reading-columns p, .document p { line-height: 1.65; }
.tips { padding-left: 1.55em; }
.tips li { padding: 0 0 10px .36em; }
.tips li::marker { font-weight: 850; color: #29409a; }
.questions { padding-top: 30px; }
.questions details { padding: 0 0 0 3px; border-bottom: 1px solid var(--line); }
.questions details:first-of-type { border-top: 1px solid var(--line); }
.questions summary { min-height: 47px; padding-block: 12px; cursor: pointer; font-weight: 800; }
.questions details p { margin: 0 0 17px 18px; max-width: 68ch; }
.independent { margin-top: 26px; }
.footer { border-top: 2px solid var(--ink); background: #ebe4cf; }
.footer .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; min-height: 65px; padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); font-weight: 750; }
.footer nav { display: flex; gap: 16px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.document { max-width: 810px; padding-top: clamp(33px, 8vw, 100px); padding-bottom: 65px; }
.document h2 { margin-top: 1.2em; }
.document img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); margin: 28px 0; }
@media (max-width: 700px) {
  .masthead { min-height: 58px; }
  .header-link { font-size: .87rem; }
  #game { height: max(360px, calc(100dvh - clamp(91px, 23dvh, 190px))); }
  .menu { top: clamp(25px, 8.5%, 68px); left: clamp(18px, 5.2%, 31px); transform: none; }
  .display { font-size: clamp(61px, 16vw, 105px); }
  .menu p { margin: 15px 0 12px; }
  .button { min-height: 48px; padding-inline: 21px; }
  .counter { min-width: 65px; }
  .result { top: 12px; left: 50%; width: min(475px, calc(100% - 34px)); transform: translateX(-50%); }
  .result h2 { font-size: clamp(29px, 9.2vw, 37px); }
  .reading-columns { grid-template-columns: 1fr; gap: 15px; }
}
@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  .menu { top: 11%; transform: none; }
  .display { font-size: clamp(83px, 12vw, 125px); }
  .result { top: 14px; left: 50%; width: min(475px, calc(100% - 34px)); transform: translateX(-50%); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .masthead { min-height: 50px; }
  .masthead h1, .masthead .home { font-size: 31px; }
  #game { height: max(230px, calc(100dvh - 66px)); }
  .menu { top: 50%; left: 6%; transform: translateY(-53%); }
  .display { font-size: clamp(41px, min(9vw, 16dvh), 86px); }
  .menu p { margin: 11px 0 10px; }
  .prompt { left: auto; right: var(--edge); top: calc(var(--edge) + 52px); }
  .dialog { padding: 11px 15px; top: 50%; }
  .dialog h2 { font-size: 38px; margin-bottom: 6px; }
  .result { top: 45%; left: 73%; width: min(475px, calc(51% - 17px)); transform: translate(-50%, -50%); }
  .options { margin-block: 7px 2px; }
  .dialog .button { min-height: 44px; }
  .result-info { margin: 6px 0 9px; }
}
@media (max-width: 360px) {
  .masthead h1, .masthead .home { font-size: 29px; }
  .options { column-gap: 4px; }
}
@media (max-width: 700px) {
  .masthead h1 { min-width: 0; }
  html:not([lang="en"]) .masthead h1 { font-size: clamp(20px, 6.4vw, 29px); }
  .brand-subtitle { display: block; }
  .header-link { flex: 0 0 auto; }
  .menu { right: 15px; }
  html:not([lang="en"]) .display { font-size: clamp(42px, 12.5vw, 105px); }
  html:not([lang="en"]) #game .button { padding-inline: 14px; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setting { overflow-wrap: anywhere; padding-inline: 5px; }
  .setting b { flex-shrink: 0; min-width: 2em; padding-inline: .24em; }
  .dialog h2, .dialog .button { overflow-wrap: anywhere; }
}
@media (max-width: 375px) and (orientation: portrait) {
  .result { top: 16px; padding: 11px 14px; }
  .result-info { margin: 8px 0 11px; }
}
@media (max-aspect-ratio: 1/1) {
  .result[data-state="won"] { top: 8px; padding: 10px 13px; }
  .result[data-state="won"]:is([data-band="2"], [data-band="3"]) { top: auto; bottom: 13px; }
  .result[data-state="won"] h2 { font-size: clamp(26px, 7.5vw, 36px); margin-bottom: 4px; }
  .result[data-state="won"] .result-tag { margin-bottom: 4px; font-size: .83rem; }
  .result[data-state="won"] .result-score { font-size: clamp(24px, 6.7vw, 32px); }
  .result[data-state="won"] .result-info { margin: 4px 0 5px; font-size: .86rem; }
  .result[data-state="won"] .button { min-height: 44px; }
}
