/* ============================================================
   Tokens — pulled from the hat logo:
   ice-white felt, magenta band, near-black plum ground.
   ============================================================ */
:root {
  --bg:       #1b1522;   /* plum-black, the logo's backdrop */
  --bg-2:     #241c2e;
  --surface:  #2a2135;   /* cards */
  --surface-2:#332942;   /* card interiors, empty states */
  --line:     rgba(233, 240, 251, .10);

  --ink:      #eef3fb;   /* the hat's felt — all headings and body */
  --ink-soft: #a99cb8;   /* subtitles, descriptions */

  --magenta:  #e04ee8;   /* the hat band */
  --magenta-d:#a01ea8;   /* hard shadow under magenta buttons */
  --ice:      #d6e6f8;

  --violet:   #8b6cf0;
  --sky:      #4fc3f7;
  --mint:     #3ddcac;
  --sun:      #ffd166;

  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 40px);
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow:    0 10px 26px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 48px -18px rgba(0, 0, 0, .8);
  --glow: 0 0 40px -10px rgba(224, 78, 232, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  /* a soft magenta bloom behind the hero, like light off the hat band */
  background-image:
    radial-gradient(900px 520px at 78% -6%, rgba(224, 78, 232, .22), transparent 62%),
    radial-gradient(700px 480px at 6% 18%, rgba(139, 108, 240, .14), transparent 60%),
    linear-gradient(180deg, #1b1522 0%, #241c2e 52%, #1a1420 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.hidden { display: none !important; }

:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 99;
  background: var(--magenta); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 700;
  transform: translateY(-250%);
}
.skip:focus { transform: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
  font-weight: 700; font-size: 15px;
  padding: 11px 22px;
  border: 0; border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn-lg { padding: 14px 30px; font-size: 16.5px; }

.btn-magenta {
  background: var(--magenta); color: #fff;
  box-shadow: 0 4px 0 0 var(--magenta-d);
}
.btn-magenta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--magenta-d), var(--glow); }
.btn-magenta:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--magenta-d); }

.btn-ghost {
  background: rgba(238, 243, 251, .08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(238, 243, 251, .14); }
.btn-ghost:active { transform: translateY(0); }

.btn-ice {
  background: var(--ice); color: #241c2e;
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, .35);
}
.btn-ice:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 rgba(0, 0, 0, .35); }
.btn-ice:active { transform: translateY(3px); box-shadow: 0 1px 0 0 rgba(0, 0, 0, .35); }

/* ============================================================
   Floating navbar
   ============================================================ */
.nav-shell {
  position: sticky; top: 0; z-index: 40;
  padding: 14px var(--gut) 0;
}
.nav {
  max-width: var(--wrap);
  margin-inline: auto;
  background: rgba(42, 33, 53, .82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 9px 9px 9px 18px;
  display: flex; align-items: center; gap: 18px;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 19px;
}
.nav-mark { width: 34px; height: 34px; object-fit: contain; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  color: var(--ink-soft);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-links a:hover { background: rgba(238, 243, 251, .08); color: var(--ink); }
.nav-links a.active { background: rgba(224, 78, 232, .18); color: #f7bdfa; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(52px, 11vh, 110px) 0 clamp(52px, 9vh, 100px); }
.hero-grid { max-width: 800px; text-align: center; }

.chip {
  display: inline-block;
  background: rgba(224, 78, 232, .14);
  border: 1px solid rgba(224, 78, 232, .38);
  color: #f2b6f6;
  font-weight: 700; font-size: 13px;
  padding: 6px 15px;
  border-radius: 999px;
}

.hero-copy h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  margin: 20px auto 0;
  max-width: 17ch;
}
.hero-btns { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.facts {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 42px;
}
.facts b {
  display: block;
  font-family: var(--display); font-weight: 600;
  font-size: 26px; line-height: 1.1;
  color: var(--ice);
}
.facts span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* Slots are sized for chunky cartoon sticker icons (the itch.io packs),
   not small flat glyphs — big enough that the outline and shading read. */
.hero-social {
  margin-top: 44px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 11px;
}
.hero-social a {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.hero-social a:hover {
  transform: translateY(-5px) scale(1.06);
  border-color: rgba(224, 78, 232, .6);
  box-shadow: var(--glow);
}
.hero-social img {
  width: 44px; height: 44px;
  object-fit: contain;
  transition: transform .16s var(--ease), filter .16s var(--ease);
}
.hero-social a:hover img {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55));
}
.ico-fallback { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(150deg, var(--magenta), var(--violet)); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(40px, 7vh, 72px) 0; }

.head { margin-bottom: 26px; }
.head h2 { font-size: clamp(28px, 4vw, 42px); }
.head-sub { color: var(--ink-soft); font-weight: 500; margin-top: 4px; max-width: 52ch; }

/* ---------- callout banner ---------- */
.callout {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 22px;
  background:
    radial-gradient(520px 200px at 88% 0%, rgba(224, 78, 232, .30), transparent 70%),
    var(--surface);
  border: 1px solid rgba(224, 78, 232, .30);
  border-radius: var(--r);
  padding: 26px 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.callout-copy { display: flex; flex-direction: column; gap: 5px; max-width: 62ch; }
.callout-copy strong { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.3vw, 26px); }
.callout-copy span { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }

/* ---------- grids ---------- */
.grid { display: grid; }
.grid-packs { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.grid-shots { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.item { opacity: 0; transform: translateY(18px); }
.item.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* ---------- kit card ---------- */
.pack {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 12px 18px;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pack:hover { transform: translateY(-6px); border-color: rgba(224, 78, 232, .5); box-shadow: var(--shadow-lg), var(--glow); }
.pack:active { transform: translateY(-2px); }

.pack-banner {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--surface-2), #2b2236);
}
.pack-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease); }
.pack-banner img.ok { opacity: 1; }

.pack-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  color: #1b1522; font-weight: 700; font-size: 11.5px;
  padding: 4px 11px; border-radius: 999px;
}
.pack-tag.magenta { background: var(--magenta); color: #fff; }
.pack-tag.violet  { background: var(--violet); color: #fff; }
.pack-tag.sky     { background: var(--sky); }
.pack-tag.mint    { background: var(--mint); }
.pack-tag.sun     { background: var(--sun); }

.pack-title { font-size: 20px; margin-top: 14px; padding-inline: 4px; }
.pack-desc { color: var(--ink-soft); font-size: 14px; font-weight: 500; margin-top: 3px; padding-inline: 4px; }

.pack-foot { margin-top: auto; padding: 16px 4px 0; }
.pack-go { font-weight: 700; font-size: 14px; color: var(--ink-soft); transition: color .18s var(--ease); }
.pack:hover .pack-go { color: #f2b6f6; }

/* ---------- shown when a section is on but its list is empty ---------- */
.empty-state {
  display: grid; place-items: center; gap: 8px;
  padding: clamp(44px, 9vw, 84px) 24px;
  border: 2px dashed rgba(224, 78, 232, .32);
  border-radius: var(--r);
  background: rgba(42, 33, 53, .45);
  text-align: center;
}
.empty-state b {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(21px, 2.8vw, 30px);
  color: var(--ink);
}
.empty-state span { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }

/* ---------- showcase card ---------- */
.shot {
  display: block; width: 100%;
  border: 0; background: none; padding: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer;
}
.shot-frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--surface-2), #2b2236);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.shot:hover .shot-frame {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(224, 78, 232, .5);
  box-shadow: var(--shadow-lg), var(--glow);
}
.shot:active .shot-frame { transform: translateY(-2px) scale(.996); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease); }
.shot-frame img.ok { opacity: 1; }

.shot-empty {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 4px; text-align: center;
  color: var(--ink-soft); font-weight: 600; font-size: 13px;
}

.shot-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(27, 21, 34, .86);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700; font-size: 12.5px;
  padding: 5px 13px; border-radius: 999px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; transform: none; }

.shot-title { font-size: 20px; margin-top: 13px; }
.shot-desc { color: var(--ink-soft); font-size: 14px; font-weight: 500; }

/* ---------- contact ---------- */
.contact {
  background:
    radial-gradient(640px 320px at 20% 0%, rgba(139, 108, 240, .38), transparent 68%),
    linear-gradient(140deg, #c73ccf, #7d3ae0);
  color: #fff;
  border-radius: 28px;
  padding: clamp(32px, 6vw, 58px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact h2 { font-size: clamp(26px, 3.6vw, 40px); }
.contact p { margin: 12px auto 0; max-width: 44ch; color: rgba(255, 255, 255, .82); font-weight: 500; }
.contact .btn { margin-top: 26px; }

.chips { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.chips a {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .14);
  padding: 7px 18px 7px 8px;
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  transition: background .16s var(--ease), transform .16s var(--ease);
}
.chips a:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
.chips img { width: 28px; height: 28px; object-fit: contain; }
.chips .ico-fallback { width: 28px; height: 28px; border-radius: 9px; }

/* ---------- footer ---------- */
.foot { padding: 12px 0 44px; }
.foot-in {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--ink-soft); font-weight: 600; font-size: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a:hover { color: var(--ink); }
.foot-note {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink-soft);
  font-size: 13.5px; font-weight: 600; line-height: 1.55;
  text-align: center;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb-scrim {
  position: absolute; inset: 0;
  background: rgba(13, 9, 17, .9);
  backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .28s var(--ease);
}
.lb.open .lb-scrim { opacity: 1; }

.lb-figure { position: relative; margin: 0; max-width: min(1080px, 92vw); }
.lb-figure img {
  max-width: min(1080px, 92vw);
  max-height: 72vh;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 30px 70px -24px #000, var(--glow);
  object-fit: contain;
}
.lb-cap { padding-top: 15px; text-align: center; }
.lb-title { font-family: var(--display); font-weight: 600; font-size: 22px; display: block; }
.lb-meta { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

.lb-btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  font-size: 24px; font-weight: 700; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .16s var(--ease), background .16s var(--ease);
}
.lb-btn:hover { transform: scale(1.1); background: var(--magenta); color: #fff; }
.lb-btn:active { transform: scale(.94); }
.lb-prev  { left: 3vw;  top: 50%; margin-top: -24px; }
.lb-next  { right: 3vw; top: 50%; margin-top: -24px; }
.lb-close { top: 3vh; right: 3vw; font-size: 17px; }
.lb-count { position: absolute; bottom: 3vh; left: 50%; transform: translateX(-50%); color: var(--ink-soft); font-weight: 600; font-size: 14px; }

.flip-clone {
  position: fixed; z-index: 70;
  object-fit: cover;
  border-radius: var(--r);
  pointer-events: none;
  will-change: transform;
  transform-origin: top left;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-copy h1 { max-width: none; }
}

@media (max-width: 720px) {
  .nav { border-radius: 24px; flex-wrap: wrap; justify-content: center; padding: 12px 14px; gap: 10px; }
  .nav-brand { margin-right: auto; }
  .nav-links { order: 3; width: 100%; margin-left: 0; justify-content: center; }
  html { scroll-padding-top: 140px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-btn { width: 42px; height: 42px; }
}

@media (max-width: 430px) {
  /* five sticker slots still fit on a narrow phone */
  .hero-social { gap: 8px; }
  .hero-social a { width: 58px; height: 58px; border-radius: 17px; }
  .hero-social img, .ico-fallback { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .item { opacity: 1; transform: none; }
}
