:root {
  --ink: #080808;
  --paper: #f4f4f0;
  --white: #ffffff;
  --teal: #23a094;
  --teal-dark: #14776f;
  --yellow: #ffc900;
  --blue: #90a8ed;
  --pink: #ef7dd7;
  --coral: #ff6f52;
  --lime: #e8f744;
  --red: #ef4e47;
  --muted: #696965;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:where(button, a, input, textarea, select, [tabindex]):focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site-shell { min-height: 100vh; overflow: hidden; }
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw;
  background: var(--paper);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand-button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo {
  display: inline-flex;
  align-items: center;
}

.logo-image {
  display: block;
  width: auto;
  height: 68px;
  object-fit: contain;
}

.logo-image.compact {
  height: 105px;
}

.site-footer .logo-image {
  height: 105px;
}

@media (max-width: 720px) {
  .logo-image {
    height: 52px;
  }

  .site-footer .logo-image {
    height: 82px;
  }
}
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav button {
  border: 0; background: transparent; padding: 11px 15px; font-weight: 900; cursor: pointer;
  border-radius: 999px;
}
.desktop-nav button:hover, .desktop-nav button.active { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.topbar-stats { display: flex; align-items: center; gap: 10px; }
.topbar-stats > span {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 12px; font-weight: 900; background: var(--white);
}
.topbar-stats > span:first-child { background: var(--coral); }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; font-weight: 950; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-bottom: var(--border);
  background: var(--teal);
  position: relative;
}
.hero-copy { padding: 86px 3vw 70px 7vw; position: relative; z-index: 2; }
.eyebrow-pill, .section-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 950; letter-spacing: 1.7px;
}
.eyebrow-pill { border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 9px 13px; box-shadow: 3px 3px 0 var(--ink); }
.hero h1 { font-size: clamp(58px, 6.2vw, 105px); line-height: .88; letter-spacing: -6px; margin: 28px 0 28px; font-weight: 950; }
.hero h1 span { color: var(--yellow); text-decoration: underline wavy 5px var(--ink); text-underline-offset: 10px; }
.hero-copy > p { font-size: 20px; line-height: 1.5; max-width: 620px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.primary-button, .secondary-button {
  min-height: 50px; border: var(--border); border-radius: 14px; padding: 0 20px; font-weight: 950; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .16s ease, box-shadow .16s ease;
}
.primary-button { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.secondary-button { background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.primary-button:hover:not(:disabled), .secondary-button:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.primary-button:active:not(:disabled), .secondary-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: 2px 2px 0 var(--ink); }
.primary-button.jumbo, .secondary-button.jumbo { min-height: 58px; padding: 0 25px; font-size: 16px; }
.primary-button.wide { width: 100%; margin-top: 18px; }
.hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 38px; font-size: 11px; font-weight: 950; letter-spacing: 1px; }
.hero-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.doodle-scene { position: relative; min-height: 650px; overflow: hidden; }
.doodle-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 31%; background: var(--yellow); border-top: var(--border); }
.doodle-ground::before, .doodle-ground::after { content: ""; position: absolute; width: 260px; height: 3px; background: var(--ink); transform: rotate(48deg); top: 48%; }
.doodle-ground::before { left: 3%; } .doodle-ground::after { right: -2%; }
.doodle-cloud { position: absolute; height: 130px; border: var(--border); border-radius: 58% 42% 0 0; background: var(--blue); border-bottom: 0; }
.cloud-one { width: 440px; right: -50px; top: 110px; transform: rotate(3deg); }
.cloud-two { width: 280px; left: 40px; top: 160px; background: var(--paper); border-radius: 55% 45% 50% 40%; }
.crackle-body {
  position: absolute; width: 185px; height: 250px; left: 46%; top: 150px; transform: translateX(-50%);
  background: var(--pink); border: 4px solid var(--ink); border-radius: 48% 52% 44% 56% / 35% 44% 56% 65%;
  box-shadow: 9px 9px 0 var(--ink); z-index: 4;
}
.crackle-body::before { content: ""; position: absolute; width: 58px; height: 92px; background: var(--pink); border: 4px solid var(--ink); border-radius: 50%; left: -30px; top: 50px; transform: rotate(22deg); }
.crackle-body::after { content: ""; position: absolute; width: 58px; height: 92px; background: var(--pink); border: 4px solid var(--ink); border-radius: 50%; right: -32px; top: 80px; transform: rotate(-22deg); }
.crackle-eye { position: absolute; width: 8px; height: 12px; border-radius: 50%; background: var(--ink); top: 88px; z-index: 6; }
.crackle-eye.left { left: 58px; } .crackle-eye.right { right: 58px; }
.crackle-smile { position: absolute; width: 32px; height: 17px; border-bottom: 3px solid var(--ink); border-radius: 50%; left: 75px; top: 118px; z-index: 6; }
.crackle-bolt { position: absolute; font-size: 63px; left: 61px; top: 150px; filter: drop-shadow(3px 3px 0 var(--ink)); z-index: 6; }
.floating-card { position: absolute; z-index: 5; width: 225px; min-height: 145px; padding: 20px; background: var(--white); border: var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.floating-card span { font-size: 11px; font-weight: 950; letter-spacing: 1.5px; }
.floating-card b { font-size: 23px; line-height: 1.1; }
.card-a { left: 3%; top: 90px; transform: rotate(-4deg); }
.card-b { right: 4%; top: 310px; transform: rotate(4deg); background: var(--blue); }
.mini-crack { width: 62px; height: 4px; background: var(--ink); transform: rotate(-12deg); position: relative; margin-top: 8px; }
.mini-crack::after { content: ""; position: absolute; width: 26px; height: 4px; background: var(--ink); right: 12px; top: -8px; transform: rotate(58deg); }
.doodle-spark { position: absolute; font-size: 38px; font-weight: 950; }
.doodle-spark.s1 { top: 65px; right: 18%; } .doodle-spark.s2 { bottom: 25%; left: 15%; } .doodle-spark.s3 { top: 37%; right: 6%; }

.daily-strip { min-height: 114px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; padding: 24px 7vw; border-bottom: var(--border); background: var(--paper); }
.daily-label { display: flex; flex-direction: column; gap: 5px; }
.daily-label span { font-size: 11px; letter-spacing: 1.6px; font-weight: 950; }
.daily-label b { font-size: 24px; }
.daily-facts { display: flex; gap: 8px; }
.daily-facts span { border: 2px solid var(--ink); padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; background: var(--white); text-transform: capitalize; }
.daily-strip > button { border: var(--border); background: var(--ink); color: var(--white); min-height: 48px; padding: 0 18px; border-radius: 13px; font-weight: 950; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }

.content-section { padding: 92px 7vw; border-bottom: var(--border); }
.how-section { background: var(--paper); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading-row h2, .page-hero h1 { font-size: clamp(38px, 4.3vw, 70px); line-height: .98; letter-spacing: -3px; margin: 10px 0 0; }
.section-heading-row > p { max-width: 430px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { min-height: 250px; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.step-card.teal { background: var(--teal); } .step-card.yellow { background: var(--yellow); } .step-card.pink { background: var(--pink); } .step-card.blue { background: var(--blue); }
.step-card-top { display: flex; justify-content: space-between; align-items: center; }
.step-card-top span { font-size: 12px; font-weight: 950; letter-spacing: 1.5px; }
.step-card-top i { font-style: normal; font-size: 38px; }
.step-card h3 { font-size: 30px; margin: 43px 0 10px; }
.step-card p { margin: 0; line-height: 1.45; font-weight: 700; }

.zones-section { background: var(--blue); }
.text-button { border: 0; background: transparent; cursor: pointer; font-weight: 950; display: inline-flex; align-items: center; gap: 7px; padding: 6px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.zone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.zone-card { min-height: 170px; border: var(--border); border-radius: 25px; padding: 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; text-align: left; cursor: pointer; }
.zone-card.zone-1 { background: var(--yellow); } .zone-card.zone-2 { background: var(--paper); } .zone-card.zone-3 { background: var(--teal); } .zone-card.zone-4 { background: var(--pink); }
.zone-icon { font-size: 54px; }
.zone-card b { font-size: 26px; }
.zone-card p { margin: 8px 0 0; font-weight: 700; line-height: 1.4; }

.progress-panel { background: var(--yellow); display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 18px; }
.level-card, .mini-stat { border: var(--border); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.level-card { padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.level-number { width: 88px; height: 88px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--teal); font-size: 45px; font-weight: 950; }
.level-card span { font-size: 11px; font-weight: 950; letter-spacing: 1.4px; }
.level-card h3 { font-size: 28px; margin: 4px 0; }
.level-card p { margin: 0 0 10px; font-size: 13px; font-weight: 800; }
.xp-bar, .mastery-bar { height: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.xp-bar i, .mastery-bar i { display: block; height: 100%; background: var(--pink); border-right: 2px solid var(--ink); }
.mini-stat { padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.mini-stat svg { margin-bottom: 22px; }
.mini-stat b { font-size: 35px; }
.mini-stat span { font-size: 13px; font-weight: 900; }

.page-container { max-width: 1500px; margin: 0 auto; padding: 75px 6vw 100px; }
.page-hero { max-width: 940px; margin-bottom: 46px; }
.page-hero p { font-size: 19px; max-width: 780px; line-height: 1.5; font-weight: 700; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-row button { border: 2px solid var(--ink); background: var(--white); border-radius: 999px; padding: 10px 15px; font-weight: 900; cursor: pointer; }
.filter-row button.active { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.challenge-tile { min-height: 285px; border: var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); padding: 23px; cursor: pointer; text-align: left; display: flex; flex-direction: column; }
.challenge-tile:nth-child(4n+1) { background: var(--teal); } .challenge-tile:nth-child(4n+2) { background: var(--yellow); } .challenge-tile:nth-child(4n+3) { background: var(--blue); } .challenge-tile:nth-child(4n) { background: var(--pink); }
.challenge-tile-top { display: flex; justify-content: space-between; align-items: center; }
.challenge-tile-top span { font-size: 39px; } .challenge-tile-top i { font-style: normal; font-size: 11px; font-weight: 950; letter-spacing: 1px; border: 2px solid var(--ink); padding: 7px 9px; border-radius: 999px; background: var(--paper); }
.challenge-tile h3 { font-size: 28px; margin: 34px 0 9px; }
.challenge-tile p { margin: 0; line-height: 1.4; font-weight: 700; }
.challenge-tile-footer { margin-top: auto; padding-top: 20px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 900; }
.challenge-tile-footer b { display: flex; align-items: center; gap: 6px; }

.deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.fault-card { min-height: 320px; border: var(--border); border-radius: 27px; padding: 25px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.fault-card.teal { background: var(--teal); } .fault-card.yellow { background: var(--yellow); } .fault-card.blue { background: var(--blue); } .fault-card.pink { background: var(--pink); } .fault-card.coral { background: var(--coral); }
.fault-card.locked { background: #deded8; color: #555; box-shadow: 4px 4px 0 #555; border-color: #555; }
.fault-card-top { display: flex; justify-content: space-between; align-items: center; }
.fault-card-top > span { width: 66px; height: 66px; border: var(--border); border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 30px; font-weight: 950; }
.fault-card-top b { font-size: 11px; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 9px; background: var(--paper); }
.fault-card h3 { font-size: 31px; margin: 40px 0 10px; }
.fault-card p { font-weight: 700; line-height: 1.45; }
.fault-card .mastery-bar { margin-top: auto; }
.fault-card > strong { margin-top: 10px; font-size: 12px; letter-spacing: 1px; }
.reset-zone { margin-top: 55px; border-top: 2px solid var(--ink); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.teacher-lab { border: var(--border); border-radius: 28px; background: var(--teal); padding: 30px; box-shadow: var(--shadow); }
.creator-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.creator-toolbar > div:last-child { display: flex; align-items: center; gap: 14px; }
.compact-button { padding: 9px 13px; box-shadow: 3px 3px 0 var(--ink); }
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 18px; }
.teacher-grid h2 { font-size: 38px; line-height: 1; letter-spacing: -1.7px; margin: 8px 0 15px; }
.muted { line-height: 1.5; font-weight: 700; color: #102b29; }
.field-label { display: block; margin: 17px 0 7px; font-size: 11px; font-weight: 950; letter-spacing: 1.2px; text-transform: uppercase; }
.teacher-grid input, .teacher-grid textarea, .teacher-grid select { width: 100%; border: var(--border); border-radius: 12px; background: var(--paper); padding: 13px 14px; outline: 0; box-shadow: 3px 3px 0 var(--ink); resize: vertical; }
.teacher-grid select { cursor: pointer; min-height: 51px; }
.teacher-grid input:focus, .teacher-grid textarea:focus, .teacher-grid select:focus { background: var(--yellow); }
.teacher-grid input:focus-visible, .teacher-grid textarea:focus-visible, .teacher-grid select:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-pair label { min-width: 0; }
.teacher-preview { min-height: 620px; border: var(--border); border-radius: 22px; background: var(--paper); padding: 22px; }
.empty-preview { height: 100%; min-height: 550px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 350px; margin: auto; }
.preview-orb { width: 100px; height: 100px; border: var(--border); border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-size: 54px; font-weight: 950; box-shadow: var(--shadow); }
.empty-preview h3 { font-size: 25px; margin: 28px 0 8px; }.empty-preview p { line-height: 1.5; font-weight: 700; }
.inline-error { background: var(--coral); border: 2px solid var(--ink); border-radius: 10px; padding: 12px; margin-top: 15px; font-weight: 800; }
.inline-error ul { margin: 8px 0 0; padding-left: 22px; }
.inline-error li + li { margin-top: 5px; }
.draft-card h3 { font-size: 30px; margin: 15px 0 8px; }
.draft-status { display: inline-flex; align-items: center; gap: 7px; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 10px; font-size: 11px; font-weight: 950; }
.draft-question { font-weight: 900; line-height: 1.4; }
.mini-answer { border: 2px solid var(--ink); border-radius: 13px; background: var(--white); margin: 13px 0; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.mini-answer b { font-size: 11px; letter-spacing: 1px; }.mini-answer span { padding: 7px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.mini-answer span.marked { background: var(--coral); text-decoration: underline wavy 2px var(--ink); }
.draft-meta { display: flex; gap: 8px; flex-wrap: wrap; }.draft-meta span { border: 2px solid var(--ink); background: var(--yellow); border-radius: 999px; padding: 7px 9px; font-size: 11px; font-weight: 900; }
.draft-source { margin-top: 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--blue); padding: 13px; }
.draft-source b { font-size: 12px; letter-spacing: .5px; }
.draft-source p { margin: 7px 0; line-height: 1.45; font-weight: 750; }
.draft-source a, .draft-source > span { font-size: 12px; font-weight: 950; text-decoration: underline; }
.creator-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.creator-actions button { flex: 1; min-width: 170px; }
.teacher-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.teacher-principles div { border-top: var(--border); padding-top: 18px; }.teacher-principles b { font-size: 12px; }.teacher-principles h3 { font-size: 25px; margin: 14px 0 7px; }.teacher-principles p { line-height: 1.5; font-weight: 700; }
.panel-shadow { box-shadow: var(--shadow); }

.site-footer { min-height: 130px; padding: 35px 6vw; border-top: var(--border); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; background: var(--ink); color: var(--white); }
.site-footer p { text-align: center; font-weight: 800; }.site-footer > span { font-size: 12px; font-weight: 900; color: var(--yellow); }

/* Game */
.game-shell { min-height: 100vh; background: var(--paper); }
.game-header { min-height: 82px; border-bottom: var(--border); display: grid; grid-template-columns: auto minmax(240px, 720px) auto; align-items: center; justify-content: center; gap: 30px; padding: 14px 5vw; background: var(--teal); }
.icon-button { width: 46px; height: 46px; border: var(--border); border-radius: 50%; background: var(--paper); display: grid; place-items: center; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.game-progress-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 950; letter-spacing: 1.2px; margin-bottom: 7px; }.game-progress-label span { display: inline-flex; align-items: center; gap: 5px; }
.game-progress { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }.game-progress span { display: block; height: 100%; background: var(--yellow); border-right: 2px solid var(--ink); transition: width .4s ease; }
.round-stage { max-width: 1420px; margin: 0 auto; padding: 55px 5vw 80px; position: relative; }
.narrow-stage { max-width: 1050px; }
.round-heading { max-width: 990px; margin-bottom: 32px; }.round-heading.centered { text-align: center; margin: 20px auto 35px; }
.round-heading h1 { font-size: clamp(38px, 4vw, 63px); line-height: 1.02; letter-spacing: -2.6px; margin: 10px 0 12px; }.round-heading p { font-size: 17px; line-height: 1.5; font-weight: 700; color: #4b4b47; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.answer-card { border: var(--border); border-radius: 25px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; min-height: 430px; }.answer-card.active { outline: 6px solid var(--yellow); outline-offset: -9px; }
.answer-card-top { height: 62px; border-bottom: var(--border); background: var(--blue); padding: 0 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 950; letter-spacing: 1.5px; }.answer-card:nth-child(2) .answer-card-top { background: var(--pink); }
.signal-dots { display: flex; gap: 5px; }.signal-dots i { width: 8px; height: 8px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
.sentence-list { padding: 21px; display: flex; flex-direction: column; gap: 12px; }
.sentence { width: 100%; min-height: 82px; border: 2px solid transparent; background: var(--paper); border-radius: 13px; padding: 15px 16px 15px 54px; text-align: left; position: relative; line-height: 1.45; font-weight: 750; cursor: pointer; }
.sentence > span { position: absolute; left: 15px; top: 14px; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 950; background: var(--white); }.sentence:hover { border-color: var(--ink); transform: translateX(3px); }.sentence.selected { background: var(--yellow); border: var(--border); box-shadow: 3px 3px 0 var(--ink); }
.selected-crack { position: absolute; width: 80px; height: 4px; background: var(--ink); right: 20px; bottom: 11px; transform: rotate(-5deg); }.selected-crack::after { content: ""; position: absolute; width: 32px; height: 4px; background: var(--ink); right: 15px; top: -9px; transform: rotate(52deg); }
.answer-footer { border-top: 2px solid var(--ink); padding: 12px 20px; font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.round-controls { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 27px; }.hint-zone { display: flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 800; }.hint-zone > span { background: var(--blue); border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; }
.nudge { margin: 24px auto 0; max-width: 680px; border: var(--border); border-radius: 13px; background: var(--coral); box-shadow: 4px 4px 0 var(--ink); padding: 13px 16px; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 900; }
.crack-banner { transform-origin: center; margin: -55px -5vw 40px; min-height: 62px; background: var(--yellow); border-bottom: var(--border); display: flex; align-items: center; justify-content: center; gap: 17px; font-size: 19px; font-weight: 950; letter-spacing: 2px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.choice-card { min-height: 170px; border: var(--border); border-radius: 18px; background: var(--white); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; padding: 20px; text-align: left; position: relative; display: flex; flex-direction: column; }.choice-card:nth-child(1) { background: var(--yellow); }.choice-card:nth-child(2) { background: var(--pink); }.choice-card:nth-child(3) { background: var(--blue); }.choice-card:nth-child(4) { background: var(--teal); }
.choice-number { font-size: 11px; font-weight: 950; letter-spacing: 1px; }.choice-card b { font-size: 25px; margin-top: 26px; }.choice-card small { font-size: 13px; line-height: 1.4; margin-top: 8px; font-weight: 700; }
.verification-stack { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 13px; }.verification-option { min-height: 78px; border: var(--border); border-radius: 15px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 18px; text-align: left; cursor: pointer; }.verification-option > span { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: var(--yellow); font-weight: 950; }.verification-option b { font-size: 17px; }.verification-option:nth-child(2) > span { background: var(--pink); }.verification-option:nth-child(3) > span { background: var(--blue); }.verification-option:nth-child(4) > span { background: var(--teal); }
.result-stage { max-width: 1150px; text-align: center; overflow: hidden; }.result-score-block { position: relative; z-index: 2; }.score-ring { width: 170px; height: 170px; border: 5px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 9px 9px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 20px auto; transform: rotate(-4deg); }.score-ring strong { font-size: 58px; line-height: .9; }.score-ring span { font-size: 13px; font-weight: 950; }.result-score-block h1 { font-size: 47px; margin: 18px 0 7px; }.result-score-block p { font-weight: 800; }
.result-burst i { position: absolute; width: 16px; height: 70px; background: var(--pink); border: 2px solid var(--ink); top: 100px; left: 50%; transform-origin: 50% 240px; }.result-burst i:nth-child(1) { transform: rotate(20deg); }.result-burst i:nth-child(2) { transform: rotate(80deg); background: var(--blue); }.result-burst i:nth-child(3) { transform: rotate(140deg); background: var(--teal); }.result-burst i:nth-child(4) { transform: rotate(200deg); }.result-burst i:nth-child(5) { transform: rotate(260deg); background: var(--blue); }.result-burst i:nth-child(6) { transform: rotate(320deg); background: var(--teal); }
.reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; text-align: left; }.reveal-card { border: var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 25px; }.coral-card { background: var(--coral); }.yellow-card { background: var(--yellow); }.reveal-card > span { font-size: 11px; font-weight: 950; letter-spacing: 1.5px; }.reveal-card blockquote { margin: 18px 0; font-size: 20px; font-weight: 950; line-height: 1.35; }.reveal-card p { line-height: 1.5; font-weight: 700; }.source-excerpt { font-size: 18px; }.reveal-card a { display: inline-flex; align-items: center; gap: 6px; font-weight: 950; font-size: 12px; text-underline-offset: 4px; }.local-source-note { display: inline-flex; font-size: 12px; font-weight: 950; }
.result-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0; }.result-pill { min-height: 64px; border: 2px solid var(--ink); border-radius: 13px; padding: 10px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; text-align: left; font-size: 11px; font-weight: 900; }.result-pill.correct { background: var(--teal); }.result-pill.missed { background: #d8d8d2; }.result-pill b { font-size: 13px; }
.result-actions { display: flex; justify-content: center; gap: 13px; }
.score-adjustments { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin: -12px 0 28px; }
.score-adjustments span { border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); padding: 7px 10px; font-size: 12px; font-weight: 900; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }.hero-copy { padding: 65px 7vw 30px; }.doodle-scene { min-height: 520px; }.hero h1 { font-size: 76px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }.progress-panel { grid-template-columns: 1fr 1fr; }.level-card { grid-column: span 2; }
  .challenge-grid, .deck-grid { grid-template-columns: 1fr 1fr; }
  .teacher-grid { grid-template-columns: 1fr; }.teacher-preview { min-height: 520px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .topbar-stats > span { display: none; }
  .topbar { padding-inline: 24px; }
}

@media (max-width: 760px) {
  .topbar { height: 70px; padding: 0 18px; }.desktop-nav { display: none; }.topbar-stats > span { display: none; }.avatar { width: 36px; height: 36px; }
  .hero-copy { padding: 45px 20px 20px; }.hero h1 { font-size: 58px; letter-spacing: -4px; }.hero-copy > p { font-size: 17px; }.hero-actions { flex-direction: column; align-items: stretch; }.hero-actions button { width: 100%; }
  .doodle-scene { min-height: 470px; }.crackle-body { width: 150px; height: 210px; left: 50%; top: 135px; }.crackle-bolt { left: 46px; top: 125px; }.crackle-eye.left { left: 46px; }.crackle-eye.right { right: 46px; }.crackle-smile { left: 59px; }.card-a { left: 4%; top: 50px; width: 160px; min-height: 105px; }.card-b { right: 3%; top: 310px; width: 160px; min-height: 105px; }.floating-card b { font-size: 17px; }
  .daily-strip { grid-template-columns: 1fr; gap: 15px; padding: 22px 20px; }.daily-facts { flex-wrap: wrap; }.daily-strip > button { width: 100%; justify-content: center; }
  .content-section { padding: 65px 20px; }.section-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }.section-heading-row h2, .page-hero h1 { font-size: 43px; }.steps-grid, .zone-grid, .progress-panel, .challenge-grid, .deck-grid, .teacher-principles { grid-template-columns: 1fr; }.level-card { grid-column: auto; grid-template-columns: 1fr; }.level-number { width: 70px; height: 70px; }.page-container { padding: 52px 20px 75px; }.page-hero p { font-size: 16px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }.site-footer p { margin: 0; }
  .game-header { grid-template-columns: auto 1fr auto; gap: 12px; padding: 10px 13px; }.game-progress-label span:first-child { display: none; }.round-stage { padding: 38px 18px 60px; }.round-heading h1 { font-size: 38px; }.answer-grid, .choice-grid, .reveal-grid, .result-breakdown { grid-template-columns: 1fr; }.answer-card { min-height: auto; }.sentence { min-height: 100px; }.round-controls { align-items: stretch; flex-direction: column; }.hint-zone { flex-direction: column; align-items: flex-start; }.round-controls .primary-button { width: 100%; }.crack-banner { margin: -38px -18px 30px; }.result-actions { flex-direction: column; }.result-actions button { width: 100%; }.result-burst { display: none; }
  .teacher-lab { padding: 20px; }.teacher-grid h2 { font-size: 32px; }.teacher-preview { min-height: auto; }.empty-preview { min-height: 430px; }.reset-zone { flex-direction: column; align-items: flex-start; }.field-pair { grid-template-columns: 1fr; }.creator-toolbar { align-items: flex-start; flex-direction: column; }.creator-toolbar > div:last-child { width: 100%; justify-content: space-between; }
}

/* Standalone app utilities */
.hidden { display: none !important; }
.view-enter { animation: viewEnter .38s ease both; }
.draft-enter { animation: viewEnter .42s ease both; }
@keyframes viewEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.crackle-body { animation: mascotFloat 2.6s ease-in-out infinite; }
.card-a { animation: cardFloatA 4s ease-in-out infinite; }
.card-b { animation: cardFloatB 4.8s ease-in-out infinite; }
.cloud-one { animation: cloudMoveOne 8s ease-in-out infinite; }
.cloud-two { animation: cloudMoveTwo 10s ease-in-out infinite; }
@keyframes mascotFloat { 0%,100% { transform: translateX(-50%) rotate(-2deg) translateY(0); } 50% { transform: translateX(-50%) rotate(2deg) translateY(-7px); } }
@keyframes cardFloatA { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-7px); } }
@keyframes cardFloatB { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(1deg) translateY(7px); } }
@keyframes cloudMoveOne { 0%,100% { margin-right: 0; } 50% { margin-right: 12px; } }
@keyframes cloudMoveTwo { 0%,100% { margin-left: 0; } 50% { margin-left: -10px; } }
.zone-card, .challenge-tile, .step-card, .fault-card, .choice-card, .verification-option { transition: transform .18s ease, box-shadow .18s ease; }
.zone-card:hover, .challenge-tile:hover, .step-card:hover, .fault-card.unlocked:hover, .choice-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 9px 9px 0 var(--ink); }
.verification-option:hover { transform: translateX(7px); box-shadow: 7px 7px 0 var(--ink); }
.big-icon { font-size: 30px; margin-bottom: 18px; }
.draft-review-note { margin-top: 16px; border: 2px dashed var(--ink); border-radius: 12px; padding: 12px; background: var(--coral); }
.draft-review-note b { font-size: 11px; letter-spacing: 1px; }
.draft-review-note p { margin: 7px 0 0; line-height: 1.4; font-weight: 800; }
.mobile-nav { display: none; }
.verification-option i { font-style: normal; font-weight: 950; }

@media (max-width: 760px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-nav {
    position: fixed; left: 10px; right: 10px; bottom: calc(9px + env(safe-area-inset-bottom)); height: 62px; z-index: 80;
    display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border: 2px solid var(--ink);
    border-radius: 17px; padding: 4px; box-shadow: 0 7px 22px rgba(0,0,0,.25);
  }
  .mobile-nav button { border: 0; background: transparent; color: var(--white); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
  .mobile-nav button.active { background: var(--yellow); color: var(--ink); }
  .mobile-nav span { font-size: 20px; line-height: 1; }.mobile-nav small { font-size: 9px; font-weight: 900; }
  .game-shell + .mobile-nav { display: none; }
}

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