:root {
  --sky: #55bff4;
  --sun: #ffd33f;
  --sun-deep: #ee9d18;
  --leaf: #287537;
  --leaf-dark: #153f24;
  --cream: #fff4c6;
  --ink: #17351d;
  --wood: #8a4f28;
  --wood-light: #c77b3b;
  --pink: #ef826e;
  --blue: #70c3e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #245f2e;
  font-family: Verdana, Geneva, system-ui, sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.field-blur {
  display: none;
}

.sun-haze {
  display: none;
}

#petals {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -8vh;
  width: 12px;
  height: 22px;
  border-radius: 80% 15% 70% 20%;
  background: #ffd43e;
  box-shadow: inset -3px -2px rgba(226, 136, 20, 0.36);
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  to {
    transform: translate3d(var(--drift), 115vh, 0) rotate(720deg);
  }
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 64px);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand-stamp {
  display: grid;
  place-items: center;
  min-width: 148px;
  padding: 9px 18px 8px;
  color: #fffbe7;
  background: #2a7437;
  border: 4px solid #f7d84d;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 1000;
  letter-spacing: -1px;
  line-height: 0.9;
  transform: rotate(-3deg);
  box-shadow: 0 5px 0 #174d25, 0 8px 22px rgba(12, 49, 20, 0.28);
}

.brand-stamp small {
  margin-top: 6px;
  color: #ffe35c;
  font-size: 0.68rem;
  letter-spacing: 2px;
}

.quick-links {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sign {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  padding: 11px 16px 9px;
  color: white;
  background:
    linear-gradient(rgba(255,255,255,0.08), transparent),
    var(--wood);
  border: 3px solid #5e351f;
  border-radius: 8px 12px 6px 11px;
  text-decoration: none;
  font-weight: 1000;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 2px rgba(255, 213, 131, 0.25), 0 5px 0 #4c2b1b;
  transform: rotate(1.6deg);
  transition: transform 160ms ease, filter 160ms ease;
}

.sign:nth-child(2) {
  transform: rotate(-2.4deg) translateY(3px);
}

.sign:nth-child(3) {
  transform: rotate(2.8deg) translateY(-2px);
}

.sign-pump {
  background-color: #2e8c45;
  border-color: #1d6230;
  box-shadow: inset 0 0 0 2px rgba(210, 255, 190, 0.27), 0 5px 0 #174d26;
}

.sign:hover,
.sign:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-3px) rotate(0);
}

main {
  position: relative;
  min-height: 370svh;
  background-image: url("assets/grandpaws-vertical-world.png");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.hero {
  position: relative;
  min-height: max(100svh, 1100px);
  display: block;
  padding: 0;
  background: transparent;
  isolation: isolate;
}

.hero::after {
  display: none;
}

.hero-name {
  position: absolute;
  z-index: 4;
  top: clamp(24px, 3.5vh, 38px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 28px);
  transform: translateX(-50%) rotate(-1.5deg);
  pointer-events: none;
}

.character-stage {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 96px;
  width: min(100vw, 1000px);
  height: 900px;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.character-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 13px 10px rgba(60, 37, 17, 0.2));
}

.name-main {
  color: #fff3a5;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0.015em;
  text-shadow: 0 5px 0 #2b6931, 0 9px 20px rgba(37, 68, 25, 0.3);
  white-space: nowrap;
}

.name-ticker {
  margin-top: 0;
  padding: 7px 19px;
  color: #153f24;
  background: #ffdf4f;
  border: 4px solid #2f7636;
  border-radius: 999px;
  font-weight: 1000;
  font-size: clamp(1rem, 2vw, 1.45rem);
  letter-spacing: 0.16em;
  box-shadow: 0 5px 0 #1e5529;
}

.scene-caption {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 8vw, 150px);
  bottom: clamp(114px, 15vh, 160px);
  margin: 0;
  padding: 8px 12px;
  color: #694018;
  background: #fff1a7;
  font: 900 0.68rem/1.1 "Courier New", monospace;
  letter-spacing: 0.1em;
  transform: rotate(-4deg);
  box-shadow: 3px 4px 0 rgba(96, 63, 21, 0.25);
}

.sun-note {
  position: absolute;
  z-index: 5;
  max-width: 220px;
  margin: 0;
  color: white;
  font-weight: 1000;
  font-size: clamp(0.8rem, 1.5vw, 1.15rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 0 #226031, 0 4px 12px rgba(16, 56, 25, 0.4);
}

.note-left {
  left: clamp(24px, 5vw, 88px);
  top: 42%;
  transform: rotate(-7deg);
}

.note-right {
  right: clamp(24px, 5vw, 88px);
  top: 35%;
  text-align: right;
  transform: rotate(6deg);
}

.ca-plank {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: clamp(36px, 5vh, 62px);
  width: min(92vw, 670px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #fff8dc;
  background:
    repeating-linear-gradient(3deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 9px),
    #8b512c;
  border: 4px solid #5a351f;
  border-radius: 9px 14px 8px 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 214, 142, 0.22), 0 8px 0 #43281a, 0 13px 26px rgba(25, 45, 22, 0.35);
  margin-top: 0;
  transform: translateX(-50%) rotate(0.5deg);
}

.ca-label {
  color: #ffe167;
  font-weight: 1000;
}

.ca-plank code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.82rem;
}

.ca-plank button {
  padding: 8px 12px;
  color: #173d23;
  background: #ffe05c;
  border: 0;
  border-radius: 6px;
  font-weight: 1000;
  cursor: pointer;
}

.scroll-flower {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 4vw, 54px);
  bottom: 28px;
  display: grid;
  justify-items: center;
  color: #fff8c7;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-shadow: 0 2px 0 #194e28;
}

.scroll-flower span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  color: #63421b;
  background: #ffd62f;
  border: 5px dotted #ee9e15;
  border-radius: 50%;
  font-size: 1.3rem;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  50% { transform: translateY(7px); }
}

.story {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 0.9fr);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  gap: clamp(40px, 6vw, 90px);
  padding: 12vh clamp(18px, 3vw, 42px);
  background: transparent;
}

.story-copy {
  max-width: 650px;
  color: white;
  transform: rotate(-1deg);
  text-shadow: 0 3px 0 rgba(57, 34, 15, 0.75), 0 0 18px rgba(53, 29, 12, 0.45);
}

.tiny-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #ffe463;
  font-weight: 1000;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}

.story h2,
.blame h2,
.final-field h2 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 5.2rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.story p {
  max-width: 610px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
}

.scribble-link {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 5px;
  color: #ffe66b;
  border-bottom: 4px wavy #ffe66b;
  font-weight: 1000;
  text-decoration: none;
}

.x-post-stage {
  position: relative;
  width: min(100%, 520px);
  justify-self: center;
  padding: 18px;
  color: #2d4a2d;
  background: #fff7d4;
  transform: rotate(4deg);
  box-shadow: 18px 22px 0 rgba(8, 49, 22, 0.32);
  transition: transform 180ms ease;
}

.x-post-stage:hover,
.x-post-stage:focus-within {
  transform: rotate(1deg) translateY(-6px);
}

.x-post-stage > p {
  margin: 0 0 12px;
  font: 1000 0.82rem/1 "Courier New", monospace;
  letter-spacing: 0.1em;
}

.x-post-stage iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: 14px;
  background: white;
}

.x-post-stage > a {
  display: block;
  margin-top: 14px;
  color: #416246;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-align: right;
  text-decoration: none;
}

.tape {
  position: absolute;
  z-index: 2;
  width: 110px;
  height: 31px;
  background: rgba(255, 228, 108, 0.78);
  box-shadow: inset 0 0 0 1px rgba(139, 103, 31, 0.16);
}

.tape-one {
  top: -10px;
  left: -28px;
  transform: rotate(-38deg);
}

.tape-two {
  right: -25px;
  bottom: 38px;
  transform: rotate(-19deg);
}

.blame {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12vh 22px;
  text-align: center;
  color: white;
  background: transparent;
}

.blame h2 {
  color: #fff3a8;
  text-shadow: 0 5px 0 #8f6828, 0 9px 18px rgba(57, 38, 18, 0.3);
}

.blame-sub {
  margin: 18px 0 40px;
  font-weight: 900;
  font-size: 1.1rem;
}

.blame-buttons {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}

.blame-choice {
  position: relative;
  min-height: 148px;
  padding: 24px 14px;
  color: #244d2a;
  background: #fff3b7;
  border: 7px solid #e4a827;
  border-radius: 50% 48% 45% 52%;
  cursor: pointer;
  box-shadow: 0 11px 0 #8c6121, 0 17px 24px rgba(10, 47, 21, 0.28);
  transition: transform 150ms ease, filter 150ms ease;
}

.blame-choice:nth-child(1) { transform: rotate(-5deg); }
.blame-choice:nth-child(2) { transform: rotate(2deg) translateY(12px); }
.blame-choice:nth-child(3) { transform: rotate(5deg); }

.blame-choice:hover,
.blame-choice:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-6px) rotate(0);
}

.blame-choice span,
.blame-choice b {
  display: block;
}

.blame-choice span {
  font-weight: 1000;
  font-size: clamp(0.86rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
}

.blame-choice b {
  margin-top: 10px;
  color: #e07141;
  font-size: 2.1rem;
}

.vote-message {
  min-height: 1.5em;
  margin: 42px 0 0;
  color: #ffe875;
  font-weight: 1000;
}

.final-field {
  position: relative;
  min-height: 80svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12vh 22px 7vh;
  color: white;
  text-align: center;
  background: transparent;
}

.final-copy p {
  margin: 0 0 12px;
  color: #ffe56c;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.final-field h2 {
  max-width: 900px;
  text-shadow: 0 5px 0 #245d30;
}

.final-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 52px;
}

.big-flower-link {
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 70px;
  padding: 16px 26px;
  color: #173f23;
  background: #ffdc42;
  border: 5px solid #ef9c1d;
  border-radius: 48% 52% 46% 55%;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 0 #8e5d1f;
  transform: rotate(-2deg);
  transition: transform 160ms ease;
}

.big-flower-link:nth-child(2) { transform: rotate(2deg) translateY(7px); }
.big-flower-link:nth-child(3) { transform: rotate(-1deg); }

.big-flower-link:hover,
.big-flower-link:focus-visible {
  transform: translateY(-5px) rotate(0);
}

.footer-note {
  margin: 80px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

@media (max-width: 820px) {
  .topbar {
    align-items: center;
    padding: 12px;
  }

  .brand-stamp {
    min-width: 114px;
    padding: 8px 12px;
    font-size: 0.83rem;
  }

  .quick-links {
    gap: 6px;
  }

  .sign {
    min-width: 0;
    padding: 9px 10px 7px;
    font-size: 0.65rem;
  }

  .hero {
    min-height: 1040px;
  }

  .character-stage {
    width: 120vw;
    height: 820px;
    bottom: 92px;
  }

  .hero-name {
    top: 70px;
  }

  .name-main {
    font-size: clamp(2.7rem, 11vw, 4.4rem);
  }

  .sun-note {
    display: none;
  }

  .note-left { left: 18px; }
  .note-right { right: 18px; }

  .ca-plank {
    bottom: 34px;
    width: calc(100% - 24px);
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .scroll-flower {
    display: none;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 15vh;
  }

  .story-copy {
    text-align: center;
  }

  .story p {
    margin-inline: auto;
  }

  .x-post-stage {
    width: min(92%, 480px);
  }

  .blame-buttons {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .blame-choice {
    min-height: 105px;
  }

  .blame-choice:nth-child(2) {
    transform: rotate(2deg);
  }
}

@media (max-width: 460px) {
  .topbar {
    align-items: flex-start;
  }

  .quick-links .sign:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: 960px;
  }

  .character-stage {
    width: 158vw;
    height: 760px;
    bottom: 96px;
  }

  .hero-name {
    top: 72px;
  }

  .name-main {
    font-size: 10.8vw;
  }

  .name-ticker {
    margin-top: 12px;
    font-size: 0.78rem;
  }

  .sun-note {
    bottom: 190px;
    max-width: 115px;
    font-size: 0.62rem;
  }

  .ca-plank {
    bottom: 24px;
  }

  .ca-plank code {
    font-size: 0.68rem;
  }

  .story h2,
  .blame h2,
  .final-field h2 {
    font-size: clamp(2.35rem, 13vw, 4.2rem);
  }

  .scene-caption {
    display: none;
  }

  .x-post-stage iframe {
    min-height: 560px;
  }
}

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