:root {
  --color-cream: #FBF3E7;
  --color-pink: #F5C1D3;
  --color-pink-accent: #EA5D95;
  --color-olive: #6E7A3D;
  --color-olive-dark: #454F22;
  --color-red: #E0473D;
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius-pill: 999px;
  --radius-card: 20px;
  --shadow-card: 0 8px 24px rgba(69, 79, 34, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-olive-dark);
  background: var(--color-cream);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

img {
  max-width: 100%;
  display: block;
  filter: saturate(0.82) contrast(0.94) brightness(1.02) sepia(0.1);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-pink-accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 93, 149, 0.35);
}

/* --- SOS --- */
.sos-inner { text-align: center; }

.sos-button {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(224, 71, 61, 0.4);
  transition: transform 0.15s ease;
}

.sos-button:hover,
.sos-button:focus-visible { transform: scale(1.04); }

.sos-phrase {
  margin-top: 24px;
  font-size: 1.2rem;
  font-weight: 600;
  min-height: 1.5em;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-cream);
  border-bottom: 2px solid var(--color-pink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-olive-dark);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--color-olive-dark);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover { color: var(--color-pink-accent); }

.header-links {
  display: flex;
  gap: 12px;
  font-size: 1.3rem;
}

.header-links a { text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* --- Hero --- */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-copy { flex: 1 1 380px; }

.hero-art {
  position: relative;
  flex: 0 0 auto;
  max-width: 340px;
  margin: 0 auto;
}

.hero-art img {
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(0.94) brightness(1.02) sepia(0.1) drop-shadow(0 12px 20px rgba(69, 79, 34, 0.18));
  transform: rotate(-3deg);
}

.sticker {
  position: absolute;
  font-size: 2rem;
}

.sticker-1 { top: -16px; right: -12px; }
.sticker-2 { bottom: 12%; left: -4px; }

@media (max-width: 960px) {
  .main-nav { gap: 14px; }
}

@media (max-width: 640px) {
  .main-nav,
  .header-links { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    padding: 16px 24px;
    border-bottom: 2px solid var(--color-pink);
  }
  .hero-inner { text-align: center; flex-direction: column-reverse; gap: 24px; }
  .hero-copy { flex: initial; }
  h1 { font-size: 1.6rem; }
  section { padding: 36px 0; }
}

/* --- About --- */
.about-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-illustration {
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: saturate(0.82) contrast(0.94) brightness(1.02) sepia(0.1) drop-shadow(0 12px 20px rgba(69, 79, 34, 0.18));
  transform: rotate(2deg);
  margin: 0 auto;
}

.about-copy { flex: 1 1 320px; }

/* --- Attributes (club merch spotlight) --- */
.attributes-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.attributes-copy { max-width: 640px; margin: 0 auto; width: 100%; }

.pricing-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  max-width: 380px;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-pink);
  font-weight: 600;
}

.pricing-list li:first-child {
  font-family: var(--font-heading);
  color: var(--color-pink-accent);
  font-size: 1.2rem;
}

.pricing-list em {
  font-style: normal;
  color: var(--color-olive);
  font-weight: 400;
  font-size: 0.85rem;
}

.attributes-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.attributes-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 4px 4px 12px;
  scroll-behavior: smooth;
}

.attributes-gallery img {
  flex: 0 0 200px;
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-olive-dark);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible { background: var(--color-pink); }

.warning-box {
  background: #fff;
  border: 2px dashed var(--color-pink-accent);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 20px 0;
}

.warning-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.warning-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.warning-box li { margin-bottom: 6px; }

.attributes-note { color: var(--color-olive); }

/* --- Oath --- */
.oath-widget {
  max-width: 640px;
  margin: 32px auto 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  text-align: center;
}

.oath-step--text p:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

.oath-step--congrats p { font-size: 1.2rem; }

/* --- Quiz --- */
.quiz-intro {
  max-width: 640px;
  margin: 0 auto 1em;
  text-align: center;
}

.quiz-widget {
  max-width: 640px;
  margin: 32px auto 0;
}

.quiz-widget[data-step="questions"],
.quiz-widget[data-step="result"] {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.quiz-step--intro { text-align: center; }

.quiz-question {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

.quiz-question legend {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding: 0;
}

.quiz-question label {
  display: block;
  background: var(--color-cream);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 8px;
  cursor: pointer;
}

.quiz-question label:hover { background: var(--color-pink); }

.quiz-question input { margin-right: 10px; }

#quiz-form button[type="submit"] { display: block; margin: 0 auto; }

.quiz-step--result { text-align: center; }

.quiz-step--result h3 {
  color: var(--color-pink-accent);
  margin-bottom: 12px;
}

/* --- Horoscope --- */
.horoscope-intro {
  max-width: 640px;
  margin: 0 auto 1em;
  text-align: center;
}

.horoscope-widget {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
}

.horoscope-widget[data-step="loading"],
.horoscope-widget[data-step="result"] {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
}

.horoscope-orbit {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}

.orbit-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  animation: horoscope-orbit 3s linear infinite;
}

.orbit-star:nth-child(1) { animation-delay: 0s; }
.orbit-star:nth-child(2) { animation-delay: -0.5s; }
.orbit-star:nth-child(3) { animation-delay: -1s; }
.orbit-star:nth-child(4) { animation-delay: -1.5s; }
.orbit-star:nth-child(5) { animation-delay: -2s; }
.orbit-star:nth-child(6) { animation-delay: -2.5s; }

@keyframes horoscope-orbit {
  from { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-star { animation: none; }
}

#horoscope-loading-text {
  font-family: var(--font-heading);
  font-weight: 600;
  min-height: 1.5em;
}

.horoscope-step--result h3 {
  color: var(--color-pink-accent);
  margin-bottom: 12px;
}

.horoscope-tip {
  color: var(--color-olive);
  font-weight: 600;
}

.horoscope-share {
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px dashed var(--color-pink);
}

.horoscope-share-prompt {
  margin-bottom: 12px;
  font-weight: 600;
}

.horoscope-share .btn {
  background: #fff;
  color: var(--color-pink-accent);
  border: 2px solid var(--color-pink-accent);
}

.horoscope-share .btn:hover,
.horoscope-share .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 93, 149, 0.25);
}

#horoscope-again-btn { margin-top: 8px; }

.start-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.magic-ball-button {
  display: block;
  width: 220px;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.magic-ball-button:hover,
.magic-ball-button:focus-visible { transform: scale(1.04); }

.magic-ball-button img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(69, 79, 34, 0.25));
}

/* --- Reviews (corkboard) --- */
.corkboard {
  background-color: #C89666;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 62% 68%, rgba(0, 0, 0, 0.07) 0, rgba(0, 0, 0, 0.07) 2px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 35% 85%, rgba(0, 0, 0, 0.07) 0, rgba(0, 0, 0, 0.07) 2px, transparent 2px),
    radial-gradient(circle at 10% 70%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
  background-size: 60px 60px, 45px 45px, 70px 70px, 50px 50px, 65px 65px;
  border-radius: var(--radius-card);
  padding: 48px 32px 36px;
  margin-top: 32px;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.22), var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.review-note {
  position: relative;
  background: #FFFDF6;
  padding: 26px 18px 18px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  font-size: 0.95rem;
  color: var(--color-olive-dark);
}

.review-note p:last-child { margin-bottom: 0; }

.review-note:nth-child(3n+1) { transform: rotate(-2deg); }
.review-note:nth-child(3n+2) { transform: rotate(1.5deg); }
.review-note:nth-child(3n) { transform: rotate(-1deg); }

.review-pin {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  font-size: 1.8rem;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-pink-accent);
  margin-bottom: 4px;
}

@media (max-width: 960px) {
  .corkboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .corkboard { grid-template-columns: 1fr; padding: 40px 20px 28px; }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-olive-dark);
  color: var(--color-cream);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand { font-family: var(--font-heading); font-weight: 700; }

.footer-links {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a,
.footer-social a { color: var(--color-cream); text-decoration: none; }

.footer-social { display: flex; gap: 16px; }

.footer-copyright {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 16px 0 0;
}

@media (max-width: 640px) {
  .about-inner { flex-direction: column; text-align: center; gap: 24px; }
  .magic-ball-button { width: 180px; }
  .sos-button { width: 180px; height: 180px; }
  h1, h2, h3 { margin-bottom: 0.4em; }
}

/* --- Fireworks celebration overlay --- */
.fireworks-canvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.fireworks-canvas[hidden] { display: none; }

/* --- Cookie notice --- */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--color-olive-dark);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.cookie-notice[hidden] { display: none; }

.cookie-notice p {
  margin: 0;
  max-width: 640px;
  font-size: 0.95rem;
}

.cookie-notice a { color: var(--color-pink); }

.cookie-notice .btn {
  flex-shrink: 0;
  padding: 10px 24px;
}

@media (max-width: 640px) {
  .cookie-notice { flex-direction: column; text-align: center; }
}

/* --- Checkout --- */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(69, 79, 34, 0.05);
  cursor: pointer;
}

.pricing-option:has(input:checked) {
  border-color: var(--color-pink-accent);
  background: rgba(234, 93, 149, 0.08);
}

.pricing-option input {
  margin-right: 0.5rem;
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.checkout-fields input {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(69, 79, 34, 0.2);
  font: inherit;
}

.checkout-error {
  color: var(--color-red);
  font-size: 0.9rem;
}

.status-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.status-page-inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.status-page-inner h1 {
  margin-bottom: 1rem;
}

.status-page-inner p {
  margin-bottom: 1rem;
}
