:root {
  color-scheme: light;
  --bg: #efe5cf;
  --ink: #3a2a1c;
  --muted: #806d5f;
  --line: #d4c5a9;
  --panel: #fff9ea;
  --soft: #f4ead2;
  --accent: #7d9636;
  --accent-strong: #536823;
  --danger: #b94030;
  --brass: #d8a435;
  --wood-light: #c08a52;
  --wood-mid: #a06838;
  --wood-dark: #8a5a30;
  --wood-deep: #5c3a1e;
  --chalk: #f5f0e8;
  --chalkboard: #1c2418;
  --cream: #faf4e8;
  font-family: Avenir, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(90, 60, 30, 0.045) 1px, transparent 0),
    linear-gradient(0deg, rgba(90, 60, 30, 0.045) 1px, transparent 0),
    radial-gradient(circle at 50% 0, rgba(125, 150, 54, 0.19), transparent 38%),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

svg,
.svgIcon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.svgIcon {
  display: inline-grid;
  place-items: center;
}

.siteShell {
  min-height: 100vh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 10px;
}

.phoneFrame {
  width: min(430px, 100%);
  height: min(900px, calc(100dvh - 20px));
  min-height: 640px;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  overflow: hidden;
  border: 8px solid var(--wood-deep);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--wood-dark), var(--wood-deep));
  box-shadow:
    0 32px 90px rgba(60, 35, 15, 0.36),
    inset 0 2px 0 rgba(255, 240, 200, 0.08);
}

.phoneSign {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, var(--wood-dark), var(--wood-deep));
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.signTitle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: rgba(245, 235, 200, 0.94);
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iconButton {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 245, 220, 0.1);
  color: rgba(245, 235, 200, 0.9);
}

.signTally {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tallyDot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.tallyDot.empty {
  border: 1.5px solid rgba(245, 235, 200, 0.32);
  background: transparent;
}

.tallyDot.pass {
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(125, 150, 54, 0.25);
}

.phoneScreen {
  display: block;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.86), rgba(243, 234, 216, 0.98)),
    repeating-linear-gradient(90deg, rgba(100, 75, 45, 0.03) 0 1px, transparent 1px 20px),
    var(--bg);
  border-radius: 20px 20px 18px 18px;
  overscroll-behavior: contain;
}

.phonePanel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  animation: panelIn 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.heroPanel {
  min-height: 0;
  align-content: start;
}

.academyKicker {
  color: var(--danger);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.phonePanel h1 {
  max-width: 10ch;
  font-family: Georgia, serif;
  font-size: clamp(40px, 10vw, 55px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

.phonePanel p {
  color: #514c43;
  font-size: 15px;
  line-height: 1.46;
}

.introHook {
  color: var(--ink) !important;
  font-family: Georgia, serif;
  font-size: 18px !important;
  font-style: italic;
  font-weight: 500;
  line-height: 1.33 !important;
}

.standScene {
  overflow: hidden;
  border: 1px solid #1e1008;
  border-radius: 12px;
  background: linear-gradient(180deg, #3d2b1e, #2a1c12);
  box-shadow:
    0 20px 48px rgba(40, 25, 10, 0.28),
    inset 0 1px 0 rgba(255, 235, 180, 0.06);
}

.standAwning {
  min-height: 32px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-bottom: 4px solid #1e1008;
  box-shadow: 0 4px 12px rgba(20, 10, 0, 0.3);
}

.standAwning span:nth-child(odd) {
  background: var(--cream);
}

.standAwning span:nth-child(even) {
  background: var(--danger);
}

.miniShelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 230, 160, 0.05), transparent 40%), #2e1e12;
}

.appleStack {
  min-height: 122px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 8px 7px;
  border: 1px solid #d4bc96;
  border-bottom: 3px solid #c4aa80;
  border-radius: 8px;
  background: linear-gradient(160deg, #fdf8ed, #f0e0b8);
  color: var(--ink);
  text-align: center;
}

.appleStack strong {
  font-size: 13px;
  line-height: 1.1;
}

.appleStack small {
  color: var(--muted);
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.appleCluster {
  min-height: 58px;
  position: relative;
}

.appleCluster span {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, 0.14);
}

.red .appleCluster span {
  background: var(--danger);
}

.green .appleCluster span {
  background: var(--accent);
}

.gold .appleCluster span {
  background: var(--brass);
}

.appleCluster span::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 8px;
  top: -4px;
  left: 13px;
  border-radius: 999px;
  background: var(--wood-deep);
  transform: rotate(12deg);
}

.appleCluster span:nth-child(1) { left: 10px; bottom: 0; }
.appleCluster span:nth-child(2) { left: 36px; bottom: 0; }
.appleCluster span:nth-child(3) { left: 22px; bottom: 23px; }
.appleCluster span:nth-child(4) { left: 50px; bottom: 20px; }
.appleCluster span:nth-child(5) { left: 4px; bottom: 25px; }

.standCounter {
  min-height: 21px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px;
  background: linear-gradient(180deg, var(--wood-dark), var(--wood-deep));
}

.standCounter span {
  border-radius: 3px;
  background: linear-gradient(180deg, var(--wood-mid), var(--wood-dark));
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08);
}

.woodButton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #6f421f;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood-mid));
  color: #fff8e8;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(60, 30, 10, 0.4);
}

.woodButton:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.wide {
  width: 100%;
}

.standTracker,
.chalkboardBeat {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid #0e1a0c;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255, 255, 200, 0.03) 0, transparent 60%),
    var(--chalkboard);
  color: var(--chalk);
  box-shadow: 0 14px 32px rgba(15, 25, 10, 0.24);
}

.flowBoard {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(160deg, #fffaf0, #efe0bd);
  box-shadow: 0 12px 24px rgba(70, 45, 20, 0.09);
}

.boardKicker {
  color: var(--danger);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flowSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.flowSteps button {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d4bc96;
  border-bottom: 3px solid #c4aa80;
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  text-align: left;
}

.flowSteps b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.flowSteps strong {
  font-size: 13px;
  line-height: 1.08;
}

.flowSteps small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.aisleScene {
  overflow: hidden;
  display: grid;
  gap: 0;
  border: 1px solid #22140a;
  border-radius: 12px;
  background: linear-gradient(180deg, #27311e, #171d13);
  box-shadow: 0 18px 40px rgba(40, 25, 10, 0.24);
}

.aisleHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 3px solid #10150d;
  background: linear-gradient(180deg, #f8eed0, #e8d6a7);
}

.aisleHeader span {
  color: var(--danger);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aisleHeader strong {
  max-width: 18ch;
  font-size: 12px;
  line-height: 1.12;
  text-align: right;
}

.shelfWall {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  padding: 14px 12px 18px;
  background:
    linear-gradient(transparent 29%, rgba(255, 244, 210, 0.12) 30%, transparent 32%),
    linear-gradient(transparent 62%, rgba(255, 244, 210, 0.12) 63%, transparent 65%),
    #27311e;
}

.sku {
  height: 34px;
  border: 1px solid rgba(255, 245, 210, 0.22);
  border-radius: 4px 4px 2px 2px;
  background: #f7f0d8;
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, 0.08);
}

.sku1 { background: #b94030; }
.sku2 { background: #7d9636; }
.sku3 { background: #d8a435; }
.sku4 { background: #fff6de; }
.sku5 { background: #a06838; }

.floorLines {
  min-height: 48px;
  position: relative;
  background: linear-gradient(180deg, #59402a, #2e1f14);
}

.floorLines span {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 62px;
  background: rgba(255, 244, 210, 0.16);
  transform-origin: bottom;
}

.floorLines span:nth-child(1) { left: 22%; transform: rotate(34deg); }
.floorLines span:nth-child(2) { left: 50%; transform: rotate(0deg); }
.floorLines span:nth-child(3) { right: 22%; transform: rotate(-34deg); }

.gamePromo {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #20140d;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(28, 36, 24, 0.9), rgba(83, 104, 35, 0.9)),
    #1c2418;
  color: var(--chalk);
  box-shadow: 0 18px 42px rgba(40, 25, 10, 0.22);
}

.promoCopy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.promoCopy span,
.gamePosterCopy span,
.gameLaunchCard span {
  color: #f3c64f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promoCopy strong {
  color: #fff8e8;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.05;
}

.promoCopy p {
  color: rgba(245, 240, 232, 0.82);
  font-size: 12px;
  line-height: 1.3;
}

.gamePromo .woodButton {
  grid-column: 1 / -1;
}

.gameMiniPhone {
  width: 108px;
  min-height: 142px;
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 5px solid #5c3a1e;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff6de, #e8d4a5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.miniSign {
  padding: 7px 5px;
  background: #2b1a10;
  color: #fff8e8;
  font-size: 9px;
  font-weight: 950;
  text-align: center;
}

.miniAwning {
  min-height: 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 3px solid #2b1a10;
}

.miniAwning i:nth-child(odd) { background: #fff8e8; }
.miniAwning i:nth-child(even) { background: var(--danger); }

.miniApples {
  height: 72px;
  position: relative;
  background: linear-gradient(180deg, #f5e6bf, #d7b677);
}

.miniApples b {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, 0.14);
}

.miniApples b:nth-child(1) { left: 18px; bottom: 13px; }
.miniApples b:nth-child(2) { left: 42px; bottom: 13px; background: var(--accent); }
.miniApples b:nth-child(3) { left: 30px; bottom: 34px; background: var(--brass); }
.miniApples b:nth-child(4) { right: 15px; bottom: 30px; }
.miniApples b:nth-child(5) { left: 8px; bottom: 33px; background: var(--accent); }

.miniButton {
  width: calc(100% - 16px);
  height: 17px;
  justify-self: center;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--wood-mid);
}

.gamePanel h1 {
  max-width: 100%;
  font-size: clamp(38px, 9vw, 54px);
}

.academyIntro {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, #fffaf0, #f1e3c4);
  box-shadow: 0 10px 20px rgba(70, 45, 20, 0.07);
}

.academyIntro span {
  color: var(--danger);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academyIntro strong {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.academyIntro p {
  font-size: 13px;
}

.gameHeroScene {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.75fr);
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #1e1008;
  border-radius: 12px;
  background: linear-gradient(180deg, #25311b, #151d12);
  box-shadow: 0 20px 48px rgba(40, 25, 10, 0.25);
}

.gamePhoneMock {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  border: 6px solid #5c3a1e;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff4da, #e2ca91);
}

.gameTopBar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  background: #2b1a10;
  color: #fff8e8;
}

.gameTopBar span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gameTopBar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3c64f;
}

.gameAwning {
  min-height: 30px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-bottom: 4px solid #2b1a10;
}

.gameAwning span:nth-child(odd) { background: var(--cream); }
.gameAwning span:nth-child(even) { background: var(--danger); }

.gameCrates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-content: end;
  padding: 12px 9px;
}

.gameCrates div {
  min-height: 118px;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
  padding: 8px 5px;
  border: 1px solid #d2b06f;
  border-bottom: 4px solid #b98b48;
  border-radius: 8px;
  background: #fff8e8;
}

.gameCrates b {
  width: 24px;
  height: 24px;
  margin-bottom: -9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, 0.12);
}

.gameCrates div:nth-child(2) b { background: var(--accent); }
.gameCrates div:nth-child(3) b { background: var(--brass); }

.gameCrates strong {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1;
}

.gameCrates small {
  color: var(--muted);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 900;
}

.gameChoice {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 7px;
  background: #f8eed0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.gamePosterCopy {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 240, 232, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(185, 64, 48, 0.22), transparent 52%),
    rgba(0, 0, 0, 0.22);
}

.gamePosterCopy strong {
  color: #fff8e8;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.1;
}

.gameLaunchCard {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(160deg, #fffaf0, #efe0bd);
  box-shadow: 0 12px 24px rgba(70, 45, 20, 0.09);
}

.gameLaunchCard div {
  display: grid;
  gap: 6px;
}

.gameLaunchCard span {
  color: var(--danger);
}

.gameLaunchCard strong {
  font-size: 20px;
  line-height: 1.12;
}

.gameLaunchCard p {
  font-size: 13px;
}

.recruitmentPath {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.recruitmentPath article {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.recruitmentPath b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: 'Courier New', monospace;
}

.recruitmentPath strong {
  font-size: 15px;
  line-height: 1.1;
}

.recruitmentPath p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.artifactGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.artifactCard {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.artifactCard strong {
  font-size: 13px;
  line-height: 1.1;
}

.artifactCard p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.artifactVisual {
  height: 64px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(160deg, #f2e6c8, #dec693);
}

.artifactVisual.price span:first-child {
  position: absolute;
  inset: 14px 10px;
  border-radius: 5px;
  background: #fff8e8;
  box-shadow: inset 0 0 0 2px #d8a435;
}

.artifactVisual.price span:nth-child(2) {
  position: absolute;
  left: 20px;
  top: 23px;
  width: 30px;
  height: 10px;
  background: var(--danger);
}

.artifactVisual.price span:nth-child(3) {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
}

.artifactVisual.pack span {
  position: absolute;
  bottom: 11px;
  width: 25px;
  height: 38px;
  border: 1px solid #d4bc96;
  border-radius: 5px;
  background: #fff8e8;
}

.artifactVisual.pack span:first-child { left: 17px; }
.artifactVisual.pack span:nth-child(2) { left: 43px; background: #b94030; }
.artifactVisual.pack span:nth-child(3) { right: 17px; background: #7d9636; }

.artifactVisual.basket span:first-child {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 30px;
  border-radius: 7px 7px 12px 12px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood-mid));
}

.artifactVisual.basket span:nth-child(2),
.artifactVisual.basket span:nth-child(3) {
  position: absolute;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: inset -2px -3px 0 rgba(0, 0, 0, 0.14);
}

.artifactVisual.basket span:nth-child(2) { left: 31px; }
.artifactVisual.basket span:nth-child(3) { right: 31px; background: var(--brass); }

.methodScene,
.empireScene,
.questionScene,
.readingScene {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(160deg, #fffaf0, #f0e0bd);
  box-shadow: 0 12px 24px rgba(70, 45, 20, 0.09);
}

.methodScene {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 0.8fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.clipboardScene {
  min-height: 98px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 21px 12px 12px;
  border: 2px solid #4f3825;
  border-radius: 8px;
  background: #fffdf6;
}

.clipboardScene .clip {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 36px;
  height: 18px;
  border-radius: 5px;
  background: var(--brass);
  transform: translateX(-50%);
}

.clipboardScene i {
  height: 8px;
  border-radius: 999px;
  background: #d8d0c2;
}

.clipboardScene i:nth-child(3) { width: 72%; }
.clipboardScene i:nth-child(4) { width: 86%; }

.methodArrow {
  color: var(--danger);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
}

.chalkMini {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 11px;
  border-radius: 8px;
  background: var(--chalkboard);
  color: var(--chalk);
}

.chalkMini span {
  color: rgba(163, 189, 78, 0.9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chalkMini strong {
  font-size: 13px;
  line-height: 1.15;
}

.bookMini {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #5c3a1e;
  color: #fff8e8;
}

.bookMini span {
  width: 36px;
  height: 48px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f8eed0 0 44%, #e4cf9a 45% 52%, #f8eed0 53%);
}

.bookMini strong {
  font-size: 12px;
}

.empireScene {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #efe2be 0 46%, #64442b 47% 100%);
}

.factoryBlock {
  position: absolute;
  left: 18px;
  top: 27px;
  width: 116px;
  height: 75px;
  background: #a06838;
  clip-path: polygon(0 30%, 22% 30%, 22% 12%, 34% 12%, 34% 30%, 52% 30%, 52% 0, 65% 0, 65% 30%, 100% 30%, 100% 100%, 0 100%);
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, 0.12);
}

.factoryBlock span {
  position: absolute;
  bottom: 14px;
  width: 16px;
  height: 18px;
  background: #f8eed0;
}

.factoryBlock span:nth-child(1) { left: 18px; }
.factoryBlock span:nth-child(2) { left: 47px; }
.factoryBlock span:nth-child(3) { left: 76px; }

.empireRoad {
  position: absolute;
  left: 91px;
  right: 108px;
  bottom: 0;
  height: 104px;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 210, 0.18), transparent);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
}

.empireShelf {
  position: absolute;
  right: 18px;
  top: 31px;
  width: 118px;
  height: 78px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: #27311e;
}

.empireShelf span {
  flex: 1;
  height: 42px;
  border-radius: 4px;
  background: var(--cream);
}

.empireShelf span:nth-child(2) { height: 56px; background: var(--danger); }
.empireShelf span:nth-child(3) { height: 34px; background: var(--brass); }
.empireShelf span:nth-child(4) { height: 61px; background: var(--accent); }

.empireCaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.88);
}

.empireCaption span {
  color: var(--danger);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.empireCaption strong {
  line-height: 1.16;
}

.questionScene {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
}

.questionScene span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #d8a435;
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  box-shadow: inset 0 -5px 0 rgba(216, 164, 53, 0.16);
}

.readingScene {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.openBook {
  min-height: 112px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 15px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f8eed0 0 49%, #d8c18b 50% 51%, #f8eed0 52%);
  box-shadow: 0 8px 18px rgba(70, 45, 20, 0.15);
}

.openBook span {
  height: 8px;
  border-radius: 999px;
  background: rgba(92, 58, 30, 0.22);
}

.openBook span:nth-child(2) { margin-top: 19px; }
.openBook span:nth-child(3) { margin-top: 40px; }
.openBook span:nth-child(4) { margin-top: 58px; }

.marginNote {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 4px solid var(--danger);
  border-radius: 0 8px 8px 0;
  background: #fffdf6;
}

.marginNote strong {
  line-height: 1.12;
}

.marginNote small {
  color: var(--muted);
  font-weight: 800;
}

.changeBanner {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 200, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 200, 0.04);
}

.changeBanner span,
.chalkLabel {
  color: rgba(163, 189, 78, 0.9);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.changeBanner strong {
  color: var(--chalk);
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.trackerCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.trackerCards div {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  gap: 5px;
  padding: 8px;
  border: 1px solid #d4bc96;
  border-bottom: 2px solid #c4aa80;
  border-radius: 8px;
  background: linear-gradient(160deg, #fdf6e3, #f5e8c8);
}

.trackerCards span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.trackerCards strong {
  color: var(--ink);
  font-family: 'Courier New', monospace;
  font-size: 21px;
  line-height: 1;
}

.trackerCards small {
  color: #625d53;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.methodStack {
  display: grid;
  gap: 10px;
}

.pathCard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, #fdf8ed, #f5e8cc);
  box-shadow: 0 8px 18px rgba(63, 50, 35, 0.06);
}

.pathCard span {
  grid-row: span 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--chalkboard);
  color: var(--chalk);
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.pathCard strong {
  font-size: 18px;
  line-height: 1.1;
}

.pathCard small {
  color: var(--danger);
  font-weight: 950;
  text-transform: uppercase;
}

.pathCard p {
  font-size: 13px;
}

.phoneHeaderBlock {
  display: grid;
  gap: 6px;
  padding: 11px 11px 11px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--wood-mid);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(160deg, #fdf8ed, #f5ead4);
  box-shadow: 0 4px 12px rgba(63, 50, 35, 0.08);
}

.phoneHeaderBlock span {
  color: var(--danger);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phoneHeaderBlock strong {
  line-height: 1.26;
}

.mechanismGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mechanismGrid article {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 200, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.mechanismGrid strong {
  color: var(--chalk);
}

.mechanismGrid p {
  color: rgba(245, 240, 232, 0.78);
  font-size: 12px;
}

.authorBlock {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.authorBlock svg {
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.authorBlock span {
  color: var(--danger);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authorBlock p {
  margin-top: 4px;
  font-size: 13px;
}

.isIsnt,
.faqList {
  display: grid;
  gap: 8px;
}

.isIsnt span,
.faqList details {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.isIsnt span {
  color: #514c43;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.faqList summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.faqList p {
  margin-top: 9px;
  font-size: 13px;
}

.readingPanel h1 {
  max-width: 11ch;
}

.searchBox {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--muted);
}

.searchBox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.trajectory {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(125, 150, 54, 0.3);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(125, 150, 54, 0.08);
}

.trajectory strong {
  color: var(--accent-strong);
}

.trajectory span {
  color: #3d4c18;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.26;
}

.prologueText {
  display: grid;
  gap: 12px;
  padding-bottom: 6px;
}

.prologueText p {
  padding: 13px;
  border: 1px solid #e3d8c2;
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.7);
  font-size: 14px;
}

.siteFooter {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 22px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 249, 234, 0.68);
  color: var(--muted);
  font-size: 12px;
}

.footerNote {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
}

.footerMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.siteFooter a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.siteFooter a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.marketNav {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(40, 25, 10, 0.4);
}

.marketNav.open {
  display: grid;
}

.navPanel {
  width: min(360px, 100%);
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 8px solid var(--wood-deep);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff9ea, #f0e4c4);
  box-shadow: 0 24px 70px rgba(40, 25, 10, 0.36);
}

.navPanel .closeButton {
  justify-self: end;
  background: var(--wood-deep);
}

.navPanel button:not(.closeButton) {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.navPanel button.active {
  border-color: var(--accent);
  background: #edf4da;
  color: var(--accent-strong);
}

@keyframes panelIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 780px) {
  .siteShell {
    padding: 18px;
  }

  .phoneFrame {
    width: min(980px, 100%);
    grid-template-rows: 42px minmax(0, 1fr);
  }

  .phoneScreen {
    display: block;
  }

  .phonePanel,
  .siteFooter {
    width: min(860px, 100%);
    margin-inline: auto;
  }

  .heroPanel {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
    align-items: center;
  }

  .heroPanel .academyKicker,
  .heroPanel h1,
  .heroPanel .introHook,
  .heroPanel .woodButton {
    grid-column: 1;
  }

  .heroPanel .standScene,
  .heroPanel .standTracker {
    grid-column: 2;
  }

  .heroPanel .standScene {
    grid-row: 1 / span 4;
  }

  .phonePanel h1 {
    font-size: clamp(52px, 7vw, 82px);
  }

  .gamePanel {
    grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
    align-items: start;
  }

  .gamePanel h1 {
    font-size: clamp(48px, 5vw, 66px);
  }

  .gamePanel .academyKicker,
  .gamePanel h1,
  .gamePanel .introHook,
  .gamePanel .academyIntro,
  .gamePanel .gameLaunchCard,
  .gamePanel .academyModules,
  .gamePanel .recruitmentPath,
  .gamePanel > .woodButton {
    grid-column: 1;
  }

  .gamePanel .gameHeroScene,
  .gamePanel .farmGame {
    grid-column: 2;
  }

  .gamePanel .gameHeroScene {
    grid-row: 1 / span 4;
  }

  .gamePanel .farmGame {
    grid-row: 5 / span 4;
  }
}

@media (max-width: 430px) {
  .siteShell {
    padding: 0;
  }

  .phoneFrame {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border-width: 0;
    border-radius: 0;
  }

  .phoneScreen {
    border-radius: 0;
  }

  .phonePanel {
    padding: 14px;
  }

  .trackerCards,
  .mechanismGrid,
  .artifactGrid,
  .questionScene,
  .academyModules,
  .recruitmentPath {
    grid-template-columns: 1fr;
  }

  .flowSteps,
  .methodScene,
  .readingScene,
  .gameHeroScene {
    grid-template-columns: 1fr;
  }

  .gamePromo {
    grid-template-columns: 1fr;
  }

  .gameMiniPhone {
    width: 100%;
    min-height: 116px;
    border-radius: 12px;
  }

  .gamePhoneMock {
    min-height: 230px;
  }

  .gamePosterCopy {
    min-height: 120px;
  }

  .farmStats,
  .resultMeters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gameActions {
    grid-template-columns: 1fr;
  }

  .quietButton {
    min-width: 0;
  }

  .methodArrow {
    transform: rotate(90deg);
    justify-self: center;
    line-height: 0.7;
  }

  .appleCluster span {
    width: 24px;
    height: 24px;
  }

  .appleStack {
    min-height: 104px;
  }

  .appleCluster span:nth-child(1) { left: 7px; bottom: 0; }
  .appleCluster span:nth-child(2) { left: 28px; bottom: 0; }
  .appleCluster span:nth-child(3) { left: 18px; bottom: 19px; }
  .appleCluster span:nth-child(4) { left: 39px; bottom: 17px; }
  .appleCluster span:nth-child(5) { left: 1px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
