:root {
  --ink: #2b1a12;
  --ink-soft: #5a3a2a;
  --paper: #fff6e8;
  --paper-deep: #f8e6c8;
  --cream: #fffaf1;
  --gold: #ffd36a;
  --gold-deep: #f4b942;
  --peach: #ffb38a;
  --coral: #ff8a65;
  --beanie: #e8b4a0;
  --sky: #8ec4dc;
  --ocean: #4d8eb3;
  --shiba: #f4a524;
  --white: #fffdf8;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.35) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 14%, rgba(255, 211, 106, 0.45) 0 120px, transparent 121px),
    radial-gradient(circle at 70% 90%, rgba(78, 142, 179, 0.18) 0 180px, transparent 181px),
    linear-gradient(180deg, #8ec4dc 0%, #f7c9a8 18%, #ffd6a5 42%, #ffe8c2 68%, #f5d0b0 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.8px);
  background-size: 8px 8px;
}

.sun-disc,
.palm-left,
.palm-right {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.sun-disc {
  top: 48px;
  right: 7vw;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff4c2, #ffd36a 55%, #ff9a4a);
  box-shadow: 0 0 0 8px rgba(255, 244, 194, 0.35);
}

.palm-left,
.palm-right {
  bottom: 0;
  width: 160px;
  height: 280px;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 50% 100%, #2b1a12 0 28px, transparent 29px),
    radial-gradient(ellipse 90px 28px at 20% 36%, #2b1a12 0 100%, transparent 101%),
    radial-gradient(ellipse 80px 24px at 80% 40%, #2b1a12 0 100%, transparent 101%),
    radial-gradient(ellipse 70px 22px at 50% 22%, #2b1a12 0 100%, transparent 101%);
}

.palm-left { left: 0; }
.palm-right { right: 0; transform: scaleX(-1); }

.site-wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.ticket-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 12px;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  background: #111;
  border: 3px solid var(--ink);
  border-radius: 12px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.brand-copy span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: var(--gold);
}

.page {
  margin-top: 28px;
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--gold);
  border-bottom: 5px solid var(--ink);
  border-radius: 17px 17px 0 0;
}

.page-kicker {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-num {
  font-family: "Bangers", system-ui, sans-serif;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.page-body {
  padding: 22px;
}

.cover .page-body {
  display: grid;
  gap: 20px;
}

.cover-title {
  display: grid;
  gap: 8px;
  text-align: center;
}

.cover-title h1 {
  margin: 0;
  font-family: "Bangers", system-ui, sans-serif;
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
}

.cover-title p {
  margin: 0;
  font-weight: 800;
  color: var(--ink-soft);
}

.panel {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.panel img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.speech {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 16px 20px 18px;
  text-align: center;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
}

.speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 22px;
  height: 16px;
  background: var(--white);
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 4px 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 10px;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.btn-ink.coral { background: var(--coral); color: #fff8f2; }
.btn-ink.sky { background: var(--sky); }
.btn-ink.cream { background: var(--cream); }

.btn-ink:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.story-card h2,
.howto h2,
.community-grid h2 {
  margin: 0 0 10px;
  font-family: "Bangers", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
}

.story-card p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.85rem;
}

.banner-strip {
  margin-top: 20px;
}

.banner-strip img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.step {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 18px;
  min-height: 100%;
}

.step-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #fff8f2;
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: "Bangers", system-ui, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  line-height: 1.6;
}

.community-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.stamp {
  background:
    radial-gradient(circle at 50% 50%, transparent 62%, var(--paper) 63%),
    var(--white);
  border: 4px dashed var(--ink);
  border-radius: 28px;
  padding: 22px;
  text-align: center;
}

.stamp img {
  width: min(220px, 70%);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.stamp strong {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.ca-box {
  margin-top: 16px;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 14px;
}

.ca-box label {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.ca-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ca-row code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 800;
}

.copy-btn {
  border: 3px solid var(--ink);
  background: var(--gold);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--peach);
}

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 4px 0;
  color: var(--ink);
  font-weight: 800;
}

.site-foot img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #111;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 40;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  .about-grid,
  .howto-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .ticket-nav {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
  }

  .sun-disc,
  .palm-left,
  .palm-right {
    display: none;
  }
}
