.st-home { padding-block: clamp(20px, 4vw, 42px) 0; }
.st-profile { margin-bottom: 24px; }
.st-teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 24px);
  border: 1px solid color-mix(in srgb, var(--gold) 44%, var(--line));
  border-radius: 20px;
  background: radial-gradient(ellipse at 3% 35%, var(--gold-soft), transparent 64%), var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.st-teaser:hover { border-color: var(--gold); }
.st-teaser-icon {
  display: grid;
  place-items: center;
  width: 51px;
  aspect-ratio: 1;
  border: 1px solid #edc075;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 30%, #845a2b, #39251c 76%);
  color: #ffe2a0;
}
.st-teaser[data-lit="true"] .st-teaser-icon { box-shadow: 0 0 16px #d09c5977; }
.st-teaser-icon .st-glyph { width: 32px; }
.st-teaser-main { display: grid; gap: 2px; font-size: .94rem; line-height: 1.42; }
.st-teaser-main strong { font: 700 clamp(1.34rem, 3vw, 1.8rem)/1.05 var(--f-display); }
.st-teaser-main small { color: var(--muted); font-size: .76rem; }
.st-teaser-more { display: inline-flex; align-items: center; gap: 8px; color: var(--lotus); font: 600 .84rem var(--f-ui); }
.st-teaser-more svg, .st-go svg { width: 18px; height: 18px; flex: none; }
.st-reader-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 8px 5px 5px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  text-decoration: none;
  font: 600 .73rem/1.45 var(--f-ui);
}
.st-reader-link.is-lit { color: var(--jade); background: color-mix(in srgb, var(--jade) 12%, var(--surface)); }
.st-reader-link .st-glyph { width: 26px; height: 26px; }
.st-reader-link svg:last-child { width: 14px; height: 14px; margin-left: auto; }
.st-page { padding-bottom: clamp(38px, 7vw, 84px); }
.st-hero {
  --lantern-gold: #f0ce88;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  overflow: hidden;
  padding: clamp(28px, 5.4vw, 65px);
  border: 1px solid #745134;
  border-radius: 28px;
  background: radial-gradient(ellipse at 72% 47%, #73502e, transparent 62%), linear-gradient(120deg, #2a201e, #39251c 68%, #281d20);
  box-shadow: 0 26px 40px -31px #37200db0;
  color: #fff6e3;
}
.st-hero::before, .st-hero::after {
  position: absolute;
  inset: 11px;
  z-index: -1;
  border: 1px solid #f1ca8054;
  border-radius: 20px;
  content: "";
  pointer-events: none;
}
.st-hero::after {
  inset: auto -12% -50% 37%;
  height: 92%;
  border: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 25px, #f4d08a23 26px 27px, transparent 28px 51px);
  mask-image: linear-gradient(transparent, #000);
}
.st-lights { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.st-lights i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #ffe8b4;
  box-shadow: 0 0 10px 2px #f2b95e80;
  opacity: .55;
  animation: st-light 5.5s var(--delay) ease-in-out infinite alternate;
}
@keyframes st-light { from { transform: translateY(6px); opacity: .3; } to { transform: translateY(-8px); opacity: .85; } }
.st-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe0a3;
  font: 600 .84rem/1.35 var(--f-ui);
}
.st-hero-eyebrow .st-glyph { width: 24px; }
.st-hero h1 {
  margin: 10px 0 17px;
  color: #fff7e3;
  font: 600 clamp(3.15rem, 7.3vw, 6.4rem)/.87 var(--f-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.st-intro { margin: 0 0 21px; max-width: 36ch; color: #f2ddc5; font-size: clamp(.91rem, 1.7vw, 1.03rem); line-height: 1.65; }
.st-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid #f2d496;
  border-radius: 11px;
  background: linear-gradient(110deg, #fff0bd, #eec270);
  color: #332018;
  font: 700 .81rem/1.35 var(--f-ui);
  text-decoration: none;
  cursor: pointer;
}
.st-go:hover { background: #fff0bd; }
.st-go:disabled { cursor: wait; opacity: .67; }
.st-hero-status { display: grid; justify-items: center; }
.st-orb { position: relative; width: clamp(140px, 24vw, 224px); aspect-ratio: 1; }
.st-orb::before {
  position: absolute;
  inset: 16%;
  background: radial-gradient(circle, #ffd48375, transparent 71%);
  border-radius: 50%;
  content: "";
  opacity: .63;
}
.st-hero[data-lit="true"] .st-orb::before { opacity: 1; box-shadow: 0 0 50px #eca64731; }
.st-orbit { position: absolute; inset: 0; width: 100%; color: var(--lantern-gold); fill: none; }
.st-orbit-dots { stroke: currentColor; stroke-opacity: .7; stroke-dasharray: 1 5; stroke-linecap: round; }
.st-orbit-line { stroke: currentColor; stroke-opacity: .35; }
.st-orbit-flower { fill: #f2cd6d19; stroke: currentColor; stroke-opacity: .49; }
.st-orbit-star { fill: #ffe5ae; filter: drop-shadow(0 0 4px #ffcd71); }
.st-orb-logo { position: absolute; inset: 27%; display: grid; place-items: center; }
.st-orb-logo .logo { width: 81%; filter: drop-shadow(0 2px 18px #ffc0649c); }
.st-orb-logo .lg-fl { fill: #ffcd67; }
.st-orb-logo .lg-fl2 { fill: #fff6d1; }
.st-orb-logo .lg-p1 { fill: #ef9c9e; }
.st-orb-logo .lg-p2 { fill: #be6e8b; }
.st-orb-logo .lg-p3 { fill: #a26d8a; }
.st-orb-logo .lg-w, .st-orb-logo .lg-w2 { stroke: #d6b697; }
.st-current { display: flex; align-items: baseline; justify-content: center; gap: 9px; margin: -2px 0 13px; }
.st-current strong { color: #ffe6a8; font: 700 clamp(2.7rem, 5vw, 4.1rem)/.9 var(--f-display); }
.st-current span { color: #f6dec4; font-size: .84rem; }
.st-target {
  align-self: stretch;
  justify-self: stretch;
  max-width: 390px;
  width: 100%;
  margin-inline: auto;
  border: 1px solid #f1c97c5c;
  border-radius: 13px;
  padding: 13px 15px;
  background: #22181765;
  color: #fff0d7;
  font-size: .77rem;
}
.st-target-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; }
.st-target-line span { color: #e7d2bd; }
.st-target progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 10px;
  appearance: none;
  border: 0;
  border-radius: 20px;
  background: #fff0c02b;
  accent-color: #f2c473;
}
.st-target progress::-webkit-progress-bar { border-radius: 20px; background: #fff0c02b; }
.st-target progress::-webkit-progress-value { border-radius: 20px; background: linear-gradient(90deg, #d99b4d, #ffdf9c); }
.st-target progress::-moz-progress-bar { border-radius: 20px; background: #f2c473; }
.st-week-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px 34px;
  margin-top: 18px;
  padding: clamp(16px, 3vw, 29px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.st-week-card h2, .st-gifts h2 { margin: 0; color: var(--ink); font: 700 clamp(1.58rem, 3.3vw, 2.26rem)/1.08 var(--f-display); }
.st-week-card p, .st-gifts-head p { margin: 5px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.st-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 48px));
  gap: clamp(3px, 1.6vw, 10px);
  padding: 0;
  margin: 13px 0 0;
  list-style: none;
}
.st-week li { display: grid; justify-items: center; gap: 4px; min-width: 0; font: 600 .69rem var(--f-ui); color: var(--muted); }
.st-day-icon {
  display: grid;
  place-items: center;
  width: min(100%, 44px);
  aspect-ratio: 1;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
}
.st-week li[aria-current="date"] .st-day-icon { border: 2px solid var(--gold); }
.st-week li[data-lit="true"] .st-day-icon {
  border-color: #a76c24;
  background: radial-gradient(circle at 40% 30%, #fff3c5, #edba63);
  color: #56331a;
  box-shadow: 0 3px 10px -4px #c4862c99;
}
.st-day-icon .st-glyph { width: 71%; height: 71%; }
.st-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.st-numbers div { padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.st-numbers dt { color: var(--muted); font-size: .76rem; }
.st-numbers dd { margin: 1px 0 0; color: var(--gold-ink); font: 700 1.9rem/1.05 var(--f-display); }
.st-numbers dd small { font: 500 .7rem var(--f-ui); color: var(--muted); }
.st-gifts { margin-top: clamp(29px, 5vw, 55px); }
.st-gifts-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 7px 14px; }
.st-gifts-head > span { color: var(--gold-ink); font: 600 .8rem/1.4 var(--f-ui); }
.st-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.st-reward, .st-dialog { --medal: #dca956; --medal-light: #ffe3a1; --medal-dark: #52351f; }
.st-reward[data-color="rose"], .st-dialog[data-color="rose"] { --medal: #c58699; --medal-light: #ffd8dd; --medal-dark: #5f3747; }
.st-reward[data-color="jade"], .st-dialog[data-color="jade"] { --medal: #72a88c; --medal-light: #bde8cb; --medal-dark: #245247; }
.st-reward[data-color="blue"], .st-dialog[data-color="blue"] { --medal: #849dd0; --medal-light: #dce7ff; --medal-dark: #39466a; }
.st-reward { min-width: 0; }
.st-reward button {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 17px);
  width: 100%;
  height: 100%;
  min-height: 115px;
  padding: clamp(12px, 2.1vw, 20px);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.st-reward[data-state="next"] button { background: linear-gradient(110deg, var(--gold-soft), var(--surface)); border-color: var(--gold); }
.st-reward[data-state="earned"] button { border-color: color-mix(in srgb, var(--medal) 68%, var(--line)); }
.st-reward button:hover { border-color: var(--medal); box-shadow: var(--shadow); transform: translateY(-2px); }
.st-medal {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(46px, 5.8vw, 74px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--medal);
  background: radial-gradient(circle at 36% 26%, var(--medal-light), var(--medal) 67%, var(--medal-dark));
  color: var(--medal-dark);
}
.st-medal > span { position: absolute; inset: 4px; border: 1px solid color-mix(in srgb, var(--medal-dark) 47%, transparent); border-radius: 50%; }
.st-medal svg { width: 67%; height: 67%; }
.st-reward[data-state="locked"] .st-medal { filter: saturate(.46); }
.st-reward-body { display: grid; min-width: 0; }
.st-reward-days { color: var(--gold-ink); font: 600 .72rem var(--f-ui); }
.st-reward-body strong { margin: 2px 0 3px; font: 700 clamp(1.24rem, 2.5vw, 1.75rem)/.98 var(--f-display); }
.st-reward-gift { color: var(--muted); font-size: .77rem; line-height: 1.35; }
.st-reward-state { display: flex; align-items: center; gap: 4px; margin-top: 7px; color: var(--muted); font: 600 .67rem var(--f-ui); }
.st-reward-state svg { width: 14px; height: 14px; }
[data-state="earned"] .st-reward-state { color: var(--jade); }
[data-state="next"] .st-reward-state { color: var(--gold-ink); }
.st-account { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.st-import { margin-top: 10px; }
.st-dialog {
  width: min(91vw, 468px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--medal) 78%, var(--line));
  border-radius: 23px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 70px #261c1a66;
}
.st-dialog::backdrop { background: #251d20b8; }
.st-dialog-art { position: relative; display: grid; place-items: center; min-height: 153px; isolation: isolate; background: radial-gradient(circle, var(--medal-dark), var(--reward-dark) 75%); }
.st-dialog-art::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  background: repeating-radial-gradient(circle, transparent 0 37px, #ffedb72e 38px 39px, transparent 40px 55px);
  content: "";
}
.st-dialog-art .st-medal { width: 94px; box-shadow: 0 0 34px color-mix(in srgb, var(--reward-light) 48%, transparent); }
.st-unlock .st-medal { animation: st-unlock .85s cubic-bezier(.18, 1.22, .49, 1) both; }
@keyframes st-unlock { from { opacity: 0; transform: scale(.36) rotate(-28deg); } to { opacity: 1; transform: scale(1); } }
.st-dialog-body { padding: 18px clamp(16px, 5vw, 26px) 23px; }
.st-dialog-label { margin: 0 0 4px; color: var(--gold-ink); font: 650 .79rem var(--f-ui); }
.st-dialog h2 { margin: 0 0 5px; font: 700 clamp(2.4rem, 9vw, 3.25rem)/1 var(--f-display); }
.st-dialog-body > p:not(.st-dialog-label) { margin: 8px 0; color: var(--muted); line-height: 1.52; }
.st-dialog-body > p.st-dialog-gift { color: var(--ink); font-weight: 700; }
.st-dialog-status { display: flex; align-items: center; gap: 6px; font-size: .84rem; }
.st-dialog-status svg { width: 18px; height: 18px; }
.st-dialog-acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 13px; }
.st-dialog-acts > a:not(.st-go) { font-size: .79rem; }
.st-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #fff3d09c;
  border-radius: 50%;
  background: #261c20b0;
  color: #fff4db;
  cursor: pointer;
}
.st-dialog-close svg { width: 19px; height: 19px; }
@media (max-width: 820px) {
  .st-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .st-hero, .st-week-card { grid-template-columns: minmax(0, 1fr); }
  .st-hero { gap: 15px; padding: 26px 22px 23px; background: radial-gradient(ellipse at 55% 70%, #69482d, transparent 70%), #2b201e; }
  .st-hero h1 { font-size: clamp(2.9rem, 12vw, 4.4rem); }
  .st-intro { margin-bottom: 14px; }
  .st-orb { width: 145px; }
  .st-current { margin-bottom: 11px; }
  .st-numbers div { padding: 9px 11px; }
  .st-teaser { gap: 9px; }
  .st-teaser-icon { width: 39px; }
  .st-teaser-icon .st-glyph { width: 28px; }
  .st-teaser-more { font-size: 0; gap: 0; }
  .st-reward button { min-height: 123px; }
}
@media (max-width: 400px) {
  .st-milestones { gap: 8px; }
  .st-reward button { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 143px; padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-lights i, .st-unlock .st-medal { animation: none; }
  .st-reward button { transition: none; }
  .st-reward button:hover { transform: none; }
}
