/* Starline progression, rewards, and bridge-guide cosmetics ------------- */

.app-shell.starline-site-theme-starline-night {
  --cream: #170b20;
  --cream-deep: #24102f;
  --paper: #321640;
  --paper-pink: #3c194b;
  --ink: #fff9fd;
  --muted: #f0d9eb;
  --plum: #ffb4df;
  --plum-dark: #ffe1f2;
  --pink: #ff69bd;
  --pink-dark: #ffb4df;
  --pink-soft: #57245f;
  --teal: #75e7dc;
  --teal-dark: #c2fff8;
  --teal-soft: #154b52;
  --gold: #ffd36c;
  --gold-dark: #fff0bd;
  --gold-soft: #5b431c;
  --line: #81588c;
  --line-strong: #b47dc0;
  --report-bug-background: #ffe1f2;
  --report-bug-hover: #ffb4df;
  --report-bug-text: #170b20;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgb(255 105 189 / 19%), transparent 24rem),
    radial-gradient(circle at 86% 30%, rgb(117 231 220 / 13%), transparent 28rem),
    #170b20;
}

.app-shell.starline-site-theme-starline-night :is(.site-header, .footer) {
  color: var(--ink);
  background: rgb(35 15 46 / 94%);
  border-color: var(--line);
}

.app-shell.starline-site-theme-starline-night :is(.site-header, .site-footer, main) a:not(.primary-button) {
  color: var(--plum-dark);
}

.app-shell.starline-site-theme-starline-night :is(.secondary-button, .text-button, .chip) {
  color: #fff9fd;
  background-color: #462052;
  border-color: #b47dc0;
}

.app-shell.starline-site-theme-starline-night .primary-button {
  color: #170b20;
  background: linear-gradient(135deg, #ff69bd, #ffb4df);
  border-color: #ffb4df;
  box-shadow: 0 5px 0 #81588c, 0 10px 24px rgb(0 0 0 / 24%);
}

.app-shell.starline-site-theme-starline-night .nav-link:hover,
.app-shell.starline-site-theme-starline-night .progress-pill:hover {
  color: #170b20;
  background: #ffe1f2;
  border-color: #ffe1f2;
}

.app-shell.starline-site-theme-candy-sunrise {
  --cream: #fff4ed;
  --cream-deep: #ffe5dc;
  --paper: #fffdfb;
  --paper-pink: #fff0f4;
  --ink: #4b1737;
  --muted: #7d5268;
  --plum: #8b1b64;
  --plum-dark: #5e1044;
  --pink: #ff5d9d;
  --pink-dark: #d52c76;
  --pink-soft: #ffd5e5;
  --teal: #3bb9ad;
  --teal-dark: #146d68;
  --teal-soft: #dff9f4;
  --gold: #ffbd4c;
  --gold-dark: #925008;
  --gold-soft: #fff0b7;
  --line: #f0b5c9;
  --line-strong: #de8fb0;
  background:
    radial-gradient(circle at 10% 10%, rgb(255 189 76 / 17%), transparent 24rem),
    radial-gradient(circle at 90% 28%, rgb(255 93 157 / 13%), transparent 28rem),
    #fff4ed;
}

.app-shell.starline-site-theme-steel-spectrum {
  --cream: #f0f3fa;
  --cream-deep: #dfe5f1;
  --paper: #fbfcff;
  --paper-pink: #f5edf9;
  --line: #bdc7da;
  --line-strong: #9aa8c2;
  background:
    linear-gradient(115deg, rgb(217 52 130 / 7%), transparent 30%),
    linear-gradient(245deg, rgb(18 134 127 / 8%), transparent 34%),
    #eef1f8;
}

.quiz-guide > .starline-bugar {
  justify-self: center;
}

.starline-page {
  --starline-sky: #fff8fb;
  --starline-panel: #fff;
  --starline-track: #f0b7d5;
  --starline-glow: #ff4fab;
  --starline-deep: #64113f;
  --starline-muted: #80516b;
  --starline-metal: #e9c86f;
  --starline-equipped: #fff1ad;
  --starline-equipped-border: #d9a62f;
  --starline-node: #fff;
  position: relative;
  color: var(--starline-deep);
  isolation: isolate;
}

.starline-page.starline-theme-starline-night {
  --starline-sky: #211029;
  --starline-panel: #351742;
  --starline-track: #a46ab3;
  --starline-glow: #ff76c7;
  --starline-deep: #fff9fd;
  --starline-muted: #f0d9eb;
  --starline-metal: #ffd46b;
  --starline-equipped: #553044;
  --starline-equipped-border: #ffd46b;
  --starline-node: #fff7fc;
}

.starline-page.starline-theme-candy-sunrise {
  --starline-sky: #fff1e7;
  --starline-panel: #fffdfb;
  --starline-track: #f3afc5;
  --starline-glow: #ff4f9b;
  --starline-deep: #5b1740;
  --starline-muted: #83566c;
  --starline-metal: #f4b345;
  --starline-equipped: #fff0b4;
  --starline-equipped-border: #e39c1f;
}

.starline-page.starline-theme-steel-spectrum {
  --starline-sky: #eef1f8;
  --starline-panel: #fbfcff;
  --starline-track: #98a5c2;
  --starline-glow: #d21496;
  --starline-deep: #34204f;
  --starline-muted: #655772;
  --starline-metal: #8f9db8;
  --starline-equipped: #eaf0ff;
  --starline-equipped-border: #8494b3;
}

.starline-page :is(h1, h2, h3, p, small, strong, label, summary) {
  color: inherit;
}

.starline-page :is(.section-heading, .eyebrow) {
  color: var(--starline-deep);
}

.starline-page .section-heading h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.04;
}

.starline-page.starline-theme-starline-night :is(.starline-stop p, .starline-stop-count, .starline-reward small, .starline-progress-card small, .starline-secret-code small) {
  color: var(--starline-muted);
  opacity: 1;
}

.starline-hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 1.25rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  overflow: hidden;
  color: var(--starline-deep);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--starline-glow) 22%, transparent) 0 8%, transparent 8.5%),
    radial-gradient(circle at 72% 78%, color-mix(in srgb, var(--starline-metal) 26%, transparent) 0 5%, transparent 5.5%),
    var(--starline-sky);
  border: 3px solid var(--starline-track);
  border-radius: 28px 16px 28px 18px;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--starline-track) 42%, transparent);
}

.starline-hero::after {
  position: absolute;
  right: -20px;
  bottom: -32px;
  width: 190px;
  height: 90px;
  content: "";
  border: 12px solid color-mix(in srgb, var(--starline-glow) 24%, transparent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50% 50% 0 0;
  transform: rotate(-5deg);
}

.starline-hero > * {
  position: relative;
  z-index: 1;
}

.starline-hero h1 {
  margin-block: 0.1rem 0.35rem;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.starline-hero p:last-child {
  max-width: 720px;
  margin: 0;
  font-size: clamp(0.96rem, 2vw, 1.15rem);
}

.starline-bugar {
  --bugar-hat: #f13f9e;
  position: relative;
  display: inline-grid;
  width: 112px;
  height: 104px;
  flex: 0 0 auto;
  place-items: center;
  filter: drop-shadow(0 8px 0 rgb(76 20 57 / 16%));
  animation: starline-bugar-float 4.2s ease-in-out infinite;
  isolation: isolate;
}

.starline-bugar-arm {
  position: absolute;
  z-index: 0;
  top: 54px;
  width: 28px;
  height: 16px;
  background: #fff0b2;
  border: 3px solid #64113f;
  border-radius: 999px;
}

.starline-bugar-arm.is-left {
  left: 3px;
  transform: rotate(28deg);
}

.starline-bugar-arm.is-right {
  right: 3px;
  transform: rotate(-28deg);
  transform-origin: left center;
  animation: starline-bugar-wave 3.6s ease-in-out infinite;
}

.starline-bugar.is-compact {
  width: 58px;
  height: 54px;
  filter: drop-shadow(0 4px 0 rgb(76 20 57 / 14%));
}

.starline-bugar.is-peek {
  animation: starline-bugar-peek 4.8s ease-in-out infinite;
}

.starline-bugar.is-hangout {
  animation: starline-bugar-hangout 5.4s ease-in-out infinite;
}

.starline-bugar.is-compact .starline-bugar-arm {
  top: 28px;
  width: 16px;
  height: 9px;
  border-width: 2px;
}

.starline-bugar.is-compact .starline-bugar-arm.is-left {
  left: 0;
}

.starline-bugar.is-compact .starline-bugar-arm.is-right {
  right: 0;
}

.starline-bugar-face {
  position: relative;
  z-index: 1;
  display: block;
  width: 90px;
  height: 78px;
  background:
    radial-gradient(circle at 31% 43%, #35142b 0 4px, transparent 4.5px),
    radial-gradient(circle at 69% 43%, #35142b 0 4px, transparent 4.5px),
    #fff0b2;
  border: 4px solid #64113f;
  border-radius: 48% 48% 44% 44%;
  box-shadow: inset 0 -8px 0 rgb(230 177 49 / 25%);
}

.is-compact .starline-bugar-face {
  width: 46px;
  height: 41px;
  border-width: 2px;
  background:
    radial-gradient(circle at 31% 43%, #35142b 0 2px, transparent 2.5px),
    radial-gradient(circle at 69% 43%, #35142b 0 2px, transparent 2.5px),
    #fff0b2;
}

.starline-bugar-face::before {
  position: absolute;
  top: -22px;
  left: 7px;
  width: 68px;
  height: 32px;
  content: "";
  background: var(--bugar-hat);
  border: 4px solid #64113f;
  border-bottom-width: 6px;
  border-radius: 25px 25px 9px 9px;
  box-shadow: inset 0 8px 0 rgb(255 255 255 / 22%);
  transform: rotate(-3deg);
}

.is-compact .starline-bugar-face::before {
  top: -12px;
  left: 3px;
  width: 36px;
  height: 17px;
  border-width: 2px;
  border-bottom-width: 3px;
}

.starline-bugar-face::after {
  position: absolute;
  top: 40px;
  left: 29px;
  width: 27px;
  height: 16px;
  content: "";
  border-bottom: 4px solid #35142b;
  border-radius: 0 0 50% 50%;
}

.is-compact .starline-bugar-face::after {
  top: 21px;
  left: 14px;
  width: 15px;
  height: 8px;
  border-bottom-width: 2px;
}

.starline-bugar-hat-builder-cap {
  --bugar-hat: #ff65b8;
}

.starline-bugar-hat-builder-cap .starline-bugar-face::before {
  border-radius: 28px 28px 5px 14px;
  transform: rotate(4deg);
}

.starline-bugar-hat-star-scout-beanie {
  --bugar-hat: #4f9fdb;
}

.starline-bugar-hat-star-scout-beanie .starline-bugar-face::before {
  top: -25px;
  height: 34px;
  border-radius: 50% 50% 12px 12px;
  box-shadow:
    inset 0 -6px 0 rgb(255 255 255 / 22%),
    44px -12px 0 -13px #ffd34d;
}

.starline-bugar-hat-purple-hard-hat {
  --bugar-hat: #9b5ed0;
}

.starline-bugar-hat-purple-hard-hat .starline-bugar-face::before {
  height: 27px;
  border-radius: 34px 34px 7px 7px;
  box-shadow:
    inset 0 7px 0 rgb(255 255 255 / 24%),
    9px 8px 0 -6px #64113f,
    -9px 8px 0 -6px #64113f;
}

.starline-bugar-hat-golden-bridge-crown,
.starline-bugar-hat-master-builder-crown {
  --bugar-hat: #f5c84b;
}

.starline-bugar-hat-golden-bridge-crown .starline-bugar-face::before,
.starline-bugar-hat-master-builder-crown .starline-bugar-face::before {
  top: -27px;
  height: 35px;
  clip-path: polygon(0 100%, 0 38%, 20% 70%, 36% 8%, 53% 68%, 75% 0, 100% 70%, 100% 100%);
  border-radius: 4px;
}

.starline-bugar-hat-master-builder-crown .starline-bugar-face::before {
  background: linear-gradient(115deg, #f5c84b, #fff3a3 42%, #e66ac1 45% 55%, #fff3a3 58%, #f5c84b);
}

.starline-bugar-hat-comet-visor {
  --bugar-hat: #6944b8;
}

.starline-bugar-hat-comet-visor .starline-bugar-face::before {
  top: -17px;
  left: 3px;
  width: 76px;
  height: 28px;
  background:
    linear-gradient(112deg, rgb(255 255 255 / 72%), transparent 26%),
    linear-gradient(90deg, #7436b8, #42c9d4 54%, #ff66b8);
  border-radius: 60% 46% 18px 18px;
  box-shadow: 10px -6px 0 -7px #ffd45f;
  transform: rotate(-2deg);
}

.starline-bugar.is-compact.starline-bugar-hat-star-scout-beanie .starline-bugar-face::before,
.starline-bugar.is-compact.starline-bugar-hat-comet-visor .starline-bugar-face::before {
  top: -13px;
  left: 1px;
  width: 40px;
  height: 17px;
}

.starline-bugar.is-compact.starline-bugar-hat-purple-hard-hat .starline-bugar-face::before {
  top: -12px;
  left: 3px;
  width: 36px;
  height: 15px;
}

.starline-bugar.is-compact.starline-bugar-hat-golden-bridge-crown .starline-bugar-face::before,
.starline-bugar.is-compact.starline-bugar-hat-master-builder-crown .starline-bugar-face::before {
  top: -14px;
  left: 3px;
  width: 36px;
  height: 19px;
}

.starline-bugar-cameo {
  position: fixed;
  z-index: 8;
  right: -7px;
  bottom: clamp(78px, 12vh, 132px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgb(67 15 49 / 18%));
  animation: starline-cameo-peek 12s ease-in-out infinite;
}

.starline-bugar-cameo-copy {
  max-width: 142px;
  padding: 0.5rem 0.7rem;
  color: #56113c;
  background: #fff9d9;
  border: 2px solid #d99abb;
  border-radius: 16px 16px 4px 16px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.starline-bugar-cameo .starline-bugar {
  margin-right: -12px;
  transform: rotate(-8deg);
}

.starline-page.starline-theme-starline-night .starline-bugar-cameo-copy {
  color: #fff9fd;
  background: #452052;
  border-color: #d48ac7;
}

.starline-progress-card {
  display: grid;
  gap: 0.9rem;
  max-width: 1100px;
  margin: 0 auto 1.6rem;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  color: var(--starline-deep);
  background: var(--starline-panel);
  border: 2px solid var(--starline-track);
  border-radius: 18px;
}

.starline-progress-card > div:first-child {
  display: grid;
  align-items: center;
  gap: 0.2rem 0.65rem;
  grid-template-columns: auto auto minmax(0, 1fr);
}

.starline-progress-card > div:first-child > span {
  color: var(--starline-glow);
  font-size: 1.8rem;
  animation: starline-star-pulse 2.4s ease-in-out infinite;
}

.starline-progress-card strong {
  font-size: 1.45rem;
}

.starline-progress-card small {
  color: var(--starline-muted);
  opacity: 1;
}

.starline-progress-track {
  height: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--starline-track) 35%, white);
  border: 2px solid var(--starline-track);
  border-radius: 999px;
}

.starline-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(115deg, rgb(255 255 255 / 28%) 0 8px, transparent 8px 15px),
    linear-gradient(90deg, var(--starline-glow), var(--starline-metal));
  border-radius: inherit;
  transition: width 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.starline-progress-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.starline-progress-links a,
.starline-secret-code summary {
  color: inherit;
  font-weight: 850;
}

.starline-code-notice {
  max-width: 760px;
  margin: -0.35rem auto 1.4rem;
  padding: 0.75rem 1rem;
  color: #174c40;
  background: #dff8ef;
  border: 2px solid #77cdb6;
  border-radius: 12px;
  font-weight: 800;
}

.starline-code-notice.is-equip-preview {
  position: relative;
  display: grid;
  min-height: 86px;
  align-items: center;
  gap: 0.8rem;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow: hidden;
  color: var(--starline-deep);
  background:
    radial-gradient(circle at 8% 50%, color-mix(in srgb, var(--starline-glow) 16%, transparent), transparent 24%),
    var(--starline-panel);
  border-color: var(--starline-glow);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--starline-glow) 22%, transparent);
  animation: starline-preview-arrive 600ms cubic-bezier(0.2, 0.85, 0.2, 1.16) both;
}

.starline-code-notice.is-equip-preview > span:last-child {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.12rem;
}

.starline-code-notice.is-equip-preview strong {
  font-size: 1.05rem;
}

.starline-code-notice.is-equip-preview small {
  color: var(--starline-muted);
  font-weight: 700;
}

.starline-equip-preview-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: var(--starline-node);
  border: 2px solid var(--starline-track);
  border-radius: 50%;
  font-size: 1.65rem;
  animation: starline-preview-icon 850ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.starline-equip-preview-icon > i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--starline-glow);
  border-radius: 50%;
  opacity: 0;
  animation: starline-preview-particle 950ms ease-out both;
}

.starline-equip-preview-icon > i:nth-of-type(1) { --preview-x: -54px; --preview-y: -28px; animation-delay: 60ms; }
.starline-equip-preview-icon > i:nth-of-type(2) { --preview-x: 57px; --preview-y: -22px; animation-delay: 120ms; }
.starline-equip-preview-icon > i:nth-of-type(3) { --preview-x: -48px; --preview-y: 34px; animation-delay: 180ms; }
.starline-equip-preview-icon > i:nth-of-type(4) { --preview-x: 51px; --preview-y: 35px; animation-delay: 240ms; }
.starline-equip-preview-icon > i:nth-of-type(5) { --preview-x: 4px; --preview-y: -52px; animation-delay: 300ms; }

.starline-code-notice.is-theme {
  animation:
    starline-preview-arrive 600ms cubic-bezier(0.2, 0.85, 0.2, 1.16) both,
    starline-theme-wash 1.15s ease-out both;
}

.starline-code-notice.is-effect .starline-equip-preview-icon {
  animation:
    starline-preview-icon 850ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both,
    starline-effect-pop 1.1s 180ms ease-in-out both;
}

.starline-page:has(.starline-code-notice.is-hat) .starline-hero .starline-bugar {
  animation: starline-bugar-try-on 1s cubic-bezier(0.2, 0.85, 0.25, 1.2) both;
}

.starline-roadmap,
.starline-vault {
  max-width: 1180px;
  margin: 2rem auto;
}

.starline-roadmap > ol {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.starline-stop {
  position: relative;
  display: grid;
  min-height: 104px;
  align-items: center;
  gap: 0.85rem;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 0.85rem 1rem;
  overflow: hidden;
  color: var(--starline-deep);
  background: var(--starline-panel);
  border: 2px solid var(--starline-track);
  border-radius: 20px;
}

.starline-stop::after {
  position: absolute;
  right: -16px;
  bottom: -22px;
  width: 72px;
  height: 72px;
  content: "";
  background: color-mix(in srgb, var(--starline-track) 13%, transparent);
  border-radius: 50%;
}

.starline-stop-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #64113f;
  background: var(--starline-node);
  border: 3px solid var(--starline-track);
  border-radius: 50%;
  font-size: 1.4rem;
}

.starline-stop > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.starline-stop h3,
.starline-stop p {
  margin: 0;
}

.starline-stop p {
  margin-top: 0.18rem;
  color: var(--starline-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 1;
}

.starline-stop-count {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.86;
}

.starline-stop.is-unlocked .starline-stop-node,
.starline-stop.is-code-unlocked .starline-stop-node {
  background: #fff2b4;
  border-color: #d9a62f;
  box-shadow: 0 0 0 6px rgb(246 200 76 / 18%);
}

.starline-stop.is-next {
  border-color: var(--starline-glow);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--starline-glow) 28%, transparent);
}

.starline-stop.is-next .starline-stop-node {
  border-color: var(--starline-glow);
  animation: starline-next-stop 2s ease-in-out infinite;
}

.starline-stop.is-locked {
  filter: none;
  opacity: 1;
}

.starline-stop.is-locked .starline-stop-node {
  filter: saturate(0.4);
  opacity: 0.62;
}

.starline-reward-groups {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.starline-reward-group {
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.15rem);
  color: var(--starline-deep);
  background: var(--starline-panel);
  border: 2px solid var(--starline-track);
  border-radius: 18px;
}

.starline-reward-group h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.starline-reward-group ul {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.starline-reward {
  display: flex;
  min-width: 0;
  min-height: 104px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--starline-track) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--starline-track) 62%, transparent);
  border-radius: 12px;
}

.starline-reward > button {
  display: grid;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.starline-reward > button:hover .starline-reward-copy strong {
  color: var(--starline-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.starline-reward > button:focus-visible {
  outline: 4px solid var(--starline-deep);
  outline-offset: 4px;
  border-radius: 8px;
}

.starline-reward-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--starline-node);
  border: 1px solid var(--starline-track);
  border-radius: 13px;
  font-size: 1.45rem;
  text-align: center;
}

.starline-reward-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 0;
  gap: 0.08rem;
  overflow-wrap: anywhere;
}

.starline-reward-copy strong {
  font-size: 1rem;
  line-height: 1.22;
}

.starline-reward small {
  color: var(--starline-muted);
  line-height: 1.25;
  opacity: 1;
}

.starline-reward-status {
  font-weight: 850;
}

.starline-reward-description {
  margin-top: 0.2rem;
  font-size: 0.76rem;
}

.starline-reward.is-locked {
  filter: none;
  opacity: 1;
}

.starline-reward.is-locked .starline-reward-icon {
  filter: grayscale(0.85);
  opacity: 0.62;
}

.starline-reward.is-equipped {
  background: var(--starline-equipped);
  border-color: var(--starline-equipped-border);
  box-shadow: inset 4px 0 0 #d21496;
}

.starline-page:has(.starline-code-notice.is-equip-preview) .starline-reward.is-equipped {
  animation: starline-equipped-card 900ms 120ms cubic-bezier(0.2, 0.85, 0.2, 1.16) both;
}

.starline-secret-code {
  max-width: 680px;
  margin: 2.6rem auto 0;
  padding: 0.8rem 1rem;
  color: var(--starline-deep);
  background: color-mix(in srgb, var(--starline-panel) 88%, transparent);
  border: 1px dashed var(--starline-track);
  border-radius: 12px;
}

.starline-secret-code summary {
  width: fit-content;
  cursor: pointer;
}

.starline-secret-code form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.starline-secret-code form > label {
  font-weight: 900;
}

.starline-secret-code form > div {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.starline-secret-code input {
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  color: #35142b;
  background: #fff;
  border: 2px solid var(--starline-track);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.starline-secret-code input:focus-visible,
.starline-secret-code summary:focus-visible,
.starline-progress-links a:focus-visible {
  outline: 4px solid var(--starline-glow);
  outline-offset: 3px;
}

.starline-toast {
  display: grid;
  max-width: 620px;
  align-items: center;
  gap: 0.8rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 1rem auto;
  padding: 0.85rem 1rem;
  color: #42112f;
  background: #fff7c9;
  border: 3px solid #e1af35;
  border-radius: 18px;
  box-shadow: 0 6px 0 rgb(108 70 0 / 18%);
  animation: starline-toast-arrive 520ms cubic-bezier(0.2, 0.9, 0.2, 1.15) both;
}

.starline-toast > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #cf008f;
  background: #fff;
  border: 2px solid #e1af35;
  border-radius: 50%;
  font-size: 1.6rem;
}

.starline-toast p,
.starline-toast strong,
.starline-toast p > span {
  display: block;
  margin: 0;
}

.starline-toast-unlock {
  margin-top: 0.2rem;
  color: #8b075e;
  font-weight: 900;
}

.starline-toast.is-replay {
  background: #e8f8f4;
  border-color: #78c9b4;
  box-shadow: 0 6px 0 rgb(20 92 74 / 15%);
}

[data-starline-effect="pink-star-trail"] .starline-toast-star {
  animation: starline-pink-trail 1.8s ease-in-out infinite;
}

[data-starline-effect="steel-sparks"] .starline-toast-star {
  color: #5c46a5;
  background: linear-gradient(135deg, #fff, #a8b7d5);
  animation: starline-steel-sparks 1.4s steps(2, end) infinite;
}

[data-starline-effect="bubble-burst"] .starline-toast-star,
[data-starline-effect="bubble-burst"] .starline-equip-preview-icon {
  color: #166c7a;
  background: linear-gradient(145deg, #fff, #b9f6ef);
  animation: starline-bubble-burst 1.4s ease-in-out infinite;
}

[data-starline-effect="galaxy-confetti"] .starline-toast-star,
[data-starline-effect="galaxy-confetti"] .starline-equip-preview-icon {
  color: #fff;
  background: radial-gradient(circle at 35% 28%, #fff 0 2px, transparent 3px), linear-gradient(145deg, #34165a, #a72e9a);
  animation: starline-galaxy-confetti 1.5s ease-in-out infinite;
}

[data-starline-effect="pink-star-trail"] .starline-equip-preview-icon > i {
  background: #ff4fab;
  border-radius: 2px;
  transform: rotate(45deg);
}

[data-starline-effect="steel-sparks"] .starline-equip-preview-icon > i {
  background: linear-gradient(135deg, #fff, #6f82a9);
  border-radius: 1px;
}

[data-starline-effect="bubble-burst"] .starline-equip-preview-icon > i {
  background: rgb(164 242 235 / 55%);
  border: 2px solid #4ec9bd;
}

[data-starline-effect="galaxy-confetti"] .starline-equip-preview-icon > i {
  background: #ffd45f;
  border-radius: 2px;
}

@keyframes starline-bugar-float {
  0%,
  100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes starline-bugar-wave {
  0%,
  58%,
  100% { transform: rotate(-28deg); }
  68% { transform: rotate(-58deg); }
  78% { transform: rotate(-18deg); }
  88% { transform: rotate(-50deg); }
}

@keyframes starline-bugar-peek {
  0%,
  100% { transform: translateX(5px) rotate(-6deg); }
  50% { transform: translateX(-3px) translateY(-4px) rotate(1deg); }
}

@keyframes starline-bugar-hangout {
  0%,
  100% { transform: translateY(0) rotate(-2deg); }
  35% { transform: translateY(-4px) rotate(3deg); }
  72% { transform: translateY(1px) rotate(-4deg); }
}

@keyframes starline-bugar-try-on {
  0% { opacity: 0; transform: translateY(-18px) rotate(-10deg) scale(0.78); }
  55% { opacity: 1; transform: translateY(4px) rotate(5deg) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes starline-cameo-peek {
  0%,
  8% { opacity: 0; transform: translateX(105%); }
  16%,
  46% { opacity: 1; transform: translateX(0); }
  55%,
  100% { opacity: 0; transform: translateX(105%); }
}

@keyframes starline-star-pulse {
  0%,
  100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.18) rotate(5deg); }
}

@keyframes starline-preview-arrive {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes starline-preview-icon {
  0% { transform: rotate(-20deg) scale(0.45); }
  64% { transform: rotate(8deg) scale(1.15); }
  100% { transform: rotate(0) scale(1); }
}

@keyframes starline-preview-particle {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2); }
  26% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--preview-x), var(--preview-y)) scale(1.15); }
}

@keyframes starline-theme-wash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--starline-glow) 0%, transparent); }
  45% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--starline-glow) 18%, transparent); }
  100% { box-shadow: 0 5px 0 color-mix(in srgb, var(--starline-glow) 22%, transparent); }
}

@keyframes starline-effect-pop {
  0%,
  100% { transform: scale(1) rotate(0); }
  45% { transform: scale(1.25) rotate(12deg); }
  70% { transform: scale(0.92) rotate(-6deg); }
}

@keyframes starline-equipped-card {
  0% { opacity: 0.45; transform: translateY(8px) scale(0.96); }
  55% { opacity: 1; transform: translateY(-3px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes starline-next-stop {
  0%,
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--starline-glow) 28%, transparent); }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--starline-glow) 6%, transparent); }
}

@keyframes starline-toast-arrive {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes starline-pink-trail {
  0%,
  100% { box-shadow: -13px 10px 0 -8px #f13f9e, -22px 2px 0 -10px #f7a8d3; transform: rotate(-8deg); }
  50% { box-shadow: 13px 8px 0 -8px #f13f9e, 22px -3px 0 -10px #f7a8d3; transform: rotate(8deg); }
}

@keyframes starline-steel-sparks {
  0% { box-shadow: -11px -8px 0 -8px #d21496, 13px 10px 0 -8px #8293b6; }
  100% { box-shadow: 12px -10px 0 -8px #d21496, -13px 11px 0 -8px #8293b6; }
}

@keyframes starline-bubble-burst {
  0%,
  100% { box-shadow: -12px 9px 0 -7px #74ded3, 13px -10px 0 -8px #efa5d2; transform: translateY(0) scale(1); }
  50% { box-shadow: -18px -10px 0 -8px #efa5d2, 18px 8px 0 -7px #74ded3; transform: translateY(-3px) scale(1.08); }
}

@keyframes starline-galaxy-confetti {
  0%,
  100% { box-shadow: -14px 9px 0 -8px #ffd45f, 12px -13px 0 -8px #70ded6; transform: rotate(-5deg); }
  50% { box-shadow: 15px 11px 0 -8px #ff77bd, -12px -13px 0 -8px #fff; transform: rotate(6deg); }
}

@media (max-width: 900px) {
  .starline-bugar-cameo {
    right: -16px;
  }

  .starline-bugar-cameo-copy {
    display: none;
  }
}

@media (max-width: 620px) {
  .starline-page {
    overflow: hidden;
  }

  .starline-hero {
    gap: 0.55rem;
    grid-template-columns: 1fr;
    padding: 1.15rem 1rem;
    text-align: center;
  }

  .starline-hero .starline-bugar {
    justify-self: center;
  }

  .starline-hero h1 {
    font-size: clamp(2.45rem, 15vw, 3.6rem);
  }

  .starline-progress-card {
    padding: 0.9rem;
  }

  .starline-progress-card > div:first-child {
    grid-template-columns: auto auto;
  }

  .starline-progress-card small {
    grid-column: 1 / -1;
  }

  .starline-progress-links {
    gap: 0.45rem 0.85rem;
  }

  .starline-roadmap,
  .starline-vault {
    margin-block: 1.55rem;
  }

  .starline-roadmap > ol {
    grid-template-columns: 1fr;
  }

  .starline-stop {
    min-height: 96px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 0.75rem 0.8rem;
  }

  .starline-stop-node {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .starline-reward-group {
    padding: 0.8rem;
  }

  .starline-reward-group ul {
    grid-template-columns: 1fr;
  }

  .starline-reward {
    min-height: 94px;
    padding: 0.7rem;
  }

  .starline-reward > button {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .starline-reward-icon {
    width: 42px;
    height: 42px;
  }

  .starline-code-notice.is-equip-preview {
    min-height: 78px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 0.65rem 0.75rem;
  }

  .starline-equip-preview-icon {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
  }

  .starline-secret-code form > div {
    grid-template-columns: 1fr;
  }

  .starline-secret-code button {
    width: 100%;
  }

  .starline-bugar-cameo {
    position: absolute;
    right: -13px;
    bottom: 34px;
    opacity: 0.78;
    animation-duration: 16s;
  }
}

@media (max-width: 390px) {
  .starline-reward-description {
    display: none;
  }

  .starline-reward {
    min-height: 78px;
  }

  .starline-stop p {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .starline-bugar,
  .starline-bugar-arm,
  .starline-bugar-cameo,
  .starline-progress-card > div:first-child > span,
  .starline-stop.is-next .starline-stop-node,
  .starline-toast,
  [data-starline-effect] .starline-toast-star,
  [data-starline-effect] .starline-equip-preview-icon,
  .starline-equip-preview-icon > i,
  .starline-code-notice.is-equip-preview,
  .starline-page:has(.starline-code-notice.is-equip-preview) .starline-reward.is-equipped {
    animation: none !important;
  }

  .starline-progress-track > span {
    transition: none;
  }
}
