/* Kick a Donut — shared styles. Brand system pulled from the game banners. */

:root {
  --purple-deep: #2a0a4a;
  --purple: #6a1fb0;
  --purple-2: #8b2fd6;
  --magenta: #d94fe0;
  --pink: #ff5fa8;
  --pink-hot: #ff3d95;
  --gold: #ffd23f;
  --gold-deep: #f0a500;
  --green: #37d67a;
  --sky: #38bdf8;
  --brown: #8a5a2b;
  --cream: #fff5fb;
  --text: #fff5fb;
  --muted: #e7d3f5;
  --ink: #2a0a4a;
  --card-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 18px 50px rgba(20, 4, 40, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 120, 210, 0.55), transparent 42%),
    radial-gradient(circle at 15% 8%, rgba(255, 210, 63, 0.16), transparent 30%),
    linear-gradient(160deg, #4a148c 0%, var(--purple) 40%, var(--purple-deep) 100%);
  background-attachment: fixed;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 18px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 18px; }

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

/* ---------- Display headline treatment (white fill, purple outline, drop shadow) ---------- */
.pop {
  font-weight: 700;
  color: #fff;
  -webkit-text-stroke: 2px var(--purple-deep);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(42, 10, 74, 0.9), 0 10px 22px rgba(20, 4, 40, 0.45);
  letter-spacing: 0.01em;
  line-height: 1.02;
}
.pop-gold {
  color: var(--gold);
  -webkit-text-stroke: 2px var(--purple-deep);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(42, 10, 74, 0.9);
  font-weight: 700;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--shadow); }
.brand span { font-weight: 700; font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255, 255, 255, 0.14); }
.nav-links a.current { background: rgba(255, 255, 255, 0.18); }
.nav-links a.parent-link { border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.12); font-weight: 700; }
.nav-links a.parent-link:hover, .nav-links a.parent-link:focus-visible { background: rgba(255, 255, 255, 0.24); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.btn-play {
  background: linear-gradient(180deg, #ff77bd, var(--pink-hot));
  color: #fff;
  box-shadow: 0 8px 0 #b81f66, var(--shadow);
  -webkit-text-stroke: 0.6px rgba(42, 10, 74, 0.6);
}
.btn-play:hover, .btn-play:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 4px 0 #b81f66, var(--shadow); }
.btn-gold {
  background: linear-gradient(180deg, #ffe07a, var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 8px 0 #b87c00, var(--shadow);
}
.btn-gold:hover, .btn-gold:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 4px 0 #b87c00, var(--shadow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
}
.btn-ghost:hover, .btn-ghost:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, 0.2); }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 20px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 92px);
}
.hero .sub {
  margin: 16px 0 0;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--cream);
  max-width: 30ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin: 16px 0 0; font-size: 15px; color: var(--muted); font-weight: 500; }
.hero-art { display: grid; place-items: center; }
.donut-float {
  width: min(420px, 82%);
  filter: drop-shadow(0 30px 40px rgba(20, 4, 40, 0.5));
  animation: floaty 4.5s ease-in-out infinite;
  border-radius: 32px;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); }
.section-head p { margin: 14px 0 0; font-size: 18px; color: var(--cream); font-weight: 500; }
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Loop steps */
.loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
.loop-step {
  text-align: center;
  padding: 26px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.loop-step .emoji { font-size: 46px; line-height: 1; }
.loop-step h3 { margin: 12px 0 4px; font-size: 24px; }
.loop-step p { margin: 0; font-size: 15px; color: var(--muted); }
.loop-arrow { font-size: 34px; color: var(--gold); font-weight: 700; }

/* World cards */
.worlds {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.world {
  position: relative;
  border-radius: 22px;
  padding: 22px 16px 20px;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  color: #fff;
}
.world .num {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #d12b00;
  font-weight: 700;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(20, 4, 40, 0.4);
}
.world img { width: 66px; height: 66px; margin: 4px auto 12px; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.3)); }
.world h3 { margin: 0; font-size: 18px; -webkit-text-stroke: 1px rgba(42,10,74,0.6); paint-order: stroke fill; }
.w1 { background: linear-gradient(180deg, #ff9ecb, #ff5fa8); }
.w2 { background: linear-gradient(180deg, #a9713f, var(--brown)); }
.w3 { background: linear-gradient(180deg, #6fd0f7, #1fa8e0); }
.w4 { background: linear-gradient(180deg, #ffd766, var(--gold-deep)); }
.w5 { background: linear-gradient(180deg, #55e58f, #17b45f); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.feature .emoji { font-size: 40px; }
.feature h3 { margin: 14px 0 8px; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* Story highlight band */
.band {
  padding: clamp(30px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 210, 63, 0.22), transparent 40%),
    rgba(42, 10, 74, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  text-align: center;
}
.band h2 { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 46px); }
.band p { margin: 0 auto; max-width: 60ch; font-size: 18px; line-height: 1.65; color: var(--cream); font-weight: 500; }
.band .hero-cta { justify-content: center; }

/* Prose (story / guide copy) */
.prose {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--cream); font-weight: 400; }
.prose h2 { font-size: 28px; margin: 30px 0 10px; }
.prose h3 { font-size: 21px; margin: 24px 0 8px; }
.prose strong { color: #fff; }
.prose a { color: var(--gold); font-weight: 600; }
.prose .lead { font-size: 20px; font-weight: 500; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; padding: 16px 0; font-size: 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.65; }

/* Footer */
.footer {
  margin-top: 40px;
  padding: 30px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: var(--cream); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.page-head { text-align: center; padding: 30px 0 10px; }
.page-head h1 { margin: 0; font-size: clamp(38px, 6.5vw, 72px); }
.page-head p { margin: 14px 0 0; font-size: 18px; color: var(--cream); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero .sub { max-width: none; }
  .hero-art { order: -1; }
  .donut-float { width: min(300px, 70%); }
  .loop { grid-template-columns: 1fr; }
  .loop-arrow { transform: rotate(90deg); }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .worlds { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .donut-float { animation: none; }
  .btn { transition: none; }
}
