/* ============================================================
   SpongeBob GayPants — chaos stylesheet
   ============================================================ */

:root {
  --ocean-deep: #0e6ea0;
  --ocean: #1a93cf;
  --ocean-light: #5fc6ee;
  --sponge: #ffe14d;
  --sponge-deep: #f5c400;
  --ink: #08384f;
  --white: #ffffff;

  --r1: #ff4d6d;
  --r2: #ff9f1c;
  --r3: #ffd23f;
  --r4: #2ec96b;
  --r5: #3da5ff;
  --r6: #a056ff;

  --rainbow: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6));
  --shadow-pop: 0 8px 0 rgba(8, 56, 79, 0.25), 0 14px 30px rgba(8, 56, 79, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(180deg, var(--ocean-light) 0%, var(--ocean) 35%, var(--ocean-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  cursor: default;
}

h1, h2, h3 { font-family: "Luckiest Guy", "Fredoka", cursive; font-weight: 400; letter-spacing: 0.5px; }

img { -webkit-user-drag: none; user-select: none; }

/* ---------- chaos layers ---------- */
#trail-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 60;
}
#bubble-field {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.bubble {
  position: absolute; bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.15) 60%, rgba(255,255,255,0) 70%);
  border: 1px solid rgba(255,255,255,0.4);
  animation: rise linear forwards;
}
@keyframes rise {
  to { transform: translateY(-115vh) translateX(var(--drift, 0)); opacity: 0; }
}
#confetti-layer {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 70; overflow: hidden;
}
.confetti {
  position: absolute; top: -20px;
  width: 12px; height: 18px; border-radius: 3px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.9; }
}

/* ---------- sound toggle ---------- */
.sound-toggle {
  position: fixed; bottom: 16px; right: 16px; z-index: 80;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 13px;
  background: var(--white); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(8,56,79,0.4);
}
.sound-toggle:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(8,56,79,0.4); }
.sound-toggle .sound-off { display: none; }
.sound-toggle.muted .sound-on { display: none; }
.sound-toggle.muted .sound-off { display: inline; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 10px 24px;
  background: rgba(13, 110, 160, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--sponge);
}
.nav__logo img { height: 46px; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.nav__links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav__links a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 12px; border-radius: 999px; transition: all 0.15s;
}
.nav__links a:hover { background: var(--sponge); color: var(--ink); transform: rotate(-2deg) scale(1.05); }
.nav__cta {
  flex: none; font-family: "Luckiest Guy", cursive; font-size: 15px;
  color: var(--ink); background: var(--sponge); text-decoration: none;
  border: 3px solid var(--ink); border-radius: 999px; padding: 7px 16px;
  box-shadow: 0 4px 0 var(--sponge-deep); transition: transform 0.12s; white-space: nowrap;
}
.nav__cta:hover { transform: translateY(-2px) rotate(-2deg); }

/* ---------- contract address box ---------- */
.ca-box {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--ink); border: 3px solid var(--sponge); border-radius: 14px;
  padding: 10px 14px; margin: 6px 0 22px; cursor: pointer;
  box-shadow: 0 5px 0 rgba(8,56,79,0.4); transition: transform 0.1s;
  max-width: 100%;
}
.ca-box:hover { transform: translateY(-2px); }
.ca-box:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(8,56,79,0.4); }
.ca-box__label {
  font-family: "Luckiest Guy", cursive; font-size: 12px; letter-spacing: 1px;
  color: var(--ink); background: var(--sponge); padding: 3px 8px; border-radius: 6px; flex: none;
}
.ca-box__addr {
  font-family: "Courier New", monospace; font-weight: 700; font-size: 14px;
  color: var(--white); word-break: break-all; min-width: 0;
}
.ca-box__copy {
  font-family: "Fredoka"; font-weight: 700; font-size: 12px; color: var(--ink);
  background: var(--r3); padding: 4px 10px; border-radius: 999px; flex: none; transition: all 0.15s;
}
.ca-box.copied .ca-box__copy { background: var(--r4); color: var(--white); }

/* ---------- hero buttons ---------- */
.hero__btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.candy-btn--lg { font-size: 22px; padding: 15px 28px; text-decoration: none; display: inline-block; }
.big-dumb-btn--sm { font-size: 17px; padding: 11px 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 30px;
  max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px;
}
.hero__logo { width: min(440px, 90%); display: block; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.3)); }
.hero__kicker {
  font-weight: 700; color: var(--ink); background: var(--sponge);
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  margin: 18px 0 8px; transform: rotate(-1.5deg);
  box-shadow: 0 3px 0 var(--sponge-deep);
}
.hero__headline {
  font-size: clamp(34px, 6vw, 68px); color: var(--white); margin: 6px 0 14px;
  line-height: 1.02; text-shadow: 0 4px 0 rgba(8,56,79,0.35);
}
.hero__sub { font-size: 18px; color: var(--white); max-width: 460px; line-height: 1.45; margin: 0 0 24px; text-wrap: pretty; }
.hero__disclaimer { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 12px; font-style: italic; }
.hero__sponge { width: 100%; max-width: 460px; justify-self: center; filter: drop-shadow(0 14px 18px rgba(0,0,0,0.3)); }

/* rainbow text */
.rainbow-text {
  background: var(--rainbow); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: rainbow-shift 4s linear infinite;
}
@keyframes rainbow-shift { to { background-position: 200% center; } }

/* ---------- big dumb button ---------- */
.big-dumb-btn {
  font-family: "Luckiest Guy", cursive; font-size: 26px;
  color: var(--ink); background: var(--sponge);
  border: 4px solid var(--ink); border-radius: 18px;
  padding: 16px 28px; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: var(--shadow-pop); transition: transform 0.08s;
}
.big-dumb-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.big-dumb-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 rgba(8,56,79,0.25); }
.big-dumb-btn__count { font-family: "Fredoka"; font-size: 13px; font-weight: 600; opacity: 0.7; }

/* candy button */
.candy-btn {
  font-family: "Luckiest Guy", cursive; font-size: 18px;
  color: var(--white); background: var(--r1);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: 12px 22px; cursor: pointer;
  box-shadow: 0 5px 0 rgba(8,56,79,0.4); transition: transform 0.08s;
}
.candy-btn:hover { transform: translateY(-2px) rotate(1deg); background: var(--r6); }
.candy-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(8,56,79,0.4); }

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 0;
  background: var(--ink); color: var(--white);
  border-top: 4px solid var(--sponge); border-bottom: 4px solid var(--sponge);
  overflow: hidden; white-space: nowrap;
}
.ticker__badge {
  flex: none; background: var(--r1); color: var(--white);
  font-family: "Luckiest Guy"; font-size: 16px; padding: 12px 18px;
  z-index: 2; box-shadow: 6px 0 12px rgba(0,0,0,0.4);
}
.ticker__track { display: flex; animation: ticker-scroll 28s linear infinite; }
.ticker__group { display: flex; flex: none; }
.ticker__group span {
  padding: 12px 28px; font-weight: 600; font-size: 16px;
  border-right: 2px dotted rgba(255,255,255,0.3);
}
.ticker__group span::before { content: "🌈 "; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------- generic section heads ---------- */
section { position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; padding: 0 20px; }
.eyebrow {
  font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  color: var(--ink); background: var(--sponge); display: inline-block;
  padding: 4px 14px; border-radius: 999px; margin: 0 0 12px;
}
.section-title { font-size: clamp(28px, 4.5vw, 50px); color: var(--white); margin: 0 0 10px; text-shadow: 0 4px 0 rgba(8,56,79,0.3); }
.section-lede { font-size: 18px; color: var(--white); margin: 0; }
.tiny { font-size: 12px; opacity: 0.7; }

/* ---------- confirmed / quotes ---------- */
.confirmed { padding: 70px 24px; }

/* dossier / timeline */
.dossier {
  max-width: 820px; margin: 0 auto 50px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 18px; counter-reset: dossier;
}
.dossier__item {
  display: flex; gap: 20px; align-items: stretch;
  background: var(--white); border: 4px solid var(--ink); border-radius: 20px;
  padding: 22px 24px; box-shadow: var(--shadow-pop);
}
.dossier__item--final { background: var(--sponge); }
.dossier__year {
  flex: none; width: 92px; font-family: "Luckiest Guy", cursive; font-size: 22px;
  color: var(--white); background: var(--ink); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px;
}
.dossier__item:nth-child(1) .dossier__year { background: var(--r1); }
.dossier__item:nth-child(2) .dossier__year { background: var(--r4); }
.dossier__item:nth-child(3) .dossier__year { background: var(--r5); }
.dossier__item:nth-child(4) .dossier__year { background: var(--r6); }
.dossier__body h3 { font-family: "Luckiest Guy", cursive; font-size: 20px; margin: 0 0 6px; color: var(--ink); }
.dossier__body p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: #2a4856; }

.quote-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote-card {
  background: var(--white); border: 4px solid var(--ink); border-radius: 20px;
  padding: 26px; margin: 0; box-shadow: var(--shadow-pop);
}
.quote-card blockquote { margin: 0 0 14px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.quote-card figcaption { font-size: 14px; color: var(--ocean-deep); font-weight: 600; }
.quote-card:nth-child(1) { border-top: 10px solid var(--r1); }
.quote-card:nth-child(2) { border-top: 10px solid var(--r3); }
.quote-card:nth-child(3) { border-top: 10px solid var(--r4); }
.quote-card:nth-child(4) { border-top: 10px solid var(--r6); }

/* ---------- pride-o-meter ---------- */
.meter { padding: 50px 24px 70px; }
.meter__box {
  max-width: 700px; margin: 0 auto; background: var(--white);
  border: 4px solid var(--ink); border-radius: 26px; padding: 36px 32px;
  box-shadow: var(--shadow-pop); text-align: center;
}
.meter__readout { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.meter__emoji { font-size: 60px; line-height: 1; }
.meter__value { font-family: "Luckiest Guy"; font-size: 56px; color: var(--ink); }
.pride-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px;
  border-radius: 999px; border: 3px solid var(--ink);
  background: var(--rainbow); cursor: pointer; outline: none;
}
.pride-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--ink); cursor: grab;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.pride-slider::-moz-range-thumb {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--ink); cursor: grab;
}
.meter__verdict { font-family: "Luckiest Guy"; font-size: 22px; color: var(--ink); margin: 22px 0 0; min-height: 28px; }

/* ---------- faq ---------- */
.faq { padding: 40px 24px 70px; }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--white); border: 4px solid var(--ink); border-radius: 16px;
  padding: 4px 22px; box-shadow: 0 6px 0 rgba(8,56,79,0.25);
}
.faq__item summary {
  font-family: "Luckiest Guy"; font-size: 21px; color: var(--ink);
  padding: 14px 0; cursor: pointer; list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 30px; color: var(--r1); transition: transform 0.2s;
}
.faq__item[open] summary::after { content: "−"; color: var(--r6); }
.faq__item p { margin: 0 0 16px; font-size: 17px; font-weight: 500; line-height: 1.5; }

/* ---------- fact box ---------- */
.factbox { padding: 30px 24px 70px; }
.factbox__inner {
  max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr;
  gap: 30px; align-items: center;
  background: var(--white); border: 4px solid var(--ink); border-radius: 26px;
  padding: 30px; box-shadow: var(--shadow-pop);
}
.factbox__sponge { width: 100%; }
.factbox__fact { font-size: 22px; font-weight: 600; line-height: 1.4; min-height: 90px; }
.factbox__text .section-title { color: var(--ink); text-shadow: none; }

/* ---------- merch ---------- */
.merch { padding: 30px 24px 70px; }
.merch__grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.merch-card {
  background: var(--white); border: 4px solid var(--ink); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-pop); display: flex; flex-direction: column;
  transition: transform 0.12s;
}
.merch-card:hover { transform: translateY(-6px) rotate(-1deg); }
.merch-card__art { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 70px; position: relative; }
.merch-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.merch-card__name { font-family: "Luckiest Guy"; font-size: 19px; color: var(--ink); }
.merch-card__desc { font-size: 14px; font-weight: 500; color: #3a5b6b; flex: 1; }
.merch-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.merch-card__price { font-family: "Luckiest Guy"; font-size: 20px; color: var(--r1); }
.merch-card__btn {
  font-family: "Fredoka"; font-weight: 700; font-size: 13px; color: var(--white);
  background: var(--ink); border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.merch-card__btn:hover { background: var(--r6); }
.merch-card.sold .merch-card__btn { background: #9bb0bb; cursor: not-allowed; }

/* ---------- fans ---------- */
.fans { padding: 30px 24px 70px; }
.fans__grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.fan-card {
  background: var(--white); border: 4px solid var(--ink); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 12px;
}
.fan-card__stars { color: var(--r2); font-size: 20px; letter-spacing: 2px; }
.fan-card p { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; flex: 1; }
.fan-card footer { display: flex; flex-direction: column; }
.fan-card footer strong { font-size: 15px; }
.fan-card footer span { font-size: 13px; color: #5b7785; }

/* ---------- newsletter ---------- */
.newsletter { padding: 30px 24px 70px; }
.newsletter__box {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--sponge); border: 4px solid var(--ink); border-radius: 26px;
  padding: 40px 32px; box-shadow: var(--shadow-pop);
}
.newsletter__box .section-title { color: var(--ink); text-shadow: none; }
.newsletter__lede { font-size: 17px; font-weight: 500; margin: 6px 0 22px; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter__form input {
  flex: 1; min-width: 220px; font-family: "Fredoka"; font-size: 16px;
  padding: 13px 16px; border: 3px solid var(--ink); border-radius: 12px; outline: none;
}
.newsletter__msg { margin: 18px 0 0; font-weight: 700; font-size: 17px; color: var(--ink); }

/* ---------- community ---------- */
.community { padding: 30px 24px 70px; }
.community__ca {
  max-width: 720px; margin: 0 auto 30px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: var(--ink); border: 4px solid var(--sponge); border-radius: 18px;
  padding: 18px 22px; cursor: pointer; text-align: center;
  box-shadow: var(--shadow-pop); transition: transform 0.1s;
}
.community__ca:hover { transform: translateY(-3px); }
.community__ca:active { transform: translateY(3px); }
.community__ca .ca-box__addr { font-size: 16px; }
.community__links {
  max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.comm-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  text-decoration: none; padding: 32px 24px;
  border: 4px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow-pop);
  transition: transform 0.12s;
}
.comm-card--pump { background: linear-gradient(160deg, #2ec96b, #1aa84f); }
.comm-card--x { background: linear-gradient(160deg, #2b2b2b, #000); }
.comm-card:hover { transform: translateY(-6px) rotate(-1deg); }
.comm-card__icon { font-size: 52px; line-height: 1; }
.comm-card__name { font-family: "Luckiest Guy", cursive; font-size: 26px; color: var(--white); }
.comm-card__desc { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.9); }
.comm-card__go {
  margin-top: 8px; font-family: "Fredoka"; font-weight: 700; font-size: 14px; color: var(--ink);
  background: var(--white); padding: 8px 18px; border-radius: 999px;
}
.community__disclaimer {
  max-width: 640px; margin: 30px auto 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5; font-style: italic;
}

/* ---------- footer ---------- */
.footer { text-align: center; padding: 50px 24px 90px; color: var(--white); }
.footer__big { font-family: "Luckiest Guy"; font-size: clamp(24px, 4vw, 38px); margin: 0 0 14px; text-shadow: 0 3px 0 rgba(8,56,79,0.3); }
.footer__fine { font-size: 14px; max-width: 560px; margin: 0 auto; opacity: 0.85; line-height: 1.5; }

/* ---------- animations ---------- */
.bounce { animation: bounce 2.2s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-22px) rotate(1deg); } }
.wiggle { animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.spin-hover { transition: transform 0.4s; }
.spin-hover:hover { transform: rotate(8deg) scale(1.05); }
.tilt { transition: transform 0.15s; }
.tilt:hover { transform: rotate(-1.5deg) scale(1.02); }

.pop { animation: pop-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes pop-in { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* jiggle applied by JS on click */
.jiggle { animation: jiggle 0.4s ease; }
@keyframes jiggle {
  0%,100% { transform: rotate(0); } 20% { transform: rotate(-4deg) scale(1.04); }
  40% { transform: rotate(4deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bounce, .wiggle, .rainbow-text, .ticker__track, .bubble { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero__logo { margin: 0 auto; }
  .hero__kicker { transform: none; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__sponge { max-width: 320px; order: -1; }
  .quote-grid { grid-template-columns: 1fr; }
  .dossier__item { flex-direction: column; gap: 12px; }
  .dossier__year { width: auto; align-self: flex-start; padding: 6px 16px; }
  .community__links { grid-template-columns: 1fr; }
  .factbox__inner { grid-template-columns: 1fr; text-align: center; }
  .factbox__sponge { max-width: 220px; margin: 0 auto; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .hero__headline { font-size: 34px; }
  .meter__value { font-size: 42px; }
  .meter__emoji { font-size: 46px; }
  .big-dumb-btn { font-size: 21px; }
}
