:root {
  color-scheme: light;
  --ink: #271719;
  --pink: #edb6c6;
  --pink-light: #f8d3dc;
  --pink-deep: #d986a1;
  --cream: #fff8ec;
  --green: #27583d;
  --green-light: #8ebf6a;
  --brown: #704632;
  --line: rgba(39, 23, 25, .2);
  --shadow: 0 22px 65px rgba(92, 43, 56, .2);
  --mx: 72%;
  --my: 44%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #d996aa;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1920px;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 248, 236, .75), transparent 19%),
    radial-gradient(circle at 8% 84%, rgba(111, 65, 44, .16), transparent 25%),
    linear-gradient(118deg, var(--pink-light) 0%, var(--pink) 46%, #e6a8bc 100%);
  box-shadow: 0 0 80px rgba(65, 26, 35, .2);
}

.stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -20%;
  opacity: .13;
  background: repeating-radial-gradient(ellipse at 78% 55%, transparent 0 58px, rgba(64, 39, 29, .7) 60px 62px, transparent 64px 86px);
  transform: rotate(-8deg);
  animation: grain-drift 18s ease-in-out infinite alternate;
}

.stage::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.pointer-glow {
  position: absolute;
  z-index: -1;
  width: 560px;
  aspect-ratio: 1;
  left: var(--mx);
  top: var(--my);
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 246, 231, .2);
  filter: blur(70px);
  transform: translate(-50%, -50%);
  transition: left .16s ease-out, top .16s ease-out;
}

.rings {
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(74, 43, 30, .16);
  border-radius: 50%;
  pointer-events: none;
}
.rings::before, .rings::after { content: ""; position: absolute; border: inherit; border-radius: inherit; }
.rings--one { width: 30vw; aspect-ratio: 1; right: -8vw; top: 12vh; animation: ring-pulse 8s ease-in-out infinite; }
.rings--one::before { inset: 7%; }
.rings--one::after { inset: 17%; }
.rings--two { width: 19vw; aspect-ratio: 1; left: 35vw; bottom: -9vw; animation: ring-pulse 10s 1s ease-in-out infinite reverse; }
.rings--two::before { inset: 11%; }
.rings--two::after { inset: 24%; }

.spark {
  position: absolute;
  z-index: 3;
  color: var(--cream);
  font-size: clamp(1.2rem, 2vw, 2.4rem);
  text-shadow: 2px 2px 0 rgba(39, 23, 25, .15);
  pointer-events: none;
  animation: sparkle 4s ease-in-out infinite;
}
.spark--1 { top: 19%; left: 48%; }
.spark--2 { top: 72%; left: 45%; font-size: 1rem; animation-delay: -1.2s; }
.spark--3 { top: 17%; right: 4.5%; animation-delay: -2.6s; }
.spark--4 { bottom: 15%; right: 4%; font-size: 1.25rem; animation-delay: -.6s; }

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 92px;
  padding: 0 3.4vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: clamp(.9rem, 1vw, 1.12rem);
  font-weight: 950;
  letter-spacing: .08em;
  text-decoration: none;
}
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--green); }

.top-note { margin: 0; font-size: .72rem; font-weight: 900; letter-spacing: .2em; opacity: .64; }

nav { display: flex; justify-content: flex-end; gap: 10px; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 17px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease;
}
.nav-pill svg { width: 16px; height: 16px; fill: currentColor; }
.nav-pill--dark { color: var(--cream); background: var(--ink); }
.nav-pill:hover, .nav-pill:focus-visible { transform: translateY(-3px) rotate(-1deg); box-shadow: 4px 5px 0 var(--green); outline: none; }
.nav-pill--dark:hover, .nav-pill--dark:focus-visible { color: var(--ink); background: var(--cream); }

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(480px, .93fr) minmax(560px, 1.07fr);
  align-items: center;
  gap: 1.5vw;
  height: calc(100svh - 154px);
  min-height: 620px;
  padding: clamp(20px, 2.2vh, 34px) 3.4vw clamp(24px, 3vh, 46px) 6.2vw;
}

.hero-copy { position: relative; z-index: 4; align-self: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 1.8vh, 22px);
  font-size: clamp(.72rem, .78vw, .88rem);
  font-weight: 950;
  letter-spacing: .2em;
}
.eyebrow-dot { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(142, 191, 106, .23); animation: dot-pop 2s ease-in-out infinite; }

h1 {
  max-width: 840px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(5rem, 8.35vw, 10rem);
  font-weight: 900;
  line-height: .71;
  letter-spacing: -.052em;
  text-transform: uppercase;
}
h1 span, h1 em { display: block; }
h1 em { position: relative; z-index: -1; margin-left: -.02em; color: var(--cream); font-style: normal; -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 6px 0 var(--green), 8px 10px 0 rgba(39, 23, 25, .18); transform: rotate(-1.2deg); }

.lede { margin: clamp(20px, 2.5vh, 30px) 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.45vw, 1.72rem); font-style: italic; font-weight: 700; line-height: 1.15; }

.action-row { display: flex; align-items: center; gap: 14px; margin-top: clamp(16px, 2vh, 24px); }

.ca-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--cream);
  background: var(--ink);
  cursor: pointer;
  box-shadow: 5px 6px 0 var(--green);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.ca-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.25) 45%, transparent 70%); transform: translateX(-130%); transition: transform .55s ease; }
.ca-button:hover::before { transform: translateX(130%); }
.ca-button:hover, .ca-button:focus-visible { color: var(--ink); background: var(--cream); transform: translate(-2px, -2px); box-shadow: 8px 9px 0 var(--green); outline: none; }
.ca-button:active { transform: translate(3px, 3px); box-shadow: 2px 3px 0 var(--green); }
.ca-button.is-copied { animation: copied-pop .42s ease; }
.ca-label { opacity: .62; font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.ca-button strong { position: relative; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; font-size: 1.02rem; letter-spacing: .08em; white-space: nowrap; }
.copy-icon { position: relative; flex: 0 0 auto; width: 18px; height: 18px; fill: currentColor; }
.copy-hint { font-size: .67rem; font-weight: 950; letter-spacing: .14em; opacity: .52; }

.lore-card {
  position: relative;
  max-width: 670px;
  margin-top: clamp(19px, 2.7vh, 32px);
  padding: clamp(16px, 1.8vh, 23px) clamp(18px, 1.5vw, 27px) clamp(14px, 1.7vh, 21px);
  border: 1.5px solid var(--ink);
  border-radius: 16px 16px 38px 16px;
  background: rgba(255, 248, 236, .86);
  box-shadow: 7px 8px 0 rgba(39, 23, 25, .12);
  backdrop-filter: blur(7px);
  transform: rotate(-.5deg);
}
.lore-card::after { content: ""; position: absolute; right: 22px; bottom: -12px; width: 46px; height: 24px; border-right: 2px solid rgba(39, 23, 25, .25); border-bottom: 2px solid rgba(39, 23, 25, .25); border-radius: 50%; transform: rotate(-9deg); }
.lore-kicker { margin-bottom: 7px; color: var(--green); font-size: .69rem; font-weight: 950; letter-spacing: .18em; }
.lore-card p { max-width: 610px; margin: 0; font-size: clamp(.82rem, .87vw, 1rem); font-weight: 650; line-height: 1.42; }
.lore-card p em { color: var(--brown); font-family: Georgia, serif; font-weight: 800; }
.lore-card small { display: block; margin-top: 8px; font-size: .61rem; font-weight: 750; opacity: .56; }

.stump-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 13px 0 0; padding-top: 11px; border-top: 1px dashed rgba(39, 23, 25, .28); }
.stump-stats div { display: flex; align-items: baseline; gap: 8px; }
.stump-stats dt { font-size: .59rem; font-weight: 950; letter-spacing: .1em; opacity: .52; }
.stump-stats dd { margin: 0; font-family: Georgia, serif; font-size: clamp(.72rem, .8vw, .92rem); font-weight: 900; }

.character-zone { position: relative; z-index: 3; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; perspective: 1200px; }
.character-zone::before { content: ""; position: absolute; z-index: -1; width: min(43vw, 770px); aspect-ratio: 1; border: 2px dashed rgba(39, 23, 25, .21); border-radius: 50%; animation: slow-spin 38s linear infinite; }
.character-orbit { position: relative; width: min(46vw, 850px); aspect-ratio: 1; animation: stump-float 5.8s ease-in-out infinite; }

.character-tilt {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .24s cubic-bezier(.22,.9,.34,1), filter .25s ease;
}
.character-tilt:focus-visible { border-radius: 42%; outline: 4px solid var(--cream); outline-offset: 3px; }
.character-tilt:hover { filter: saturate(1.05) contrast(1.02); }
.character-tilt img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border-radius: 45% 45% 16% 16%; object-fit: cover; box-shadow: var(--shadow); animation: bark-breathe 4.8s ease-in-out infinite; user-select: none; -webkit-user-drag: none; }
.character-halo { position: absolute; z-index: 0; inset: 10% 8% 4%; border-radius: 48%; background: rgba(255, 248, 236, .55); filter: blur(45px); transform: translateZ(-20px); animation: halo-breathe 4s ease-in-out infinite; }
.character-shine { position: absolute; z-index: 3; inset: 0; border-radius: 45% 45% 16% 16%; pointer-events: none; opacity: .25; background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,.45) 43%, transparent 60%); mix-blend-mode: soft-light; transform: translateX(-70%); animation: shine-sweep 7s 2s ease-in-out infinite; }
.character-zone.is-knocking .character-tilt { animation: stump-knock .7s cubic-bezier(.36,.07,.19,.97); }

.speech-bubble { position: absolute; z-index: 8; top: clamp(12px, 5.5vh, 72px); left: 0; width: min(18vw, 285px); min-width: 210px; padding: 16px 18px 13px; border: 2px solid var(--ink); border-radius: 24px 24px 4px 24px; background: var(--cream); box-shadow: 6px 7px 0 var(--green); transform: rotate(-3deg); transition: transform .25s ease, opacity .2s ease; }
.speech-bubble::after { content: ""; position: absolute; right: -17px; bottom: -2px; width: 25px; height: 25px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--cream); clip-path: polygon(0 0, 100% 100%, 0 100%); transform: skewX(-15deg); }
.speech-bubble span { display: block; font-family: Georgia, serif; font-size: clamp(1rem, 1.12vw, 1.28rem); font-style: italic; font-weight: 800; line-height: 1.15; }
.speech-bubble small { display: block; margin-top: 8px; font-size: .57rem; font-weight: 950; letter-spacing: .16em; opacity: .48; }
.speech-bubble.is-changing { opacity: 0; transform: rotate(-3deg) scale(.84); }

.stamp { position: absolute; z-index: 7; right: 1.5%; bottom: 7%; display: grid; place-items: center; width: 118px; aspect-ratio: 1; border: 3px solid var(--green); border-radius: 50%; color: var(--green); background: rgba(255, 248, 236, .9); text-align: center; transform: rotate(11deg); box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 7px var(--green), 5px 6px 0 rgba(39, 23, 25, .12); animation: stamp-bob 5s ease-in-out infinite; }
.stamp span { font-family: Impact, sans-serif; font-size: 1.7rem; line-height: 1; }
.stamp b { font-size: .6rem; letter-spacing: .08em; line-height: 1.1; }

.ticker { position: absolute; z-index: 11; right: 0; bottom: 0; left: 0; height: 62px; overflow: hidden; border-top: 2px solid var(--ink); color: var(--cream); background: var(--green); transform: rotate(-.35deg) scale(1.01); }
.ticker-track { display: flex; align-items: center; gap: 32px; width: max-content; height: 100%; white-space: nowrap; animation: ticker-roll 28s linear infinite; }
.ticker span { font-family: Impact, "Arial Black", sans-serif; font-size: clamp(1.15rem, 1.35vw, 1.55rem); letter-spacing: .08em; }
.ticker i { color: var(--pink-light); font-size: 1rem; font-style: normal; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 86px; padding: 14px 20px; border: 2px solid var(--ink); border-radius: 999px; color: var(--cream); background: var(--ink); font-size: .76rem; font-weight: 950; letter-spacing: .1em; box-shadow: 5px 6px 0 var(--green); opacity: 0; pointer-events: none; transform: translate(-50%, 24px) scale(.9); transition: opacity .2s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal--character { transform: translateX(36px) scale(.98); }
.js.ready .reveal { opacity: 1; transform: none; transition: opacity .72s ease, transform .85s cubic-bezier(.18,.8,.25,1); }
.js.ready .reveal--1 { transition-delay: .05s; }
.js.ready .reveal--2 { transition-delay: .15s; }
.js.ready .reveal--3 { transition-delay: .23s; }
.js.ready .reveal--4 { transition-delay: .33s; }
.js.ready .reveal--5 { transition-delay: .42s; }
.js.ready .reveal--6 { transition-delay: .5s; }
.js.ready .reveal--character { transition-delay: .18s; }

@keyframes grain-drift { to { transform: rotate(-5deg) translate3d(1.8%, -1%, 0); } }
@keyframes ring-pulse { 50% { transform: scale(1.08) rotate(4deg); opacity: .45; } }
@keyframes sparkle { 0%, 100% { opacity: .28; transform: scale(.72) rotate(0); } 50% { opacity: 1; transform: scale(1.18) rotate(35deg); } }
@keyframes dot-pop { 50% { box-shadow: 0 0 0 7px rgba(142, 191, 106, 0); } }
@keyframes stump-float { 0%, 100% { transform: translateY(0) rotate(-.35deg); } 50% { transform: translateY(-12px) rotate(.35deg); } }
@keyframes bark-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.008); } }
@keyframes halo-breathe { 50% { opacity: .65; transform: translateZ(-20px) scale(1.06); } }
@keyframes shine-sweep { 0%, 70%, 100% { transform: translateX(-70%); } 85% { transform: translateX(70%); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes stamp-bob { 0%,100% { transform: rotate(11deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-6px); } }
@keyframes stump-knock { 10%, 90% { transform: translateX(-2px) rotate(-1deg); } 20%, 80% { transform: translateX(4px) rotate(1.5deg); } 30%, 50%, 70% { transform: translateX(-7px) rotate(-2deg); } 40%, 60% { transform: translateX(7px) rotate(2deg); } }
@keyframes ticker-roll { to { transform: translateX(-50%); } }
@keyframes copied-pop { 50% { transform: translate(-3px, -5px) rotate(-2deg); } }

@media (min-width: 1600px) and (min-height: 900px) {
  .hero { padding-left: 7vw; padding-right: 4.5vw; }
  .lore-card { max-width: 720px; }
  .character-orbit { width: min(45vw, 890px); }
}

@media (max-height: 820px) and (min-width: 1001px) {
  .topbar { height: 78px; }
  .hero { height: calc(100svh - 132px); min-height: 560px; padding-top: 14px; padding-bottom: 20px; }
  .ticker { height: 54px; }
  h1 { font-size: clamp(5rem, 7.9vw, 8.5rem); }
  .lore-card { margin-top: 18px; padding-top: 15px; padding-bottom: 13px; }
  .character-orbit { width: min(45vw, 690px); }
  .speech-bubble { top: 16px; }
}

@media (max-width: 1180px) {
  .top-note { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: minmax(400px, .9fr) minmax(470px, 1.1fr); padding-left: 4vw; }
  .speech-bubble { left: -3%; }
  .stamp { right: -1%; }
}

@media (max-width: 1000px) {
  body { overflow: auto; }
  .stage { min-height: 100svh; overflow: hidden; }
  .topbar { height: 78px; padding: 0 20px; }
  .brand span { display: none; }
  .nav-pill { min-height: 40px; padding: 0 13px; }
  .nav-pill span { font-size: .68rem; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; padding: 34px 24px 100px; }
  .character-zone { order: -1; height: min(84vw, 650px); margin-bottom: 12px; }
  .character-orbit { width: min(88vw, 650px); }
  .character-zone::before { width: min(82vw, 610px); }
  .speech-bubble { top: 0; left: 2%; width: 230px; }
  .stamp { right: 2%; bottom: 1%; width: 94px; }
  .stamp span { font-size: 1.4rem; }
  .hero-copy { text-align: center; }
  .eyebrow, .action-row { justify-content: center; }
  h1 { margin-inline: auto; font-size: clamp(5rem, 20vw, 9rem); }
  .lore-card { margin-inline: auto; text-align: left; }
  .rings--two { display: none; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 14px; }
  nav { gap: 6px; }
  .nav-pill { padding: 0 11px; }
  .nav-pill svg { width: 14px; height: 14px; }
  .nav-pill span { font-size: .6rem; }
  .hero { padding-inline: 17px; padding-top: 24px; }
  .character-zone { height: 96vw; }
  .speech-bubble { top: -2px; left: 0; min-width: 0; width: 185px; padding: 12px 13px 10px; }
  .speech-bubble span { font-size: .9rem; }
  .speech-bubble small { font-size: .48rem; }
  .stamp { width: 78px; right: 0; bottom: 0; }
  .stamp span { font-size: 1.08rem; }
  .stamp b { font-size: .48rem; }
  h1 { font-size: clamp(4.6rem, 22vw, 7rem); }
  h1 em { -webkit-text-stroke-width: 1.5px; text-shadow: 3px 4px 0 var(--green), 5px 7px 0 rgba(39,23,25,.15); }
  .lede { font-size: 1.18rem; }
  .action-row { flex-wrap: wrap; gap: 10px; }
  .copy-hint { width: 100%; }
  .lore-card { border-radius: 14px 14px 28px 14px; }
  .stump-stats { gap: 7px; }
  .stump-stats div { display: block; }
  .stump-stats dd { margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { transform: none !important; }
}
