/* ==========================================================================
   Altered Re:Union — Adopt a Woollyback
   Design direction: palette lifted from the Muna/ram "sky rider" card art —
   airy sky blues, a vivid teal scarf accent, and warm peach/gold cloud-glow
   highlights against a dark charcoal-navy ink.
   ========================================================================== */

:root {
  --cream: #009fca;
  --cream-dark: #ffcca3;
  --wool-white: #fbfdff;
  --sage: #2f9d93;
  --sage-dark: #1f6f68;
  --amber: #d98a4f;
  --amber-dark: #b06a34;
  --amber-light: #f2b585;
  --ink: #2b3244;
  --ink-soft: #57647a;
  /* Peach section background, reused for secondary text on the blue sections. */
  --on-blue-soft: var(--cream-dark);
  --border-soft: #c3d8ea;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-hook: "Bree Serif", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;
  --shadow-soft: 0 12px 30px -12px rgba(43, 50, 68, 0.25);
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--sage-dark);
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--wool-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--alt {
  background: var(--cream-dark);
}

main > section:nth-of-type(odd) {
  background: var(--cream);
}

main > section:nth-of-type(even) {
  background: var(--cream-dark);
}

main > section:not(.hero) {
  color: var(--wool-white);
}

main > section:not(.hero) .section-title {
  color: var(--wool-white);
}

main > section:nth-of-type(even) {
  color: var(--ink);
}

/* Secondary text that sits directly on a blue section (not inside a card). */
main > section:nth-of-type(odd) .section-kicker,
.contest-intro,
.contest-note,
.pillar p,
.closing p {
  color: var(--on-blue-soft);
}

main > section:nth-of-type(even) .section-title {
  color: var(--ink);
}

.item-card,
.artist-card,
.contest-card,
.tier-card,
.addon-card,
.faq-item,
.contrib-card {
  color: var(--ink);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
}

/* Small uppercase line above a section title — same pairing as the
   art-carousel slides (.art-slide__kicker over a Fraunces heading). */
.section-kicker {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--amber-dark);
  margin: 0 0 0.4rem;
}

.section-hook {
  position: relative;
  isolation: isolate;
  width: min(100%, 46rem);
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.5rem, 5vw, 3.5rem);
  font-family: var(--font-hook);
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--wool-white);
  border: 3px solid var(--sage-dark);
  border-radius: 32% 68% 62% 38% / 30% 36% 64% 70%;
  box-shadow: 0.35rem 0.4rem 0 var(--amber-light);
  transform: none;
}

.section-hook::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  z-index: -1;
  border: 1px dashed var(--amber);
  border-radius: inherit;
  pointer-events: none;
}

.hook-detail {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-hook);
  font-size: 0.52em;
  line-height: 1.15;
  white-space: normal;
}

#story {
  padding-top: clamp(6rem, 20vw, 7.5rem);
}

#story .container {
  position: relative;
  margin-top: -2rem;
  padding-top: 0;
}

#story .section-hook {
  position: relative;
  z-index: 1;
}

#story .section-hook {
  width: min(100%, 38rem);
  min-height: 10rem;
  padding-block: 2.35rem;
  border-color: var(--amber-dark);
  box-shadow: 0.35rem 0.4rem 0 var(--sage);
}

#kit {
  padding-bottom: 8rem;
}

#kit .section-hook {
  width: min(100%, 43rem);
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 28% 72% 54% 46% / 38% 30% 70% 62%;
  box-shadow: 0.35rem 0.4rem 0 var(--sage);
}

#artists .section-hook {
  width: min(100%, 40rem);
  border-radius: 64% 36% 44% 56% / 34% 58% 42% 66%;
  box-shadow: 0.35rem 0.4rem 0 var(--amber-light);
}

#contest .section-hook {
  width: min(100%, 46rem);
  border-radius: 42% 58% 50% 50% / 34% 46% 54% 66%;
  box-shadow: 0.35rem 0.4rem 0 var(--amber-light);
}

#store .section-hook {
  width: min(100%, 44rem);
  border-radius: 56% 44% 48% 52% / 38% 58% 42% 62%;
  box-shadow: 0.35rem 0.4rem 0 var(--sage);
}

#funds .section-hook {
  width: min(100%, 34rem);
  border-radius: 50% 50% 42% 58% / 48% 38% 62% 52%;
  border-color: var(--sage-dark);
  box-shadow: 0.35rem 0.4rem 0 var(--amber-light);
}

#contributors .section-hook {
  width: min(100%, 44rem);
  border-radius: 42% 58% 58% 42% / 42% 58% 42% 58%;
  box-shadow: 0.35rem 0.4rem 0 var(--sage);
}

@media (max-width: 520px) {
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Diagonal journey blocks (alternating image/text)                       */
/* ---------------------------------------------------------------------- */

.diagonal-block {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0 auto 2.5rem;
  max-width: 56rem;
}

.diagonal-block--reverse {
  flex-direction: row-reverse;
}

.diagonal-block > * {
  flex: 1 1 18rem;
  min-width: 0;
}

.diagonal-block .art-figure,
.diagonal-block .motif-strip {
  flex: 1 1 16rem;
}

.diagonal-block .motif-strip {
  margin: 0;
  justify-content: stretch;
}

.diagonal-block .motif-strip img {
  width: 100%;
  max-height: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.art-figure--tilt-left {
  transform: rotate(-2deg);
}

.art-figure--tilt-right {
  transform: rotate(2deg);
}

@media (max-width: 900px) {
  .diagonal-block,
  .diagonal-block--reverse {
    flex-direction: column;
  }

  .art-figure--tilt-left,
  .art-figure--tilt-right {
    transform: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--amber);
  color: var(--wool-white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--amber-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--sage-dark);
  color: var(--sage-dark);
}

.btn--secondary:hover {
  background: var(--sage-dark);
  color: var(--wool-white);
}

.btn--tertiary {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  padding: 0.9rem 0.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                           */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(231, 241, 250, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--ink);
}

.nav-toggle::before {
  top: 32%;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle::after {
  bottom: 32%;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--amber-dark);
}

/* EN / FR switch (js/i18n.js) — stays in the bar on mobile, beside the
   hamburger, so the language is always one tap away. */
.lang-switch {
  position: relative;
  display: inline-flex;
  margin-left: 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  flex-shrink: 0;
}

.lang-switch button {
  background: none;
  border: 0;
  padding: 0.3rem 0.75rem;
  font: 800 0.8rem/1 var(--font-body);
  letter-spacing: 0.05em;
  color: var(--ink);
  cursor: pointer;
}

.lang-switch button:first-child {
  border-radius: 999px 0 0 999px;
}

.lang-switch button + button {
  border-left: 2px solid var(--ink);
  border-radius: 0 999px 999px 0;
}

.lang-switch button:hover {
  color: var(--amber-dark);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--wool-white);
}

.lang-note {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  padding: 0.4rem 0.7rem;
  background: var(--wool-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  white-space: nowrap;
}

.scroll-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease;
}

.scroll-indicator:hover,
.scroll-indicator:focus-visible {
  transform: translateY(0.25rem);
}

.scroll-indicator svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--wool-white);
}

/* Hamburger below 900px — the five nav labels need ~860px on one line. */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    order: 1;
    margin-left: 0.75rem;
  }

  .lang-switch {
    margin-left: 0.75rem;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wool-white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-menu.is-open {
    max-height: 26rem;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-soft);
  }
}

/* Brand + EN/FR + hamburger on one line down to 320px. */
@media (max-width: 400px) {
  .nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-brand {
    font-size: 1rem;
  }
}

/* Contributor's falling Woollybacks: visible over blue sections only.
   --cotton-clip is built by js/cotton-mask.js. */
cotton-fall::part(overlay) {
  clip-path: var(--cotton-clip, none);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  color: var(--wool-white);
  background: var(--cream);
  overflow: clip;
}

.hero-content {
  max-width: 46rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-light);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--wool-white);
  margin-top: 0.5rem;
}

.hero-sub {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0.9rem 1.35rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--wool-white);
  margin: 0;
  background: #003654;
  border-radius: var(--radius-md);
  box-shadow: 0 0.35rem 0 rgba(43, 50, 68, 0.25);
}

.hero-sub-wrap {
  position: relative;
  width: min(38rem, 100%);
  /* Top margin leaves room for the plushes so they clear the headline. */
  margin: 3.5rem auto 2rem;
}

.hero-plush {
  position: absolute;
  top: -2.25rem;
  z-index: 1;
  width: clamp(7.5rem, 14vw, 10.5rem);
  max-width: none;
  filter: drop-shadow(0 0.45rem 0.55rem rgba(43, 50, 68, 0.38));
}

.hero-plush--left {
  left: -5.25rem;
  transform: translateY(-50%) rotate(-14deg);
}

.hero-plush--right {
  right: -5.25rem;
  transform: translateY(-50%) rotate(14deg);
}

@keyframes hero-plush-float-left {
  from { transform: translateY(-50%) rotate(-14deg); }
  to { transform: translateY(calc(-50% - 0.45rem)) rotate(-11deg); }
}

@keyframes hero-plush-float-right {
  from { transform: translateY(-50%) rotate(14deg); }
  to { transform: translateY(calc(-50% - 0.45rem)) rotate(11deg); }
}

.hero-plush--left {
  animation: hero-plush-float-left 2.8s ease-in-out infinite alternate !important;
}

.hero-plush--right {
  animation: hero-plush-float-right 3.2s ease-in-out 0.35s infinite alternate !important;
}

.hero .cta-group {
  margin-bottom: 1rem;
}

.hero-motif {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* Section transition edge                                                  */
/* ---------------------------------------------------------------------- */

.hoof-trail {
  position: relative;
  height: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.hoof-trail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  transform: translateY(calc(-100% + 2px));
  background: var(--cream);
  z-index: 2;
  clip-path: polygon(0 100%, 0 42%, 12% 64%, 25% 38%, 38% 68%, 50% 44%, 64% 66%, 78% 36%, 90% 60%, 100% 42%, 100% 100%);
  pointer-events: none;
}

main > .hoof-trail:has(+ section:nth-of-type(even))::before {
  background: var(--cream-dark);
}

.waypoint-marks,
.waypoint-label {
  display: none;
}

/* Below desktop the headline wraps wide enough that side-floating plushes
   would cover it, so they perch on the text block's top edge instead — in
   front of it (z-index 2), or they lose their bottom half. The image is
   ~0.845 as tall as wide; top keeps ~0.75rem of each overlapping the block. */
@media (max-width: 1023px) {
  .hero-sub-wrap {
    --plush-w: clamp(6.25rem, 12vw, 8rem);
    margin-top: calc(var(--plush-w) * 0.845 - 0.25rem);
  }

  .hero-plush {
    z-index: 3;
    width: var(--plush-w);
    top: calc(0.75rem - var(--plush-w) * 0.42);
  }

  .hero-plush--left {
    left: 7%;
  }

  .hero-plush--right {
    right: 7%;
  }
}

@media (max-width: 720px) {
  .hoof-trail {
    height: 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Floating Woollyback creatures                                          */
/* ---------------------------------------------------------------------- */

/* Wandering hoof-print trails (js/hoof-trail.js) behind How They Got Here,
   The Story Behind the Art and Questions. The layer sits first in its
   section with no z-index; the section's .container is made positioned so
   it paints on top. Prints are a darker peach so they stay subtle. */
.has-hoof-tracks {
  position: relative;
}

.has-hoof-tracks > .container {
  position: relative;
}

.hoof-tracks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: color-mix(in srgb, var(--cream-dark), var(--amber-dark) 24%);
}

/* On the blue What This Funds section the prints are a darker blue. */
#funds .hoof-tracks {
  color: color-mix(in srgb, var(--cream), var(--ink) 24%);
}

.hoof-print {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.8rem;
  height: 1.8rem;
  margin: -0.9rem 0 0 -0.9rem;
  background-color: currentColor;
  -webkit-mask: var(--hoof) center / contain no-repeat;
  mask: var(--hoof) center / contain no-repeat;
  animation: hoof-step 7s ease-out forwards;
}

/* The PNGs are used as stencils so the prints take the peach tint above. */
.hoof-print--left {
  --hoof: url("../assets/img/hoof-left.png");
}

.hoof-print--right {
  --hoof: url("../assets/img/hoof-right.png");
}

.hoof-tracks.is-static .hoof-print {
  animation: none;
  opacity: 0.8;
}

@keyframes hoof-step {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Section-edge stickers: --woolly-x/-y/-r are set by js/woolly-follow.js
   so each one leans toward a nearby mouse cursor. */
.story-woolly {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: min(14rem, 45vw);
  max-width: 100%;
  margin: 0;
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--woolly-x, 0px), var(--woolly-y, 0px)) rotate(var(--woolly-r, 0deg));
  z-index: 3;
  pointer-events: none;
}

.artists-woolly {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  /* Sticker 1 is a tall portrait; keep it narrow so it clears the heading. */
  width: min(12rem, 40vw);
  max-width: none;
  transform: translate(-50%, -52%) translate(var(--woolly-x, 0px), var(--woolly-y, 0px)) rotate(var(--woolly-r, 0deg));
  z-index: 3;
  pointer-events: none;
}

/* Perched on the Artists → Contest edge, centred over the heading. The extra
   padding either side of the edge keeps it clear of the artist-card arrows
   above and the "Community Contest" title below. */
#artists {
  padding-bottom: 9rem;
}

#contest {
  padding-top: 9rem;
}

/* Menu jumps land with the sticker in view: both stickers are 3:4 and
   lifted ~52–55% above the section top (≈0.7–0.74 × their width), plus
   ~5rem for the sticky header. */
#artists {
  scroll-margin-top: calc(min(12rem, 40vw) * 0.7 + 5rem);
}

#contest {
  scroll-margin-top: calc(min(12rem, 40vw) * 0.74 + 5rem);
}

.contest-woolly {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: min(12rem, 40vw);
  max-width: none;
  transform: translate(-50%, -55%) translate(var(--woolly-x, 0px), var(--woolly-y, 0px)) rotate(var(--woolly-r, 0deg));
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 720px) {
  #story .section-hook {
    max-width: 24rem;
  }

  #store .section-hook {
    max-width: 28rem;
  }

  .section-hook {
    padding: 1.2rem 1.35rem 1.4rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Story                                                                   */
/* ---------------------------------------------------------------------- */

.story-body {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-subheading {
  margin: 1.75rem 0;
  color: var(--ink);
  font-family: var(--font-hook);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.25;
  text-align: center;
}

.kit-intro {
  max-width: 38rem;
  margin: -1rem auto 2.5rem;
  text-align: center;
  color: var(--ink-soft);
}

#kit .kit-intro,
#kit .section-subheading {
  color: var(--wool-white);
}

.lore-carousel {
  position: relative;
  display: grid;
  max-width: 34rem;
  margin: 3rem auto 0;
  padding: 1.75rem 0.25rem 0.5rem;
  overflow: hidden;
}

.lore-carousel blockquote.lore {
  grid-area: 1 / 1;
  max-width: none;
  width: 100%;
  margin: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
  pointer-events: none;
}

.lore-carousel blockquote.lore.is-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.lore-carousel blockquote.lore.is-entering {
  transform: translateX(100%);
  opacity: 0;
}

.lore-carousel blockquote.lore.is-leaving {
  transform: translateX(-100%);
  opacity: 0;
}

.lore-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lore-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--amber-light);
  border-radius: 50%;
  background: var(--wool-white);
  color: var(--amber-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lore-control:hover,
.lore-control:focus-visible {
  background: var(--amber-dark);
  color: var(--wool-white);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .lore-controls {
    display: none;
  }
}

blockquote.lore {
  position: relative;
  max-width: 34rem;
  margin: 3rem auto 0;
  padding: 3rem 2.25rem 1.85rem;
  background: linear-gradient(160deg, var(--wool-white) 0%, #f3ece0 100%);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
}

blockquote.lore::before,
blockquote.lore::after {
  content: "";
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  height: 10px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="10" viewBox="0 0 24 10"><path d="M0 5H24" stroke="%23b06a34" stroke-width="1"/><path d="M9 5L12 1.5L15 5L12 8.5Z" fill="none" stroke="%23b06a34" stroke-width="1"/><circle cx="0" cy="5" r="1.4" fill="%23b06a34"/><circle cx="24" cy="5" r="1.4" fill="%23b06a34"/></svg>');
  background-repeat: repeat-x;
  background-size: 24px 10px;
  opacity: 0.75;
}

blockquote.lore::before {
  top: 1.05rem;
}

blockquote.lore::after {
  bottom: 0.6rem;
}

blockquote.lore .lore-seal {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3.1rem;
  height: 3.1rem;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-dark);
  border: 2px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 4px 10px -4px rgba(43, 50, 68, 0.45);
}

blockquote.lore .lore-seal svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--wool-white);
}

blockquote.lore cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--amber-dark);
}

.plush-pile {
  position: relative;
  left: 50%;
  width: 100vw;
  height: clamp(13rem, 22vw, 20rem);
  margin: 3rem 0 -5rem;
  transform: translateX(-50%);
  overflow-x: clip;
  overflow-y: visible;
  pointer-events: none;
}

.plush-pile__row {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.25rem, 1vw, 1rem);
  width: max-content;
  height: 100%;
  transform: translateX(-50%);
}

.plush-pile__row img {
  --plush-rotation: 0deg;
  --plush-offset: 0rem;
  width: clamp(9rem, 16vw, 14rem);
  max-width: none;
  transform-origin: center bottom;
  transform: rotate(var(--plush-rotation)) translateY(var(--plush-offset));
}

.plush-pile__row img:nth-child(1) { --plush-rotation: -4deg; --plush-offset: 0.4rem; }
.plush-pile__row img:nth-child(2) { --plush-rotation: 2deg; --plush-offset: -0.8rem; }
.plush-pile__row img:nth-child(3) { --plush-rotation: -1deg; --plush-offset: 0.2rem; }
.plush-pile__row img:nth-child(4) { --plush-rotation: 4deg; --plush-offset: -0.5rem; }
.plush-pile__row img:nth-child(5) { --plush-rotation: -3deg; --plush-offset: 0.7rem; }
.plush-pile__row img:nth-child(6) { --plush-rotation: 1deg; --plush-offset: -0.2rem; }

.plush-pile__row--back img:nth-child(2) { --plush-offset: -2.4rem; }
.plush-pile__row--back img:nth-child(4) { --plush-offset: -1.8rem; }
.plush-pile__row--back img:nth-child(6) { --plush-offset: -2.8rem; }

.plush-pile:not(.is-visible) img {
  opacity: 0;
  transform: rotate(var(--plush-rotation)) translateY(calc(var(--plush-offset) + 115%));
}

@keyframes plush-rise {
  from {
    opacity: 0;
    transform: rotate(var(--plush-rotation)) translateY(calc(var(--plush-offset) + 115%));
  }
  to {
    opacity: 1;
    transform: rotate(var(--plush-rotation)) translateY(var(--plush-offset));
  }
}

@keyframes plush-back-float {
  from {
    transform: rotate(var(--plush-rotation)) translateY(var(--plush-offset));
  }
  100% {
    transform: rotate(calc(var(--plush-rotation) + var(--plush-float-rotation))) translateY(calc(var(--plush-offset) - var(--plush-float-rise)));
  }
}

.plush-pile.is-visible img {
  animation: plush-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.plush-pile.is-visible .plush-pile__row--back img { animation-delay: 0.05s !important; }
.plush-pile.is-visible .plush-pile__row--middle img { animation-delay: 0.2s !important; }
.plush-pile.is-visible .plush-pile__row--front img { animation-delay: 0.35s !important; }
.plush-pile.is-visible .plush-pile__row--base img { animation-delay: 0.5s !important; }

.plush-pile.is-visible .plush-pile__row--back img {
  animation: plush-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both,
    plush-back-float var(--plush-float-duration) ease-in-out var(--plush-float-delay) infinite alternate !important;
}

.plush-pile__row--back {
  bottom: 4.5rem;
  z-index: 4;
  margin-left: 2rem;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.plush-pile__row--back img {
  filter: drop-shadow(0 0.75rem 0.75rem rgba(43, 50, 68, 0.5));
}

.plush-pile__row--middle {
  bottom: 1.5rem;
  z-index: 2;
  opacity: 0.92;
  margin-left: -3rem;
}

.plush-pile__row--front {
  bottom: -1rem;
  z-index: 3;
  margin-left: 4rem;
  gap: clamp(0rem, 0.5vw, 0.5rem);
}

.plush-pile__row--base {
  bottom: -5rem;
  z-index: 0;
  margin-left: -1rem;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.plush-pile__row--base img:nth-child(1) { --plush-rotation: -6deg; }
.plush-pile__row--base img:nth-child(2) { --plush-rotation: 3deg; }
.plush-pile__row--base img:nth-child(3) { --plush-rotation: -2deg; }
.plush-pile__row--base img:nth-child(4) { --plush-rotation: 5deg; }
.plush-pile__row--base img:nth-child(5) { --plush-rotation: -4deg; }
.plush-pile__row--base img:nth-child(6) { --plush-rotation: 2deg; }

/* ---------------------------------------------------------------------- */
/* Cards grid (adoption kit)                                              */
/* ---------------------------------------------------------------------- */

.kit-items {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wool-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.item-card--featured {
  grid-column: 1 / -1;
}

.item-card--split {
  flex-direction: row;
}

.item-card--split .item-card__body {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem 2.5rem 2.75rem;
}

/* Bulleted feature list inside an item card (e.g. the magazine). */
.item-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.item-list li + li {
  margin-top: 0.3rem;
}

.item-list li::marker {
  color: var(--amber-dark);
}

.item-card--split .item-card__art {
  flex: 1 1 auto;
  min-height: 26rem;
}

@media (max-width: 720px) {
  .item-card--split {
    flex-direction: column;
  }

  .item-card--split .item-card__art {
    order: -1;
    min-height: 15rem;
  }

  .item-card--split .item-card__body {
    flex: initial;
    padding: 1.5rem 1.75rem 1.75rem;
  }
}

.item-card__art {
  position: relative;
  min-height: 15rem;
  background: var(--cream-dark);
  overflow: hidden;
}

.item-card__art--cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 2rem 2rem 0;
  background: var(--wool-white);
  overflow: visible;
}

.item-card__art--cards img {
  width: 14.4rem;
  max-width: none;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0.7rem 0.6rem rgba(43, 50, 68, 0.25));
  transition: transform 180ms ease;
  cursor: zoom-in;
}

@media (max-width: 720px) {
  .item-card__art--cards img {
    width: 10.5rem;
  }
}

.item-card__art--cards img:nth-child(1) { transform: rotate(-7deg) translateY(0.7rem); margin-right: -1.75rem; }
.item-card__art--cards img:nth-child(2) { transform: translateY(-0.25rem); position: relative; z-index: 1; }
.item-card__art--cards img:nth-child(3) { transform: rotate(7deg) translateY(0.7rem); margin-left: -1.75rem; }

.item-card__art--cards:hover img:nth-child(1) { transform: rotate(-10deg) translate(-0.35rem, 0.45rem); }
.item-card__art--cards:hover img:nth-child(2) { transform: translateY(-0.55rem); }
.item-card__art--cards:hover img:nth-child(3) { transform: rotate(10deg) translate(0.35rem, 0.45rem); }

.item-card__art--certificate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15.5rem;
  padding: 0;
  background: var(--wool-white);
  overflow: visible;
}

.item-card__art--magazine {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.5rem;
  background: var(--wool-white);
  overflow: visible;
}

.item-card__art--stickers {
  height: 15.5rem;
  padding: 0;
  background: var(--wool-white);
  overflow: visible;
  z-index: 1;
  clip-path: inset(0 0 -1rem 0);
}

.item-card__art--stickers .sticker-montage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
  cursor: zoom-in;
}

.item-card__art--certificate .certificate-img {
  height: 84%;
  width: auto;
  max-width: 78%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0.7rem 0.9rem rgba(43, 50, 68, 0.3));
  transform: rotate(-6deg) translateY(0.9rem);
  margin-left: -2.5rem;
  cursor: zoom-in;
}

.item-card__art--certificate .certificate-plush {
  height: 72%;
  width: auto;
  max-width: 68%;
  transform: rotate(6deg);
  filter: drop-shadow(0 0.6rem 0.6rem rgba(43, 50, 68, 0.25));
}

.item-card__art--magazine .magazine-spread {
  height: 21rem;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-left: -2rem;
  filter: drop-shadow(0 0.6rem 0.8rem rgba(43, 50, 68, 0.28));
  transform: rotate(5deg) translateY(-0.3rem);
  cursor: zoom-in;
}

.item-card__art--magazine .magazine-cover {
  height: 24.5rem;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0.8rem 1rem rgba(43, 50, 68, 0.34));
  transform: rotate(-6deg);
  margin-left: -13rem;
  cursor: zoom-in;
}

@media (max-width: 720px) {
  .item-card__art--magazine .magazine-spread {
    height: 13rem;
  }

  .item-card__art--magazine .magazine-cover {
    height: 15rem;
    margin-left: -8rem;
  }
}

.item-card__art--placeholder {
  display: grid;
  place-items: center;
  min-height: 13rem;
  border-bottom: 1px dashed var(--border-soft);
  color: var(--ink-soft);
  font-family: var(--font-hook);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  background: repeating-linear-gradient(-45deg, var(--cream-dark), var(--cream-dark) 1rem, rgba(251, 253, 255, 0.22) 1rem, rgba(251, 253, 255, 0.22) 2rem);
}

.item-card__body {
  flex: 1 1 auto;
  padding: 1.5rem 1.75rem 1.75rem;
}

.item-card__body--tinted {
  background: var(--cream-dark);
}

.item-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.item-card .item-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (max-width: 720px) {
  .kit-items {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* Card-art carousel (Meet the Artists) — looping, neighbours peek in      */
/* ---------------------------------------------------------------------- */

.art-carousel {
  --slide-w: min(50rem, 84vw);
  margin: 0.5rem 0 2.5rem;
}

.art-carousel__viewport {
  overflow: hidden;
  padding: 1.5rem 0 2rem;
  touch-action: pan-y;
  cursor: grab;
  /* Soft fade at both edges so the peeking slides read as "more this way". */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.art-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.art-carousel__track {
  display: flex;
  will-change: transform;
}

.art-carousel__track.is-animating {
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* Part Three → Part One: one smooth sweep back across the slides. */
.art-carousel__track.is-animating.is-rewinding {
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

/* "More this way" nudge on Part One. Uses `translate`, which stacks on the
   JS-driven `transform` instead of replacing it. */
.art-carousel__track.is-hinting {
  animation: art-hint 0.9s ease-in-out;
}

@keyframes art-hint {
  0%,
  100% {
    translate: 0;
  }
  35% {
    translate: -2rem;
  }
  60% {
    translate: 0.4rem;
  }
  80% {
    translate: -0.5rem;
  }
}

.art-slide {
  flex: 0 0 var(--slide-w);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.5rem;
  opacity: 0.4;
  transform: scale(0.88);
  transition: opacity 0.55s ease, transform 0.55s ease;
  user-select: none;
}

.art-slide.is-active {
  opacity: 1;
  transform: none;
}

/* Set for the first paint so the carousel doesn't animate into place. */
.art-carousel__track.is-jumping .art-slide {
  transition: none;
}

/* The card PNGs carry their own rounded frame, so drop the figure chrome. */
.art-slide .art-figure {
  flex: 0 0 18.5rem;
  width: 18.5rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(43, 50, 68, 0.25));
}

.art-slide .art-figure img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.art-slide__text {
  flex: 1 1 0;
  min-width: 0;
  color: var(--ink-soft);
}

.art-slide__text h3 {
  font-size: 1.5rem;
  margin: 0.2rem 0 0.75rem;
  color: var(--ink);
}

.art-slide__text p + p {
  margin-top: 0.75rem;
}

.art-slide__part {
  display: table;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--sage-dark);
  color: var(--wool-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-slide__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

.art-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.art-carousel__btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--wool-white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.art-carousel__btn:hover,
.art-carousel__btn:focus-visible {
  background: var(--ink);
  color: var(--wool-white);
}

.art-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: var(--wool-white);
  color: var(--ink);
}

.art-carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.art-carousel__dots button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.art-carousel__dots button[aria-selected="true"] {
  background: var(--ink);
}

.art-carousel__intro {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

@media (max-width: 720px) {
  .art-carousel {
    --slide-w: 74vw;
  }

  .art-carousel__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .art-slide {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0 0.4rem;
    text-align: center;
  }

  .art-slide .art-figure {
    flex-basis: auto;
    width: min(16rem, 68vw);
  }

  .art-slide__part {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-carousel__track.is-animating,
  .art-slide {
    transition: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Artist carousel                                                         */
/* ---------------------------------------------------------------------- */

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 22rem);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
}

@media (min-width: 900px) {
  .carousel-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }
}

.artist-card {
  scroll-snap-align: start;
  background: var(--wool-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
  /* Avatar sits beside the name + role; the bio runs full-width beneath. */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 1.25rem;
  align-items: center;
  align-content: start;
}

/* Flatten the text wrapper so h3 / role / bio join the card's grid. */
.artist-card > div:not(.artist-avatar) {
  display: contents;
}

.artist-card > .artist-avatar {
  grid-row: 1 / 3;
}

.artist-card h3,
.artist-card .artist-role {
  grid-column: 2;
  align-self: end;
}

.artist-card .artist-role {
  align-self: start;
}

.artist-card .artist-bio {
  grid-column: 1 / -1;
  align-self: start;
  margin-top: 1rem;
}

.artist-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--cream-dark);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-dark);
  border: 2px solid var(--amber-light);
}

.artist-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.artist-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.artist-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
}

.artist-bio {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.carousel-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.carousel-nav button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--wool-white);
  cursor: pointer;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .carousel-nav {
    display: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Contributors — static grid so every team is visible at a glance;        */
/* names wrap as compact tags. 1 column on phones, 2 on tablets, 3 desktop */
/* ---------------------------------------------------------------------- */

.contrib-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .contrib-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .contrib-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contrib-card {
  background: var(--wool-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.25rem 1.25rem;
}

.contrib-card h3 {
  font-size: 1.05rem;
  padding-bottom: 0.45rem;
  margin-bottom: 0.7rem;
  border-bottom: 3px solid var(--amber-light);
}

.contrib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contrib-list li {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream-dark) 35%, var(--wool-white));
  border: 1px solid var(--border-soft);
}

/* ---------------------------------------------------------------------- */
/* Community contest                                                       */
/* ---------------------------------------------------------------------- */


.contest-intro {
  max-width: 38rem;
  margin: -1rem auto 0.5rem;
  text-align: center;
}

.contest-note {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

/* Contest events (BGA tournament, art contest), side by side under the CTA. */
.contest-grid {
  display: grid;
  gap: 8rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  max-width: 62rem;
  margin: 8rem auto 0;
  text-align: center;
}

.contest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--wool-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
}

.contest-card > .btn {
  margin-top: auto;
}

/* Fixed-height image slot that pops up over the card's top edge, so both
   cards' headings line up whatever the image's shape. */
.contest-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 13rem;
  margin: -7rem auto 0.75rem;
}

.contest-art {
  display: block;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--wool-white);
  box-shadow: 0 0 0 2px var(--amber-light), var(--shadow-soft);
}

.contest-prizes {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  font-size: 0.92rem;
}

.contest-prizes li + li {
  margin-top: 0.5rem;
}

.contest-prizes strong {
  color: var(--amber-dark);
}

/* Trophy Woollyback pops up over the top edge of the tournament card. */
.contest-trophy {
  display: block;
  width: min(10rem, 42vw);
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(43, 50, 68, 0.25));
}

.contest-card .item-note {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.75rem 0 1.25rem;
}

/* ---------------------------------------------------------------------- */
/* Tiers / Store                                                           */
/* ---------------------------------------------------------------------- */

.store-subtext {
  text-align: center;
  max-width: 34rem;
  margin: -1.5rem auto 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tier-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.tier-card {
  position: relative;
  background: var(--wool-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.tier-card--deluxe {
  border: 2px solid var(--amber);
  transform: translateY(-0.5rem);
}

.tier-name {
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-dark);
  margin-bottom: 1rem;
}

.tier-perks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex-grow: 1;
}

.tier-perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.92rem;
}

/* Mini cut-out product images beside each perk. Fixed-width column so the
   text lines up whether a row shows one item or a fanned trio. */
.perk-thumbs {
  position: relative;
  flex: 0 0 4.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perk-thumbs img {
  width: auto;
  height: 2.75rem;
  max-width: 4.9rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(43, 50, 68, 0.25));
}

.perk-thumbs--trio img + img {
  margin-left: -1rem;
}

/* Stickers are wider than cards, so they need to overlap more to fit. */
.perk-thumbs--stickers img {
  height: 2.4rem;
}

.perk-thumbs--stickers img + img {
  margin-left: -1.45rem;
}

.perk-thumbs--trio img:first-child {
  transform: rotate(-8deg);
}

.perk-thumbs--trio img:last-of-type {
  transform: rotate(8deg);
}

.perk-sparkle {
  position: absolute;
  top: -0.5rem;
  right: -0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  fill: #f2c14e;
  stroke: var(--amber-dark);
  stroke-width: 0.8;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(43, 50, 68, 0.3));
}

/* Colour code: rows first introduced by a higher tier keep that tier's
   colour in every list they appear in (amber = Deluxe, sage = Premium). */
.tier-perks li {
  padding-inline: 0.5rem;
}

.tier-perks li.perk--deluxe {
  background: rgba(217, 138, 79, 0.13);
  box-shadow: inset 3px 0 0 var(--amber);
}

.tier-perks li.perk--premium {
  background: rgba(47, 157, 147, 0.13);
  box-shadow: inset 3px 0 0 var(--sage);
}

/* "Everything included in…" rows: label on top, that kit's item images in a
   row underneath (smaller, so a whole kit fits across the card). */
.tier-perks li.perk-summary {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.perk-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.perk-strip .perk-thumbs {
  flex: 0 0 auto;
}

.perk-strip .perk-thumbs img {
  height: 2.1rem;
}

.perk-strip .perk-thumbs--stickers img {
  height: 1.85rem;
}

.perk-strip .perk-thumbs--trio img + img {
  margin-left: -0.8rem;
}

.perk-strip .perk-thumbs--stickers img + img {
  margin-left: -1.1rem;
}

.perk-strip .perk-sparkle {
  width: 1.1rem;
  height: 1.1rem;
}

.tier-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.tier-legend__key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tier-legend__key::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.2rem;
}

.tier-legend__key--deluxe::before {
  background: var(--amber);
}

.tier-legend__key--premium::before {
  background: var(--sage);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tier-perks li:first-child {
  border-top: none;
}

/* Stock count badge pinned to the card's top-right corner. */
.tier-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--wool-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.tier-badge__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.tier-badge__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.ha-embed {
  margin-top: 1rem;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--cream);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Hidden until the tier's HelloAsso form URL is filled in. */
.ha-embed[data-ha-url=""] {
  display: none;
}

.ha-embed iframe {
  width: 100%;
  min-height: 30rem;
  border: 0;
  border-radius: var(--radius-sm);
}

.todo-note {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

.addons-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 66rem;
  margin: 2rem auto 0;
}

/* Plain white card: text on the left, product image on the right. */
.addon-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: var(--wool-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.addon-body {
  flex: 1 1 0;
  min-width: 0;
}

.addon-art {
  order: 2;
  flex: 0 0 13rem;
  display: flex;
  justify-content: center;
}

.addon-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.addon-media img {
  width: auto;
  height: 11.5rem;
  transform: rotate(4deg);
  filter: drop-shadow(0 0.5rem 0.55rem rgba(43, 50, 68, 0.25));
}

.addon-media--fan img {
  height: 9.5rem;
}

.addon-media--fan img + img {
  margin-left: -4.1rem;
}

.addon-media--fan img:first-child {
  transform: rotate(-9deg) translateY(0.3rem);
}

.addon-media--fan img:nth-child(2) {
  position: relative;
  z-index: 1;
  transform: translateY(-0.2rem);
}

.addon-media--fan img:nth-child(3) {
  position: relative;
  z-index: 2;
  transform: rotate(9deg) translateY(0.3rem);
}

/* Magazine: inside spread tucked behind the cover, sized to fill the card's
   height on desktop and shrunk (rather than scaled) on smaller screens. */
.addon-art--wide {
  flex-basis: 16.5rem;
}

.addon-media--magazine {
  align-items: center;
}

.addon-media--magazine .magazine-inside {
  height: 8.25rem;
  transform: rotate(-6deg) translateY(1.9rem);
}

.addon-media--magazine img + img {
  position: relative;
  height: 11.75rem;
  margin-left: -5.5rem;
  transform: rotate(4deg) translateY(-1.1rem);
}

@media (min-width: 600px) and (max-width: 899px) {
  .addon-art--wide {
    height: 13rem;
    margin-top: 0.5rem;
  }

  .addon-media--magazine .magazine-inside {
    height: 8rem;
  }

  .addon-media--magazine img + img {
    height: 11rem;
    margin-left: -5rem;
  }
}

@media (max-width: 599px) {
  .addon-art--wide {
    flex-basis: 9.5rem;
  }

  .addon-media--magazine .magazine-inside {
    height: 4.75rem;
    transform: rotate(-6deg) translateY(1.1rem);
  }

  .addon-media--magazine img + img {
    height: 7rem;
    margin-left: -3.3rem;
    transform: rotate(4deg) translateY(-0.6rem);
  }
}

.addon-media .perk-sparkle {
  z-index: 3;
  top: -0.8rem;
  right: -0.7rem;
  width: 2.25rem;
  height: 2.25rem;
}

/* Two columns from tablet up. Between tablet and desktop the columns are
   too narrow for text + image side by side, so the image sits on top. */
@media (min-width: 600px) {
  .addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .addon-card {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.25rem;
  }

  .addon-art {
    order: 0;
    flex-basis: auto;
    height: 12rem;
    align-items: center;
  }
}

/* Phones: text and image stay side by side, so the art column is capped
   and each image type gets its own size to fill it without spilling out. */
@media (max-width: 599px) {
  .addon-art {
    flex-basis: 8.5rem;
  }

  .addon-media img {
    height: 8rem;
  }

  .addon-media--fan img {
    height: 6.2rem;
  }

  .addon-media--fan img + img {
    margin-left: -2.7rem;
  }

  .addon-media .perk-sparkle {
    width: 1.6rem;
    height: 1.6rem;
  }
}

/* Sticker Pack: a scatter of stickers that fills the art area and bleeds
   past the card's padding, cropped by the card's rounded edge. Positions
   are % of the area; sizes use cqmin so they scale with its short side. */
.addon-card--stickers {
  overflow: hidden;
}

.addon-art--stickers {
  align-self: stretch;
  align-items: stretch;
  min-height: 13rem;
  margin: -1.5rem -1.5rem -1.5rem 0;
}

/* Clipped to its own box; the edge facing the text fades out softly. */
.sticker-scatter {
  position: relative;
  flex: 1;
  container-type: size;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem);
  mask-image: linear-gradient(to right, transparent, #000 1.5rem);
}

.sticker-scatter img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w, 52cqmin);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  filter: drop-shadow(0 0.35rem 0.45rem rgba(43, 50, 68, 0.22));
}

.sticker-scatter img:nth-child(1) { --x: 10%; --y: 12%; --r: -14deg; }
.sticker-scatter img:nth-child(2) { --x: 92%; --y: 12%; --r: 12deg; --w: 46cqmin; }
.sticker-scatter img:nth-child(3) { --x: 8%;  --y: 88%; --r: 9deg; }
.sticker-scatter img:nth-child(4) { --x: 92%; --y: 88%; --r: -8deg; }
.sticker-scatter img:nth-child(5) { --x: 50%; --y: 4%;  --r: 6deg; }
.sticker-scatter img:nth-child(6) { --x: 50%; --y: 98%; --r: -6deg; --w: 44cqmin; }
.sticker-scatter img:nth-child(7) { --x: 24%; --y: 50%; --r: -10deg; }
.sticker-scatter img:nth-child(8) { --x: 77%; --y: 48%; --r: 10deg; }
.sticker-scatter img:nth-child(9) { --x: 50%; --y: 54%; --r: -4deg; --w: 56cqmin; }

@media (min-width: 600px) and (max-width: 899px) {
  .addon-art--stickers {
    height: 13.5rem;
    margin: -1.5rem -1.5rem 0;
  }

  .sticker-scatter {
    -webkit-mask-image: linear-gradient(to top, transparent, #000 1.5rem);
    mask-image: linear-gradient(to top, transparent, #000 1.5rem);
  }

  .sticker-scatter img {
    width: var(--w, 60cqmin);
  }
}

@media (max-width: 599px) {
  .addon-art--stickers {
    min-height: 10rem;
  }
}

.addon-price {
  font-weight: 700;
  color: var(--amber-dark);
}

.addon-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

/* Oval stamp over a card fan ("Serialized XXX/300", "Autographed &
   authenticated") so the premium sets read differently from the plain
   foil set. */
.card-badge {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) rotate(-4deg);
  padding: 0.55rem 1.35rem;
  border-radius: 50%;
  text-align: center;
  line-height: 1.05;
  border: 2px solid var(--amber-light);
  background: var(--ink);
  color: var(--wool-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0.4rem 0.8rem -0.2rem rgba(43, 50, 68, 0.45);
}

.card-badge span {
  display: block;
}

/* Magazine: top-left corner, in the white space above the open spread
   (overlapping it slightly). .addon-media prefix beats the phone-size
   .card-badge offsets. */
.addon-media .card-badge--magazine {
  left: -1.6rem;
  top: 0.9rem;
  bottom: auto;
  transform: rotate(-6deg);
}

@media (max-width: 599px) {
  .card-badge {
    bottom: 0.9rem;
    padding: 0.4rem 0.95rem;
    font-size: 0.65rem;
  }
}

/* Scarcity line sitting above the card fan in the image column. */
.addon-art--callout {
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.addon-callout {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.addon-callout span {
  display: block;
}

@media (min-width: 600px) and (max-width: 899px) {
  .addon-art--callout {
    height: auto;
  }
}

@media (max-width: 599px) {
  .addon-callout {
    font-size: 0.85rem;
  }

  /* Column is too narrow for "RARE COLLECTORS SET!" on one line. */
  .addon-callout span {
    display: inline;
  }
}

/* ---------------------------------------------------------------------- */
/* Pillars (what this funds)                                              */
/* ---------------------------------------------------------------------- */

.pillar-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  text-align: center;
}

/* Woollypuff stickers in place of the old line icons — decorative only. */
.pillar-img {
  display: block;
  width: auto;
  height: 5rem;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 0.5rem 0.6rem rgba(43, 50, 68, 0.25));
}

.pillar h3 {
  font-size: 1.15rem;
}

.pillar p {
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Origin / lore body                                                     */
/* ---------------------------------------------------------------------- */

/* Full-width Altered artwork banner above the origin story copy. */
.origin-banner {
  margin: 2.5rem 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.origin-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2200 / 871;
  object-fit: cover;
}

@media (max-width: 600px) {
  /* Too thin at phone width — crop in on the heroes instead. */
  .origin-banner img {
    aspect-ratio: 4 / 3;
    object-position: 62% center;
  }
}

.origin-body {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.02rem;
}

.origin-link {
  margin-top: 1.75rem;
  text-align: center;
}

.stat-callout {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--amber-dark);
  max-width: 38rem;
  margin: 0 auto 3rem;
  position: relative;
}

.stat-callout::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--sage);
  opacity: 0.5;
  margin-bottom: -0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Contributors / FAQ placeholders                                        */
/* ---------------------------------------------------------------------- */

.placeholder-shell {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  background: var(--wool-white);
}

/* Whole-FAQ toggle: the "Questions?" heading is the <summary>, collapsed by
   default; the hint text and chevron flip when the panel is open. */
.faq-panel__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
}

.faq-panel__toggle::-webkit-details-marker {
  display: none;
}

.faq-panel__toggle .section-title {
  margin: 0;
}

.faq-panel__toggle:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 6px;
}

.faq-panel__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--wool-white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: color 0.2s ease;
}

.faq-panel__toggle:hover .faq-panel__hint {
  color: var(--sage-dark);
}

.faq-panel__hint::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-right: 3px solid var(--amber-dark);
  border-bottom: 3px solid var(--amber-dark);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.faq-panel[open] .faq-panel__hint::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}

.faq-panel__hint-hide,
.faq-panel[open] .faq-panel__hint-show {
  display: none;
}

.faq-panel[open] .faq-panel__hint-hide {
  display: inline;
}

.faq-list {
  max-width: 46rem;
  margin: 2rem auto 0;
  display: grid;
  gap: 2.25rem;
}

.faq-group__title {
  font-size: 1.3rem;
  margin: 0 0 0.85rem;
}

.faq-item {
  background: var(--wool-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.faq-item + .faq-item {
  margin-top: 0.6rem;
}

/* Native <details> toggle — the default marker is swapped for a chevron
   that rotates when the answer is open. */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.3rem;
  border-right: 3px solid var(--amber-dark);
  border-bottom: 3px solid var(--amber-dark);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.faq-item[open] summary::after {
  margin-top: 0.3rem;
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--sage-dark);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-soft);
}

.faq-answer p,
.faq-answer ul {
  margin: 0 0 0.75rem;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  padding-left: 1.25rem;
}

.faq-answer li + li {
  margin-top: 0.35rem;
}

/* Editorial placeholders from the copy doc ("[TBA]", "[Confirm …]") —
   deliberately conspicuous so they get filled in before launch. */
.faq-todo {
  font-style: italic;
  color: var(--amber-dark);
}

/* ---------------------------------------------------------------------- */
/* Closing CTA                                                            */
/* ---------------------------------------------------------------------- */

.closing {
  text-align: center;
  background: linear-gradient(180deg, var(--sage-dark), var(--ink));
  color: var(--wool-white);
}

.closing h2 {
  color: var(--wool-white);
}

.closing .section-kicker {
  margin-bottom: 0.4rem;
}

.closing p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.closing .btn--secondary {
  border-color: var(--wool-white);
  color: var(--wool-white);
}

.closing .btn--secondary:hover {
  background: var(--wool-white);
  color: var(--ink);
}

/* Third CTA gets the same pill as its neighbours, filled in the peach
   accent so it reads as a button rather than an underlined link. */
.closing .btn--tertiary {
  padding: 0.9rem 1.6rem;
  background: var(--on-blue-soft);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.closing .btn--tertiary:hover {
  background: var(--wool-white);
}


/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--amber-light);
}

/* ---------------------------------------------------------------------- */
/* Decorative card art figures                                            */
/* ---------------------------------------------------------------------- */

.art-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.art-figure figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--wool-white);
  text-align: center;
}

.motif-strip {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 0;
  opacity: 0.9;
}

.motif-strip img {
  max-height: 12rem;
  border-radius: var(--radius-md);
}

/* ---------------------------------------------------------------------- */
/* Lightbox                                                                */
/* ---------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: rgba(20, 22, 30, 0.85);
  cursor: zoom-out;
  animation: lightbox-fade 180ms ease both;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__img {
  max-width: min(90vw, 60rem);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--wool-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------------------- */
/* Gleam giveaway pop-up (js/gleam.js)                                     */
/* ---------------------------------------------------------------------- */

/* No padding on the <dialog> itself: a click whose target is the dialog
   is then always on the backdrop, which js/gleam.js uses to close it. */
.gleam-modal {
  width: min(100% - 2rem, 40rem);
  max-height: min(100% - 2rem, 52rem);
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--wool-white);
  color: var(--ink);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.gleam-modal[open] {
  display: flex;
  flex-direction: column;
  animation: lightbox-fade 180ms ease both;
}

.gleam-modal::backdrop {
  background: rgba(20, 22, 30, 0.85);
}

.gleam-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.5rem;
  background: var(--cream-dark);
}

.gleam-modal__title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink);
}

.gleam-modal__close {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(43, 50, 68, 0.1);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease;
}

.gleam-modal__close:hover,
.gleam-modal__close:focus-visible {
  background: rgba(43, 50, 68, 0.2);
}

/* Gleam's iframe sizes its own height; this box scrolls when it's taller
   than the screen. */
.gleam-modal__body {
  flex: 1;
  min-height: 12rem;
  overflow-y: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.gleam-modal__body iframe {
  display: block;
  max-width: 100%;
}

.gleam-modal__fallback {
  margin: 0;
  padding: 0.75rem 1.5rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--ink-soft);
  border-top: 1px solid var(--border-soft);
}

.gleam-modal__fallback a {
  color: var(--sage-dark);
  font-weight: 700;
}
