/* Home page only. Shared tokens and chrome live in style.css.
   The page alternates bright and dark bands so it reads like the app's world
   at different times of day: sunlit trail, parchment, night sky, meadow. */

:root {
  --ink-warm: #2b1a10;
  --cream: #fbf0d2;
  --paper: #fffaf0;
  --sky-light: #e3f4ff;
  --ember-text: #9a4a0c;
  --edge: 3px solid var(--ink-warm);
  --pop-shadow: 6px 6px 0 var(--ink-warm);
}

/* Reveals hide content only when JavaScript can bring it back (sky.js adds
   .js). The old noscript style block was blocked by the page's CSP. */
html:not(.js) .reveal { opacity: 1; transform: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--gold-light); color: var(--ink-warm);
  font-family: var(--pixel); font-size: 0.8rem; padding: 10px 14px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.home section { padding: 104px 0; }
.home h1, .home h2 { text-wrap: balance; }

/* Light bands swap the dark theme's gold eyebrow for a darker ember that
   still reads on cream (5.9:1). */
.hw .eyebrow, .mn .eyebrow, .cs .eyebrow, .fq .eyebrow, .bl .eyebrow { color: var(--ember-text); }
.hw h2, .mn h2, .cs h2, .fq h2, .bl h2 { color: var(--ink-warm); }
.hw h3, .mn h3, .cs h3, .fq h3, .bl h3 { color: var(--ink-warm); }

/* top bar call to action */
.topbar-get {
  font-family: var(--pixel); font-size: 0.72rem; letter-spacing: 0.1em;
  background: var(--gold-light); color: var(--ink-warm);
  padding: 9px 14px; border: 2px solid var(--ink-warm);
  box-shadow: 3px 3px 0 var(--ink-warm);
  white-space: nowrap;
}
.topbar-get:hover { background: #ffe08f; }
.topbar-get:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-warm); }

/* ---------------------------------------------------------------- HERO */
.hx {
  position: relative;
  min-height: clamp(640px, 90vh, 880px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  padding: 0 !important;
}
.hx-scene {
  position: absolute; inset: 0; z-index: -2;
  background: #7ec8f2 url("art/raid_scene_sunny_trail.webp") center 70% / cover no-repeat;
  image-rendering: pixelated;
  animation: sceneDrift 40s ease-in-out infinite alternate;
}
@keyframes sceneDrift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.04) translateX(1%); } }
[data-band="0000"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_0000.webp"); background-color: #0b1030; }
[data-band="0600"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_0600.webp"); background-color: #6b5a8e; }
[data-band="0800"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_0800.webp"); }
[data-band="1000"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_1000.webp"); }
[data-band="1400"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_1400.webp"); }
[data-band="1600"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_1600.webp"); background-color: #e3a34e; }
[data-band="1800"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_1800.webp"); background-color: #b85a4a; }
[data-band="2000"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_2000.webp"); background-color: #1c2250; }
[data-band="2200"] .hx-scene { background-image: url("art/raid_scene_sunny_trail_2200.webp"); background-color: #0b1030; }

.hx-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 28, 0.82) 0%, rgba(8, 12, 28, 0.62) 36%, rgba(8, 12, 28, 0.12) 60%, rgba(8, 12, 28, 0) 72%),
    linear-gradient(180deg, rgba(8, 12, 28, 0) 70%, rgba(8, 12, 28, 0.55) 100%);
}
.hx-grid {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: end;
  padding: 88px 24px 48px;
}
.hx-copy { align-self: center; padding-bottom: 24px; }
.hx-eyebrow { color: var(--gold-light); text-shadow: 2px 2px 0 var(--ink); }
.hx h1 {
  /* "Every walk is" is 13 glyphs of about 0.84em: size it to fit one line */
  font-size: min(3.25rem, 3.5vw);
  color: var(--text);
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 6px 6px 0 var(--ink);
  line-height: 1.15;
}
.hx-lead { color: var(--text); max-width: 30rem; margin: 22px 0 28px; font-size: 1.02rem; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.hx-cta { justify-content: flex-start; }
.hx-how { background: rgba(8, 12, 28, 0.55); }
.hx-note { color: var(--parchment); font-size: 0.82rem; margin-top: 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.hx-sky {
  display: inline-block; margin-top: 18px;
  font-family: var(--pixel); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); background: rgba(8, 12, 28, 0.6);
  border: 2px solid rgba(255, 206, 86, 0.6); padding: 7px 12px;
}
.hx-sky b { color: var(--gold-light); font-weight: 700; }

/* the practice fight */
.hx-fight { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hx-stage { position: relative; width: 100%; max-width: 540px; height: 330px; }
.hx-ground {
  position: absolute; left: 6%; right: 6%; bottom: 10px; height: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), transparent 70%);
}
.hx-chonky { position: absolute; left: 0; bottom: 0; width: 224px; height: 224px; z-index: 2; }
.hx-chonky img { width: 100%; height: 100%; transform-origin: 50% 86%; animation: fidget 2.6s ease-in-out infinite; }
@keyframes fidget { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.03) scaleX(0.99); } }
.hx-chonky.lunge { animation: lunge 0.42s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes lunge { 0% { transform: translateX(0); } 35% { transform: translateX(64px) translateY(-10px); } 100% { transform: translateX(0); } }

.hx-foe { position: absolute; right: 0; bottom: 6px; width: 200px; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.hx-plate {
  background: rgba(8, 12, 28, 0.78); border: 2px solid var(--gold);
  padding: 6px 10px; text-align: center; min-width: 170px;
}
.hx-foe-name { display: block; font-family: var(--pixel); font-weight: 700; font-size: 0.8rem; color: var(--text); letter-spacing: 0.04em; }
.hx-foe-home { display: block; font-size: 0.7rem; color: var(--parchment); }
.hx-hp { display: flex; gap: 4px; margin: 8px 0 6px; padding: 3px; background: var(--ink); border: 2px solid var(--ink); }
.hx-hp i { display: block; width: 36px; height: 10px; background: linear-gradient(180deg, #ff6b8a, var(--berry)); transition: background 0.2s steps(2); }
.hx-hp i.gone { background: #3a2a2e; }
.hx-monster { width: 192px; height: 192px; animation: critter 3.4s ease-in-out infinite; }
@keyframes critter { 0%, 78%, 100% { transform: translateY(0); } 84% { transform: translateY(-10px); } 90% { transform: translateY(0); } 94% { transform: translateY(-4px); } }
.hx-monster.hit { animation: hit 0.34s linear; }
@keyframes hit {
  0% { filter: brightness(3) saturate(0); transform: translateX(0); }
  25% { transform: translateX(-9px); }
  50% { filter: brightness(1.6); transform: translateX(8px); }
  75% { transform: translateX(-4px); }
  100% { filter: none; transform: translateX(0); }
}
.hx-monster.down { animation: down 0.5s ease-in forwards; }
@keyframes down { to { transform: scale(0.2) translateY(40px); opacity: 0; } }
.hx-monster.enter { animation: enter 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes enter { from { transform: translateY(-120px); opacity: 0; } to { transform: none; opacity: 1; } }

.fx { position: absolute; pointer-events: none; z-index: 3; image-rendering: pixelated; }
.fx-slash { width: 150px; right: 30px; bottom: 50px; animation: slash 0.36s ease-out forwards; }
@keyframes slash { from { transform: scale(0.4) rotate(-30deg); opacity: 1; } to { transform: scale(1.15) rotate(8deg); opacity: 0; } }
.fx-star { width: 110px; right: 50px; bottom: 80px; animation: star 0.5s ease-out forwards; }
@keyframes star { 0% { transform: scale(0.3); opacity: 1; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.fx-poof { width: 200px; right: 0; bottom: 20px; animation: star 0.7s ease-out forwards; }
.dmg {
  position: absolute; right: 70px; bottom: 210px; z-index: 4;
  font-family: var(--pixel); font-weight: 700; font-size: 1.5rem; color: var(--gold-light);
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink);
  animation: dmg 0.9s ease-out forwards; pointer-events: none;
}
.dmg.crit { color: #ff8fa3; font-size: 1.9rem; }
@keyframes dmg { from { transform: translateY(0) scale(0.8); opacity: 1; } to { transform: translateY(-60px) scale(1.1); opacity: 0; } }
.bit { position: absolute; width: 8px; height: 8px; z-index: 4; pointer-events: none; animation: bit 0.9s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes bit { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.won {
  position: absolute; left: 50%; top: 22%; z-index: 5;
  transform: translateX(-50%);
  font-family: var(--pixel); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--gold-light);
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 5px 5px 0 var(--ink);
  animation: won 1.4s ease-out forwards; pointer-events: none; white-space: nowrap;
}
@keyframes won { 0% { transform: translateX(-50%) scale(0.4); opacity: 0; } 20% { transform: translateX(-50%) scale(1.15); opacity: 1; } 35% { transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

.hx-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 460px; text-align: center; }
.hx-attack {
  font-family: var(--pixel); font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 220px; min-height: 64px; padding: 10px 28px;
  color: var(--ink-warm); background: var(--gold-light);
  border: 3px solid var(--ink-warm); box-shadow: 0 6px 0 var(--ink-warm);
  transition: transform 0.06s, box-shadow 0.06s, background 0.15s;
}
.hx-attack span { font-size: 1.25rem; letter-spacing: 0.12em; }
.hx-attack small { font-size: 0.64rem; letter-spacing: 0.1em; color: #6b3a14; }
.hx-attack:hover { background: #ffe08f; }
.hx-attack:active, .hx-attack.pressed { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink-warm); }
.hx-attack[disabled] { cursor: default; }
.hx-attack.ready { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 6px 0 var(--ink-warm), 0 0 0 0 rgba(255, 206, 86, 0.7); } 50% { box-shadow: 0 6px 0 var(--ink-warm), 0 0 0 12px rgba(255, 206, 86, 0); } }
.hx-tally {
  font-size: 0.86rem; color: var(--text);
  background: rgba(8, 12, 28, 0.66); padding: 8px 12px; border: 2px solid rgba(255, 206, 86, 0.35);
}

/* ------------------------------------------------------------- RIBBON */
.rb {
  display: flex; overflow: hidden;
  background: var(--gold-light); color: var(--ink-warm);
  border-top: 3px solid var(--ink-warm); border-bottom: 3px solid var(--ink-warm);
}
.rb-track {
  flex: none; display: flex; list-style: none; gap: 0; padding: 14px 0;
  animation: marquee 42s linear infinite;
}
.rb:hover .rb-track { animation-play-state: paused; }
.rb-track li {
  font-family: var(--pixel); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.08em;
  white-space: nowrap; display: flex; align-items: center; padding: 0 22px;
}
.rb-track li::before {
  content: ""; width: 10px; height: 10px; margin-right: 22px;
  background: var(--berry); transform: rotate(45deg); flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ------------------------------------------------------- HOW IT WORKS */
.hw {
  background:
    radial-gradient(circle at 1px 1px, rgba(43, 26, 16, 0.08) 1px, transparent 0) 0 0 / 18px 18px,
    var(--cream);
  color: var(--ink-warm);
}
.hw-lead { max-width: 40rem; color: #4a3322; }
.hw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.hw-card { background: var(--paper); border: var(--edge); box-shadow: var(--pop-shadow); padding: 0 22px 24px; }
.hw-art { margin: 0 -22px 14px; height: 132px; display: grid; place-items: center; border-bottom: var(--edge); }
.hw-walk .hw-art { background: #8fd3ff; }
.hw-fight .hw-art { background: #ffab8f; }
.hw-collect .hw-art { background: #a6e3a1; }
.hw-card h3 { font-size: 1rem; margin: 6px 0 8px; }
.hw-card p { color: #4a3322; font-size: 0.94rem; }
.hw-card:hover .hw-art img { animation: critter 1s ease-in-out; }

.hw-planner {
  margin-top: 44px; background: var(--paper); border: var(--edge); box-shadow: var(--pop-shadow);
  padding: 26px 26px 22px;
}
.hw-planner-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.hw-planner h3 { margin: 0; font-size: 1.05rem; }
.hw-result { font-family: var(--pixel); font-weight: 700; font-size: 1.05rem; color: var(--ember-text); }
.hw-label { display: block; margin: 16px 0 6px; font-family: var(--pixel); font-size: 0.72rem; letter-spacing: 0.1em; color: #4a3322; }
.hw-range { width: 100%; height: 44px; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.hw-range::-webkit-slider-runnable-track { height: 16px; background: #eadbb1; border: var(--edge); }
.hw-range::-moz-range-track { height: 16px; background: #eadbb1; border: var(--edge); }
.hw-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px;
  background: var(--gold-light); border: var(--edge); box-shadow: 3px 3px 0 var(--ink-warm);
}
.hw-range::-moz-range-thumb { width: 30px; height: 30px; background: var(--gold-light); border: var(--edge); border-radius: 0; }
.hw-pips { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; margin: 14px 0 18px; }
.hw-pips i { display: block; aspect-ratio: 1; background: #eadbb1; border: 2px solid #d6c291; }
.hw-pips i.on { background: var(--gold-light); border-color: var(--ink-warm); }
.hw-pips i.pop { animation: pip 0.25s ease-out; }
@keyframes pip { from { transform: scale(1.5); } to { transform: none; } }
.hw-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-presets button {
  font-family: var(--pixel); font-size: 0.68rem; letter-spacing: 0.06em; cursor: pointer;
  color: var(--ink-warm); background: var(--paper); border: 2px solid var(--ink-warm);
  padding: 10px 12px; min-height: 44px; box-shadow: 3px 3px 0 var(--ink-warm);
}
.hw-presets button:hover { background: #dff3ff; }
.hw-presets button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-warm); }
.hw-note { margin-top: 16px; font-size: 0.88rem; color: #5b412c; }

/* --------------------------------------------------------------- TOUR */
.tr {
  background:
    radial-gradient(1.5px 1.5px at 12% 20%, #f7ebc3cc, transparent),
    radial-gradient(1px 1px at 38% 12%, #f7ebc399, transparent),
    radial-gradient(1.5px 1.5px at 66% 26%, #f7ebc3bb, transparent),
    radial-gradient(1px 1px at 84% 10%, #f7ebc388, transparent),
    radial-gradient(1.5px 1.5px at 92% 38%, #f7ebc399, transparent),
    linear-gradient(180deg, #1d1238 0%, #0b0f24 100%);
}
.tr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.tr-nav { display: flex; gap: 10px; margin-bottom: 18px; }
.tr-btn {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  color: var(--gold-light); background: transparent; border: 2px solid var(--gold);
}
.tr-btn:hover { background: rgba(218, 143, 37, 0.18); }
.tr-rail {
  list-style: none; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px max(24px, calc((100vw - 1080px) / 2 + 24px)) 30px;
  scroll-padding-inline: max(24px, calc((100vw - 1080px) / 2 + 24px));
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.tr-rail li { flex: none; width: 250px; scroll-snap-align: start; }
.tr-rail img {
  display: block; width: 100%; height: auto; border-radius: 22px; image-rendering: auto;
  border: 2px solid rgba(255, 206, 86, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.tr-rail li:hover img { transform: translateY(-8px) rotate(-1deg); }

/* ----------------------------------------------------------- MONSTERS */
.mn {
  background: linear-gradient(180deg, #8ad8ff 0%, #c4ecff 42%, #effaff 100%);
  color: var(--ink-warm);
  padding-bottom: 0 !important;
}
.mn-lead { max-width: 40rem; color: #33424f; }
.mn-parade {
  margin-top: 40px; display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mn-row { display: flex; width: max-content; }
.mn-track { display: flex; list-style: none; gap: 16px; padding-right: 16px; animation: marquee 70s linear infinite; }
.mn-row-rev .mn-track { animation-direction: reverse; animation-duration: 80s; }
.mn-parade:hover .mn-track { animation-play-state: paused; }
.mn-track li {
  flex: none; width: 128px; padding: 10px 6px 8px; text-align: center;
  background: var(--paper); border: var(--edge); box-shadow: 4px 4px 0 var(--ink-warm);
}
.mn-track img { width: 96px; height: 96px; margin: 0 auto; display: block; }
.mn-track li:hover img { animation: critter 0.9s ease-in-out; }
.mn-track span { display: block; margin-top: 4px; font-family: var(--pixel); font-size: 0.56rem; letter-spacing: 0.04em; line-height: 1.3; color: var(--ink-warm); min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.mn-regions-title { margin-top: 48px; font-size: 0.9rem; }
.mn-regions { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mn-regions li {
  font-family: var(--pixel); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 8px 12px; border: 2px solid var(--ink-warm); box-shadow: 3px 3px 0 var(--ink-warm);
  color: var(--ink-warm);
}
.r-pawville { background: #7bc96f; }
.r-barkwood { background: #2e8b57; color: #fff !important; }
.r-biscuit { background: #f5b942; }
.r-meowtain { background: #7eb6ff; }
.r-zoomie { background: #e28b3c; }
.r-cloud { background: #9b8cff; }
.r-moon { background: #6777d9; color: #fff !important; }
.r-void { background: #3e2b5b; color: #fff !important; }

.pano { position: relative; height: 320px; margin-top: 56px; overflow: hidden; border-top: var(--edge); }
.pano-scene {
  position: absolute; inset: 0;
  background: #7ec8f2 url("art/adventure_pawville_panorama.webp") center 80% / cover no-repeat;
  image-rendering: pixelated;
}
[data-band="0000"] .pano-scene { background-image: url("art/adventure_pawville_panorama_0000.webp"); }
[data-band="0600"] .pano-scene { background-image: url("art/adventure_pawville_panorama_0600.webp"); }
[data-band="0800"] .pano-scene { background-image: url("art/adventure_pawville_panorama_0800.webp"); }
[data-band="1000"] .pano-scene { background-image: url("art/adventure_pawville_panorama_1000.webp"); }
[data-band="1400"] .pano-scene { background-image: url("art/adventure_pawville_panorama_1400.webp"); }
[data-band="1600"] .pano-scene { background-image: url("art/adventure_pawville_panorama_1600.webp"); }
[data-band="1800"] .pano-scene { background-image: url("art/adventure_pawville_panorama_1800.webp"); }
[data-band="2000"] .pano-scene { background-image: url("art/adventure_pawville_panorama_2000.webp"); }
[data-band="2200"] .pano-scene { background-image: url("art/adventure_pawville_panorama_2200.webp"); }

/* Chonky's walk, ported from the app's WelcomeWalkingCorgi: one drawing
   (Big Biscuit pose 3), four leg slices stepping in diagonal pairs, and the
   body lifting one source pixel mid-stride. Never swap in a second pose;
   the owner rejected that walk as jittery. Slice rectangles are the app's
   source pixels over the 224px canvas. */
.walker {
  --size: 224px;
  --u: calc(var(--size) / 224);
  position: absolute; left: 0; bottom: 6px; width: var(--size); height: var(--size);
  animation: stroll 58s linear infinite;
}
@keyframes stroll { from { transform: translateX(calc(var(--size) * -1)); } to { transform: translateX(100vw); } }
.walker-body { position: relative; width: 100%; height: 100%; }
.walker-torso, .leg {
  position: absolute; inset: 0;
  background: url("art/chonky_big_biscuit_pose_003.png") 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated;
  animation-duration: 0.88s; animation-iteration-count: infinite; animation-timing-function: step-end;
}
.walker-torso {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 79.018% 100%, 79.018% 81.25%, 51.786% 81.25%, 51.786% 100%,
    38.393% 100%, 38.393% 79.464%, 26.339% 79.464%, 26.339% 100%, 22.321% 100%, 22.321% 79.464%,
    11.161% 79.464%, 11.161% 100%, 0 100%);
  animation-name: bodyLift;
}
/* leg slices run from four source pixels above the cut down to the feet row */
.leg-a { clip-path: inset(77.679% 61.607% 14.286% 26.339%); animation-name: legStep; animation-delay: -0.44s; }
.leg-b { clip-path: inset(79.464% 20.982% 14.286% 66.518%); animation-name: legStep; }
.leg-c { clip-path: inset(77.679% 77.679% 14.286% 11.161%); animation-name: legStep; }
.leg-d { clip-path: inset(79.464% 33.482% 14.286% 51.786%); animation-name: legStep; animation-delay: -0.44s; }
@keyframes legStep {
  0% { transform: translate(calc(var(--u) * -2), calc(var(--u) * -1)); }
  12.5% { transform: translate(calc(var(--u) * -1), calc(var(--u) * -2)); }
  25% { transform: translate(var(--u), calc(var(--u) * -2)); }
  37.5% { transform: translate(calc(var(--u) * 2), calc(var(--u) * -1)); }
  50% { transform: translate(calc(var(--u) * 2), 0); }
  62.5% { transform: translate(var(--u), 0); }
  75% { transform: translate(calc(var(--u) * -1), 0); }
  87.5% { transform: translate(calc(var(--u) * -2), 0); }
  100% { transform: translate(calc(var(--u) * -2), calc(var(--u) * -1)); }
}
@keyframes bodyLift {
  0% { transform: translateY(0); }
  12.5% { transform: translateY(calc(var(--u) * -1)); }
  37.5% { transform: translateY(0); }
  62.5% { transform: translateY(calc(var(--u) * -1)); }
  87.5% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* ----------------------------------------------------------- COSTUMES */
.cs {
  background: linear-gradient(135deg, #ffc49a 0%, #ff9fb0 52%, #d7a6ff 100%);
  color: var(--ink-warm);
}
.cs-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.cs-lead { max-width: 32rem; color: #3d2418; }
.cs-picks { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cs-picks button {
  width: 100%; min-height: 104px; cursor: pointer; padding: 8px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255, 250, 240, 0.8); border: 2px solid var(--ink-warm); box-shadow: 3px 3px 0 var(--ink-warm);
  font-family: var(--pixel); font-size: 0.56rem; letter-spacing: 0.04em; line-height: 1.25; color: var(--ink-warm);
}
.cs-picks button img { width: 64px; height: 64px; }
.cs-picks button span { min-height: 2.5em; display: flex; align-items: center; text-align: center; }
.cs-picks button:hover { background: var(--paper); }
.cs-picks button[aria-pressed="true"] { background: var(--gold-light); box-shadow: 3px 3px 0 var(--ink-warm), inset 0 0 0 2px var(--ink-warm); }
.cs-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 460px; }
.cs-spot {
  position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 240, 0.95) 0%, rgba(255, 250, 240, 0.6) 55%, rgba(255, 250, 240, 0) 70%);
}
.cs-look { position: relative; width: min(448px, 80vw); height: auto; transform-origin: 50% 86%; animation: fidget 2.6s ease-in-out infinite; }
.cs-look.swap { animation: swap 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes swap { 0% { transform: scale(0.6) rotate(-6deg); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
/* the drawing has about 14% clear canvas under the feet; tuck the plate into it */
.cs-name {
  position: relative; margin-top: -9%;
  font-family: var(--pixel); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; white-space: nowrap;
  background: var(--ink-warm); color: var(--gold-light); padding: 8px 14px; border: 2px solid var(--gold-light);
}

/* ---------------------------------------------------------- HOME + PETS */
.hm { background: radial-gradient(ellipse 80% 70% at 70% 40%, rgba(218, 143, 37, 0.22), transparent 70%), linear-gradient(180deg, #2b1a10, #1a0d0a); }
.hm-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.hm-lead { color: var(--parchment); max-width: 30rem; }
.hm-room { position: relative; border: 3px solid var(--gold); box-shadow: 8px 8px 0 #0a0709; background: #1a0d0a; }
.hm-view { position: relative; }
.hm-scene { display: block; width: 100%; height: auto; }
.hm-chonky { position: absolute; left: 36%; bottom: 7%; width: 24%; height: auto; transform-origin: 50% 86%; animation: fidget 3.2s ease-in-out infinite; }
.hm-duck { position: absolute; left: 60%; bottom: 9%; width: 8%; height: auto; animation: critter 4.1s ease-in-out infinite; }
.hm-pets {
  list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px;
  padding: 10px 8px; background: rgba(26, 13, 10, 0.92); border-top: 3px solid var(--gold);
}
.hm-pets button {
  width: 100%; min-height: 76px; cursor: pointer; background: transparent; border: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
  font-family: var(--pixel); font-size: 0.5rem; letter-spacing: 0.02em; color: var(--parchment);
}
.hm-pets img { width: 48px; height: 48px; }
.hm-pets button:hover img, .hm-pets button.said img { animation: critter 0.9s ease-in-out; }
.hm-pets button:hover, .hm-pets button.said { border-color: var(--gold); }
.hm-bubble {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  width: min(92%, 380px); text-align: center;
  background: var(--paper); color: var(--ink-warm); border: var(--edge); box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 14px; font-size: 0.88rem;
}
.hm-bubble.show { animation: bubble 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes bubble { from { transform: translateX(-50%) scale(0.7); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* --------------------------------------------------------------- PACK */
.pk { position: relative; overflow: hidden; isolation: isolate; }
.pk-scene {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 11, 20, 0.88), rgba(5, 11, 20, 0.45)), #0b1030 url("art/raid_scene_forest_clearing_2000.webp") center / cover no-repeat;
  image-rendering: pixelated;
}
.pk-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; }
.pk-copy { background: rgba(14, 15, 21, 0.9); }
.pk-lead { color: var(--parchment); }
.pk-crew { display: flex; justify-content: center; align-items: flex-end; }
.pk-crew img { width: 170px; height: 170px; margin: 0 -18px; transform-origin: 50% 86%; animation: fidget 2.6s ease-in-out infinite; }
.pk-crew img:nth-child(2) { width: 200px; height: 200px; animation-delay: -0.9s; z-index: 1; }
.pk-crew img:nth-child(3) { animation-delay: -1.7s; transform: scaleX(-1); animation-name: fidgetFlip; }
@keyframes fidgetFlip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-0.99) scaleY(1.03); } }

/* -------------------------------------------------------------- WATCH */
.home .watchband { padding-bottom: 56px; }
.home .privacyband { padding-top: 40px; }
.wt-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.wt-faces { display: flex; align-items: flex-end; }
.wt-face {
  width: 196px; padding: 12px; border-radius: 46px;
  background: #0a0a0c; border: 6px solid #33333a; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.wt-second { margin-left: -26px; transform: translateY(22px) rotate(4deg); }
.wt-screen { overflow: hidden; border-radius: 30px; }
.wt-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; image-rendering: auto; }
/* each crop ends above the first row the watch would scroll to */
.wt-active { aspect-ratio: 416 / 438; }
.wt-complete { aspect-ratio: 416 / 460; }

/* ---------------------------------------------------------------- FAQ */
.fq { background: var(--cream); color: var(--ink-warm); }
.fq-wrap { max-width: 820px; }
.fq-list { margin-top: 26px; display: grid; gap: 14px; }
.fq details { background: var(--paper); border: var(--edge); box-shadow: 4px 4px 0 var(--ink-warm); }
.fq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative;
  font-family: var(--pixel); font-weight: 700; font-size: 0.9rem; line-height: 1.4; color: var(--ink-warm);
}
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--ember-text); transition: transform 0.2s;
}
.fq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fq details p { padding: 0 18px 18px; color: #4a3322; }
.fq .textlink { color: var(--ember-text); border-color: var(--ember-text); }

/* ------------------------------------------------------- LATEST POSTS */
.bl { background: var(--sky-light); color: var(--ink-warm); }
.bl-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 28px 0 30px; }
.bl-card {
  display: flex; flex-direction: column; height: 100%; padding: 20px;
  background: var(--paper); border: var(--edge); box-shadow: 5px 5px 0 var(--ink-warm);
  color: var(--ink-warm); transition: transform 0.15s, box-shadow 0.15s;
}
.bl-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink-warm); }
.bl-date { font-family: var(--pixel); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--ember-text); }
.bl-card h3 { font-size: 0.98rem; line-height: 1.35; margin: 10px 0 8px; }
.bl-card p { font-size: 0.88rem; color: #4a3322; flex: 1; }
.bl-more { margin-top: 12px; font-family: var(--pixel); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--ember-text); }
.bl .bl-all { color: var(--ink-warm); border-color: var(--ink-warm); background: var(--paper); box-shadow: 3px 3px 0 var(--ink-warm); }

/* -------------------------------------------------------------- ABOUT */
.ab-hero {
  background: linear-gradient(180deg, rgba(8, 12, 28, 0.55), rgba(8, 12, 28, 0.2)), #7ec8f2 url("art/raid_scene_sunny_trail.webp") center 70% / cover no-repeat;
  image-rendering: pixelated;
  padding: 88px 0 56px !important;
}
[data-band="0000"] .ab-hero, [data-band="2000"] .ab-hero, [data-band="2200"] .ab-hero { background-image: linear-gradient(180deg, rgba(8, 12, 28, 0.55), rgba(8, 12, 28, 0.2)), url("art/raid_scene_sunny_trail_2000.webp"); }
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.ab-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--text);
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 5px 5px 0 var(--ink);
}
.ab-hero .eyebrow { color: var(--gold-light); text-shadow: 2px 2px 0 var(--ink); }
.ab-lead { color: var(--text); max-width: 34rem; margin-top: 16px; font-size: 1.05rem; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.ab-chonky { width: 224px; height: 224px; transform-origin: 50% 86%; animation: fidget 2.6s ease-in-out infinite; }
.ab-body { background: var(--cream); color: var(--ink-warm); padding: 64px 0 88px !important; }
.ab-wrap { max-width: 820px; display: grid; gap: 22px; }
.ab-card { background: var(--paper); border: var(--edge); box-shadow: var(--pop-shadow); padding: 24px 26px; }
.ab-card h2 { font-size: 1.2rem; color: var(--ink-warm); margin-bottom: 10px; }
.ab-card p { color: #4a3322; margin-bottom: 12px; }
.ab-card p:last-child { margin-bottom: 0; }
.ab-card a:not(.textlink) { color: var(--ember-text); border-bottom: 2px solid rgba(154, 74, 12, 0.35); }
.ab-card .textlink { color: var(--ember-text); border-color: var(--ember-text); }

/* ---------------------------------------------------------------- 404 */
.lost-main { position: relative; min-height: calc(100vh - 62px); display: grid; align-content: center; overflow: hidden; isolation: isolate; padding: 80px 0 240px; }
.lost-scene {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 28, 0.75), rgba(8, 12, 28, 0.35)), #0b1030 url("art/raid_scene_sunny_trail_2000.webp") center 75% / cover no-repeat;
  image-rendering: pixelated;
}
.lost-box { text-align: center; }
.lost-box h1 { font-size: clamp(1.7rem, 4.5vw, 2.8rem); text-shadow: 4px 4px 0 var(--ink); }
.lost-box p { color: var(--text); margin: 16px auto 26px; max-width: 30rem; }
.lost-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lost-chonky { position: absolute; left: 50%; bottom: 24px; width: 224px; transform: translateX(-50%) scaleX(-1); }

/* ------------------------------------------------------------ PHONES */
@media (max-width: 980px) {
  .hx-grid { grid-template-columns: 1fr; padding-top: 56px; gap: 8px; }
  .hx h1 { font-size: min(3.25rem, calc((100vw - 56px) / 11.2)); }
  .hx-copy { text-align: center; padding-bottom: 0; }
  .hx-lead { margin-left: auto; margin-right: auto; }
  .hx-cta { justify-content: center; }
  .hx-scrim {
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.82) 0%, rgba(8, 12, 28, 0.6) 45%, rgba(8, 12, 28, 0.15) 70%, rgba(8, 12, 28, 0.5) 100%);
  }
  .hx-stage { height: 260px; max-width: 420px; }
  .hx-chonky { width: 168px; height: 168px; }
  .hx-foe { width: 160px; }
  .hx-monster { width: 144px; height: 144px; }
  .hx-plate { min-width: 150px; }
  .hx-hp i { width: 28px; }
  .dmg { bottom: 160px; right: 40px; }
  .fx-slash { width: 120px; right: 16px; }
  .fx-poof { width: 160px; }
  .hw-cards { grid-template-columns: 1fr; }
  .cs-grid, .hm-grid, .pk-grid { grid-template-columns: 1fr; }
  .cs-stage { min-height: 360px; order: -1; }
  .bl-cards { grid-template-columns: 1fr; }
  .pk-crew { display: none; }
  .ab-hero-grid { grid-template-columns: 1fr; }
  .ab-chonky { width: 150px; height: 150px; }
}
@media (max-width: 880px) {
  .home section { padding: 72px 0; }
  br.wide { display: none; }
  .wt-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; justify-items: center; }
  .wt-face { width: 158px; padding: 10px; border-radius: 38px; }
  .hw-pips { grid-template-columns: repeat(20, 1fr); }
  .pano { height: 220px; }
  .walker { --size: 150px; }
  .tr-rail li { width: 210px; }
  .hm-pets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .topbar { padding: 10px 14px; }
  .hx-stage { height: 230px; }
  .hx-chonky { width: 150px; height: 150px; }
  .hx-monster { width: 128px; height: 128px; }
  .hx-foe { width: 150px; }
  .hx-plate { min-width: 140px; }
  .hx-hp i { width: 24px; }
  .cs-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-head { flex-direction: column; align-items: flex-start; }
}

/* Reduce Motion: nothing drifts, strolls, bobs or scrolls on its own. The
   fight still works; it just updates without the flourishes. */
@media (prefers-reduced-motion: reduce) {
  .hx-scene, .hx-chonky img, .hx-monster, .rb-track, .mn-track, .walker, .walker-torso, .leg,
  .cs-look, .pk-crew img, .hx-attack.ready, .hm-chonky, .hm-duck, .ab-chonky { animation: none !important; }
  .rb, .mn-row { overflow-x: auto; }
  .rb-track[aria-hidden="true"], .mn-parade .mn-track + .mn-track { display: none; }
  .walker { left: 12%; }
}

.nowrap { white-space: nowrap; }
