/* ============================================================
   BAMboozled - Tricks & Minifigs™  | parody protest site
   Playful-protest register. All brick motifs are original CSS.
   ============================================================ */

:root {
  --yellow: #ffd21e;
  --yellow-deep: #f7b500;
  --red: #e3262b;
  --red-deep: #b3161b;
  --ink: #1a1a1f;
  --ink-soft: #33333d;
  --paper: #fff8e6;
  --paper-2: #fffdf6;
  --blue: #2b6cff;
  --green: #1ea672;
  --green-deep: #15805890;
  --muted: #6b6b76;
  --line: #e7ddc4;
  --shadow: 0 6px 0 rgba(0,0,0,.12);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.18);
  --radius: 14px;
  --maxw: 1120px;
  --stud: #ffce1f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .price, .fact-num, .marquee {
  font-family: "Fredoka", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
}

a { color: var(--red-deep); }

img { max-width: 100%; }

/* ---------- Parody ribbon ---------- */
.parody-ribbon {
  background: repeating-linear-gradient(45deg, var(--ink) 0 18px, #2c2c34 18px 36px);
  color: var(--yellow);
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 7px 12px;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(14px, 4vw, 32px);
  background: var(--paper-2);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-studs { display: inline-flex; gap: 4px; padding: 6px 8px 4px; background: var(--red); border-radius: 7px; box-shadow: var(--shadow); }
.brand-studs .stud { width: 12px; height: 12px; border-radius: 50%; background: #ff5b5f; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.22rem; }
.brand-name sup { font-size: .5em; }
.brand-sub { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red-deep); border-color: var(--yellow-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 11px 18px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,.14); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.14); }
.btn-lg { font-size: 1.08rem; padding: 14px 24px; }
.btn-support { background: var(--red); color: #fff; }
.btn-support:hover { background: var(--red-deep); }
.btn-ghost { background: var(--paper-2); }
.nav-cta { padding: 9px 15px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 104px) clamp(14px, 4vw, 32px) clamp(40px, 7vw, 80px);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,210,30,.55), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(227,38,43,.10), transparent 55%),
    var(--paper);
  overflow: hidden;
}
.hero-bricks {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 8px 8px, rgba(0,0,0,.05) 3px, transparent 4px);
  background-size: 28px 28px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 920px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
  margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  line-height: 1.04;
  margin: 0 0 22px;
}
.hl { color: var(--red); position: relative; white-space: nowrap; }
.hl-2 {
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%);
  padding: 0 4px;
}
.hero-lede {
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-foot { margin-top: 22px; font-size: .85rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--red);
  color: #fff;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  font-size: 1.05rem;
  letter-spacing: .12em;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span { display: inline-block; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(54px, 8vw, 96px) clamp(14px, 4vw, 32px); }
.section-alt { background: var(--paper-2); border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }
.container { max-width: var(--maxw); margin: 0 auto; }

.kicker {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: #fff;
  background: var(--ink);
  padding: 5px 14px;
  border-radius: 20px;
  margin: 0 0 14px;
}
.section h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 0 0 28px; line-height: 1.1; }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.story-col p { font-size: 1.05rem; }
.callout {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.callout-warn { background: #fff0ef; border-color: var(--red-deep); }
.callout-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
  margin: 0 0 8px;
  color: var(--red-deep);
}
.callout p:last-child { margin-bottom: 0; }
.alleged-note {
  margin-top: 30px;
  font-size: .92rem;
  color: var(--ink-soft);
  background: #fffbe9;
  border-left: 5px solid var(--yellow-deep);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 4px; background: var(--ink); border-radius: 3px;
}
.tl-item { position: relative; padding: 0 0 26px 52px; }
.tl-marker {
  position: absolute; left: 4px; top: 4px;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--yellow); border: 3px solid var(--ink);
  box-shadow: 0 0 0 4px var(--paper-2);
}
.tl-now .tl-marker { background: var(--red); }
.tl-card {
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.tl-card.in { opacity: 1; transform: none; }
.section-alt .tl-card { background: var(--paper); }
.tl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-date { font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--red-deep); }
.tl-card h3 { margin: 0 0 6px; font-size: 1.18rem; }
.tl-card p { margin: 0; color: var(--ink-soft); }
.tag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 20px; border: 2px solid var(--ink);
}
.tag-doc { background: #e6f4ff; }
.tag-alleged { background: #fff0d6; }
.tag-now { background: var(--red); color: #fff; }

/* ---------- Shop ---------- */
.shop-intro, .receipts-intro { font-size: 1.08rem; max-width: 720px; color: var(--ink-soft); margin: -8px 0 34px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .1s ease, box-shadow .1s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  position: relative;
  height: 150px;
  background: var(--yellow);
  background-image:
    radial-gradient(circle at 16px 16px, rgba(255,255,255,.55) 7px, transparent 8px);
  background-size: 40px 40px;
  border-bottom: 3px solid var(--ink);
}
.product-img-2 { background-color: #ff8a3d; }
.product-img-3 { background-color: #58c0ff; }
.product-img-4 { background-color: #b78bff; }
.product-img-5 { background-color: #7ad67a; }
.product-img-6 { background-color: var(--red); }
.ribbon-sale {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--yellow);
  font-family: "Fredoka", sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px;
}
.ribbon-good { background: var(--green); color: #fff; }
.product h3 { margin: 16px 18px 6px; font-size: 1.16rem; }
.product-desc { margin: 0 18px 16px; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 18px; }
.price { font-size: 1.25rem; color: var(--red-deep); }
.btn-cart { font-size: .9rem; padding: 9px 14px; background: var(--yellow); }
.btn-cart:hover { background: var(--yellow-deep); }
.btn-cart-good { background: var(--green); color: #fff; }
.btn-cart-good:hover { background: #18895f; }
.product-hero-item { border-color: var(--green); box-shadow: 0 6px 0 rgba(30,166,114,.3); grid-column: span 1; }
.shop-disclaimer { margin-top: 28px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Receipts ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 38px; }
.fact {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
  box-shadow: var(--shadow);
}
.fact-num { display: block; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--yellow); line-height: 1; }
.fact-label { display: block; margin-top: 8px; font-size: .85rem; color: #d9d9e2; }
.quote-block {
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-left-width: 10px;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.quote-block blockquote {
  margin: 0 0 12px; font-size: 1.18rem; font-style: italic; color: var(--ink);
  font-family: "Fredoka", sans-serif; font-weight: 500; line-height: 1.45;
}
.quote-block cite { display: block; font-size: .9rem; color: var(--muted); font-style: normal; font-weight: 600; }
.quote-rebuttal { margin: 16px 0 0; font-size: .96rem; color: var(--ink-soft); border-top: 2px dashed var(--line); padding-top: 14px; }
.sources-head { font-size: 1.3rem; margin: 0 0 14px; }
.sources { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 10px; }
.sources a { color: var(--red-deep); font-weight: 500; }

/* ---------- Creators / Watch ---------- */
.creators { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.creator {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: transform .1s ease, box-shadow .1s ease;
}
.creator:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.creator-lead { border-color: var(--red); border-left-width: 10px; background: #fff0ef; }
.creator-rank {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.5rem;
  color: #fff; background: var(--ink);
  border-radius: 10px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.creator-lead .creator-rank { background: var(--red); }
.creator-body { flex: 1; min-width: 0; }
.creator-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.creator-name { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.creator-subs {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--red-deep); background: var(--yellow); border: 2px solid var(--ink);
  padding: 2px 9px; border-radius: 20px;
}
.creator-video { margin: 6px 0 12px; color: var(--ink-soft); font-style: italic; }
.creator-btn { padding: 8px 14px; font-size: .9rem; }

/* ---------- Support ---------- */
.support { background: var(--ink); color: #fff; text-align: center; }
.support-inner { max-width: 740px; }
.support h2 { color: #fff; }
.support p { font-size: 1.1rem; color: #e2e2ea; }
.support-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }
.support .btn-ghost { background: #2c2c36; color: #fff; border-color: var(--yellow); }
.support .btn-ghost:hover { background: #3a3a46; }
.copy-status { min-height: 1.4em; margin-top: 14px; color: var(--yellow); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #14141a; color: #c9c9d2; padding: 40px clamp(14px,4vw,32px); border-top: 3px solid var(--yellow-deep); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { display: flex; flex-direction: column; margin-bottom: 16px; color: #fff; }
.footer .brand-name { font-size: 1.2rem; }
.disclaimer { font-size: .85rem; line-height: 1.7; max-width: 900px; }
.disclaimer strong { color: #fff; }
.footer-foot { margin-top: 18px; font-size: .85rem; color: #8a8a95; }
.footer-foot a { color: var(--yellow); }

/* ---------- Mobile menu / toggle ---------- */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--paper-2);
  border-bottom: 3px solid var(--ink);
  padding: 10px clamp(14px,4vw,32px) 18px;
  position: sticky; top: 60px; z-index: 49;
}
.mobile-menu a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn-support { margin-top: 10px; }
.mobile-menu.open { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  html { scroll-padding-top: 80px; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .creator { flex-direction: column; align-items: flex-start; gap: 12px; }
  .creator-btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .tl-card { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
