@font-face {
  font-family: 'Luckiest Guy';
  src: url('../LuckiestGuy-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --sky: #8fd0f7;
  --sky-deep: #3f8fe0;
  --paper: #fbf4e3;
  --paper-2: #f3e6c8;
  --paper-3: #eadab4;
  --ink: #22301f;
  --ink-soft: #4d5b46;
  --leaf: #5b8a4c;
  --leaf-dark: #36602e;
  --sun: #f2c230;
  --orange: #ec8a34;
  --red: #d1493f;
  --cream: #fffaf0;
  --radius: 22px;
  --shadow: 0 6px 0 var(--ink);
  --display: 'Luckiest Guy', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ------------------------------------------------------------ type */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}
.sticker {
  color: var(--cream);
  --o: 3px;
  text-shadow:
    var(--o) var(--o) 0 var(--ink), calc(-1 * var(--o)) var(--o) 0 var(--ink),
    var(--o) calc(-1 * var(--o)) 0 var(--ink), calc(-1 * var(--o)) calc(-1 * var(--o)) 0 var(--ink),
    0 var(--o) 0 var(--ink), 0 calc(-1 * var(--o)) 0 var(--ink), var(--o) 0 0 var(--ink), calc(-1 * var(--o)) 0 0 var(--ink),
    0 calc(var(--o) * 2.6) 0 var(--ink);
}
h2.display { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.sticker.sun { color: var(--sun); }
.sticker.leafy { color: #9ccc4a; }
.sticker.peach { color: #f5a33e; }
.sticker.skyish { color: #6fb6ee; }
.sticker.pink { color: #f59ac0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--leaf-dark);
  background: color-mix(in srgb, var(--leaf) 16%, transparent);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

/* ------------------------------------------------------------ buttons */
.btn {
  --bg: var(--sun);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 900; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.small { padding: 9px 16px; font-size: 0.95rem; box-shadow: 0 4px 0 var(--ink); }
.btn.cream { --bg: var(--cream); }
.btn.green { --bg: #9ccc4a; }
.btn.orange { --bg: var(--orange); }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  transition: background .3s, box-shadow .3s, transform .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 85%, transparent), 0 0 0 3px var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); }
.brand span { font-family: var(--display); font-size: 1.7rem; line-height: 1; padding-top: 4px; }
.nav:not(.scrolled) .brand span { color: var(--cream); text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; font-size: 0.98rem;
}
.nav-links a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav:not(.scrolled) .nav-links a { color: var(--ink); background: color-mix(in srgb, var(--cream) 70%, transparent); }
.nav .gh { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); }
.nav .gh svg { width: 22px; height: 22px; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sheet {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  display: none; flex-direction: column; gap: 4px; padding: 10px;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink);
}
.sheet a { text-decoration: none; font-weight: 900; font-size: 1.1rem; padding: 12px 16px; border-radius: 14px; }
.sheet a:active, .sheet a:hover { background: var(--paper-2); }
.nav.open .sheet { display: flex; animation: drop .2s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 100svh; min-height: 640px; max-height: 1100px;
  overflow: hidden;
  background: linear-gradient(#3f8fe0, #cde9f7 70%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
#hero-canvas.dragging { cursor: grabbing; }
.hero-fallback { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .6s; }
.no-webgl .hero-fallback { opacity: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 46% 60% at 16% 54%, rgba(255, 252, 240, 0.55), rgba(255, 252, 240, 0) 72%);
}
.hero-copy {
  position: absolute; z-index: 2;
  left: var(--gutter); top: 50%; transform: translateY(-46%);
  width: min(560px, 44vw);
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 999px;
  padding: 5px 14px 5px 8px; font-weight: 900; font-size: 0.9rem; box-shadow: 0 4px 0 var(--ink);
  margin: 0 0 22px;
}
.kicker b { background: var(--leaf); color: var(--cream); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; letter-spacing: .05em; }
.logo-type {
  font-size: clamp(6rem, 15vw, 13.5rem);
  color: var(--sun);
  --o: 6px;
  margin: 0 0 6px -6px;
  display: flex;
}
.logo-type span { display: inline-block; animation: pop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.logo-type span:nth-child(2) { animation-delay: .08s; color: #f5a33e; }
.logo-type span:nth-child(3) { animation-delay: .16s; color: #9ccc4a; }
.logo-type span:nth-child(4) { animation-delay: .24s; color: #6fb6ee; }
@keyframes pop { from { transform: translateY(40px) scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero .lede { font-size: clamp(1.08rem, 1.5vw, 1.32rem); font-weight: 700; color: var(--ink); margin: 18px 0 26px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* hero: Windows plus two compact buttons for macOS and Linux in one row */
.hero .cta { gap: 10px; }
.hero .cta .btn.cream { padding-left: 17px; padding-right: 17px; gap: 8px; }
.meta { margin-top: 16px; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }

.hero-ui {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 64px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.chips {
  display: flex; gap: 6px; padding: 6px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink);
  backdrop-filter: blur(6px);
}
.chip {
  border: 0; background: transparent; border-radius: 999px; padding: 8px 14px 8px 10px;
  font-weight: 900; font-size: 0.92rem; cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: background .2s, transform .15s;
}
.chip i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); display: block; }
.chip:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.chip[aria-selected="true"] i { border-color: var(--cream); }
.hero-tools { display: flex; gap: 10px; align-items: center; }
.hint { font-size: 0.85rem; font-weight: 800; color: var(--ink); background: color-mix(in srgb, var(--cream) 75%, transparent); padding: 4px 12px; border-radius: 999px; }
.follow[aria-pressed="true"] { --bg: #9ccc4a; }
.biome-name {
  position: absolute; z-index: 2; right: var(--gutter); top: 96px;
  font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2.1rem); color: var(--cream); --o: 2px;
  opacity: 0; transform: translateY(-10px); transition: opacity .5s, transform .5s;
}
.biome-name.show { opacity: 1; transform: none; }
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  animation: bob 2s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
.edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; z-index: 2; pointer-events: none; }
.edge path { fill: var(--paper); }

/* ------------------------------------------------------------ sections */
section { position: relative; }
.pad { padding-block: clamp(80px, 11vw, 150px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* scout editor */
.scout-sec { background: var(--paper); }
.scout-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.scout-grid .stage { position: sticky; top: 104px; }
.scout-grid > *, .ob > *, .gallery-head > * { min-width: 0; }
.stage {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 36px;
  background:
    radial-gradient(circle at 50% 38%, #fff8dd 0 30%, transparent 62%),
    linear-gradient(#bfe6fb, #e9f6ff 60%, #f6efd9);
  border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
}
.stage::after {
  content: ''; position: absolute; inset: auto 0 0; height: 28%;
  background: repeating-linear-gradient(100deg, transparent 0 18px, rgba(91, 138, 76, .06) 18px 22px);
  pointer-events: none;
}
#scout-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#scout-canvas:active { cursor: grabbing; }
.stage .tag {
  position: absolute; left: 18px; top: 18px; z-index: 2;
  font-weight: 900; font-size: 0.85rem; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px;
}
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 26px 0 22px; }
.editor > * { min-width: 0; }
.row-label { font-weight: 900; font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.sw {
  width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; padding: 0;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s;
}
.sw:hover { transform: translateY(-2px); }
.sw[aria-checked="true"] { outline: 3px solid var(--orange); outline-offset: 2px; transform: scale(1.08); }
.cycler { display: flex; align-items: center; gap: 10px; }
.cycler button {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream);
  font-weight: 900; box-shadow: 0 3px 0 var(--ink); cursor: pointer; display: grid; place-items: center;
}
.cycler button:active { transform: translateY(3px); box-shadow: none; }
.cycler output { min-width: 130px; text-align: center; font-weight: 900; background: var(--paper-2); border-radius: 999px; padding: 6px 14px; }
.cyclers { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 18px; }
kbd {
  font-family: var(--body); font-weight: 900; font-size: 0.85em;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 7px; padding: 1px 7px; box-shadow: 0 2px 0 var(--ink);
}

/* statement band */
.band {
  background: var(--leaf-dark); color: var(--cream);
  padding-block: clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.band::before, .band::after {
  content: ''; position: absolute; left: 0; right: 0; height: 40px;
  background: var(--paper);
  -webkit-mask: radial-gradient(22px 20px at 50% 0, #000 98%, transparent) 0 0 / 44px 40px repeat-x;
          mask: radial-gradient(22px 20px at 50% 0, #000 98%, transparent) 0 0 / 44px 40px repeat-x;
}
.band::before { top: -1px; }
.band::after { bottom: -1px; transform: scaleY(-1); }
.band h2 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); color: var(--cream); }
.band h2 em { font-style: normal; color: var(--sun); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; color: var(--sun); }
.stat span { font-weight: 800; opacity: .85; }

/* biome gallery */
.biomes { background: var(--paper); overflow: hidden; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 4px 0 var(--ink); cursor: pointer; display: grid; place-items: center; }
.arrows button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.arrows svg { width: 22px; }
.track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 36px var(--gutter) 30px;
  margin-top: 10px;
  cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 clamp(270px, 36vw, 480px);
  scroll-snap-align: center;
  border: 3px solid var(--ink); border-radius: 26px; overflow: hidden;
  background: var(--cream); box-shadow: 0 7px 0 var(--ink);
  transform: rotate(var(--r, 0deg));
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1);
  cursor: zoom-in; padding: 0; margin: 0; text-align: left;
}
.card:nth-child(3n+1) { --r: -1.2deg; }
.card:nth-child(3n+2) { --r: 0.8deg; }
.card:nth-child(3n) { --r: -0.4deg; }
.card:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; border-bottom: 3px solid var(--ink); }
.card figcaption { padding: 14px 18px 16px; }
.card figcaption b { font-family: var(--display); font-size: 1.5rem; display: block; line-height: 1.1; padding-top: 3px; }
.card figcaption span { font-size: 0.95rem; color: var(--ink-soft); font-weight: 700; }

/* obstacles */
.obstacles { background: var(--paper-2); }
.obstacles::before {
  content: ''; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: var(--paper-2);
  -webkit-mask: radial-gradient(30px 26px at 50% 100%, #000 98%, transparent) 0 0 / 60px 40px repeat-x;
          mask: radial-gradient(30px 26px at 50% 100%, #000 98%, transparent) 0 0 / 60px 40px repeat-x;
}
.ob { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: clamp(50px, 7vw, 90px); }
.ob:nth-of-type(even) { grid-template-columns: 1fr 1.25fr; }
.ob:nth-of-type(even) .shot { order: 2; }
.shot { position: relative; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 var(--ink); cursor: zoom-in; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.04); }
.shot .num {
  position: absolute; left: 16px; top: 16px;
  font-family: var(--display); font-size: 1.6rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; padding-top: 4px;
  background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.ob h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; margin: 0 0 14px; }
.ob p { color: var(--ink-soft); margin: 0 0 18px; }
.ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ways li {
  position: relative; padding-left: 58px !important;
  background: var(--cream); border: 2px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 16px; padding: 10px 14px;
  font-weight: 700; font-size: 0.98rem;
}
.ways li::before {
  content: attr(data-i); position: absolute; left: 14px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--leaf); color: var(--cream); font-weight: 900; font-size: 0.85rem;
}
.ways small { display: block; font-weight: 600; color: var(--ink-soft); }

/* merit badges */
.badges { background: var(--paper); }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.badge {
  background: var(--cream); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink);
  padding: 26px 24px 24px; text-align: center; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1);
}
.badge:hover { transform: translateY(-6px) rotate(-1deg); }
.patch { width: 118px; height: 118px; margin: -2px auto 14px; display: block; filter: drop-shadow(0 4px 0 var(--ink)); }
.badge:hover .patch { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.badge h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; margin: 0 0 8px; line-height: 1.05; padding-top: 3px; }
.badge p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* controls */
.controls { background: var(--paper-2); }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.key {
  display: flex; align-items: center; gap: 14px; background: var(--cream); border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); padding: 12px 14px; font-weight: 800;
}
.key kbd { font-size: 1rem; min-width: 44px; text-align: center; padding: 6px 8px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); border-radius: 10px; }

/* download */
.download {
  background: linear-gradient(180deg, var(--paper-2), #cfeaf8 38%, #9fd6f5);
  overflow: hidden;
  padding-bottom: 0;
}
.dl-card {
  position: relative; z-index: 2;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 36px; box-shadow: 0 10px 0 var(--ink);
  padding: clamp(28px, 5vw, 60px); text-align: center;
  max-width: 880px; margin: 0 auto;
}
.dl-card h2 { color: var(--sun); --o: 4px; }
.dl-card .cta { justify-content: center; margin-top: 28px; }
.dl-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }
.dl-notes span::before { content: '✓ '; color: var(--leaf); font-weight: 900; }
.smartscreen { margin: 18px auto 0; max-width: 60ch; font-size: 0.9rem; color: var(--ink-soft); }
.troop { position: relative; z-index: 1; width: min(900px, 96%); margin: -30px auto 0; transform: translateY(8%); }
.hill { position: absolute; left: -5%; right: -5%; bottom: -1px; height: 26%; background: #6fa64a; border-radius: 50% 50% 0 0 / 60% 60% 0 0; z-index: 1; border-top: 3px solid var(--ink); }
.troop img { position: relative; z-index: 2; width: 100%; height: auto; }

footer { background: #6fa64a; color: var(--ink); padding: 34px 0 44px; font-size: 0.95rem; font-weight: 700; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
footer a { font-weight: 900; }
footer .credits { max-width: 70ch; opacity: .9; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(20, 28, 18, 0.88); padding: 24px;
}
.lightbox.open { display: grid; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); }
.lightbox img { border-radius: 18px; border: 3px solid var(--cream); max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 12px; font-weight: 800; }
.lightbox figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; display: block; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 4px 0 var(--ink); cursor: pointer; display: grid; place-items: center; }
.lb-btn svg { width: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .nav .gh { display: none; }
  .nav .dl-nav { margin-left: auto; }
  .hero-copy { width: auto; right: var(--gutter); top: 96px; transform: none; }
  .hero::before { background: linear-gradient(rgba(255, 252, 240, 0.72), rgba(255, 252, 240, 0) 62%); }
  .hero .lede { max-width: 42ch; }
  .hero-ui { left: var(--gutter); right: var(--gutter); align-items: center; bottom: 76px; }
  .biome-name { display: none; }
  .scout-grid, .ob, .ob:nth-of-type(even) { grid-template-columns: 1fr; }
  .ob:nth-of-type(even) .shot { order: 0; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .keys { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .nav { inset: 10px 10px auto; gap: 10px; }
  .nav.scrolled, .nav.open { background: var(--cream); }
  .brand span { font-size: 1.45rem; }
  .dl-nav { padding: 8px 12px; }
  /* scout editor: the 3D stage stays on top while the colors scroll underneath */
  .scout-grid .stage { position: sticky; top: 68px; z-index: 5; aspect-ratio: auto; height: 38svh; min-height: 250px; border-radius: 26px; }
  .stage .tag { font-size: .75rem; left: 12px; top: 12px; }
  .swatches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; }
  .swatches::-webkit-scrollbar { display: none; }
  .sw { flex: 0 0 38px; width: 38px; height: 38px; scroll-snap-align: start; }
  .cycler output { min-width: 0; flex: 1; }
  .cyclers { flex-direction: column; gap: 12px; }
  .cyclers > div { width: 100%; }
  .cycler button { width: 44px; height: 44px; }
  .editor-actions .btn { flex: 1; }
  .track { gap: 14px; }
  .card { flex-basis: 82vw; }
  .card figcaption b { font-size: 1.3rem; }
  .ob h3 { font-size: 2rem; }
  .shot .num { width: 44px; height: 44px; font-size: 1.2rem; }
  .dl-card { border-radius: 26px; }
  .dl-card .cta { flex-direction: column; }
  .dl-card .cta .btn { width: 100%; }
  .troop { margin-top: -10px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .logo-type { font-size: 5.6rem; --o: 4px; }
  .hero .lede { font-size: 1rem; margin: 10px 0 18px; }
  .kicker { margin-bottom: 12px; font-size: .8rem; }
  .chips { flex-wrap: wrap; justify-content: center; border-radius: 24px; }
  .chip { padding: 6px 10px 6px 8px; font-size: .85rem; }
  .hint { display: none; }
  .badge-grid, .keys { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .hero .cta { flex-wrap: wrap; gap: 10px; }
  .hero .cta .btn { flex: 1 1 0; padding: 11px 14px; font-size: .95rem; }
  .hero .cta .btn:first-child { flex-basis: 100%; }
  .hero .meta { display: none; }
  .hero-copy { top: 84px; }
  .hero-ui { bottom: 70px; gap: 8px; }
  .kicker b { display: none; }
  .kicker { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ emotes, more obstacles, field guide */
.emotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.emote {
  width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream);
  box-shadow: 0 4px 0 var(--ink); padding: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.emote img { width: 54px; height: 54px; object-fit: cover; transform: translateY(4px) scale(1.15); }
.emote:hover { transform: translateY(-3px) rotate(-4deg); background: #fff1c2; }
.emote:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.emote:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.emote.pop { animation: pop .45s ease; }
@keyframes pop { 40% { transform: scale(1.18) rotate(6deg); } }

.ob-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); margin-top: clamp(50px, 7vw, 90px); }
.mini h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; margin: 20px 0 8px; }
.mini p { color: var(--ink-soft); margin: 0; }
.mini .shot { border-radius: 22px; }

.guide { background: linear-gradient(180deg, transparent, rgba(242, 194, 48, .12) 30%, transparent); }
.items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(30px, 5vw, 50px) auto 0; max-width: 1100px; }
.item {
  position: relative; width: 84px; height: 84px; border: 3px solid var(--ink); border-radius: 18px; background: var(--cream);
  box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; transform: rotate(var(--r));
  transition: transform .2s ease;
}
.item img { width: 70px; height: 70px; }
.item span {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(.9); white-space: nowrap;
  background: var(--ink); color: var(--cream); font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 2;
}
.item:hover { transform: rotate(0deg) translateY(-6px) scale(1.08); z-index: 3; }
.item:hover span { opacity: 1; transform: translateX(-50%) scale(1); }
.ui-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); margin-top: clamp(40px, 6vw, 70px); }
.ui-shot { margin: 0; border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--cream); box-shadow: 0 8px 0 var(--ink); cursor: zoom-in; transition: transform .25s ease; }
.ui-shot:hover { transform: translateY(-5px); }
.ui-shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; display: block; border-bottom: 3px solid var(--ink); }
.ui-shot figcaption { padding: 14px 18px 16px; }
.ui-shot figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; display: block; line-height: 1.1; }
.ui-shot figcaption span { font-size: .95rem; color: var(--ink-soft); font-weight: 700; }
@media (max-width: 760px) {
  .ob-more, .ui-grid { grid-template-columns: minmax(0, 1fr); }
  .items { gap: 7px; }
  .item { width: 50px; height: 50px; border-radius: 12px; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); }
  .item img { width: 42px; height: 42px; }
  .emote { width: 50px; height: 50px; }
  .emote img { width: 46px; height: 46px; }
}

/* ------------------------------------------------------------ a living day */
.day { background: linear-gradient(180deg, transparent, rgba(236, 138, 52, .1) 40%, rgba(63, 95, 174, .12) 80%, transparent); }
.day-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: clamp(30px, 5vw, 50px); }
.day-card { margin: 0; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--cream); box-shadow: 0 6px 0 var(--ink); cursor: zoom-in; transition: transform .25s ease; }
.day-card:nth-child(odd) { transform: rotate(-1deg); }
.day-card:nth-child(even) { transform: rotate(1deg); }
.day-card:hover { transform: rotate(0deg) translateY(-6px); }
.day-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; display: block; border-bottom: 3px solid var(--ink); }
.day-card figcaption { padding: 10px 12px 12px; }
.day-card figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; display: block; line-height: 1.05; }
.day-card figcaption span { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.life-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); margin-top: clamp(40px, 6vw, 70px); }
@media (max-width: 1000px) { .day-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .day-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life-grid { grid-template-columns: minmax(0, 1fr); }
}
