:root {
  --ink: #1a1420;
  --foam: #fff8f0;
  --gold: #f5c518;
  --gold-deep: #d4a017;
  --arcade: #c41230;
  --arcade-deep: #9a0e26;
  --pink: #ff4d8d;
  --blue: #2f6fed;
  --green: #1f9d55;
  --yellow: #f5c518;
  --white: #fffdf8;
  --line: rgba(26, 20, 32, 0.12);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 77, 141, 0.35), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(245, 197, 24, 0.45), transparent 32%),
    linear-gradient(180deg, #2a1830 0%, #1a1420 28%, #140f18 100%);
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--foam);
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(26, 20, 32, 0.78);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.wordmark {
  display: block;
  width: min(420px, 100%);
  height: auto;
  margin: 0 0 14px;
  border-radius: 18px;
}

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

.nav a {
  padding: 8px 10px;
  color: rgba(255, 248, 240, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--gold);
}

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5a74 0%, var(--arcade) 55%, var(--arcade-deep) 100%);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 0 #6d0a1c;
}

.play:hover {
  transform: translateY(1px);
  box-shadow: 0 7px 0 #6d0a1c;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 24px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.lede {
  max-width: 38rem;
  margin: 0 0 22px;
  color: rgba(255, 248, 240, 0.88);
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ghost {
  color: var(--foam);
  font-weight: 800;
}

.note {
  margin: 14px 0 0;
  color: rgba(255, 248, 240, 0.7);
  font-size: 0.92rem;
  font-weight: 700;
}

.booth {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 77, 141, 0.28), transparent 42%),
    linear-gradient(165deg, #fff8f0 0%, #ffe8c8 100%);
  box-shadow: 0 0 0 6px rgba(196, 18, 48, 0.35), 0 24px 50px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  text-align: center;
}

.booth p {
  margin: 0 0 14px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.cubes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cube {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 3px solid rgba(26, 20, 32, 0.2);
  box-shadow: inset 0 -10px 0 rgba(26, 20, 32, 0.12), 0 10px 0 rgba(26, 20, 32, 0.08);
  animation: tumble 4.8s ease-in-out infinite;
}

.cube:nth-child(2) {
  animation-delay: -1.6s;
}

.cube:nth-child(3) {
  animation-delay: -3.2s;
}

.faces {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.faces span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(26, 20, 32, 0.2);
}

.red { background: var(--arcade); }
.blue { background: var(--blue); }
.green { background: var(--green); }
.yellow { background: var(--yellow); }
.pink { background: var(--pink); }
.white { background: var(--white); }

section {
  padding: 28px 0;
}

.panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 248, 240, 0.96);
  color: var(--ink);
}

.panel h2,
.panel h3 {
  margin: 0 0 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 248, 240, 0.96);
  color: var(--ink);
}

.step b {
  display: block;
  margin-bottom: 6px;
  color: var(--arcade);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.7rem;
}

.colors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.swatch {
  padding: 12px 8px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.swatch.red,
.swatch.blue,
.swatch.green {
  color: white;
}

.faq details {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin: 8px 0 0;
}

.prose {
  max-width: 720px;
}

.prose h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.prose h2 {
  margin: 28px 0 8px;
  font-size: 1.6rem;
}

.prose p,
.prose li {
  color: rgba(255, 248, 240, 0.9);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 28px 0 40px;
  color: rgba(255, 248, 240, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes tumble {
  0%, 12% { background: var(--arcade); transform: translateY(0) rotate(-2deg); }
  16%, 28% { background: var(--blue); transform: translateY(-6px) rotate(3deg); }
  32%, 44% { background: var(--green); transform: translateY(0) rotate(-1deg); }
  48%, 60% { background: var(--yellow); transform: translateY(-4px) rotate(2deg); }
  64%, 76% { background: var(--pink); transform: translateY(0) rotate(-3deg); }
  80%, 100% { background: var(--white); transform: translateY(-2px) rotate(1deg); }
}

@media (max-width: 800px) {
  .site-header {
    border-radius: 22px;
  }

  .nav a:not(.play) {
    display: none;
  }

  .hero,
  .grid,
  .colors {
    grid-template-columns: 1fr;
  }

  .colors {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cube {
    animation: none;
    background: var(--gold);
  }
}
