/* =====================================================================
   LUCKY LEO · stylesheet
   Colors, fonts and spacing live in :root. Change them there and the
   whole site follows.
   ===================================================================== */

:root {
  /* Leo's palette */
  --ginger:       #f08a4b;
  --ginger-600:   #e2733a;
  --ginger-700:   #c75f2a;
  --cream:        #fff8f0;
  --cream-2:      #fdf0e3;
  --peach:        #ffe2cc;
  --peach-2:      #ffd2b0;
  --coral:        #e77f7a;
  --coral-soft:   #f6b3ad;
  --sky:          #d7eaf8;
  --sky-2:        #eaf4fb;
  --sage:         #7f9b83;   /* Zelda's green-eyed accent */
  --ink:          #3d2a21;
  --ink-2:        #6e5548;
  --ink-3:        #9a8073;
  --white:        #ffffff;
  --night:        #2a1b22;
  --night-2:      #3b2530;

  /* Type */
  --f-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --f-body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand:    "Caveat", "Segoe Print", cursive;

  /* Shape & depth */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(110, 60, 30, .08);
  --shadow:    0 14px 40px -12px rgba(110, 60, 30, .22);
  --shadow-lg: 0 30px 70px -20px rgba(110, 60, 30, .35);

  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--ginger-700); }
button { font: inherit; color: inherit; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
::selection { background: var(--peach-2); color: var(--ink); }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: .6em 1em; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ginger); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1;
  padding: .95em 1.55em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease, background-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--ginger), var(--ginger-600)); box-shadow: 0 10px 24px -8px rgba(226, 115, 58, .65); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(226, 115, 58, .75); }
.btn-ghost { --bg: rgba(255,255,255,.7); --fg: var(--ginger-700); border-color: rgba(240,138,75,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: var(--white); border-color: var(--ginger); }
.btn-coral { background: linear-gradient(135deg, var(--coral), #d96a68); box-shadow: 0 10px 22px -10px rgba(217, 106, 104, .8); }
.btn-lg { font-size: 1.1rem; padding: 1.05em 1.75em; }
.btn-sm { font-size: .92rem; padding: .7em 1.15em; }
.btn-block { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ginger), var(--coral)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 248, 240, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(110, 60, 30, .08), 0 8px 30px -18px rgba(110, 60, 30, .35);
}
.nav { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ginger), var(--coral)); color: var(--white);
  box-shadow: 0 6px 14px -6px rgba(226, 115, 58, .8); transform: rotate(-8deg);
  transition: transform .4s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.06); }
.brand-mark .i { width: 22px; height: 22px; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }

.nav-links { list-style: none; display: flex; gap: .25rem; }
.nav-links a {
  position: relative; display: block; padding: .5em .95em; border-radius: 999px;
  font-weight: 700; font-size: .98rem; color: var(--ink-2); text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(240, 138, 75, .1); }
.nav-links a.is-active { color: var(--ginger-700); background: rgba(240, 138, 75, .14); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255,255,255,.75); cursor: pointer; position: relative; box-shadow: var(--shadow-sm); }
.nav-toggle span { position: absolute; left: 13px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s ease; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 6rem;
  background: linear-gradient(180deg, #cfe5f6 0%, #e6f0f8 30%, #fdeee2 68%, var(--cream) 100%);
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun-glow {
  position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -22vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 170, .75), rgba(255, 214, 170, 0) 62%);
}
.cloud {
  position: absolute; height: 46px; border-radius: 999px; background: var(--white);
  filter: drop-shadow(0 10px 18px rgba(120, 160, 200, .18));
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 56%; aspect-ratio: 1; left: 14%; bottom: 30%; }
.cloud::after  { width: 40%; aspect-ratio: 1; right: 12%; bottom: 25%; }
.c1 { width: 200px; top: 15%; left: -5%;  opacity: .95; animation-duration: 90s; }
.c2 { width: 140px; top: 30%; left: 38%; opacity: .75; animation-duration: 120s; animation-delay: -40s; }
.c3 { width: 240px; top: 9%;  left: 62%; opacity: .85; animation-duration: 100s; animation-delay: -70s; }
.c4 { width: 120px; top: 55%; left: 8%;  opacity: .6;  animation-duration: 140s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(120vw); } }

.decal { position: absolute; color: var(--coral); opacity: .32; }
.palm { width: 46px; height: 124px; bottom: 7%; }
.p1 { left: 3%; }
.p2 { left: 9%; height: 96px; width: 36px; bottom: 9%; opacity: .22; }
.p3 { right: 4%; bottom: 10%; }
.flamingo { width: 64px; height: 40px; }
.f1 { left: 47%; top: 17%; transform: rotate(-8deg); opacity: .28; }
.f2 { right: 10%; bottom: 28%; transform: scaleX(-1) rotate(-6deg); opacity: .25; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }

.status-pill {
  display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1.4rem;
  padding: .5em 1em .5em .8em; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink-2);
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
  animation: rise .9s var(--ease-out) both;
}
.status-pill strong { color: var(--ginger-700); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #5cbf7a; position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #5cbf7a; opacity: 0; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title { font-size: clamp(4.2rem, 12.5vw, 9.5rem); line-height: .88; font-weight: 700; letter-spacing: -.035em; margin: 0 0 1.5rem; }
.hero-line { display: block; animation: rise 1s var(--ease-out) both; }
.hero-line:nth-child(2) { animation-delay: .1s; }
.hero-line.accent {
  background: linear-gradient(100deg, var(--ginger) 10%, var(--coral) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(255, 210, 176, .9));
  padding-bottom: .06em;
}
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34ch; animation: rise 1s .2s var(--ease-out) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; animation: rise 1s .3s var(--ease-out) both; }
.hero-stats { display: flex; gap: clamp(1.25rem, 4vw, 2.75rem); margin-top: 2.75rem; animation: rise 1s .4s var(--ease-out) both; }
.hero-stats div { position: relative; }
.hero-stats div + div::before { content: ""; position: absolute; left: calc(-1 * clamp(.62rem, 2vw, 1.37rem)); top: 15%; height: 70%; width: 1px; background: rgba(110, 60, 30, .15); }
.hero-stats dt { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.hero-stats dd { font-size: .9rem; color: var(--ink-3); font-weight: 700; margin-top: .3rem; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; justify-self: center; width: min(460px, 100%); animation: rise 1.1s .15s var(--ease-out) both; }
.hero-frame {
  position: relative; aspect-ratio: 4 / 5; padding: 10px;
  background: linear-gradient(140deg, var(--white), var(--peach));
  border-radius: 52% 48% 44% 56% / 46% 44% 56% 54%;
  box-shadow: var(--shadow-lg);
  animation: blob 14s ease-in-out infinite alternate;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@keyframes blob {
  0%   { border-radius: 52% 48% 44% 56% / 46% 44% 56% 54%; }
  50%  { border-radius: 44% 56% 52% 48% / 54% 48% 52% 46%; }
  100% { border-radius: 50% 50% 46% 54% / 44% 54% 46% 56%; }
}
.float-badge {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: 18px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); line-height: 1.2; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-badge strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.float-badge small { display: block; color: var(--ink-3); font-weight: 700; font-size: .8rem; }
.fb-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ginger); color: var(--white); }
.fb-icon .i { width: 20px; height: 20px; }
.fb-icon.peach { background: var(--sky); color: #4d7aa3; }
.fb-icon.coral { background: var(--coral); }
.b1 { left: -14%; top: 14%; }
.b2 { right: -10%; top: 46%; animation-delay: -2s; }
.b3 { left: -6%; bottom: 6%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; translate: -50% 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.8); color: var(--ginger-700); box-shadow: var(--shadow-sm);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--ginger); color: var(--white); overflow: hidden; padding: 1rem 0; transform: rotate(-1.2deg) scale(1.02); margin: -1.5rem 0 0; position: relative; z-index: 2; box-shadow: 0 12px 30px -16px rgba(199, 95, 42, .7); }
.ticker-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 48s linear infinite; }
.ticker span { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ticker .i { width: 22px; height: 22px; opacity: .7; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   SHARED SECTION PIECES
   ===================================================================== */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .65em; margin-bottom: 1.1rem;
  font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ginger-700);
}
.kicker span {
  display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .4em; border-radius: 999px;
  background: var(--peach); color: var(--ginger-700); letter-spacing: 0; font-family: var(--f-display); font-size: .95em;
}
.kicker-light { color: var(--peach-2); }
.kicker-light span { background: rgba(255, 210, 176, .15); color: var(--peach-2); }
.h-display { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 600; letter-spacing: -.025em; }
.h-display.light { color: var(--cream); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); }
.lead.light { color: rgba(255, 240, 228, .78); }

/* Polaroid photo with tape */
.polaroid {
  position: relative; background: var(--white); padding: 12px 12px 0; border-radius: 6px;
  box-shadow: var(--shadow); transition: transform .5s var(--ease-spring), box-shadow .4s ease;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.polaroid.pol-main figcaption { text-align: left; padding-left: .75rem; }
.polaroid figcaption { font-family: var(--f-hand); font-size: 1.55rem; line-height: 1; text-align: center; padding: .7rem .5rem .9rem; color: var(--ink-2); }
.polaroid::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 92px; height: 28px; translate: -50% 0; rotate: -3deg;
  background: rgba(255, 210, 176, .75); box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.polaroid:hover { box-shadow: var(--shadow-lg); }

/* Scroll reveal (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =====================================================================
   MEET LEO
   ===================================================================== */
.meet-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.meet-collage { position: relative; padding: 1rem 3.5rem 4.5rem 0; }
.pol-main { width: min(400px, 100%); rotate: -3deg; }
.pol-main:hover { transform: rotate(2deg) scale(1.02); }
.pol-small { position: absolute; right: 0; bottom: 0; width: 46%; max-width: 220px; rotate: 6deg; }
.pol-small:hover { transform: rotate(-4deg) scale(1.04); }
.pol-small figcaption { font-size: 1.3rem; }
.spin-badge {
  position: absolute; top: -1.5rem; right: 12%; width: 118px; height: 118px; border-radius: 50%;
  background: var(--ginger); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow);
}
.spin-badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.spin-badge text { font-family: var(--f-display); font-weight: 600; font-size: 10.6px; letter-spacing: .12em; fill: var(--white); }
.spin-paw { width: 34px; height: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }
.meet-copy em { font-style: italic; color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.chips li { padding: .45em 1em; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font-weight: 700; font-size: .92rem; color: var(--ink-2); border: 1px solid rgba(240, 138, 75, .18); }

/* Stats card */
.stat-card {
  margin-top: clamp(4rem, 8vw, 6rem);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--white) 0%, #fff6ee 100%);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(240, 138, 75, .14);
  position: relative; overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 176, .55), transparent 70%); pointer-events: none; }
.stat-card-id { display: flex; gap: 1.5rem; align-items: center; }
.id-photo { width: 120px; height: 120px; flex: none; border-radius: 50%; padding: 5px; background: conic-gradient(from 200deg, var(--ginger), var(--coral), var(--peach-2), var(--ginger)); }
.id-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--white); }
.id-label { font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: .25rem; }
.stat-card h3 { font-size: 2.2rem; margin-bottom: .6rem; }
.id-facts { display: grid; gap: .3rem; font-size: .95rem; }
.id-facts div { display: flex; gap: .5rem; }
.id-facts dt { font-weight: 800; min-width: 6.2em; color: var(--ink); }
.id-facts dd { color: var(--ink-2); }

.stat-bars { list-style: none; display: grid; gap: 1.15rem; }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: .45rem; }
.sb-head b { font-family: var(--f-display); font-weight: 600; color: var(--ginger-700); }
.sb-track { position: relative; height: 12px; border-radius: 999px; background: var(--cream-2); box-shadow: inset 0 1px 2px rgba(110, 60, 30, .1); }
.sb-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--peach-2), var(--ginger)); transition: width 1.4s var(--ease-out); }
.stat-card.is-visible .sb-fill { width: var(--v); }
.stat-bars li:nth-child(2) .sb-fill { transition-delay: .12s; }
.stat-bars li:nth-child(3) .sb-fill { transition-delay: .24s; }
.stat-bars li:nth-child(4) .sb-fill { transition-delay: .36s; }
.stat-bars li:nth-child(5) .sb-fill { transition-delay: .48s; }
.sb-over .sb-fill { background: linear-gradient(90deg, var(--ginger), var(--coral)); }
.sb-extra {
  position: absolute; right: -6px; top: 50%; translate: 0 -50%; scale: 0;
  padding: .15em .55em; border-radius: 999px; background: var(--coral); color: var(--white);
  font-family: var(--f-display); font-weight: 600; font-size: .78rem; line-height: 1.4; box-shadow: 0 4px 10px -2px rgba(217, 106, 104, .6);
  transition: scale .5s 1.4s var(--ease-spring);
}
.stat-card.is-visible .sb-extra { scale: 1; }
.sb-loading .sb-fill { background: repeating-linear-gradient(-45deg, var(--peach-2) 0 10px, #f7bf95 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }

/* =====================================================================
   THE MOUSE HUNTER
   ===================================================================== */
.hunter {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(5.5rem, 11vw, 9rem) 0;
  background: radial-gradient(120% 70% at 80% 0%, #4a2d38 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
  color: var(--cream);
}
.stars { position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 36% 8%, #ffe9d6 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 26%, #ffe9d6 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 46%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 60%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 15% 78%, #ffe9d6 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 80%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 88%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
.moon { position: absolute; z-index: -1; top: 6%; right: 7%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7ea, #f9dcc0 70%);
  box-shadow: 0 0 60px 20px rgba(255, 220, 180, .18), 0 0 140px 60px rgba(255, 200, 150, .08);
}

.hunter-intro { display: grid; grid-template-columns: 1.4fr .6fr; gap: 3rem; align-items: center; margin-bottom: 3.5rem; }
.hunter-intro .lead { max-width: 52ch; }
.pol-night { width: min(300px, 100%); justify-self: end; rotate: 4deg; background: #fff7ef; }
.pol-night:hover { transform: rotate(-3deg) scale(1.03); }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3.5rem; }
.skill {
  padding: 1.75rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255, 230, 210, .12);
  transition: transform .4s var(--ease-out), border-color .3s ease, background-color .3s ease;
}
.skill:hover { transform: translateY(-6px); border-color: rgba(240, 138, 75, .5); }
.skill-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, var(--ginger), var(--coral)); color: var(--white); box-shadow: 0 10px 24px -10px rgba(240, 138, 75, .9); }
.skill-icon .i { width: 24px; height: 24px; }
.skill h3 { font-size: 1.45rem; color: var(--cream); margin-bottom: .35rem; }
.skill p { margin: 0; color: rgba(255, 240, 228, .7); }

.arena { display: grid; grid-template-columns: .82fr 1.18fr; gap: 1.5rem; align-items: stretch; }
.trophy, .game {
  background: var(--cream); color: var(--ink); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.trophy { display: flex; flex-direction: column; }
.trophy-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.trophy-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #f7c662, #e99c3c); color: var(--white); box-shadow: 0 10px 22px -10px rgba(233, 156, 60, .9); }
.trophy-icon .i { width: 28px; height: 28px; }
.trophy h3 { font-size: 1.75rem; margin: 0; }
.trophy-sub { display: flex; align-items: center; gap: .5em; margin: .2rem 0 0; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.trophy-count { display: flex; align-items: center; gap: 1rem; }
.count-num {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(4.5rem, 9vw, 6rem); line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--ginger), var(--ginger-700)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.count-num.bump { animation: bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.15) rotate(-3deg); } }
.count-label { font-weight: 800; color: var(--ink-2); line-height: 1.3; }

.tally { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 1.25rem 0 1.5rem; min-height: 32px; }
.tally-group { position: relative; display: flex; gap: 5px; height: 30px; }
.tally-group i { width: 4px; height: 100%; border-radius: 2px; background: var(--ink); opacity: .75; transform-origin: 50% 100%; animation: tally-in .4s var(--ease-out) both; }
.tally-group.full::after { content: ""; position: absolute; left: -5px; right: -5px; top: 50%; height: 4px; border-radius: 2px; background: var(--coral); transform: rotate(-24deg) scaleX(0); animation: strike .35s .2s var(--ease-out) forwards; }
@keyframes tally-in { from { transform: scaleY(0); } }
@keyframes strike { to { transform: rotate(-24deg) scaleX(1); } }

.trophy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.5rem; }
.trophy-stats div { background: var(--white); border-radius: var(--r-md); padding: .85rem 1rem; box-shadow: var(--shadow-sm); }
.trophy-stats dt { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; color: var(--ginger-700); line-height: 1.1; }
.trophy-stats dd { font-size: .85rem; font-weight: 700; color: var(--ink-3); }
.trophy .btn-block { margin-top: auto; }

/* Paw burst from the +1 button */
.burst { position: fixed; z-index: 150; pointer-events: none; width: 22px; height: 22px; color: var(--coral); animation: burst .9s var(--ease-out) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.4); opacity: 0; } }

/* ---------- Mini-game ---------- */
.game { display: flex; flex-direction: column; }
.game-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.game h3 { font-size: 1.75rem; margin: 0; }
.game-tag { margin: .15rem 0 0; color: var(--ink-3); font-weight: 700; font-size: .95rem; }
.hud { display: flex; gap: .5rem; }
.hud-item { min-width: 70px; text-align: center; padding: .45rem .7rem; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); }
.hud-item span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hud-item b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--ginger-700); font-variant-numeric: tabular-nums; }

.field {
  position: relative; flex: 1; min-height: 380px; border-radius: var(--r-lg); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), transparent 30%),
    repeating-linear-gradient(90deg, #e8c9a4 0 98px, #dfbd96 98px 100px),
    #e8c9a4;
  box-shadow: inset 0 0 0 1px rgba(110, 60, 30, .12), inset 0 -30px 60px -40px rgba(110, 60, 30, .35);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  cursor: crosshair;
}
.field-wall { position: absolute; inset: 0 0 auto 0; height: 64px; background: linear-gradient(180deg, #fff5ea, #fbe6d4); border-bottom: 8px solid #f4d2b6; }
.mousehole { position: absolute; left: 12%; bottom: 0; width: 48px; height: 36px; border-radius: 26px 26px 0 0; background: radial-gradient(ellipse at 50% 100%, #2b1d1a 55%, #3b2a24 100%); }
.critter {
  position: absolute; left: 0; top: 0; width: 76px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #a39186; will-change: transform; z-index: 2; -webkit-tap-highlight-color: transparent;
}
.critter::before { content: ""; position: absolute; inset: -14px; } /* bigger tap target */
.critter svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 6px 4px rgba(80, 40, 20, .25)); transition: transform .15s ease; }
.critter.left svg { transform: scaleX(-1); }
.critter.running svg { animation: scurry .16s linear infinite; }
.critter.left.running svg { animation-name: scurry-l; }
@keyframes scurry   { 50% { transform: translateY(-2px) rotate(-2deg); } }
@keyframes scurry-l { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-2px) rotate(-2deg); } }
.critter.golden { color: #f0b93a; }
.critter.golden svg { filter: drop-shadow(0 0 10px rgba(255, 205, 80, .95)) drop-shadow(0 6px 4px rgba(80, 40, 20, .25)); }
.critter.caught { pointer-events: none; animation: caught .32s ease forwards; }
@keyframes caught { to { opacity: 0; scale: .4; } }

.fx { position: absolute; pointer-events: none; z-index: 3; }
.fx-paw { width: 64px; height: 64px; margin: -32px 0 0 -32px; color: var(--ginger); animation: swipe .45s var(--ease-out) forwards; }
@keyframes swipe { 0% { transform: scale(1.8) rotate(-20deg); opacity: 0; } 30% { opacity: .95; } 100% { transform: scale(1) rotate(0); opacity: 0; } }
.fx-pts { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--ginger-700); text-shadow: 0 2px 0 var(--white); translate: -50% -50%; animation: pts .8s var(--ease-out) forwards; }
.fx-pts.gold { color: #d99b18; font-size: 1.9rem; }
@keyframes pts { to { transform: translateY(-44px); opacity: 0; } }
.fx-miss { font-family: var(--f-hand); font-size: 1.5rem; color: var(--ink-3); translate: -50% -50%; animation: pts .7s ease-out forwards; }

.combo { position: absolute; right: 12px; top: 76px; z-index: 3; padding: .3em .8em; border-radius: 999px; background: var(--coral); color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: .95rem; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .3s var(--ease-spring); }
.combo.on { opacity: 1; transform: scale(1); }
.timebar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(110, 60, 30, .12); z-index: 3; }
.timebar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--ginger), var(--coral)); }

.screen { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1rem; background: rgba(255, 248, 240, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: default; }
.screen[hidden] { display: none; }
.screen-card { text-align: center; max-width: 360px; animation: pop-in .45s var(--ease-spring); }
.screen-card[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.screen-mouse { display: inline-block; width: 84px; height: 50px; color: #a39186; margin-bottom: .5rem; animation: float 3s ease-in-out infinite; }
.screen-mouse svg { width: 100%; height: 100%; fill: currentColor; }
.screen h4 { font-size: 1.7rem; margin-bottom: .75rem; }
.how { list-style: none; display: grid; gap: .45rem; margin: 0 auto 1.4rem; text-align: left; width: fit-content; font-weight: 700; color: var(--ink-2); }
.how li { display: flex; align-items: center; gap: .6rem; }
.how .i { color: var(--ginger); width: 1.15em; height: 1.15em; }
.countdown { font-family: var(--f-display); font-weight: 700; font-size: 7rem; line-height: 1; color: var(--ginger); display: inline-block; animation: count .8s var(--ease-out); }
@keyframes count { from { transform: scale(1.8); opacity: 0; } }
.rank-label { font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: .25rem; }
.rank { font-size: clamp(1.9rem, 4vw, 2.4rem); color: var(--ginger-700); margin-bottom: .35rem; }
.final { font-weight: 800; color: var(--ink-2); margin-bottom: .4rem; }
.final b { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); }
.newbest { display: inline-block; margin-left: .35rem; padding: .1em .6em; border-radius: 999px; background: #f7c662; color: var(--ink); font-size: .8rem; vertical-align: .15em; }
.newbest[hidden] { display: none; }
.leo-says { font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.2; color: var(--ink-2); margin-bottom: 1.2rem; }
.end-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   NAP SCHEDULE
   ===================================================================== */
.naps { background: linear-gradient(180deg, var(--cream) 0%, var(--sky-2) 100%); }
.day-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.clock-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--white); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); text-align: center; }
.nap-clock { position: relative; width: min(320px, 100%); margin: 0 auto 1.5rem; aspect-ratio: 1; }
.nap-clock svg { width: 100%; height: 100%; overflow: visible; }
.nap-clock .seg { fill: none; stroke-width: 26; transition: stroke-dashoffset 1.6s var(--ease-out); }
.nap-clock .seg-nap { stroke: var(--ginger); }
.nap-clock .seg-hunt { stroke: var(--night-2); }
.nap-clock .seg-eat { stroke: #f7c662; }
.nap-clock .seg-social { stroke: var(--coral); }
.nap-clock .tick-label { font-family: var(--f-body); font-weight: 800; font-size: 10px; fill: var(--ink-3); text-anchor: middle; dominant-baseline: middle; }
.nap-clock .hand { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.nap-clock .hand-dot { fill: var(--ink); }
.clock-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.clock-center b { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 3.6rem); line-height: 1; color: var(--ginger-700); }
.clock-center span { font-weight: 800; font-size: .85rem; color: var(--ink-3); line-height: 1.3; }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.1rem; font-weight: 700; font-size: .9rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.lg-nap { background: var(--ginger); } .lg-hunt { background: var(--night-2); } .lg-eat { background: #f7c662; } .lg-social { background: var(--coral); }
.now-line { display: inline-flex; text-align: left; align-items: center; gap: .55rem; margin: 0; padding: .55em 1.1em; border-radius: 999px; background: var(--cream-2); font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.now-line strong { color: var(--ginger-700); }

.timeline { list-style: none; position: relative; display: grid; gap: .6rem; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--peach-2), var(--sky)); }
.tl-item {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center;
  padding: .8rem 1.1rem .8rem 0; border-radius: var(--r-md); transition: background-color .3s ease, transform .3s var(--ease-out);
}
.tl-item:hover { background: rgba(255,255,255,.7); transform: translateX(4px); }
.tl-dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-sm); color: var(--ginger); border: 2px solid var(--peach); }
.tl-dot .i { width: 22px; height: 22px; }
.tl-item[data-type="hunt"] .tl-dot { color: var(--white); background: var(--night-2); border-color: var(--night-2); }
.tl-item[data-type="eat"] .tl-dot { color: #c88a12; border-color: #f7d892; }
.tl-item[data-type="social"] .tl-dot { color: var(--coral); border-color: var(--coral-soft); }
.tl-time { display: block; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--ginger-700); line-height: 1.2; }
.tl-text { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; }
.tl-item.is-now { background: var(--white); box-shadow: var(--shadow); }
.tl-item.is-now .tl-dot { box-shadow: 0 0 0 5px rgba(240, 138, 75, .25); }
.tl-now { display: inline-block; margin-left: .4rem; padding: .05em .55em; border-radius: 999px; background: #5cbf7a; color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: .15em; }

.hall { margin-top: clamp(4rem, 8vw, 6rem); }
.hall-title { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 2rem; text-align: center; }
.hall-title .i { color: #e9a23c; }
.hall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.award { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease-out), box-shadow .4s ease; }
.award:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.award-img { position: relative; overflow: hidden; aspect-ratio: 4 / 4.2; }
.award-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.award:hover .award-img img { transform: scale(1.06); }
.award-ribbon { position: absolute; top: 14px; left: 14px; padding: .3em .8em; border-radius: 999px; background: linear-gradient(135deg, #f7c662, #e99c3c); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: .85rem; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); }
.award figcaption { padding: 1.2rem 1.4rem 1.4rem; }
.award b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; margin-bottom: .2rem; }
.award span { color: var(--ink-2); font-size: .97rem; }

/* =====================================================================
   BEST FRIENDS
   ===================================================================== */
.friends { background: linear-gradient(180deg, var(--sky-2) 0%, var(--cream) 40%, #fdeee4 100%); }
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.pal { background: var(--white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease-out), box-shadow .4s ease; }
.pal:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pal-photo { aspect-ratio: 4 / 3.4; overflow: hidden; }
.pal-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pal:hover .pal-photo img { transform: scale(1.05); }
.pal-zelda .pal-photo img { object-position: 30% 60%; }
.pal-body { padding: 1.5rem 1.75rem 1.9rem; border-top: 5px solid var(--ginger); }
.pal-zelda .pal-body { border-top-color: var(--sage); }
.pal-role { margin: 0 0 .1rem; font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ginger-700); }
.pal-zelda .pal-role { color: var(--sage); }
.pal h3 { font-size: 2.1rem; margin-bottom: .8rem; }
.pal ul { list-style: none; display: grid; gap: .45rem; }
.pal li { position: relative; padding-left: 1.6rem; color: var(--ink-2); font-weight: 600; }
.pal li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1em; height: 1em; background: var(--ginger);
  -webkit-mask: var(--paw-mask) center / contain no-repeat; mask: var(--paw-mask) center / contain no-repeat;
}
.pal-zelda li::before { background: var(--sage); }
:root { --paw-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 33c-9 0-17 8-17 16 0 5 4 8 9 8 3 0 5-2 8-2s5 2 8 2c5 0 9-3 9-8 0-8-8-16-17-16Z'/%3E%3Cellipse cx='13' cy='28' rx='6.5' ry='8.5'/%3E%3Cellipse cx='24.5' cy='15' rx='6.5' ry='9'/%3E%3Cellipse cx='39.5' cy='15' rx='6.5' ry='9'/%3E%3Cellipse cx='51' cy='28' rx='6.5' ry='8.5'/%3E%3C/svg%3E"); }
.duo-heart { width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 0; background: linear-gradient(135deg, var(--coral), #d96a68); color: var(--white); box-shadow: 0 16px 34px -12px rgba(217, 106, 104, .8); animation: beat 2.6s ease-in-out infinite; }
.duo-heart .i { width: 30px; height: 30px; }
.duo-heart span { font-family: var(--f-display); font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(1); } 36% { transform: scale(1.06); } }

.together { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; background: var(--white); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.together-photo { width: clamp(200px, 24vw, 280px); }
.together-photo img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: var(--r-lg); }
.quote-mark { width: 34px; height: 34px; color: var(--coral); margin-bottom: .5rem; }
.together blockquote { margin: 0 0 1rem; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.015em; }
.together p { color: var(--ink-2); max-width: 54ch; }
.friend-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.friend-stats div { padding: 1rem; border-radius: var(--r-md); background: var(--cream); }
.friend-stats dt { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--ginger-700); line-height: 1.1; }
.friend-stats dd { font-size: .86rem; font-weight: 700; color: var(--ink-3); }

/* =====================================================================
   GALLERY
   ===================================================================== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -1rem 0 2.5rem; }
.filter { border: 1px solid rgba(240, 138, 75, .3); background: var(--white); color: var(--ink-2); font-weight: 800; font-size: .95rem; padding: .6em 1.2em; border-radius: 999px; cursor: pointer; transition: all .25s ease; }
.filter:hover { border-color: var(--ginger); color: var(--ginger-700); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 19vw, 270px); grid-auto-flow: dense; gap: 1rem; }
.g-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--peach);
  border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
  animation: pop-in .45s var(--ease-out);
}
.g-big { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-item.is-hidden { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.g-item:hover img { transform: scale(1.06); }
.g-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem; text-align: left;
  background: linear-gradient(0deg, rgba(43, 29, 26, .72), transparent); color: var(--white);
  font-family: var(--f-display); font-weight: 500; font-size: 1.05rem;
  opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s var(--ease-out);
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: fade .3s ease; }
.lightbox::backdrop { background: rgba(28, 18, 15, .93); backdrop-filter: blur(4px); }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; }
.lb-count { font-family: var(--f-display); font-weight: 500; letter-spacing: .06em; opacity: .8; }
.lb-stage { display: grid; place-items: center; align-content: center; gap: 1rem; padding: 0 4.5rem 2rem; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100svh - 9rem); object-fit: contain; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: lb-in .4s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lb-stage figcaption { font-family: var(--f-display); font-size: 1.1rem; text-align: center; opacity: .9; max-width: 60ch; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.12); color: var(--white); transition: background-color .2s ease, transform .2s ease; }
.lb-btn:hover { background: var(--ginger); transform: scale(1.06); }
.lb-btn .i { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { position: relative; color: var(--cream); margin-top: 2rem; }
.footer-wave { display: block; width: 100%; height: 70px; fill: var(--night); margin-bottom: -1px; }
.footer-body { background: var(--night); padding: 2.5rem 0 3rem; }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: 1.25rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--ginger); text-decoration: none; letter-spacing: -.02em; }
.footer-brand .i { width: .8em; height: .8em; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.footer-links a { color: rgba(255, 240, 228, .75); text-decoration: none; font-weight: 700; transition: color .2s ease; }
.footer-links a:hover { color: var(--peach-2); }
.made { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; margin: .5rem 0 0; }
.made .heart { color: var(--coral); animation: beat 2.6s ease-in-out infinite; }
.footer-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin: 0; font-size: .92rem; color: rgba(255, 240, 228, .55); }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ginger); color: var(--white); box-shadow: 0 12px 24px -8px rgba(226, 115, 58, .8); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease-spring); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top .i { width: 22px; height: 22px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1020px) {
  .nav-links a { padding: .5em .7em; font-size: .93rem; }
  .b1 { left: -6%; } .b2 { right: -4%; } .b3 { left: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { width: min(1180px, 100% - 2rem); }

  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(var(--header-h) + 8px); left: 1rem; right: 1rem;
    flex-direction: column; gap: .15rem; padding: .6rem;
    background: rgba(255, 250, 245, .98); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .25s ease, transform .3s var(--ease-out), visibility .3s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: .9em 1.1em; font-size: 1.05rem; border-radius: var(--r-md); }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 5rem; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; width: min(330px, 78vw); }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-title { margin-bottom: 1rem; }
  .float-badge { padding: .5rem .8rem .5rem .5rem; border-radius: 14px; }
  .float-badge strong { font-size: .88rem; }
  .float-badge small { font-size: .7rem; }
  .fb-icon { width: 32px; height: 32px; border-radius: 10px; }
  .fb-icon .i { width: 16px; height: 16px; }
  .b1 { left: -12%; top: 8%; } .b2 { right: -14%; top: 50%; } .b3 { display: none; }
  .scroll-cue { display: none; }
  .p2, .f1 { display: none; }

  .meet-grid { grid-template-columns: 1fr; }
  .meet-collage { max-width: 440px; margin: 0 auto; width: 100%; }
  .stat-card { grid-template-columns: 1fr; }
  .hunter-intro { grid-template-columns: 1fr; text-align: left; gap: 2rem; }
  .pol-night { justify-self: center; width: min(280px, 75%); }
  .skills { grid-template-columns: 1fr; gap: .9rem; }
  .skill { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1.25rem; }
  .skill-icon { grid-row: span 2; margin: 0; }
  .skill h3 { margin: 0; font-size: 1.25rem; }
  .arena { grid-template-columns: 1fr; }
  .moon { width: 70px; height: 70px; }
  .day-grid { grid-template-columns: 1fr; }
  .clock-card { position: static; }
  .hall-grid { grid-template-columns: 1fr 1fr; }
  .hall-grid .award:last-child { grid-column: 1 / -1; max-width: calc(50% - .75rem); justify-self: center; }
  .duo { grid-template-columns: 1fr; justify-items: center; }
  .pal { width: 100%; max-width: 520px; }
  .duo-heart { width: 74px; height: 74px; margin: -2.2rem 0; position: relative; z-index: 2; }
  .duo-heart .i { width: 24px; height: 24px; }
  .duo-heart span { font-size: .78rem; }
  .together { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .together p { margin-inline: auto; }
  .lb-stage { padding: 0 1rem 5.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; translate: none; }
  .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-stats dt { font-size: 1.5rem; }
  .hero-stats dd { font-size: .8rem; }
  .btn-lg { font-size: 1rem; padding: 1em 1.4em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ticker span { font-size: 1.05rem; }
  .meet-collage { padding: .5rem 2.25rem 3.5rem 0; }
  .polaroid.pol-main figcaption { font-size: 1.35rem; }
  .spin-badge { width: 92px; height: 92px; top: -1rem; right: 2%; }
  .spin-badge text { font-size: 10.4px; }
  .spin-paw { width: 26px; height: 26px; }
  .stat-card-id { flex-direction: column; text-align: center; }
  .id-facts div { justify-content: center; }
  .id-facts dt { min-width: 0; }
  .game-top { flex-direction: column; align-items: stretch; }
  .hud-item { flex: 1; }
  .field { min-height: 340px; }
  .critter { width: 66px; height: 40px; }
  .hall-grid { grid-template-columns: 1fr; }
  .hall-grid .award:last-child { max-width: none; }
  .friend-stats { grid-template-columns: 1fr; }
  .friend-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-align: left; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: .6rem; }
  .g-item { border-radius: var(--r-md); }
  .moon { top: 1rem; right: 1rem; width: 52px; height: 52px; }
  .trophy-sub { font-size: .7rem; letter-spacing: .08em; }
  .g-cap { display: none; }
  .filters { gap: .4rem; }
  .filter { padding: .55em 1em; font-size: .88rem; }
  .tl-item { grid-template-columns: 48px 1fr; gap: .85rem; }
  .tl-dot { width: 48px; height: 48px; }
  .timeline::before { left: 23px; }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
