/* Happy Gay Lucky — Sticker Club */

:root {
  --bg: #FFFBF3;
  --surface: #FFFFFF;
  --ink: #1D1B33;          /* text + outlines */
  --line: #1D1B33;         /* sticker outline + shadow */
  --muted: #4A4766;
  --faint: #5C5976;
  --field: #FFFBF3;

  --back: #FFE9A8;         /* face-down card */
  --peek-blue: #BFD8FF;
  --peek-pink: #FFC9D0;
  --manifesto: #E9E0FF;
  --mint: #C9F0DA;

  --band-prompt: #BFD8FF;
  --band-story: #FFD2B0;
  --band-quote: #DCCBFF;
  --band-text: #1D1B33;

  --red: #E5484D; --orange: #F28C28; --yellow: #F5C518;
  --green: #2FA36B; --blue: #2E7CF6; --purple: #8B5CF6;

  --display: "Fredoka", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 24px;
  --shadow: 6px 6px 0 var(--line);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12162B;
    --surface: #1D2240;
    --ink: #F6F1EA;
    --line: #F6F1EA;
    --muted: #C9C5DD;
    --faint: #A9A5C3;
    --field: #12162B;
    --back: #2A2150;
    --peek-blue: #2E4A86;
    --peek-pink: #7A3550;
    --manifesto: #2A2150;
    --mint: #1E3B33;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 24px; padding-right: 24px; } }

.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

.sticker {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.arc path { fill: none; stroke-width: 13; }

/* Header */
.site-header { margin-top: 18px; background: var(--surface); overflow: hidden; box-shadow: 5px 5px 0 var(--line); border-radius: 20px; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
@media (min-width: 720px) { .site-header__bar { padding: 16px 24px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; }
@media (min-width: 720px) { .brand { font-size: 23px; } }
.site-header nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
@media (max-width: 480px) { .site-header nav a[href="#news"] { display: none; } }

.stripe { display: flex; height: 12px; border-top: 3px solid var(--line); }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: var(--orange); }
.stripe i:nth-child(3) { background: var(--yellow); }
.stripe i:nth-child(4) { background: var(--green); }
.stripe i:nth-child(5) { background: var(--blue); }
.stripe i:nth-child(6) { background: var(--purple); }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; padding-top: 56px; padding-bottom: 80px; }
@media (min-width: 720px) { .hero { padding-top: 72px; padding-bottom: 104px; gap: 48px; } }
.hero__intro { display: flex; flex-direction: column; gap: 16px; align-items: center; max-width: 760px; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); line-height: 1.05; }
.hero__intro p { font-size: 18px; color: var(--muted); }
@media (min-width: 720px) { .hero__intro p { font-size: 19px; } }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Deck */
.deck { position: relative; width: min(340px, 82vw); aspect-ratio: 340 / 480; }
.deck__peek { position: absolute; inset: 0; border: 3px solid var(--line); border-radius: 26px; }
.deck__peek--blue { background: var(--peek-blue); transform: rotate(7deg) translate(16px, 6px); }
.deck__peek--pink { background: var(--peek-pink); transform: rotate(-9deg) translate(-14px, 10px); }

.card {
  position: absolute; inset: 0; width: 100%;
  border-radius: 26px; background: var(--surface); color: var(--ink);
  transform: rotate(-2deg);
  box-shadow: 7px 7px 0 var(--line);
}
.card--back {
  background: var(--back);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  font: inherit; cursor: pointer;
  transition: transform .2s ease;
}
.card--back:hover { transform: rotate(-3deg) translateY(-4px); }
.card__title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 7vw, 34px); }
.card__hint { font-weight: 600; font-size: 15px; }

.card--face { display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.card[hidden] { display: none; }
.card__band { padding: 14px 22px; background: var(--band-prompt); color: var(--band-text); border-bottom: 3px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 17px; }
.card--story .card__band { background: var(--band-story); }
.card--quote .card__band { background: var(--band-quote); }
.card__body { flex: 1; padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 0; }
.card__content { display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.card__text { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 6.4vw, 32px); line-height: 1.18; }
.card--story .card__text { font-family: var(--body); font-weight: 400; font-size: clamp(15px, 4.2vw, 17px); line-height: 1.6; }
.card--quote .card__text { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.22; }
.card__source { color: var(--muted); font-size: 15px; }
.card__num { font-size: 13px; font-weight: 600; color: var(--faint); }

.card.is-in { animation: card-in .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes card-in {
  from { transform: rotate(-2deg) translateY(12px) scale(.95); opacity: 0; }
  to   { transform: rotate(-2deg); opacity: 1; }
}

/* Confetti */
.confetti { position: absolute; left: 50%; top: 45%; width: 12px; height: 18px; border-radius: 3px; pointer-events: none; z-index: 5; animation: burst .9s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes burst {
  0%   { transform: translate(-50%, -50%) rotate(0) scale(.6); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); opacity: 0; }
}

/* Buttons */
.btn {
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 3px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 18px;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn--yellow { background: var(--yellow); color: #1D1B33; box-shadow: 4px 4px 0 var(--line); font-size: 19px; min-height: 56px; padding: 0 32px; }
.btn--ink { background: var(--ink); color: var(--bg); align-self: flex-start; font-weight: 600; font-size: 17px; }
@media (max-width: 480px) { .btn--ink { align-self: stretch; } }

/* Sections */
.section { padding-bottom: 64px; }
@media (min-width: 720px) { .section { padding-bottom: 88px; } }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.manifesto { background: var(--manifesto); padding: 40px 22px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; border-radius: 28px; }
@media (min-width: 720px) { .manifesto { padding: 64px 48px; } }
.manifesto__text { max-width: 760px; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3vw, 32px); line-height: 1.32; }
.manifesto__sig { font-weight: 600; font-size: 17px; }

/* Forms */
.forms { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.panel { flex: 1 1 440px; min-width: 0; background: var(--surface); padding: 28px 20px; display: flex; flex-direction: column; gap: 14px; border-radius: 28px; }
@media (min-width: 720px) { .panel { padding: 40px; gap: 18px; } }
.panel--mint { flex: 1 1 320px; background: var(--mint); }
.panel h2 { font-size: clamp(28px, 4vw, 34px); }
.panel label { font-weight: 600; font-size: 15px; }
.panel label .muted { font-weight: 400; }
.panel input[type="text"], .panel input[type="email"], .panel textarea {
  width: 100%; min-height: 50px; padding: 0 16px;
  border: 3px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 16px; background: var(--field); color: var(--ink);
}
.panel textarea { padding: 14px 16px; resize: vertical; }
.panel ::placeholder { color: var(--faint); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; min-height: 1.5em; }

/* Footer */
.site-footer { border-top: 3px solid var(--line); background: var(--surface); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 40px; font-weight: 500; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 19px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
