body.toppings-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-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.topping-type-icon,
.topping-tart-icon {
  width: 52px;
  height: 52px;
  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;
}

/* Set-bonus 2x2 grid on topping type cards */
.topping-set {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.topping-set-label {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9c95b3;
}
.topping-set-bonuses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.topping-set-bonus {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(154, 114, 255, 0.16);
  background: rgba(16, 13, 26, 0.55);
}
.topping-set-pc {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9c95b3;
}
.topping-set-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c39aff;
}

/* 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;
}

/* Upgrading section — subsection headings, copy, and in-game figures */
.toppings-subsection-heading {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #e7e0ff;
  margin: 1.6rem 0 0.5rem;
}
.toppings-subsection-copy {
  margin: 0 0 1rem;
  color: #bdb5d6;
  max-width: 46rem;
  line-height: 1.55;
}
.toppings-subsection-copy strong {
  color: #c9b3ff;
}
.toppings-inline-icon {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.32em;
  object-fit: contain;
  border-radius: 0.3em;
  margin: 0 0.12rem;
}
/* Figures wrap in-game screenshots; images ship with their own baked-in frame,
   so no extra border — just rounded corners + a drop shadow to lift them. */
.toppings-figure {
  margin: 0;
  max-width: 620px;
}
.toppings-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.toppings-figure figcaption {
  margin-top: 0.5rem;
  color: #9c95b3;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}
.toppings-figure.is-wide {
  max-width: 820px;
}
.toppings-figure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.4rem;
}
.toppings-figure-row .toppings-figure {
  flex: 1 1 280px;
  margin: 0;
}
.resonant-substat-figure {
  margin: 0.3rem 0;
}

/* Resonant toppings callout */
.resonant-callout-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.2rem 1.3rem;
  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));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 18px rgba(154, 114, 255, 0.1);
}
.resonant-callout-icons {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
}
.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: #d7d0e8;
  line-height: 1.55;
}
.resonant-callout-copy strong {
  color: #c39aff;
}
.resonant-callout-link {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 114, 255, 0.5);
  background: rgba(154, 114, 255, 0.12);
  color: #c39aff;
  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(154, 114, 255, 0.22);
  border-color: rgba(171, 136, 255, 0.8);
}

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

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