body.beascuit-guide-page {
  background:
    radial-gradient(circle at 12% -8%, rgba(138, 95, 220, 0.33) 0, transparent 34%),
    radial-gradient(circle at 88% -2%, rgba(90, 69, 155, 0.24) 0, transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(67, 52, 110, 0.22) 0, transparent 40%),
    linear-gradient(160deg, #090a12 0%, #07080f 44%, #0f0c1a 100%);
}

.toppings-guide-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.4rem) clamp(0.9rem, 3vw, 2rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

/* Hero */
.toppings-hero {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toppings-hero h1 {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.toppings-hero .hero-copy {
  max-width: 46rem;
  margin: 0;
  color: #bdb5d6;
  line-height: 1.5;
}

/* Sections */
.toppings-section h2 {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  margin: 0 0 0.3rem;
  color: #fff;
}
.toppings-section-lede {
  margin: 0 0 1rem;
  color: #b0a8c4;
  line-height: 1.5;
}
.toppings-loading {
  color: #9c95b3;
}

/* Topping type cards */
.topping-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0.9rem;
}
.topping-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(154, 114, 255, 0.22);
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(28, 23, 45, 0.72), rgba(17, 13, 27, 0.92));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.topping-type-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.topping-type-icon {
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.topping-type-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.topping-type-heading h3 {
  margin: 0;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 1.05rem;
  color: #fff;
}
.topping-effect-badge {
  align-self: flex-start;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #160a2e;
  background: linear-gradient(120deg, #9a72ff, #c39aff);
}
.topping-type-blurb {
  margin: 0;
  color: #bdb5d6;
  line-height: 1.45;
  font-size: 0.92rem;
}
.topping-usage {
  margin: 0;
  color: #9c95b3;
  font-size: 0.86rem;
}
.topping-usage strong {
  color: #c39aff;
}
.topping-usage-none {
  font-style: italic;
  color: #7c7592;
}

/* Collapsible cookie list */
.topping-cookie-list summary {
  cursor: pointer;
  color: #c39aff;
  font-size: 0.84rem;
  padding: 0.2rem 0;
  user-select: none;
}
.topping-cookie-list summary:hover {
  color: #c9b3ff;
}
.topping-cookie-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.topping-cookie-chip {
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 13, 26, 0.6);
  color: #e6e2f2;
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.topping-cookie-chip:hover {
  border-color: rgba(171, 136, 255, 0.6);
  background: rgba(40, 30, 66, 0.7);
}

/* Popular builds */
.topping-builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.8rem;
}
.topping-build-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(154, 114, 255, 0.26);
  border-radius: 0.9rem;
  background: rgba(23, 20, 37, 0.72);
}
.topping-build-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}
.topping-build-body h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}
.topping-build-count {
  margin: 0;
  color: #9c95b3;
  font-size: 0.82rem;
}

/* Resonant toppings callout */
.resonant-callout-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(0, 255, 136, 0.28);
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(14, 30, 22, 0.78), rgba(8, 14, 12, 0.92));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 18px rgba(0, 255, 136, 0.08);
}
.resonant-callout-icons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.resonant-callout-icons img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.resonant-callout-copy {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.resonant-callout-copy p {
  margin: 0;
  color: #d9e7de;
  line-height: 1.55;
}
.resonant-callout-copy strong {
  color: #7dffbe;
}
.resonant-callout-link {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.1);
  color: #7dffbe;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.resonant-callout-link:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.8);
}

@media (max-width: 640px) {
  .resonant-callout-card {
    flex-direction: column;
  }
  .resonant-callout-icons {
    flex-direction: row;
  }
}

/* Elemental variant cards */
.beascuit-variant-card .topping-type-heading {
  flex-grow: 1;
}
.beascuit-element-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.2rem 0 0;
}
.beascuit-element-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.beascuit-chapters {
  margin: 0.1rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b0a8c4;
  font-size: 0.82rem;
}
.beascuit-chapters-label {
  color: #c39aff;
  font-weight: 700;
}
.beascuit-chapter-note {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1.05rem;
  border: 1px solid rgba(154, 114, 255, 0.32);
  border-radius: 0.9rem;
  background: linear-gradient(150deg, rgba(28, 23, 45, 0.72), rgba(17, 13, 27, 0.92));
  color: #d7d0e8;
  font-size: 0.9rem;
  line-height: 1.5;
}
.beascuit-chapter-note strong {
  color: #c39aff;
}

/* Tainted beascuits sub-section */
.beascuit-subsection-heading {
  margin: 1.4rem 0 0.3rem;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #e7e0ff;
}
.beascuit-tainted-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
  margin-top: 0.6rem;
}
.beascuit-tainted-figure {
  flex: 1 1 300px;
  max-width: 620px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.beascuit-tainted-figure.is-screenshot {
  max-width: 430px;
}
.beascuit-tainted-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.beascuit-tainted-figure figcaption {
  color: #b0a8c4;
  font-size: 0.85rem;
  line-height: 1.45;
}
.beascuit-tainted-figure figcaption strong {
  color: #c39aff;
}

/* Upgrading — consumable cards (Bites & Attunement Kits) */
.beascuit-bites-grid,
.beascuit-kits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.2rem 0 1rem;
}
.beascuit-bite-card,
.beascuit-kit-card {
  flex: 0 1 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.9rem 0.8rem;
  border: 1px solid rgba(154, 114, 255, 0.24);
  border-radius: 0.9rem;
  background: linear-gradient(150deg, rgba(28, 23, 45, 0.72), rgba(17, 13, 27, 0.92));
  text-align: center;
}
.beascuit-bite-icon,
.beascuit-kit-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.beascuit-bite-name,
.beascuit-kit-name {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.92rem;
  color: #e7e0ff;
}
.beascuit-bite-exp {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c39aff;
}
.beascuit-kit-sub {
  font-size: 0.78rem;
  color: #b0a8c4;
}
/* Mobile: give the consumable grids larger, space-filling icons —
   Bites in a centered 2x2, Attunement Kits in a centered single row */
@media (max-width: 639px) {
  .beascuit-bites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    max-width: 360px;
    margin-inline: auto;
  }
  .beascuit-bite-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
  }
  .beascuit-kits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    max-width: 380px;
    margin-inline: auto;
  }
  .beascuit-kit-icon {
    width: 100%;
    height: auto;
    max-width: 110px;
  }
}

/* Upgrading — dough cards & optimization steps (rolling) */
.beascuit-dough-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0.2rem 0 1rem;
}
.beascuit-dough-card {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(154, 114, 255, 0.24);
  border-radius: 0.9rem;
  background: linear-gradient(150deg, rgba(28, 23, 45, 0.72), rgba(17, 13, 27, 0.92));
}
.beascuit-dough-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.beascuit-dough-name {
  margin: 0 0 0.2rem;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.98rem;
  color: #e7e0ff;
}
.beascuit-dough-body p {
  margin: 0;
  color: #d7d0e8;
  font-size: 0.88rem;
  line-height: 1.45;
}
.beascuit-dough-body strong {
  color: #c39aff;
}
.beascuit-steps {
  margin: 0.2rem 0 1rem;
  padding-left: 1.25rem;
  color: #b0a8c4;
  line-height: 1.5;
}
.beascuit-steps li {
  margin-bottom: 0.45rem;
}
.beascuit-steps strong {
  color: #e7e0ff;
}

/* Upgrading — interface screenshots */
.beascuit-screen {
  margin: 0.3rem 0 1.2rem;
  max-width: 460px;
}
.beascuit-screen.is-wide {
  max-width: 640px;
}
.beascuit-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.beascuit-screen figcaption {
  margin-top: 0.5rem;
  color: #b0a8c4;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* "How Beascuits Work" — screenshot in the left column, stacked basics cards
   on the right; collapses to one column on mobile (mirrors the toppings guide). */
.beascuit-basics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.8rem);
  align-items: start;
}
.beascuit-basics-figure {
  margin: 0;
  max-width: 100%;
}
@media (max-width: 720px) {
  .beascuit-basics-layout {
    grid-template-columns: 1fr;
  }
}

/* "How Beascuits Work" basics cards — collapsible on mobile, expanded on desktop */
.beascuit-basics {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.beascuit-basics-card {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(154, 114, 255, 0.28);
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(28, 23, 45, 0.72), rgba(17, 13, 27, 0.92));
}
.beascuit-basics-card > summary {
  margin: 0;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 1rem;
  color: #e7e0ff;
  list-style: none;
  cursor: pointer;
}
.beascuit-basics-card > summary::-webkit-details-marker {
  display: none;
}
.beascuit-basics-card > summary::marker {
  content: "";
}
.beascuit-basics-card p {
  margin: 0.5rem 0 0;
  color: #d7d0e8;
  font-size: 0.9rem;
  line-height: 1.5;
}
.beascuit-basics-card strong {
  color: #c39aff;
}
/* Mobile: collapsed by default, with a chevron affordance on the summary */
@media (max-width: 639px) {
  .beascuit-basics-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }
  .beascuit-basics-card > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #e7e0ff;
    border-bottom: 2px solid #e7e0ff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .beascuit-basics-card[open] > summary::after {
    transform: rotate(-135deg);
  }
}
/* Desktop: always expanded; the summary reads as a static heading */
@media (min-width: 640px) {
  .beascuit-basics-card > summary {
    margin-bottom: 0.4rem;
    cursor: default;
  }
  .beascuit-basics-card p {
    margin-top: 0;
  }
  .beascuit-basics-card > *:not(summary) {
    display: block;
  }
  .beascuit-basics-card::details-content {
    content-visibility: visible;
    block-size: auto;
  }
}
