:root {
  --ink: #26304a;
  --muted: #687086;
  --paper: #fffdf8;
  --cream: #f8f4e9;
  --cream-dark: #eee7d7;
  --red: #f05f65;
  --red-dark: #d94850;
  --yellow: #ffd765;
  --green: #75c99c;
  --blue: #6eb8ea;
  --purple: #a88ae4;
  --line: rgba(38, 48, 74, .14);
  --shadow: 0 10px 0 rgba(38, 48, 74, .08), 0 22px 50px rgba(38, 48, 74, .11);
  color: var(--ink);
  background: var(--cream);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--cream); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--cream);
  background-image: linear-gradient(rgba(82, 153, 214, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 153, 214, .09) 1px, transparent 1px);
  background-size: 28px 28px;
}
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
p { text-wrap: pretty; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid rgba(66, 126, 214, .4); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 999; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--ink); font-weight: 900; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.section-shell, .header-inner, .footer-inner { width: min(calc(100% - 40px), 1160px); margin-inline: auto; }

/* Header and shared controls */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(38, 48, 74, .08); background: rgba(248, 244, 233, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 900; letter-spacing: -.5px; text-decoration: none; }
.site-brand img { width: 44px; height: 44px; border-radius: 13px; filter: drop-shadow(0 3px 2px rgba(38,48,74,.13)); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.main-nav a { padding: 10px 13px; border-radius: 12px; color: #4e566d; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { color: var(--red-dark); background: rgba(240, 95, 101, .09); }
.header-cta { padding: 11px 17px; border: 2px solid var(--ink); border-radius: 14px; color: var(--ink); background: var(--yellow); box-shadow: 0 4px 0 var(--ink); font-size: 14px; font-weight: 900; text-decoration: none; white-space: nowrap; transition: transform .16s ease, box-shadow .16s ease; }
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.breadcrumbs { padding-top: 22px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.breadcrumbs a:hover { color: var(--red-dark); }

/* Typography and buttons */
.eyebrow { display: inline-block; margin-bottom: 13px; color: var(--red-dark); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { margin-bottom: 22px; font-size: clamp(42px, 6.4vw, 78px); line-height: .98; letter-spacing: -3.6px; font-weight: 900; }
h2 { margin-bottom: 16px; font-size: clamp(31px, 4vw, 48px); line-height: 1.05; letter-spacing: -1.8px; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.15; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.58; font-weight: 700; }
.lead-small { color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.55; }
.button-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 2px solid var(--ink); border-radius: 15px; font-size: 15px; font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--ink); transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.button--primary { color: var(--ink); background: var(--yellow); }
.button--light { background: var(--paper); }
.button--dark { color: #fff; background: var(--ink); border-color: #11182c; box-shadow: 0 5px 0 #11182c; }
.button--wide { width: 100%; }
.text-link { color: var(--ink); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.button-link { padding: 8px; border: 0; background: transparent; cursor: pointer; }
.section-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-heading p { color: var(--muted); font-size: 17px; line-height: 1.55; }

/* Home */
.hero { min-height: 650px; padding-block: 76px 86px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: 70px; }
.hero-copy h1 span { position: relative; color: var(--red); white-space: nowrap; }
.hero-copy h1 span::after { content: ""; position: absolute; left: 0; right: -4px; bottom: 3px; z-index: -1; height: 8px; border-radius: 100%; background: var(--yellow); transform: rotate(-1deg); }
.hero-points { margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; color: var(--muted); font-size: 13px; font-weight: 800; }
.hero-points li::before { content: "✓"; margin-right: 7px; color: #38936a; font-weight: 900; }
.hero-visual { min-height: 430px; display: grid; place-items: center; position: relative; }
.hero-card { width: min(100%, 390px); aspect-ratio: 1.12; padding: 52px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--ink); border-radius: 45px 36px 49px 35px; background: var(--paper); box-shadow: 14px 15px 0 var(--green), 18px 19px 0 var(--ink); transform: rotate(-3deg); }
.hero-card::before { content: ""; position: absolute; width: 90px; height: 28px; top: 36px; background: rgba(255,215,101,.72); transform: rotate(5deg); }
.hero-card span { font-size: clamp(40px, 6vw, 65px); font-weight: 900; }
.hero-card strong { color: var(--red); font-size: clamp(52px, 8vw, 88px); line-height: 1; }
.hero-card i { margin-top: 25px; color: var(--muted); font-size: 14px; font-style: normal; font-weight: 900; }
.math-note { position: absolute; padding: 11px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); box-shadow: 0 5px 0 var(--ink); font-weight: 900; }
.math-note--one { top: 10px; right: 8px; transform: rotate(8deg); }
.math-note--two { bottom: 5px; left: 0; background: var(--blue); transform: rotate(-7deg); }
.feature-section { padding-block: 80px 105px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.feature-card { min-height: 360px; padding: 29px; position: relative; display: flex; flex-direction: column; border: 3px solid var(--ink); border-radius: 28px 24px 31px 25px; box-shadow: 0 8px 0 var(--ink); }
.feature-card--yellow { background: var(--yellow); transform: rotate(-.6deg); }
.feature-card--green { background: var(--green); transform: translateY(13px) rotate(.5deg); }
.feature-card--blue { background: var(--blue); transform: rotate(-.3deg); }
.feature-number { position: absolute; top: 23px; right: 25px; color: rgba(38,48,74,.34); font-size: 13px; font-weight: 900; }
.feature-icon { width: 72px; height: 72px; margin-bottom: 25px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 22px; background: var(--paper); font-size: 34px; }
.feature-card p { color: rgba(38,48,74,.74); line-height: 1.55; font-weight: 700; }
.feature-card .text-link { margin-top: auto; }
.steps-section { padding-block: 90px; color: #fff; background: var(--ink); }
.steps-section .eyebrow { color: var(--yellow); }
.steps-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 90px; }
.step-list { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.step-list li { padding: 20px 22px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 18px; border: 2px solid rgba(255,255,255,.13); border-radius: 19px; background: rgba(255,255,255,.055); }
.step-list li > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 20px; font-weight: 900; }
.step-list strong { display: block; margin-bottom: 4px; font-size: 18px; }
.step-list p { margin: 0; color: rgba(255,255,255,.66); line-height: 1.45; }
.stats-section { padding-block: 85px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-section div { padding: 25px 10px; border-right: 2px dashed var(--line); }
.stats-section div:last-child { border-right: 0; }
.stats-section strong { display: block; color: var(--red); font-size: clamp(34px, 4vw, 52px); letter-spacing: -2px; }
.stats-section span { color: var(--muted); font-size: 14px; font-weight: 800; }
.cta-section { margin-bottom: 90px; padding: 45px 50px; display: flex; align-items: center; justify-content: space-between; gap: 45px; border: 3px solid var(--ink); border-radius: 30px; background: var(--green); box-shadow: 0 9px 0 var(--ink); }
.cta-section h2 { max-width: 720px; margin-bottom: 8px; font-size: clamp(28px, 3.6vw, 44px); }
.cta-section p { margin-bottom: 0; color: rgba(38,48,74,.72); font-weight: 700; }
.cta-section .eyebrow { margin-bottom: 9px; color: #24684d; }
.cta-section .button { flex: 0 0 auto; }

/* Footer */
.site-footer { color: #fff; background: #20283e; }
.footer-inner { min-height: 190px; padding-block: 45px; display: grid; grid-template-columns: 1fr auto; gap: 28px 70px; align-items: start; }
.footer-brand { font-size: 22px; font-weight: 900; text-decoration: none; }
.footer-inner p { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.5; }
.footer-inner nav { max-width: 720px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px 25px; }
.footer-inner nav a, .footer-inner nav button { padding: 0; border: 0; color: rgba(255,255,255,.76); background: transparent; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.footer-inner nav a:hover, .footer-inner nav button:hover { color: var(--yellow); }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }

/* Privacy and cookie consent */
.cookie-consent { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 1000; opacity: 0; transform: translateY(20px); transition: opacity .22s ease, transform .22s ease; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cookie-consent__content { width: min(100%, 1040px); margin-inline: auto; padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; border: 3px solid var(--ink); border-radius: 22px 19px 24px 20px; background: var(--paper); box-shadow: 0 8px 0 var(--ink), 0 18px 55px rgba(20,27,45,.28); }
.cookie-consent__copy strong { display: block; margin-bottom: 6px; font-size: 19px; }
.cookie-consent__copy p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; font-weight: 700; }
.cookie-consent__copy a { color: var(--red-dark); font-weight: 900; }
.cookie-consent__actions { display: flex; gap: 10px; }
.cookie-consent__actions button { min-height: 44px; padding: 0 15px; border: 2px solid var(--ink); border-radius: 13px; font-size: 12px; font-weight: 900; white-space: nowrap; cursor: pointer; }
.cookie-consent__accept { background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
.cookie-consent__essential { background: #fff; }
.cookie-consent__actions button:hover { transform: translateY(-1px); }

.policy-layout { padding-block: 55px 95px; }
.policy-header { max-width: 900px; margin-inline: auto; text-align: center; }
.policy-header h1 { font-size: clamp(39px, 5.5vw, 68px); }
.policy-header .lead { margin-inline: auto; }
.policy-date { margin-top: 24px; color: var(--muted); font-size: 12px; font-weight: 800; }
.policy-summary { max-width: 970px; margin: 48px auto 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.policy-summary article { padding: 23px; border: 2px solid var(--line); border-radius: 18px; background: var(--paper); }
.policy-summary article > span { display: block; margin-bottom: 12px; font-size: 30px; }
.policy-summary strong { font-size: 17px; }
.policy-summary p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.policy-content { max-width: 820px; margin-inline: auto; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #41485b; }
.policy-content section { scroll-margin-top: 105px; margin-top: 55px; }
.policy-content section:first-child { margin-top: 0; }
.policy-content h2, .policy-content h3 { color: var(--ink); font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif; }
.policy-content h2 { font-size: clamp(27px, 3vw, 37px); }
.policy-content h3 { margin-top: 30px; font-size: 21px; }
.policy-content p, .policy-content li { font-size: 16px; line-height: 1.75; }
.policy-content a { color: #b8323a; font-weight: 750; }
.policy-content code { padding: 2px 6px; border-radius: 6px; background: rgba(110,184,234,.15); color: var(--ink); font-size: .9em; }
.policy-list, .policy-steps { padding-left: 24px; }
.policy-list li, .policy-steps li { margin-bottom: 8px; padding-left: 5px; }
.policy-table { margin: 26px 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 15px; background: var(--paper); }
.policy-table > div { display: grid; grid-template-columns: .8fr 1.3fr 1fr; }
.policy-table > div:first-child { background: var(--yellow); }
.policy-table span, .policy-table strong { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.policy-table span:last-child, .policy-table strong:last-child { border-right: 0; }
.policy-table > div:last-child span { border-bottom: 0; }
.policy-note { margin-top: 25px; padding: 16px 18px; border-left: 5px solid var(--blue); border-radius: 9px; background: rgba(110,184,234,.12); font-size: 14px !important; }

/* Tables page */
.inner-hero { padding-block: 65px 60px; display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 70px; }
.inner-hero h1 { max-width: 760px; font-size: clamp(40px, 5.5vw, 66px); }
.download-card { padding: 27px; border: 3px solid var(--ink); border-radius: 25px; background: var(--blue); box-shadow: 0 8px 0 var(--ink); transform: rotate(1deg); }
.download-card > span { display: inline-block; margin-bottom: 10px; font-size: 36px; }
.download-card > strong { display: block; font-size: 21px; }
.download-card p { margin: 8px 0 19px; color: rgba(38,48,74,.72); line-height: 1.45; font-weight: 700; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.download-actions .button { min-height: 43px; padding-inline: 14px; font-size: 13px; }
.tables-content { padding-bottom: 100px; }
.table-jump-nav { margin-bottom: 34px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.table-jump-nav span { margin-right: 5px; color: var(--muted); font-size: 13px; font-weight: 800; }
.table-jump-nav a { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 11px; background: var(--paper); font-weight: 900; text-decoration: none; }
.table-jump-nav a:hover { color: #fff; border-color: var(--red-dark); background: var(--red); }
.all-tables-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; align-items: start; }
.table-sheet { scroll-margin-top: 105px; overflow: hidden; border: 3px solid var(--ink); border-radius: 20px 17px 23px 18px; background: var(--paper); box-shadow: 0 6px 0 var(--ink); break-inside: avoid; }
.table-sheet h3 { margin: 0; padding: 14px; border-bottom: 3px solid var(--ink); text-align: center; font-size: 22px; }
.table-sheet--red h3 { background: #ff989c; }.table-sheet--yellow h3 { background: var(--yellow); }.table-sheet--green h3 { background: var(--green); }.table-sheet--blue h3 { background: var(--blue); }.table-sheet--purple h3 { background: var(--purple); }
.table-sheet ol { margin: 0; padding: 13px 16px 16px; list-style: none; }
.table-sheet li { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: .35em; border-bottom: 1px dashed rgba(38,48,74,.13); font-size: 14px; font-weight: 800; white-space: nowrap; }
.table-sheet li:last-child { border-bottom: 0; }.table-sheet b { color: var(--red-dark); font-variant-numeric: tabular-nums; }
.tips-band { padding-block: 85px; color: #fff; background: var(--ink); }
.tips-band .eyebrow { color: var(--yellow); }.tips-layout > div:first-child { max-width: 680px; }
.tips-grid { margin-top: 35px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tips-grid article { padding: 24px; border: 2px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.055); }
.tips-grid strong { color: var(--yellow); font-size: 18px; }.tips-grid p { margin: 9px 0 0; color: rgba(255,255,255,.65); line-height: 1.5; }
.tables-page .cta-section { margin-top: 90px; }

/* Trainer */
.trainer-header-actions { display: flex; align-items: center; gap: 8px; }
.sound-toggle { width: 43px; height: 43px; padding: 9px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.sound-toggle svg { grid-area: 1 / 1; width: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-off, .sound-toggle.is-muted .sound-on { display: none; }.sound-toggle.is-muted .sound-off { display: block; }
.record-pill { min-height: 43px; padding: 5px 11px; display: grid; grid-template-columns: auto auto; column-gap: 5px; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; }
.record-pill > span { grid-row: 1 / 3; color: #e2a21d; font-size: 19px; }.record-pill strong { line-height: 1; }.record-pill small { color: var(--muted); font-size: 9px; line-height: 1; }
.trainer-intro { padding-block: 45px 28px; text-align: center; }.trainer-intro h1 { margin-bottom: 15px; font-size: clamp(38px, 5.5vw, 64px); }.trainer-intro p { max-width: 750px; margin-inline: auto; color: var(--muted); font-size: 17px; line-height: 1.55; font-weight: 700; }
.game-shell { min-height: 590px; margin-bottom: 80px; }
.game-view { display: none; width: min(100%, 780px); min-height: 540px; margin-inline: auto; padding: clamp(25px, 5vw, 48px); border: 3px solid var(--ink); border-radius: 32px 27px 35px 28px; background: rgba(255,253,248,.98); box-shadow: var(--shadow), 0 9px 0 var(--ink); animation: view-in .25s ease; }
.game-view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.game-view-heading { margin-bottom: 28px; text-align: center; }.game-view-heading h2 { margin-bottom: 8px; }.game-view-heading p { color: var(--muted); font-weight: 700; }
.level-grid { display: grid; gap: 14px; }
.level-card { width: 100%; min-height: 92px; padding: 15px 18px; display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 16px; border: 3px solid var(--ink); border-radius: 21px 18px 23px 19px; text-align: left; cursor: pointer; box-shadow: 0 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.level-card:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }.level-card--easy { background: var(--green); }.level-card--medium { background: var(--blue); }.level-card--pro { background: var(--purple); }
.level-emoji { width: 49px; height: 49px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 15px; background: var(--paper); font-size: 27px; }
.level-card span strong { display: block; margin-bottom: 4px; font-size: 20px; }.level-card span small { color: rgba(38,48,74,.68); font-size: 12px; font-weight: 800; }.level-card b { padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.45); }
.game-note { margin: 22px auto 10px; padding: 14px 17px; display: flex; align-items: center; gap: 11px; border-radius: 14px; background: rgba(255,215,101,.25); }.game-note p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }.game-view[data-game-view="levels"] > .button-link { display: block; margin: 12px auto 0; }
.game-toolbar { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; }.game-back { padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 900; cursor: pointer; }.level-chip { padding: 7px 12px; border-radius: 999px; background: rgba(168,138,228,.18); color: #674a9f; font-size: 12px; font-weight: 900; }
.game-status { padding: 15px 18px; display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--line); border-radius: 18px; background: #faf7ee; }.game-status > div { text-align: center; border-right: 1px solid var(--line); }.game-status > div:last-child { border: 0; }.game-status span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }.game-status strong { font-size: 19px; }.game-status i { font-style: normal; }.lives { color: var(--red); letter-spacing: 1px; }.life.is-lost { opacity: .16; }
.timer-row { margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 65px; align-items: center; gap: 13px; }.timer-track { height: 12px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: rgba(38,48,74,.08); }.timer-track span { width: 100%; height: 100%; display: block; border-radius: inherit; background: var(--green); transition: width .1s linear, background .2s; }.timer-track span.is-low { background: var(--red); }.timer-row > strong { color: var(--muted); font-size: 12px; }.timer-row i { color: var(--ink); font-size: 18px; font-style: normal; }
.question-card { min-height: 180px; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 23px; background-image: linear-gradient(rgba(82,153,214,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(82,153,214,.1) 1px, transparent 1px); background-size: 24px 24px; background-color: #f7fbff; }.question-card p { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }.question-card h2 { margin: 0; font-size: clamp(44px, 8vw, 68px); letter-spacing: -2px; }.streak { margin-top: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(255,215,101,.4); font-size: 12px; font-weight: 900; }.is-hidden { display: none !important; }
.answer-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.answer-button { min-height: 72px; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper); font-size: 27px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s; }.answer-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }.answer-button:disabled { cursor: default; }.answer-button.is-correct { background: var(--green); }.answer-button.is-wrong { background: #ff9ba0; }.game-feedback { min-height: 23px; margin: 20px 0 0; text-align: center; font-size: 14px; font-weight: 900; }.game-feedback.is-good { color: #267453; }.game-feedback.is-bad { color: var(--red-dark); }
.result-card { max-width: 550px; margin-inline: auto; text-align: center; }.result-icon { width: 100px; height: 100px; margin: 0 auto 20px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 7px 0 var(--ink); font-size: 48px; }.result-card h2 { margin-bottom: 9px; }.result-card > p { color: var(--muted); font-weight: 700; }.result-score { margin: 25px 0 19px; padding: 20px; border: 2px dashed rgba(38,48,74,.25); border-radius: 19px; background: #faf7ee; }.result-score span, .result-score small { display: block; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }.result-score strong { display: block; color: var(--red); font-size: 55px; line-height: 1.05; }.result-stats { margin-bottom: 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.result-stats div { padding: 12px 5px; border-radius: 13px; background: rgba(110,184,234,.13); }.result-stats strong, .result-stats span { display: block; }.result-stats strong { font-size: 19px; }.result-stats span { color: var(--muted); font-size: 10px; font-weight: 800; }.result-card > .button-link { margin-top: 14px; }
.progress-summary { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; }.progress-highlight { padding: 24px; display: flex; flex-direction: column; justify-content: center; border: 3px solid var(--ink); border-radius: 20px; background: var(--yellow); text-align: center; }.progress-highlight span, .progress-highlight small { font-size: 11px; font-weight: 900; text-transform: uppercase; }.progress-highlight strong { color: var(--red-dark); font-size: 50px; }.progress-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.progress-metrics div { padding: 15px 8px; border-radius: 15px; background: #f0ecdf; text-align: center; }.progress-metrics strong, .progress-metrics span { display: block; }.progress-metrics strong { font-size: 23px; }.progress-metrics span { color: var(--muted); font-size: 10px; font-weight: 800; }.level-progress { margin-top: 17px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.level-progress article { padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }.level-progress span, .level-progress strong, .level-progress small { display: block; }.level-progress span { font-size: 11px; font-weight: 900; }.level-progress strong { margin-top: 5px; color: var(--red-dark); font-size: 25px; }.level-progress small { color: var(--muted); font-size: 9px; }.progress-actions { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }.danger-button { padding: 10px; border: 0; color: var(--red-dark); background: transparent; font-size: 12px; font-weight: 900; text-decoration: underline; cursor: pointer; }
.trainer-about { margin-bottom: 90px; padding: 45px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 55px; border-radius: 27px; background: var(--paper); }.trainer-about p { color: var(--muted); line-height: 1.65; }.trainer-about aside { padding: 24px; border-radius: 18px; background: rgba(255,215,101,.26); }.trainer-about aside strong { font-size: 18px; }.trainer-about a { color: var(--red-dark); font-weight: 800; }
.confetti { position: fixed; inset: 0; z-index: 500; overflow: hidden; pointer-events: none; }.confetti i { position: absolute; top: -30px; width: 10px; height: 18px; border-radius: 3px; animation: confetti-fall 2.2s ease-in forwards; }@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(720deg); } }

/* Article */
.article-layout { padding-block: 58px 90px; }.article-header { max-width: 920px; margin-inline: auto; text-align: center; }.article-header h1 { font-size: clamp(40px, 5.7vw, 68px); }.article-header .lead { margin-inline: auto; }.article-meta { margin-top: 24px; display: flex; justify-content: center; gap: 25px; color: var(--muted); font-size: 12px; font-weight: 700; }
.article-body { margin-top: 65px; display: grid; grid-template-columns: 230px minmax(0, 740px); justify-content: center; align-items: start; gap: 55px; }.article-nav { padding: 19px; display: flex; flex-direction: column; gap: 11px; position: sticky; top: 105px; border: 2px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.9); }.article-nav strong { margin-bottom: 4px; }.article-nav a { color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; }.article-nav a:hover { color: var(--red-dark); }
.article-content { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #3f465a; }.article-content section { scroll-margin-top: 110px; margin-top: 52px; }.article-content section:first-of-type { margin-top: 35px; }.article-content h2 { color: var(--ink); font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif; font-size: clamp(28px, 3vw, 38px); letter-spacing: -1px; }.article-content h3 { margin-top: 28px; color: var(--ink); font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif; }.article-content p, .article-content li { font-size: 17px; line-height: 1.75; }.article-content a { color: #b8323a; font-weight: 700; }.article-intro { padding-left: 22px; border-left: 5px solid var(--red); color: var(--ink); font-size: 20px !important; font-weight: 650; }.article-callout { margin: 28px 0; padding: 20px 23px; display: flex; gap: 14px; border-radius: 16px; background: rgba(255,215,101,.3); }.article-callout > span { font-size: 24px; }.article-callout p { margin: 0; font-size: 15px; }.rich-list { padding-left: 24px; }.rich-list li { margin-bottom: 12px; padding-left: 6px; }.pattern-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }.pattern-grid article { padding: 19px; border: 2px solid var(--line); border-radius: 15px; background: var(--paper); }.pattern-grid strong { color: var(--red-dark); }.pattern-grid p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; }.check-list { padding: 0; display: grid; gap: 10px; list-style: none; }.check-list li { padding: 13px 16px 13px 45px; position: relative; border-radius: 12px; background: rgba(117,201,156,.14); font-size: 15px; }.check-list li::before { content: "✓"; position: absolute; left: 17px; color: #27805a; font-weight: 900; }.inline-cta { margin: 32px 0; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 3px solid var(--ink); border-radius: 19px; background: var(--green); box-shadow: 0 6px 0 var(--ink); }.inline-cta strong { color: var(--ink); font-size: 19px; }.inline-cta p { margin: 5px 0 0; font-size: 13px; line-height: 1.45; }.inline-cta .button { flex: 0 0 auto; font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; font-size: 13px; }.plan-table { overflow: hidden; border: 2px solid var(--ink); border-radius: 15px; }.plan-table > div { display: grid; grid-template-columns: 80px 1fr 1.4fr; }.plan-table > div:first-child { color: var(--ink); background: var(--yellow); }.plan-table span, .plan-table strong { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }.plan-table span:last-child, .plan-table strong:last-child { border-right: 0; }.plan-table > div:last-child span { border-bottom: 0; }.faq-article details { margin-bottom: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); }.faq-article summary { padding: 17px 19px; color: var(--ink); font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; font-weight: 900; cursor: pointer; }.faq-article details p { padding: 0 19px 18px; margin: 0; font-size: 15px; }.article-page .cta-section { margin-top: 0; }

@media (max-width: 980px) {
  .header-inner { gap: 14px; }.header-cta { display: none; }.main-nav { justify-content: end; }
  .hero { grid-template-columns: 1fr .78fr; gap: 35px; }.hero-card { padding-inline: 15px; }.math-note--one { right: -7px; }
  .feature-grid { gap: 14px; }.feature-card { padding: 23px; }.all-tables-grid { grid-template-columns: repeat(3, 1fr); }
  .article-body { grid-template-columns: 200px minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 760px) {
  .section-shell, .header-inner, .footer-inner { width: min(calc(100% - 28px), 1160px); }
  .site-header { position: relative; }.header-inner { min-height: auto; padding-block: 11px 7px; grid-template-columns: 1fr auto; }.site-brand { font-size: 18px; }.site-brand img { width: 39px; height: 39px; }.main-nav { grid-column: 1 / -1; padding-top: 5px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }.main-nav::-webkit-scrollbar { display: none; }.main-nav a { padding: 8px 10px; font-size: 13px; }.trainer-header-actions { grid-column: 2; grid-row: 1; }
  h1 { letter-spacing: -2.3px; }.hero { min-height: auto; padding-block: 55px 75px; grid-template-columns: 1fr; }.hero-copy { text-align: center; }.hero-copy .lead { margin-inline: auto; }.button-row, .hero-points { justify-content: center; }.hero-visual { min-height: 370px; }.hero-card { width: min(85%, 360px); }.math-note--one { right: 5%; }.math-note--two { left: 5%; }
  .feature-section { padding-block: 60px 80px; }.feature-grid { grid-template-columns: 1fr; gap: 22px; }.feature-card { min-height: 300px; transform: none; }.steps-layout { grid-template-columns: 1fr; gap: 42px; }.stats-section { grid-template-columns: repeat(2,1fr); padding-block: 55px; }.stats-section div:nth-child(2) { border-right: 0; }
  .cta-section { padding: 32px 25px; flex-direction: column; align-items: flex-start; }.cta-section .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }.footer-inner nav { justify-content: flex-start; flex-wrap: wrap; gap: 14px 20px; }.copyright { grid-column: auto; }
  .inner-hero { padding-block: 45px 55px; grid-template-columns: 1fr; gap: 30px; }.download-card { transform: none; }.all-tables-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }.tips-grid { grid-template-columns: 1fr; }
  .trainer-intro { padding-top: 38px; }.game-shell { width: 100%; margin-bottom: 60px; }.game-view { border-left: 0; border-right: 0; border-radius: 0; box-shadow: 0 8px 0 var(--ink); }.trainer-about { padding: 30px 23px; grid-template-columns: 1fr; gap: 25px; }
  .article-layout { padding-top: 43px; }.article-meta { flex-direction: column; gap: 5px; }.article-body { margin-top: 45px; grid-template-columns: 1fr; }.article-nav { display: none; }.pattern-grid { grid-template-columns: 1fr; }.inline-cta { flex-direction: column; align-items: flex-start; }.inline-cta .button { width: 100%; }.plan-table { overflow-x: auto; }.plan-table > div { min-width: 620px; }
  .cookie-consent { right: 10px; bottom: 10px; left: 10px; }.cookie-consent__content { padding: 19px; grid-template-columns: 1fr; gap: 16px; }.cookie-consent__actions { flex-wrap: wrap; }.cookie-consent__actions button { flex: 1 1 180px; }
  .policy-layout { padding-top: 43px; }.policy-summary { grid-template-columns: 1fr; margin-block: 38px 48px; }.policy-table { overflow-x: auto; }.policy-table > div { min-width: 620px; }
}

@media (max-width: 480px) {
  .site-brand span { max-width: 120px; }.trainer-page .site-brand span { display: none; }.sound-toggle { width: 39px; height: 39px; }.record-pill { min-height: 39px; }
  .button-row { display: grid; }.hero-points { display: grid; text-align: left; }.hero-visual { min-height: 320px; }.math-note { padding: 8px 11px; font-size: 12px; }.hero-card { width: 88%; }.feature-card { min-height: 315px; }.stats-section { gap: 0; }.stats-section div { padding-inline: 3px; }.stats-section span { font-size: 12px; }
  .all-tables-grid { grid-template-columns: 1fr; }.table-sheet { max-width: 310px; width: 100%; margin-inline: auto; }.table-sheet li { min-height: 34px; font-size: 15px; }
  .game-view { padding: 24px 14px; }.level-card { padding: 13px 12px; grid-template-columns: 47px 1fr auto; gap: 10px; }.level-emoji { width: 44px; height: 44px; }.level-card span strong { font-size: 17px; }.level-card span small { font-size: 10px; }.level-card b { padding: 6px; font-size: 12px; }.game-status { padding-inline: 8px; }.game-status strong { font-size: 15px; }.lives { font-size: 13px !important; letter-spacing: 0; }.question-card h2 { font-size: 43px; }.answer-button { min-height: 65px; }.progress-summary { grid-template-columns: 1fr; }.level-progress { grid-template-columns: 1fr; }.progress-actions { flex-direction: column; }.progress-actions .button { width: 100%; }
  .article-content p, .article-content li { font-size: 16px; }.article-intro { font-size: 18px !important; }.article-callout { align-items: flex-start; }.article-header h1 { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4 portrait; margin: 9mm; }
  * { box-shadow: none !important; }
  body { color: #000; background: #fff; }
  .no-print, .site-header, .site-footer, .breadcrumbs, .cookie-consent { display: none !important; }
  .section-shell { width: 100%; }
  .inner-hero { display: none; }
  .tables-content { padding: 0; }
  .print-heading { margin: 0 0 5mm; }
  .print-heading .eyebrow, .print-heading p { display: none; }
  .print-heading h2 { margin: 0; font-size: 20pt; }
  .all-tables-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5mm; }
  .table-sheet { border: 1.5pt solid #000; border-radius: 3mm; break-inside: avoid; page-break-inside: avoid; }
  .table-sheet h3 { padding: 3mm; border-bottom: 1.5pt solid #000; font-size: 15pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .table-sheet ol { padding: 2mm 5mm 3mm; }
  .table-sheet li { min-height: 5.2mm; font-size: 10.5pt; }
}
