/* Fuse: Firework Puzzle, fuse.samtech.solutions. One stylesheet for every page. */
:root {
  --night: #060b19;
  --night-2: #0b1430;
  --night-3: #12204a;
  --card: rgba(18, 30, 66, 0.62);
  --card-line: rgba(245, 196, 107, 0.16);
  --ink: #f7efe0;
  --muted: #b3bbd3;
  --dim: #7d87a6;
  --gold: #f5c46b;
  --gold-2: #ffdf9e;
  --ember: #ff8a3d;
  --rose: #ff7d8c;
  --lav: #b8a5ff;
  --grass: #295c39;
  --rope: #b07a45;
  --radius: 22px;
  --shell: 1120px;
  --display: "Fredoka", "Outfit", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { width: min(100% - 32px, var(--shell)); margin-inline: auto; }

/* the night sky behind everything: two star layers that twinkle out of step */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(120, 90, 220, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(255, 138, 61, 0.07), transparent 60%),
    linear-gradient(180deg, #050a17 0%, #0a1430 55%, #0c1a3a 100%); }
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; background-repeat: repeat; }
.sky::before {
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 80px, #fff9 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 260px 160px, #ffe9b8aa 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 220px, #fff7 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 330px 40px, #fff8 50%, transparent 51%);
  background-size: 380px 260px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
.sky::after {
  background-image:
    radial-gradient(1px 1px at 60px 120px, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 210px 20px, #d9ccff99 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 200px, #fff7 50%, transparent 51%);
  background-size: 420px 300px;
  animation: twinkle 8s 2s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(6, 11, 25, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav .shell { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 600 20px/1 var(--display); letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 10px #0008; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .pill { color: #2a1606; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 8px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 18px rgba(245, 196, 107, 0.3); }
.nav-links .pill:hover { color: #2a1606; filter: brightness(1.06); }
@media (max-width: 720px) { .nav-links a:not(.pill) { display: none; } }

/* ---- hero ---- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 11, 25, 0.92) 0%, rgba(6, 11, 25, 0.62) 38%, rgba(6, 11, 25, 0.05) 70%),
    linear-gradient(0deg, var(--night) 0%, rgba(6, 11, 25, 0) 34%); }
.hero-copy { padding: 120px 0 72px; max-width: 560px; }
.hero-logo { width: min(380px, 78vw); margin: 0 0 6px -8px; filter: drop-shadow(0 8px 24px #000a); }
.hero h1 { font: 600 clamp(30px, 4.6vw, 48px)/1.1 var(--display); margin: 0 0 16px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { font-size: clamp(17px, 2vw, 19px); color: #d8deee; margin: 0 0 26px; max-width: 30em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-art img { object-position: 78% 50%; }
  .hero-art::after { background: linear-gradient(0deg, var(--night) 8%, rgba(6, 11, 25, 0.78) 55%, rgba(6, 11, 25, 0.35) 100%); }
  .hero-copy { padding: 220px 0 48px; }
}

/* ---- store buttons (badges show once the store links are live) ---- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-soon { display: inline-flex; flex-direction: column; justify-content: center; min-width: 160px; height: 54px;
  padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.45); }
.store-soon strong { font-size: 15px; line-height: 1.2; }
.store-soon small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.store-badge img { height: 54px; width: auto; }
[hidden] { display: none !important; }

/* ---- sections ---- */
section { padding: 96px 0; position: relative; }
.kicker { font: 600 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h2 { font: 600 clamp(28px, 4vw, 42px)/1.12 var(--display); margin: 0 0 16px; letter-spacing: -0.01em; }
h2 em { font-style: normal; color: var(--gold); }
h3 { font: 600 21px/1.25 var(--display); margin: 0 0 6px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.center { text-align: center; margin-inline: auto; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* ---- how to play: a fuse burns across the three steps ---- */
.fuse-stage { position: relative; margin: -24px auto 8px; max-width: 900px; }
.fuse-stage svg { width: 100%; height: auto; overflow: visible; }
.rope-path { fill: none; stroke: var(--rope); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 2 10; }
.rope-core { fill: none; stroke: #8a5a2e; stroke-width: 5; stroke-linecap: round; }
.rope-burnt { fill: none; stroke: #2a1f1a; stroke-width: 9.5; stroke-linecap: round; opacity: 0; }
.spark { filter: drop-shadow(0 0 6px #ffcf6b) drop-shadow(0 0 16px #ff8a3d); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 17px/1 var(--display); color: #2a1606; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 0 5px var(--night-2); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---- the toys ---- */
.toys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .toys { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .toys { grid-template-columns: repeat(2, 1fr); gap: 12px; } .toy { padding: 14px; grid-template-rows: 90px auto auto; } .toy .art img { max-height: 80px; } }
.toy { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 18px 18px 20px;
  display: grid; grid-template-rows: 110px auto auto; gap: 6px; transition: transform 200ms ease, border-color 200ms ease; }
.toy:hover { transform: translateY(-4px); border-color: rgba(245, 196, 107, 0.4); }
.toy .art { display: grid; place-items: center;
  background: radial-gradient(closest-side, rgba(255, 210, 130, 0.16), transparent); }
.toy .art img { max-height: 96px; width: auto; filter: drop-shadow(0 6px 10px #0009); }
.toy h3 { font-size: 18px; margin: 4px 0 0; }
.toy p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.toys-more { color: var(--muted); margin-top: 22px; }

/* ---- split rows ---- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.split p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }
.panel { background: var(--card); border: 1px solid var(--card-line); border-radius: 28px; padding: 28px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-2) 0 30%, var(--ember) 31% 55%, transparent 56%); box-shadow: 0 0 10px var(--ember); }

/* daily show calendar strip */
.daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .daily { gap: 5px; } .day { font-size: 11px; border-radius: 10px; } .day b { font-size: 16px; } .panel { padding: 16px; } }
.day { aspect-ratio: 0.82; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; place-items: center; align-content: center; gap: 4px; font-size: 13px; color: var(--dim); }
.day b { font: 600 20px/1 var(--display); color: var(--ink); }
.day.won { background: rgba(245, 196, 107, 0.12); border-color: rgba(245, 196, 107, 0.35); }
.day.won img { width: 22px; }
.day.today { outline: 2px solid var(--gold); outline-offset: 2px; background: rgba(255, 138, 61, 0.14); color: var(--gold-2); }
.helpers { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.helper { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.helper img { width: 44px; }

/* workshop shelf */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shelf figure { margin: 0; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px;
  padding: 14px 8px 10px; display: grid; justify-items: center; gap: 6px; }
.shelf img { height: 84px; width: auto; filter: drop-shadow(0 6px 10px #0009); }
.shelf figcaption { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.3; }
.supporter { margin-top: 16px; display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center;
  background: linear-gradient(135deg, rgba(184, 165, 255, 0.16), rgba(18, 30, 66, 0.6)); border: 1px solid rgba(184, 165, 255, 0.35);
  border-radius: 22px; padding: 18px; }
.supporter img { width: 88px; }
.supporter h3 { color: #e3dbff; }
.supporter p { margin: 0; font-size: 15px; }

/* fair play */
.fair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fair div { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 22px; }
.fair p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 18px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* closing */
.closing { text-align: center; padding: 110px 0 120px; overflow: hidden; }
.closing .bunting { position: absolute; top: 0; left: 50%; width: max(1024px, 100%); transform: translateX(-50%); opacity: 0.9; }
.closing img.icon { width: 104px; border-radius: 24px; margin: 30px auto 22px; box-shadow: 0 12px 40px rgba(245, 196, 107, 0.25); }
.closing .stores { justify-content: center; margin-top: 26px; }

/* footer */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 40px 0 48px; color: var(--dim); font-size: 14.5px; }
.footer .shell { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* reveal on scroll (only when JS runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* legal and help pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 0 96px; }
.doc h1 { font: 600 clamp(30px, 5vw, 44px)/1.12 var(--display); margin: 0 0 8px; }
.doc .meta { color: var(--dim); margin: 0 0 28px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: #d5dbea; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .card { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 18px 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::before, .sky::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .toy { transition: none; }
}
