/* Maze / 01 — site styles. All assets are local so GitHub Pages works without a CDN. */
:root {
  --bg: #131724;
  --bg2: #1b2030;
  --panel: #202635;
  --panel2: #252d3b;
  --line: #3a4150;
  --text: #f1eee7;
  --muted: #a5a9b4;
  --lime: #dcf08c;
  --peach: #f4a58e;
  --purple: #c3b7ec;
  --ink: #17201e;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", monospace;
  --sans: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
.site-shell {
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}
.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(24px, 5.3vw, 88px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  background: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 22px/1 var(--mono);
  letter-spacing: -2px;
  white-space: nowrap;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 50%;
  font: 700 23px var(--sans);
  letter-spacing: 0;
  transition: transform 0.3s;
}
.brand:hover .brand-symbol {
  transform: rotate(45deg);
}
.brand-slash {
  color: var(--lime);
  margin: 0 3px;
}
.site-nav {
  display: flex;
  gap: 5px;
  margin: auto;
}
.site-nav a {
  padding: 12px 17px;
  color: var(--muted);
  font: 700 11px var(--mono);
  letter-spacing: 0.03em;
  border-radius: 100px;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  background: #2b3240;
  color: var(--text);
}
.header-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 700 10px var(--mono);
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.live-dot,
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px #dcf08c22;
}
.menu-toggle {
  display: none;
}
.eyebrow,
.small-caps {
  font: 700 11px/1.5 var(--mono);
  letter-spacing: 0.09em;
}
.eyebrow {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 13px;
}
.eyebrow-line {
  width: 27px;
  height: 1px;
  background: var(--lime);
}
em,
.serif-italic {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.065em;
}
.period {
  color: var(--lime);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 700 13px var(--mono);
  transition:
    transform 0.22s,
    background 0.22s,
    box-shadow 0.22s;
}
.button span {
  font-size: 20px;
  font-weight: 400;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 #ffffff22;
}
.button-primary {
  background: var(--lime);
  color: var(--ink);
}
.button-primary:hover {
  background: #edffae;
}
.button-dark {
  background: var(--bg);
  color: var(--text);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  color: var(--text);
  font: 700 12px var(--mono);
  transition:
    gap 0.2s,
    color 0.2s;
}
.text-link:hover {
  gap: 21px;
  color: var(--lime);
}
.text-link span {
  font-size: 19px;
  font-weight: 400;
  line-height: 0;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 29px clamp(24px, 5.3vw, 88px);
  border-top: 1px solid var(--line);
  font: 11px var(--mono);
  color: var(--muted);
}
.site-footer > span:first-child {
  color: var(--text);
  font-weight: 700;
}
.site-footer a:hover {
  color: var(--lime);
}
.footer-muted {
  font-weight: 400;
  color: var(--muted);
}
/* HOME */
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 5%;
  padding: 65px clamp(24px, 5.3vw, 88px) 75px;
  position: relative;
}
.hero:before {
  content: "✳";
  position: absolute;
  top: 60px;
  left: 53%;
  color: var(--peach);
  font-size: 35px;
  animation: turn 13s linear infinite;
}
.hero-copy {
  position: relative;
  z-index: 1;
  animation: rise 0.8s both;
}
.hero h1,
.game-heading h1,
.notes-hero h1 {
  font-size: clamp(56px, 6.2vw, 102px);
  line-height: 0.99;
  letter-spacing: -0.075em;
  font-weight: 600;
  margin: 29px 0 23px;
}
.hero h1 em {
  color: var(--lime);
}
.hero-description {
  max-width: 510px;
  color: #bdc0c7;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 30px;
}
.hero-byline {
  font: 700 11px var(--mono);
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: -10px 0 28px;
}
.hero-byline strong {
  color: var(--lime);
}
.hero-byline span {
  color: #6f7a83;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-footnote {
  font: 11px var(--mono);
  color: var(--muted);
  margin-top: 40px;
}
.asterisk {
  font-size: 20px;
  color: var(--peach);
  vertical-align: middle;
  margin-right: 7px;
}
.hero-art {
  position: relative;
  border: 1px solid #4a5960;
  border-radius: 6px;
  background: #1a252e;
  padding: 16px;
  box-shadow: 16px 16px 0 #0c111b;
  transform: rotate(2deg);
  animation: arrive 0.85s 0.2s both;
  max-width: 540px;
  justify-self: end;
  width: 100%;
}
.hero-art:before,
.hero-art:after {
  content: "";
  position: absolute;
  width: 55px;
  height: 18px;
  background: #e8d5ad88;
  transform: rotate(-26deg);
  z-index: 1;
}
.hero-art:before {
  top: -10px;
  left: 29px;
}
.hero-art:after {
  bottom: -10px;
  right: 33px;
}
.art-top,
.art-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #afc0b7;
  font: 700 10px var(--mono);
  letter-spacing: 0.04em;
}
.art-bottom {
  align-items: center;
  padding: 2px 3px 1px;
}
.art-coordinate {
  color: #7c9692;
}
.maze-illustration {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px #08111766);
}
.art-sticker {
  position: absolute;
  right: -20px;
  bottom: 50px;
  width: 103px;
  height: 103px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font: 700 13px/1.06 var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  transform: rotate(-13deg);
  box-shadow: 5px 7px 0 #090e16aa;
  animation: bob 4s ease-in-out infinite;
}
.art-sticker span {
  font-size: 18px;
}
.marquee-strip {
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  padding: 17px 0;
  border-block: 1px solid #a3b969;
  transform: rotate(-1deg) scale(1.02);
  margin-bottom: 40px;
}
.marquee-inner {
  width: max-content;
  white-space: nowrap;
  font: 700 12px var(--mono);
  letter-spacing: 0.09em;
  animation: marquee 35s linear infinite;
}
.marquee-inner span {
  margin: 0 35px;
  font-size: 15px;
}
.section-pad {
  padding: 105px clamp(24px, 5.3vw, 88px);
}
.section-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  font: 700 10px var(--mono);
  color: var(--lime);
  letter-spacing: 0.08em;
}
.section-label span:last-child {
  color: var(--muted);
}
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 9%;
  padding-top: 42px;
  align-items: start;
}
.story-grid h2,
.section-heading {
  font-size: clamp(38px, 4.5vw, 69px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.06em;
  margin: 0;
}
.story-grid h2 .serif-italic,
.section-heading .serif-italic {
  color: var(--peach);
}
.story-copy {
  padding-top: 5px;
}
.story-copy p {
  color: #bfc1c9;
  line-height: 1.8;
  font-size: 15px;
  margin: 0 0 19px;
  max-width: 495px;
}
.story-copy .text-link {
  margin-top: 9px;
}
.features-section {
  background: #1a2030;
}
.features-section .section-heading {
  margin: 44px 0 44px;
}
.features-section .serif-italic {
  color: var(--lime);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-card {
  min-height: 312px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #222938;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: #829287;
}
.feature-number {
  font: 700 11px var(--mono);
  color: var(--muted);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 23px 0 25px;
  color: var(--ink);
  font-size: 34px;
}
.icon-lime {
  background: var(--lime);
}
.icon-peach {
  background: var(--peach);
}
.icon-purple {
  background: var(--purple);
}
.feature-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}
.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.bottom-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 72px clamp(24px, 5.3vw, 88px);
  background: var(--peach);
  color: var(--ink);
}
.bottom-cta h2 {
  font-size: clamp(43px, 6vw, 82px);
  line-height: 1;
  margin: 15px 0 15px;
  letter-spacing: -0.07em;
  font-weight: 600;
}
.bottom-cta h2 em {
  font-weight: 400;
}
.bottom-cta p {
  margin: 0;
  font-size: 14px;
}
.bottom-cta .button {
  min-width: 195px;
}
/* SHARED INNER PAGES */
.page-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font: 700 10px var(--mono);
  letter-spacing: 0.08em;
  padding: 29px clamp(24px, 5.3vw, 88px) 0;
}
.page-kicker a:hover {
  color: var(--lime);
}
.game-heading,
.notes-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 58px clamp(24px, 5.3vw, 88px) 44px;
}
.game-heading h1,
.notes-hero h1 {
  font-size: clamp(52px, 6vw, 88px);
  margin: 22px 0 14px;
}
.game-heading h1 em,
.notes-hero h1 em {
  color: var(--lime);
}
.game-heading p,
.notes-hero p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 590px;
}
.game-heading-doodle {
  font: 100px var(--serif);
  color: var(--peach);
  transform: rotate(27deg);
  position: relative;
  padding-right: 70px;
}
.game-heading-doodle small {
  position: absolute;
  left: 10px;
  bottom: -6px;
  transform: rotate(-27deg);
  font: 700 11px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
/* GAME */
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(275px, 0.75fr);
  gap: 20px;
  padding: 0 clamp(24px, 5.3vw, 88px);
  align-items: start;
}
.game-board-panel {
  border: 1px solid #485450;
  background: #1d2a2b;
  border-radius: 5px;
  overflow: hidden;
}
.board-topbar,
.board-bottom {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font: 700 10px var(--mono);
  color: #bbd1c2;
  letter-spacing: 0.08em;
}
.board-topbar {
  border-bottom: 1px solid #42554e;
}
.board-topbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-bottom {
  border-top: 1px solid #42554e;
  justify-content: flex-start;
  gap: 19px;
}
.board-bottom > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.board-bottom .board-hint {
  margin-left: auto;
  color: #839d95;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.player-dot {
  background: var(--lime);
}
.exit-dot {
  background: var(--peach);
}
.board-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(13px, 2.8vw, 32px);
  min-height: 420px;
  aspect-ratio: 1.04;
  background: radial-gradient(circle at 50% 50%, #253838 0%, #1a282a 75%);
}
#maze-canvas {
  display: block;
  width: min(100%, 600px);
  height: auto;
  aspect-ratio: 1;
  touch-action: none;
  filter: drop-shadow(0 15px 22px #0a1518aa);
}
.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 4px;
}
.side-label,
.section-number {
  font: 700 10px var(--mono);
  letter-spacing: 0.08em;
  color: var(--lime);
}
.side-card h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 14px 0 18px;
}
.difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.difficulty {
  color: var(--text);
  background: #293141;
  border: 1px solid #454e5b;
  border-radius: 3px;
  text-align: left;
  padding: 12px 10px;
  min-height: 64px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.difficulty:hover {
  transform: translateY(-2px);
}
.difficulty.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.difficulty span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.difficulty small {
  display: block;
  font: 11px var(--mono);
  margin-top: 6px;
  opacity: 0.72;
}
.micro-note {
  font: 11px/1.6 var(--mono);
  color: #9da5b1;
  margin: 15px 0 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.stats-grid > div {
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}
.stats-grid > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.stats-grid > div:nth-child(even) {
  padding-left: 19px;
}
.stats-grid > div:nth-child(n + 3) {
  border-bottom: 0;
  padding-top: 17px;
  padding-bottom: 5px;
}
.stats-grid span {
  display: block;
  font: 700 10px var(--mono);
  color: var(--muted);
  letter-spacing: 0.05em;
}
.stats-grid strong {
  display: block;
  font: 600 29px var(--sans);
  letter-spacing: -0.055em;
  margin-top: 6px;
}
.best-star {
  display: inline !important;
  color: var(--peach) !important;
}
.control-line {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  margin: 20px 0;
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(2, 44px);
  gap: 4px;
}
.dpad button {
  background: #303a46;
  border: 1px solid #56636b;
  color: var(--text);
  font-size: 23px;
  border-radius: 3px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.dpad button:hover,
.dpad button:active {
  background: var(--lime);
  color: var(--ink);
  transform: scale(0.94);
}
.dpad .up {
  grid-column: 2;
  grid-row: 1;
}
.dpad .left {
  grid-column: 1;
  grid-row: 2;
}
.dpad .down {
  grid-column: 2;
  grid-row: 2;
}
.dpad .right {
  grid-column: 3;
  grid-row: 2;
}
.control-help {
  font: 700 11px/1.9 var(--mono);
  color: var(--muted);
}
.control-help span {
  color: var(--lime);
}
.game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.action-button {
  border: 1px solid #48515e;
  background: #2a3341;
  color: var(--text);
  padding: 11px 8px;
  border-radius: 3px;
  font: 700 11px var(--mono);
  transition: background 0.2s;
}
.action-button:hover {
  background: #3c4855;
}
.action-button:first-child {
  grid-column: 1/-1;
  color: var(--lime);
}
.action-button:last-child {
  grid-column: 1/-1;
  color: var(--peach);
}
.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.game-under {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 clamp(24px, 5.3vw, 88px);
  padding: 20px 0 56px;
}
.game-under p {
  margin: 0;
  font: 12px/1.6 var(--mono);
  color: var(--muted);
}
.game-under .text-link {
  white-space: nowrap;
}
.win-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b1515bf;
  padding: 20px;
  backdrop-filter: blur(5px);
  z-index: 2;
}
.win-overlay[hidden] {
  display: none;
}
.win-card {
  max-width: 370px;
  width: 100%;
  text-align: center;
  background: var(--peach);
  color: var(--ink);
  padding: 34px 25px 30px;
  border: 2px solid #f9d5c6;
  box-shadow: 10px 10px 0 #071617;
}
.win-card h2 {
  font-size: clamp(35px, 4vw, 51px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 15px 0;
}
.win-card p {
  font: 13px/1.7 var(--mono);
  margin: 0 0 22px;
}
.win-card .button {
  background: var(--ink);
  color: var(--text);
}
.win-sparkle {
  display: block;
  font-size: 40px;
  animation: turn 7s linear infinite;
}
.records-section {
  border-top: 1px solid var(--line);
  padding: 56px clamp(24px, 5.3vw, 88px) 85px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}
.records-section .small-caps {
  color: var(--lime);
}
.records-section h2 {
  font-size: clamp(39px, 4vw, 58px);
  letter-spacing: -0.06em;
  margin: 15px 0;
}
.records-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 390px;
}
.records-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.recent-runs {
  width: 100%;
  border-top: 1px solid var(--line);
  margin: 5px 0 12px;
}
.recent-runs .empty-runs {
  font: 12px/1.7 var(--mono);
  padding: 17px 0;
}
.run-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font: 12px var(--mono);
}
.run-row span:first-child {
  text-transform: capitalize;
  color: var(--lime);
}
.run-row small {
  color: var(--muted);
}
.export-button:disabled {
  color: #747b83;
  cursor: not-allowed;
  border-color: #747b83;
}
.export-button:disabled:hover {
  gap: 13px;
}
/* NOTEBOOK */
.notes-hero {
  padding-bottom: 80px;
}
.notes-hero h1 {
  font-size: clamp(56px, 6.3vw, 96px);
}
.notes-sticker {
  width: 175px;
  height: 175px;
  flex-shrink: 0;
  background: var(--peach);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(13deg);
  box-shadow: 9px 10px 0 #0a0e17;
  font: 700 11px/1.25 var(--mono);
}
.notes-sticker strong {
  font: 600 62px/1 var(--serif);
}
.notes-index {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 19px clamp(24px, 5.3vw, 88px);
  background: var(--lime);
  color: var(--ink);
  font: 700 11px var(--mono);
}
.notes-index span {
  opacity: 0.6;
  margin-right: auto;
}
.notes-index a:hover {
  text-decoration: underline;
}
.notes-section {
  padding: 94px clamp(24px, 5.3vw, 88px);
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 8%;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.notes-section:nth-of-type(even) {
  background: #191e2c;
}
.notes-heading h2 {
  font-size: clamp(39px, 4.6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.065em;
  font-weight: 500;
  margin: 20px 0;
}
.notes-heading h2 em {
  color: var(--lime);
}
.notes-body > p {
  font-size: 15px;
  color: #bfc2c9;
  line-height: 1.85;
  margin: 0 0 20px;
}
.pull-quote {
  border-left: 3px solid var(--peach);
  padding: 8px 0 8px 24px;
  margin: 30px 0;
  font: italic 26px/1.35 var(--serif);
  color: var(--peach);
}
.logic-intro {
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 13px;
  background: #252d3b;
}
.logic-intro p {
  font-size: 14px;
  line-height: 1.7;
  color: #c4c7d0;
  margin: 0;
}
.logic-doodle {
  flex-shrink: 0;
  color: var(--lime);
  font: 20px/1.1 var(--mono);
}
.logic-steps article {
  display: flex;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.logic-steps article > span {
  font: 700 13px var(--mono);
  color: var(--peach);
  padding-top: 3px;
}
.logic-steps h3 {
  font-size: 18px;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.logic-steps p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.logic-steps strong {
  color: var(--text);
  font-weight: 700;
}
.logic-note {
  background: #dcef99;
  color: var(--ink);
  padding: 20px 24px;
  margin-top: 24px;
}
.logic-note > span {
  font: 700 10px var(--mono);
}
.logic-note p {
  font-size: 14px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.stack-list {
  border-top: 1px solid var(--line);
}
.stack-list > div {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.stack-list span {
  font: 700 12px var(--mono);
  color: var(--lime);
}
.stack-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #bfc2c9;
}
.stack-list code,
.notes-body code {
  font: 12px var(--mono);
  color: var(--peach);
}
.stack-endnote {
  margin-top: 25px !important;
  font-size: 13px !important;
}
.honesty-section {
  background: #222936 !important;
}
.honesty-section .notes-heading h2 em {
  color: var(--peach);
}
.honesty-card {
  border: 1px solid #987c71;
  background: #2d3138;
  padding: 25px;
}
.honesty-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #755f5b;
  padding-bottom: 16px;
  color: var(--peach);
  font: 700 10px var(--mono);
  letter-spacing: 0.03em;
}
.honesty-top span:last-child {
  color: #d7b5a9;
}
.honesty-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #dad6d2;
  margin: 20px 0 0;
}
.honesty-card strong {
  color: #fff;
}
.honesty-card .honesty-emphasis {
  color: var(--peach);
  font-weight: 700;
}
.edit-reminder {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}
.edit-reminder > span {
  font-size: 25px;
  color: var(--lime);
}
.edit-reminder strong {
  font-size: 14px;
}
.edit-reminder p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.notes-outro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 85px clamp(24px, 5.3vw, 88px);
}
.notes-outro h2 {
  font-size: clamp(46px, 6vw, 85px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.97;
  margin: 17px 0 0;
}
.notes-outro h2 em {
  color: var(--lime);
}
/* ANIMATION + RESPONSIVE */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translate(15px, 20px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(2deg);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(-9deg);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-45%);
  }
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1060px) {
  .header-tag {
    display: none;
  }
  .hero {
    gap: 4%;
  }
  .hero h1 {
    font-size: clamp(53px, 6vw, 76px);
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .side-card {
    padding: 17px;
  }
  .board-hint {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 68px;
    justify-content: space-between;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 3px;
    padding: 9px;
  }
  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #202635;
    border-bottom: 1px solid var(--line);
    padding: 15px 24px 20px;
    box-shadow: 0 15px 25px #0005;
    flex-direction: column;
    margin: 0;
    gap: 4px;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 65px;
    padding-bottom: 75px;
    gap: 60px;
  }
  .hero:before {
    left: auto;
    right: 30px;
    top: 34px;
  }
  .hero-art {
    max-width: 550px;
    justify-self: center;
  }
  .hero h1 {
    font-size: clamp(58px, 11vw, 85px);
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card {
    min-height: 290px;
  }
  .game-heading,
  .notes-hero {
    padding-top: 42px;
  }
  .game-heading-doodle {
    display: none;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .board-stage {
    aspect-ratio: 1.05;
    min-height: 0;
  }
  .game-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .controls-card {
    grid-column: 1/-1;
  }
  .control-line {
    justify-content: center;
    gap: 65px;
  }
  .game-under {
    padding-bottom: 45px;
  }
  .records-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .notes-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .notes-sticker {
    width: 140px;
    height: 140px;
  }
  .notes-sticker strong {
    font-size: 48px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .site-footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 550px) {
  .hero h1 {
    font-size: clamp(52px, 13vw, 70px);
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-description {
    font-size: 15px;
  }
  .art-sticker {
    width: 85px;
    height: 85px;
    font-size: 11px;
    right: -7px;
  }
  .section-pad {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .section-label span:last-child {
    display: none;
  }
  .story-grid h2,
  .section-heading {
    font-size: 42px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 0;
    padding: 23px;
  }
  .feature-icon {
    margin: 18px 0;
  }
  .bottom-cta {
    align-items: start;
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .bottom-cta h2 {
    font-size: 53px;
  }
  .game-heading h1,
  .notes-hero h1 {
    font-size: clamp(50px, 11vw, 72px);
  }
  .game-heading {
    padding-bottom: 34px;
  }
  .game-sidebar {
    grid-template-columns: 1fr;
  }
  .controls-card {
    grid-column: auto;
  }
  .board-topbar,
  .board-bottom {
    font-size: 9px;
    padding: 0 10px;
  }
  .board-bottom {
    gap: 12px;
  }
  .board-stage {
    padding: 9px;
  }
  .game-under {
    align-items: start;
    flex-direction: column;
  }
  .notes-hero {
    align-items: start;
    flex-direction: column;
    gap: 36px;
  }
  .notes-sticker {
    align-self: flex-end;
    margin-top: -20px;
    margin-right: 15px;
  }
  .notes-index {
    gap: 14px;
  }
  .notes-index span {
    width: 100%;
  }
  .notes-index a {
    font-size: 10px;
  }
  .logic-intro {
    align-items: start;
    gap: 15px;
  }
  .stack-list > div {
    grid-template-columns: 100px 1fr;
  }
  .honesty-top {
    flex-direction: column;
  }
  .notes-outro {
    align-items: start;
    flex-direction: column;
  }
  .site-footer {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
