:root {
  color-scheme: light;
  --ink: #35304d;
  --muted: #9992ad;
  --purple: #9180cf;
  --orbit-radius: 108px;
  --cycle: 4s;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #f7f5ff;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100svh; overflow-x: hidden; background: radial-gradient(ellipse at 50% 44%, #fff 0%, #faf9ff 38%, #f4f1fc 100%); }
.brand { position: absolute; z-index: 2; top: 34px; left: 44px; display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.brand-light { font-weight: 500; margin-left: 3px; }
.brand-icon { position: relative; display: block; width: 29px; height: 31px; }
.brand-icon i { position: absolute; display: block; width: 19px; height: 26px; border: 2px solid #9180cf; border-radius: 5px; background: #f7f5ff; }
.brand-icon i:first-child { transform: rotate(-16deg); left: 0; top: 0; }
.brand-icon i:last-child { transform: rotate(12deg); left: 9px; top: 4px; background: #eae3ff; }
.brand-icon i:last-child::after { content: '✦'; position: absolute; color: #9180cf; left: 2px; top: 1px; font-style: normal; font-size: 15px; }
.loading-screen { overflow: hidden; min-height: 100svh; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 20px 140px; }
/* The orbit's center sits at the viewport center, independently of the caption. */
.orbit-scene { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; transform: translate(-50%, -50%); }
.orbit-track { position: absolute; inset: 62px; border: 1px solid #e4ddf4; border-radius: 50%; }
.orbit-track-outer { inset: 15px; border: 1px dashed #e9e3f4; opacity: .65; }
.orbit-glow { position: absolute; inset: 58px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 35%, #cbb9f51a 70%, #b29ae33d 99%, transparent); animation: orbit-spin var(--cycle) linear infinite; }
.center-mark { position: absolute; inset: 130px; border-radius: 26px; display: grid; place-items: center; color: #b1a0d9; background: #f4efff; box-shadow: 0 4px 22px #8770b509, inset 0 1px 0 #fff; }
.center-mark svg { width: 37px; height: 37px; animation: star-breathe 2s ease-in-out infinite; }
.little-spark { position: absolute; font-size: 13px; right: 10px; top: 10px; color: #d0b1e5; }
.pack-orbit { position: absolute; inset: 0; animation: orbit-spin var(--cycle) linear infinite; will-change: transform; }
.pack-slot { position: absolute; left: 50%; top: 50%; width: 68px; height: 102.3px; margin: -51.15px 0 0 -34px; }
.slot-blue { transform: translateY(calc(-1 * var(--orbit-radius))); }
.slot-purple { transform: translateX(var(--orbit-radius)); }
.slot-yellow { transform: translateY(var(--orbit-radius)); }
.slot-colorful { transform: translateX(calc(-1 * var(--orbit-radius))); }
/* Counter-rotation keeps every pack upright along the whole orbit. */
.pack-upright { width: 100%; height: 100%; animation: orbit-spin var(--cycle) linear infinite reverse; will-change: transform; }
.pack-upright img { display: block; width: 100%; height: auto; user-select: none; filter: drop-shadow(0 8px 8px #59418b25); }
.loading-caption { position: absolute; top: calc(50% + 207px); left: 20px; right: 20px; text-align: center; }
.eyebrow { color: #a49ab7; font-size: 12px; letter-spacing: 3px; margin-bottom: 12px; }
h1 { font-size: 25px; line-height: 1.5; font-weight: 700; letter-spacing: 1px; margin: 0; }
.title-dot { color: #a48ccf; }
.loading-status { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: 1px; margin-top: 18px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #b19acf; margin-right: 8px; animation: status-breathe 1.6s ease-in-out infinite; }
.ellipsis { display: inline-flex; width: 17px; }
.ellipsis i { font-style: normal; animation: status-breathe 1.4s ease-in-out infinite; }
.ellipsis i:nth-child(2) { animation-delay: .18s; }
.ellipsis i:nth-child(3) { animation-delay: .36s; }
.ambient { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; opacity: .6; }
.ambient-one { width: 420px; height: 420px; background: radial-gradient(circle, #e9e0fa60, transparent 70%); left: calc(50% - 390px); top: calc(50% - 290px); }
.ambient-two { width: 340px; height: 340px; background: radial-gradient(circle, #ffefd950, transparent 70%); left: calc(50% + 20px); top: calc(50% - 50px); }
footer { position: fixed; bottom: 25px; left: 0; right: 0; text-align: center; color: #b8b0c5; font-size: 10px; letter-spacing: 2px; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes star-breathe { 0%, 100% { opacity: .65; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes status-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 480px) {
  .brand { top: 26px; left: 25px; font-size: 17px; }
  .orbit-scene { transform: translate(-50%, -50%) scale(.88); }
  .loading-caption { top: calc(50% + 175px); }
  h1 { font-size: 22px; }
  .eyebrow { font-size: 11px; }
  footer { bottom: 20px; font-size: 9px; }
}
@media (max-height: 640px) {
  .orbit-scene { transform: translate(-50%, -50%) scale(.68); }
  .loading-caption { top: calc(50% + 132px); }
  .eyebrow { display: none; }
  h1 { font-size: 20px; }
  .loading-status { margin-top: 9px; }
  footer { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* Four quarter-height card ribbons, revealed in milestone order. */
.card-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.card-backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 53%, #f9f7ff 0%, #f9f7fff5 16%, #f9f7ffb0 36%, #f9f7ff20 80%); }
.card-band { height: 25%; overflow: hidden; display: flex; align-items: center; opacity: 0; transition: opacity 1.5s ease; mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.card-band.is-visible { opacity: .13; }
.card-ribbon { display: flex; width: max-content; flex-shrink: 0; animation: cards-drift var(--drift, 140s) linear infinite; animation-play-state: paused; }
.card-band.is-visible .card-ribbon { animation-play-state: running; }
.card-set { display: flex; gap: 22px; padding-right: 22px; flex-shrink: 0; }
.card-set img { height: min(21vh, 190px); width: auto; object-fit: contain; transform: rotate(-7deg); filter: saturate(.7); }
@keyframes cards-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.pack-orbit { animation: none; will-change: auto; }
.pack-slot { transform: none; width: 68px; height: 102.3px; }
.pack-upright { animation: none; transform-origin: center; filter: drop-shadow(0 7px 10px #59418b20); }
.pack-upright img { filter: none; }
.pack-sealed, .pack-body, .pack-lid { position: absolute; inset: 0; }
.pack-body { clip-path: polygon(0 22%, 9% 21%, 17% 23%, 25% 21%, 34% 23%, 43% 21%, 52% 23%, 61% 21%, 70% 23%, 79% 21%, 88% 23%, 100% 21%, 100% 100%, 0 100%); }
.pack-lid { clip-path: polygon(0 0, 100% 0, 100% 21%, 88% 23%, 79% 21%, 70% 23%, 61% 21%, 52% 23%, 43% 21%, 34% 23%, 25% 21%, 17% 23%, 9% 21%, 0 22%); transform-origin: 90% 22%; }
.pack-light { position: absolute; top: 16%; left: -20%; width: 140%; height: 28%; background: url('assets/packs/open-glow.png') center/100% 100% no-repeat; opacity: 0; filter: drop-shadow(0 0 8px #fff5b2); }
.escaped-card { position: absolute; left: 12%; top: 20%; width: 76%; height: auto; opacity: 0; border-radius: 4px; }
.escaped-card img { width: 100%; }
.progress-block { width: 204px; margin: 22px auto 0; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 10px; color: #a69ab8; letter-spacing: .5px; }
#progress-number { color: #8b77ad; font-variant-numeric: tabular-nums; }
.progress-track { height: 3px; position: relative; background: #e9e2f2; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #afa2d9, #b290da, #d1b0e0); }
.progress-track > span { position: absolute; height: 100%; width: 2px; background: #f9f7ff; top: 0; }
.progress-track > span:nth-of-type(1) { left: 25%; }.progress-track > span:nth-of-type(2) { left: 50%; }.progress-track > span:nth-of-type(3) { left: 75%; }
.complete-check { display: none; font-size: 30px; color: #a18bc7; }
.is-complete .center-mark svg, .is-complete .little-spark { display: none; }
.is-complete .complete-check { display: block; }
.replay { margin: 15px auto 0; padding: 7px 14px; border: 1px solid #ded5ed; background: #ffffff80; color: #9585b2; border-radius: 20px; cursor: pointer; font: inherit; font-size: 11px; transition: background .18s ease, transform .18s ease; }
.replay:hover { background: #fff; }.replay:active { transform: scale(.96); }.replay:focus-visible { outline: 2px solid #a592ce; outline-offset: 4px; }
.orbit-glow { transition: opacity 1s ease; }
.is-complete .orbit-glow { opacity: 0; }
@media (max-height: 700px) { .loading-caption { top: calc(50% + 130px); }.orbit-scene { transform: translate(-50%, -50%) scale(.68); }.eyebrow { display: none; }.progress-block { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { .card-band { transition: none; }.card-ribbon { animation: none; }.pack-slot { will-change: auto; } }

[hidden] { display: none !important; }
/* Three-line brand message. Loading status remains available to screen readers. */
.loading-caption .eyebrow { display: block; letter-spacing: 3px; margin-bottom: 10px; }
.intro-line, .promise-line { display: block; }
.intro-line { font-size: 17px; font-weight: 500; color: #9184ab; letter-spacing: 3px; margin-bottom: 3px; }
.promise-line { font-size: 26px; letter-spacing: 2px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
.brand { gap: 0; }
.brand-logo { display: block; width: 215px; height: auto; }
@media (max-width: 480px) { .brand-logo { width: 176px; }.promise-line { font-size: 23px; }.intro-line { font-size: 15px; } }
@media (max-height: 700px) {
 .loading-caption { top: calc(50% + 119px); }
 .loading-caption .eyebrow { font-size: 10px; margin-bottom: 5px; }
 .intro-line { font-size: 13px; margin-bottom: 1px; }
 .promise-line { font-size: 20px; }
 .progress-block { margin-top: 12px; }
 .replay { margin-top: 10px; padding: 5px 12px; }
}
@media (max-height: 640px) { .loading-caption { top: calc(50% + 98px); } }
.enter-platform { display: inline-block; margin-top: 13px; font-size: 11px; color: #9884b6; text-decoration: none; border-bottom: 1px solid #cbbce0; padding-bottom: 3px; }
.enter-platform:hover { color: #6d5396; }
.enter-platform:focus-visible { outline: 2px solid #a592ce; outline-offset: 5px; border-radius: 2px; }
@media (max-height: 640px) { .enter-platform { margin-top: 8px; } }
