/* =========================================================
   Haul Master — Tabletop Haul Journey
   Light wood + claymorphic blocks + winding path layout
   ========================================================= */

:root {
  --bg: #f3e6d4;
  --bg-deep: #e8d4b8;
  --wood: #d4b896;
  --wood-dark: #b8956a;
  --ink: #2a1f14;
  --ink-soft: #5c4a38;
  --muted: #7a6550;
  --lime: #8fdc3a;
  --lime-deep: #5fb012;
  --magenta: #e83d9a;
  --cyan: #3ec8e8;
  --yellow: #ffd23a;
  --orange: #ff8a2a;
  --purple: #6b3fa0;
  --cream: #fff8ee;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(42, 31, 20, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --hud-h: 72px;
  --track-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #1e1812;
  --bg-deep: #15110d;
  --wood: #3a2e22;
  --wood-dark: #2a2118;
  --ink: #f7efe4;
  --ink-soft: #d8c8b4;
  --muted: #a89480;
  --cream: #2a221a;
  --white: #32281e;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hud-h) + var(--track-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--lime);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---- Wood stage ambience ---- */
.wood-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #f7ebda 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

.wood-stage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 14px,
      rgba(184, 149, 106, 0.12) 14px,
      rgba(184, 149, 106, 0.12) 15px
    );
}

.wood-stage__checker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  opacity: 0.22;
  background-image:
    linear-gradient(45deg, rgba(184, 149, 106, 0.35) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(184, 149, 106, 0.35) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(184, 149, 106, 0.35) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(184, 149, 106, 0.35) 75%);
  background-size: 36px 36px;
  background-position: 0 0, 0 18px, 18px -18px, -18px 0;
  mask-image: linear-gradient(to top, black 20%, transparent 100%);
}

html[data-theme="dark"] .wood-stage {
  background: linear-gradient(180deg, #241c14 0%, var(--bg) 50%, #120e0a 100%);
}

/* ---- HUD nav (currency-pill style) ---- */
.haul-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 16px 0;
  transition: transform 0.25s var(--ease), background 0.2s;
}

.haul-hud.is-scrolled .haul-hud__bar {
  box-shadow: var(--shadow);
}

.haul-hud__bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(12px);
  border: 3px solid #fff6e8;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(184, 149, 106, 0.35);
}

.haul-hud__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.haul-hud__logo {
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.haul-hud__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.haul-hud__pills {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid rgba(184, 149, 106, 0.35);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.stat-pill i {
  width: 16px;
  height: 16px;
}

.stat-pill:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-1px);
}

.haul-hud__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid rgba(184, 149, 106, 0.4);
  color: var(--ink);
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: var(--yellow);
}

.theme-toggle i {
  width: 18px;
  height: 18px;
}

html[data-theme="dark"] .icon-moon,
html:not([data-theme="dark"]) .icon-sun {
  display: none;
}

.haul-hud__burger {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: var(--white);
  border: 2px solid rgba(184, 149, 106, 0.4);
}

.haul-hud__burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 960px) {
  .haul-hud__pills {
    display: flex;
  }
  .haul-hud__burger {
    display: none;
  }
}

/* Mobile drawer */
@media (max-width: 959px) {
  .haul-hud__pills.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 12px;
    background: var(--cream);
    border: 3px solid #fff6e8;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
}

/* ---- Level progress track ---- */
.level-track {
  position: fixed;
  top: calc(var(--hud-h) + 4px);
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.level-track.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.level-track__list {
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 0;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 2px solid rgba(184, 149, 106, 0.35);
  box-shadow: 0 4px 0 rgba(184, 149, 106, 0.25);
}

.level-node {
  position: relative;
  display: flex;
  align-items: center;
}

.level-node:not(:last-child)::after {
  content: "";
  width: 22px;
  height: 4px;
  margin: 0 4px;
  background: var(--wood);
  border-radius: 2px;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

.level-node a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--lime);
  color: var(--white);
  border: 3px solid #fff;
  box-shadow: 0 3px 0 var(--lime-deep);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.level-node a:hover {
  transform: translateY(-2px);
}

.level-node.is-active a {
  background: var(--orange);
  box-shadow: 0 3px 0 #d96a12;
}

.level-node--crown a {
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  color: #5a3200;
  box-shadow: 0 3px 0 #c96a10;
}

.level-node--crown i {
  width: 16px;
  height: 16px;
}

/* ---- Buttons (chunky 3D) ---- */
.btn-haul,
.btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.15s var(--ease), filter 0.15s;
  color: #1a2e05;
}

.btn-haul {
  background: linear-gradient(180deg, #b8f04a 0%, var(--lime) 55%, var(--lime-deep) 100%);
  border: 3px solid #fff;
  box-shadow: 0 6px 0 #3f8a0a, 0 8px 16px rgba(63, 138, 10, 0.25);
}

.btn-block {
  background: linear-gradient(180deg, #ffd86b 0%, var(--yellow) 50%, #f0a820 100%);
  border: 3px solid #fff;
  box-shadow: 0 6px 0 #c47a10, 0 8px 16px rgba(196, 122, 16, 0.25);
  color: #4a2e00;
}

.btn-haul:hover,
.btn-block:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn-haul:active,
.btn-block:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #3f8a0a;
}

.btn-block:active {
  box-shadow: 0 2px 0 #c47a10;
}

.btn-haul--sm,
.btn-block--sm {
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 14px;
  box-shadow: 0 4px 0 #3f8a0a;
}

.btn-haul--lg,
.btn-block--lg {
  padding: 16px 28px;
  font-size: 1.15rem;
}

.btn-haul i,
.btn-block i {
  width: 20px;
  height: 20px;
}

/* ---- Hero: winding path composition ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--hud-h) + 48px) 20px 80px;
  display: grid;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(120, 200, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #9fd6ff 0%, #c8e9a0 42%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

html[data-theme="dark"] .hero__sky {
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(60, 100, 160, 0.35), transparent 60%),
    linear-gradient(180deg, #1a2838 0%, #243018 42%, transparent 70%);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  filter: blur(0.5px);
}

.cloud--a { width: 120px; height: 36px; top: 18%; left: 8%; animation: drift 18s ease-in-out infinite; }
.cloud--b { width: 80px; height: 28px; top: 12%; left: 55%; animation: drift 22s ease-in-out infinite reverse; }
.cloud--c { width: 100px; height: 30px; top: 28%; right: 10%; animation: drift 20s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(24px); }
}

.hero__path {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  width: 100%;
  height: 38%;
  z-index: 1;
  pointer-events: none;
}

.hero__path-dirt {
  stroke: #c49a6c;
  stroke-width: 48;
  stroke-linecap: round;
  opacity: 0.55;
}

.hero__path-stroke {
  stroke: #a67c4a;
  stroke-width: 18;
  stroke-linecap: round;
  stroke-dasharray: 12 16;
  opacity: 0.4;
}

.hero__copy,
.hero__cargo {
  position: relative;
  z-index: 2;
}

.hero__copy {
  max-width: 560px;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__brand img {
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.logo-3d {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  background: linear-gradient(180deg, #ffe566 0%, #ff9a1a 70%, #e86a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 #8b2a00)
    drop-shadow(0 4px 0 rgba(139, 42, 0, 0.35));
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 28px;
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__cargo {
  justify-self: center;
  position: relative;
}

.phone-frame {
  width: min(280px, 72vw);
  padding: 12px;
  background: linear-gradient(145deg, #3a3a42, #1e1e24);
  border-radius: 36px;
  box-shadow:
    0 20px 40px rgba(42, 31, 20, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone-frame__bezel {
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
}

.phone-frame__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.floating-blocks {
  position: absolute;
  inset: -20px -40px;
  pointer-events: none;
}

.fblock {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  animation: bob 3.2s ease-in-out infinite;
}

.fblock--pink { background: var(--magenta); top: 8%; right: 0; animation-delay: 0s; }
.fblock--cyan { background: var(--cyan); bottom: 22%; left: -8%; animation-delay: 0.4s; }
.fblock--lime { background: var(--lime); top: 40%; right: -12%; animation-delay: 0.8s; }
.fblock--yellow { background: var(--yellow); bottom: 8%; right: 10%; animation-delay: 1.2s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-left: max(24px, calc((100vw - 1120px) / 2));
    padding-right: max(24px, calc((100vw - 1120px) / 2));
  }
}

/* ---- Section shared ---- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

.section-head__lead {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.ribbon {
  display: inline-flex;
  margin-bottom: 12px;
}

.ribbon span {
  display: inline-block;
  padding: 8px 28px;
  background: linear-gradient(180deg, #8b5cc8, var(--purple));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: 0 4px 0 #4a2570;
  position: relative;
}

.ribbon span::before,
.ribbon span::after {
  content: "";
  position: absolute;
  bottom: -8px;
  border-style: solid;
}

.ribbon span::before {
  left: -10px;
  border-width: 0 10px 8px 0;
  border-color: transparent #4a2570 transparent transparent;
}

.ribbon span::after {
  right: -10px;
  border-width: 0 0 8px 10px;
  border-color: transparent transparent transparent #4a2570;
}

/* ---- Features: horizontal inventory ---- */
.features {
  padding: 80px 0 60px;
  position: relative;
}

.haul-rail {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.haul-rail__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--wood) transparent;
  -webkit-overflow-scrolling: touch;
}

.haul-rail__track::-webkit-scrollbar {
  height: 8px;
}

.haul-rail__track::-webkit-scrollbar-thumb {
  background: var(--wood);
  border-radius: 999px;
}

.inv-block {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: center;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease);
}

.inv-block:hover {
  transform: translateY(-6px);
}

.inv-block__face {
  background: var(--cream);
  border-radius: 18px;
  padding: 28px 22px;
  min-height: 260px;
  border: 3px solid rgba(255, 255, 255, 0.55);
}

.inv-block__face i {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--ink);
}

.inv-block__face h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.inv-block__face p {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

.inv-block--lime { background: linear-gradient(160deg, #c8f06a, var(--lime-deep)); }
.inv-block--magenta { background: linear-gradient(160deg, #ff7ec4, #c01870); }
.inv-block--cyan { background: linear-gradient(160deg, #7ee8ff, #1490b0); }
.inv-block--orange { background: linear-gradient(160deg, #ffc06a, #e06010); }
.inv-block--purple { background: linear-gradient(160deg, #b88ae8, #4a2080); }

.haul-rail__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 3px solid #fff;
  box-shadow: 0 5px 0 var(--wood-dark);
  color: var(--ink);
  transition: transform 0.15s;
}

.rail-btn:hover {
  transform: translateY(-2px);
}

.rail-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--wood-dark);
}

.rail-btn i {
  width: 22px;
  height: 22px;
}

/* ---- Path steps ---- */
.path-section {
  padding: 70px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.path-steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 20px;
  bottom: 20px;
  width: 6px;
  background: linear-gradient(180deg, var(--lime), var(--cyan), var(--magenta));
  border-radius: 999px;
  opacity: 0.55;
}

.path-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
  position: relative;
}

.path-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(180deg, var(--lime), var(--lime-deep));
  border: 4px solid #fff;
  box-shadow: 0 5px 0 #3f8a0a;
  z-index: 1;
}

.path-step:nth-child(2) .path-step__num {
  background: linear-gradient(180deg, var(--cyan), #1490b0);
  box-shadow: 0 5px 0 #0d6a84;
}

.path-step:nth-child(3) .path-step__num {
  background: linear-gradient(180deg, var(--magenta), #c01870);
  box-shadow: 0 5px 0 #8a1050;
}

.path-step__card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border: 3px solid #fff6e8;
  box-shadow: 0 8px 0 rgba(184, 149, 106, 0.28);
}

.path-step__card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.path-step__card p {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---- Gallery zigzag ---- */
.gallery {
  padding: 70px 20px 90px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery__zigzag {
  display: grid;
  gap: 28px;
}

.pixel-frame {
  margin: 0;
  background: var(--cream);
  border-radius: 28px;
  padding: 14px;
  border: 4px solid #fff6e8;
  box-shadow: 0 12px 0 rgba(184, 149, 106, 0.3);
  max-width: 420px;
}

.pixel-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
  background: #efe0c8;
}

.pixel-frame figcaption {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 12px 8px 4px;
  color: var(--ink);
}

.pixel-frame--wide {
  max-width: 720px;
  justify-self: center;
}

@media (min-width: 768px) {
  .gallery__zigzag {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .pixel-frame--tilt-l {
    transform: rotate(-2.5deg);
    justify-self: end;
  }

  .pixel-frame--tilt-r {
    transform: rotate(2.5deg);
    margin-top: 48px;
    justify-self: start;
  }

  .pixel-frame--wide {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
}

/* ---- Download reward box ---- */
.download {
  padding: 40px 20px 90px;
}

.reward-box {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-top: 28px;
}

.reward-box__ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
}

.reward-box__ribbon span {
  display: inline-block;
  padding: 10px 36px;
  background: linear-gradient(180deg, #9b6ad8, var(--purple));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  box-shadow: 0 5px 0 #4a2570;
  white-space: nowrap;
}

.reward-box__body {
  background: linear-gradient(165deg, #ffe566 0%, #ffb03a 45%, #ff8a2a 100%);
  border-radius: 32px;
  border: 5px solid #fff;
  box-shadow: 0 14px 0 #c47a10, var(--shadow);
  padding: 56px 28px 36px;
  text-align: center;
}

.reward-box__art {
  width: min(200px, 48vw);
  height: auto;
  max-height: 360px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.reward-box__body h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #4a2200;
  margin-bottom: 10px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.reward-box__body > p {
  color: #5c3208;
  font-weight: 700;
  max-width: 40ch;
  margin: 0 auto 24px;
}

.reward-box__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---- FAQ ---- */
.faq {
  padding: 40px 20px 100px;
  max-width: 720px;
  margin: 0 auto;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--cream);
  border-radius: 18px;
  border: 3px solid #fff6e8;
  box-shadow: 0 6px 0 rgba(184, 149, 106, 0.25);
  padding: 4px 8px;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 14px;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-size: 1.3rem;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  padding: 0 14px 18px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
  color: #fff8ee;
  padding: 40px 20px 48px;
  border-top: 6px solid #fff6e8;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.footer__brand img {
  border-radius: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-weight: 700;
}

.footer__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--yellow);
}

.footer__copy {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 600;
}

/* ---- Modal ---- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 31, 20, 0.55);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: var(--cream);
  border-radius: 28px;
  border: 4px solid #fff;
  box-shadow: 0 12px 0 var(--wood-dark), var(--shadow);
  padding: 32px 28px 28px;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid rgba(184, 149, 106, 0.4);
  color: var(--ink);
}

.modal__close i {
  width: 18px;
  height: 18px;
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  color: #4a2200;
  box-shadow: 0 5px 0 #c47a10;
}

.modal__icon i {
  width: 30px;
  height: 30px;
}

.modal__panel h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.modal__panel p {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---- Focus ---- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
