:root {
  color-scheme: dark;
  --bg: #090b12;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f7fb;
  --muted: #969bab;
  --lime: #d8ff63;
  --violet: #9176ff;
  --cyan: #63e6ff;
  --pink: #ff70bd;
  --gold: #ffd65c;
  --orange: #ff773d;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #05060a;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(104, 79, 238, 0.22), transparent 35%),
    #05060a;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.desktop-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 25%, rgba(99, 230, 255, 0.08), transparent 28%),
    radial-gradient(circle at 75% 72%, rgba(255, 112, 189, 0.08), transparent 30%);
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px calc(104px + var(--safe-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 6%, rgba(255, 119, 61, 0.18), transparent 25%),
    radial-gradient(circle at 8% 26%, rgba(99, 230, 255, 0.08), transparent 22%),
    var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.65);
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.brand-logo {
  width: 116px;
  height: 52px;
  object-fit: contain;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.profile-button img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-button span {
  color: #b9bdc9;
  font-size: 12px;
}

.intro {
  position: relative;
  z-index: 1;
  padding: 28px 4px 22px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8adbc;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: breathe 2s ease-in-out infinite;
}

.demo-tag {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(216, 255, 99, 0.2);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(216, 255, 99, 0.08);
  letter-spacing: 0;
}

.intro h1 {
  margin: 12px 0 7px;
  font-size: clamp(36px, 11vw, 52px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1;
}

.intro h1 span {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 214, 92, 0.16);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.campaign-panel {
  position: relative;
  z-index: 2;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 92, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 119, 61, 0.22), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(216, 255, 99, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.042)),
    #12131c;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.11),
    0 28px 70px rgba(0, 0, 0, 0.3);
}

.campaign-panel::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  top: -150px;
  left: -100px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.1;
  filter: blur(35px);
}

.campaign-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.campaign-hero h2 {
  margin: 8px 0 7px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.campaign-hero p {
  margin: 0;
  color: #8f94a3;
  font-size: 10px;
}

.champion-emblem {
  position: relative;
  display: flex;
  flex: 0 0 93px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 11px 8px 9px;
  border: 1px solid rgba(255, 214, 92, 0.28);
  border-radius: 24px;
  color: var(--gold);
  background:
    linear-gradient(155deg, rgba(255, 214, 92, 0.15), rgba(255, 119, 61, 0.06)),
    rgba(0, 0, 0, 0.16);
  box-shadow: 0 0 34px rgba(255, 214, 92, 0.08);
}

.champion-emblem svg {
  width: 43px;
  height: 34px;
  fill: currentColor;
  filter: drop-shadow(0 5px 10px rgba(255, 214, 92, 0.2));
}

.champion-emblem strong {
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.champion-emblem span {
  margin-top: 3px;
  color: #d8c991;
  font-size: 9px;
}

.rule-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rule-title-row strong {
  font-size: 12px;
}

.rule-title-row span {
  color: var(--gold);
  font-size: 9px;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.rule-pill {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 66px;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.042);
}

.rule-pill > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(99, 230, 255, 0.09);
  font-size: 11px;
  font-weight: 750;
}

.rule-pill div {
  min-width: 0;
}

.rule-pill strong,
.rule-pill small,
.rule-pill b {
  display: block;
}

.rule-pill strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-pill small {
  margin-top: 2px;
  color: #6f7484;
  font-size: 8px;
}

.rule-pill b {
  grid-column: 1 / -1;
  color: var(--lime);
  font-size: 22px;
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-align: right;
}

.rule-pill.rule-primary {
  border-color: rgba(255, 214, 92, 0.22);
  background: linear-gradient(145deg, rgba(255, 214, 92, 0.1), rgba(255, 255, 255, 0.04));
}

.rule-pill.rule-primary > span {
  color: var(--gold);
  background: rgba(255, 214, 92, 0.1);
}

.rule-pill.rule-primary b {
  color: var(--gold);
}

.reward-ladder {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.reward-ladder > div {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.032);
}

.reward-ladder .reward-first {
  border-color: rgba(255, 214, 92, 0.19);
  background: linear-gradient(90deg, rgba(255, 214, 92, 0.09), rgba(255, 119, 61, 0.035));
}

.reward-medal {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 214, 92, 0.32);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 214, 92, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.reward-medal.silver {
  border-color: rgba(199, 217, 232, 0.25);
  color: #c7d9e8;
  background: rgba(199, 217, 232, 0.08);
}

.reward-medal.bronze {
  border-color: rgba(213, 146, 94, 0.28);
  color: #d5925e;
  background: rgba(213, 146, 94, 0.08);
}

.reward-ladder strong,
.reward-ladder small {
  display: block;
}

.reward-ladder strong {
  font-size: 11px;
}

.reward-ladder small {
  margin-top: 3px;
  color: #767c8c;
  font-size: 8px;
}

.reward-ladder b {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.special-rules {
  margin-top: 12px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.13);
}

.special-rules > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
}

.special-rules > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.special-rules time {
  color: var(--orange);
  font-size: 10px;
  font-weight: 750;
}

.special-rules p,
.special-rules strong,
.special-rules span {
  display: block;
}

.special-rules p {
  min-width: 0;
  margin: 0;
}

.special-rules strong {
  font-size: 10px;
}

.special-rules span {
  margin-top: 4px;
  color: #727888;
  font-size: 8px;
  line-height: 1.45;
}

.podium-section {
  position: relative;
  z-index: 1;
  padding-top: 52px;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: end;
  gap: 8px;
  min-height: 260px;
  margin-top: 16px;
}

.podium-card {
  --podium-color: 199, 217, 232;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 174px;
  padding: 27px 8px 12px;
  overflow: visible;
  border: 1px solid rgba(var(--podium-color), 0.18);
  border-radius: 25px 25px 18px 18px;
  background:
    radial-gradient(circle at 50% 5%, rgba(var(--podium-color), 0.18), transparent 38%),
    rgba(255, 255, 255, 0.042);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.podium-card.champion {
  --podium-color: 255, 214, 92;
  min-height: 214px;
  padding-top: 34px;
  border-color: rgba(255, 214, 92, 0.34);
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 214, 92, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 214, 92, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 18px 44px rgba(255, 166, 61, 0.08);
}

.podium-card.third {
  --podium-color: 213, 146, 94;
  min-height: 158px;
}

.podium-crown {
  position: absolute;
  width: 42px;
  height: 34px;
  top: -20px;
  color: var(--gold);
  animation: crown-float 2.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(255, 214, 92, 0.28));
}

.podium-crown svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.podium-place {
  position: absolute;
  top: 8px;
  right: 9px;
  color: rgba(var(--podium-color), 0.8);
  font-size: 8px;
  font-weight: 800;
}

.podium-card img {
  width: 62px;
  height: 62px;
  border: 2px solid rgba(var(--podium-color), 0.68);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(var(--podium-color), 0.12);
}

.podium-card.champion img {
  width: 76px;
  height: 76px;
  border-width: 3px;
}

.podium-card strong {
  max-width: 100%;
  margin-top: 10px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card.champion strong {
  font-size: 16px;
}

.podium-points {
  margin-top: 4px;
  color: rgba(var(--podium-color), 0.9);
  font-size: 10px;
  font-weight: 750;
}

.podium-reward {
  max-width: 100%;
  margin-top: auto;
  padding: 6px 7px;
  overflow: hidden;
  border-radius: 999px;
  color: #9da2b0;
  background: rgba(0, 0, 0, 0.16);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card.champion .podium-reward {
  color: var(--gold);
  background: rgba(255, 214, 92, 0.09);
}

.podium-section + .my-card {
  margin-top: 30px;
}

.podium.is-waiting {
  display: block;
  min-height: 0;
}

.podium-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 228px;
  padding: 34px 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 92, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 214, 92, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.podium-empty::before,
.podium-empty::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  border: 1px solid rgba(255, 214, 92, 0.08);
  border-radius: 50%;
}

.podium-empty::after {
  width: 190px;
  height: 190px;
  top: -115px;
}

.podium-empty .podium-crown {
  position: relative;
  z-index: 1;
  width: 55px;
  height: 43px;
  top: auto;
  margin-bottom: 12px;
}

.podium-empty .micro-label,
.podium-empty strong,
.podium-empty p,
.podium-empty > div {
  position: relative;
  z-index: 1;
}

.podium-empty strong {
  margin-top: 7px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.podium-empty p {
  margin: 7px 0 18px;
  color: #858b9b;
  font-size: 10px;
}

.podium-empty > div {
  display: flex;
  gap: 7px;
}

.podium-empty > div span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #aeb3bf;
  background: rgba(255, 255, 255, 0.04);
  font-size: 8px;
}

.my-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045)),
    rgba(16, 18, 29, 0.82);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 26px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

.my-card-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  top: -110px;
  right: -45px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.22;
  filter: blur(28px);
}

.my-card-header,
.my-score-row,
.my-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.identity img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  object-fit: cover;
}

.micro-label {
  display: block;
  color: #777d8e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.identity h2 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 650;
}

.rank-chip {
  padding: 7px 10px;
  border: 1px solid rgba(216, 255, 99, 0.18);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(216, 255, 99, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.my-score-row {
  align-items: flex-end;
  margin-top: 22px;
}

.hero-score {
  display: block;
  margin-top: 2px;
  font-size: 50px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1;
}

.today-gain {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-bottom: 4px;
}

.today-gain span {
  color: var(--muted);
  font-size: 11px;
}

.today-gain strong {
  color: var(--lime);
  font-size: 22px;
}

.progress-track {
  height: 4px;
  margin: 17px 0 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-value {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--lime));
  box-shadow: 0 0 14px rgba(99, 230, 255, 0.6);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.my-card-footer {
  color: #838999;
  font-size: 10px;
}

.my-card-footer button {
  padding: 0;
  border: 0;
  color: #d9dce5;
  background: transparent;
  font-size: 11px;
}

.my-card-footer button span {
  color: var(--lime);
}

.section {
  position: relative;
  z-index: 1;
  padding-top: 52px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 4px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.member-count,
.updated-time {
  color: #777d8d;
  font-size: 11px;
}

.section-note {
  margin: 8px 4px 0;
  color: #717687;
  font-size: 11px;
}

.rank-stage {
  position: relative;
  height: 510px;
  margin: 17px -18px 0;
  overflow: hidden;
  perspective: 900px;
  touch-action: none;
  cursor: grab;
}

.rank-stage:active {
  cursor: grabbing;
}

#rank-cards {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.stage-halo {
  position: absolute;
  z-index: 0;
  width: 290px;
  height: 290px;
  top: 112px;
  left: 50%;
  border: 1px solid rgba(145, 118, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 118, 255, 0.15), rgba(99, 230, 255, 0.04) 42%, transparent 67%);
  filter: blur(0.2px);
  transform: translateX(-50%);
}

.stage-halo::before,
.stage-halo::after {
  content: "";
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.stage-halo::after {
  inset: 74px;
}

.stage-line {
  position: absolute;
  z-index: 0;
  width: 1px;
  height: 420px;
  top: 45px;
  left: 50%;
  opacity: 0.3;
  background: linear-gradient(transparent, var(--violet), var(--cyan), transparent);
  transform: rotate(16deg);
}

.orbit-card {
  --card-accent: 145, 118, 255;
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px 45px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 292px;
  height: 66px;
  left: 50%;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  opacity: var(--opacity);
  background:
    linear-gradient(110deg, rgba(var(--card-accent), 0.2), rgba(255, 255, 255, 0.065) 60%),
    rgba(22, 25, 37, 0.82);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(1.2);
  transform: translate3d(calc(-50% + var(--x)), var(--y), var(--z)) rotateZ(var(--rotate)) scale(var(--scale));
  transform-origin: center;
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    filter 360ms ease,
    border-color 360ms ease;
  will-change: transform, opacity;
}

.orbit-card.is-active {
  border-color: rgba(var(--card-accent), 0.58);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(var(--card-accent), 0.12),
    0 22px 48px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(var(--card-accent), 0.14);
}

.orbit-card.is-hidden {
  pointer-events: none;
}

.orbit-rank {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.orbit-rank strong {
  display: block;
  color: #fff;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.orbit-card img {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  object-fit: cover;
}

.orbit-member {
  min-width: 0;
}

.orbit-member strong,
.orbit-member span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orbit-member strong {
  font-size: 14px;
}

.orbit-member span {
  margin-top: 3px;
  color: #8e94a5;
  font-size: 9px;
}

.orbit-score {
  text-align: right;
}

.orbit-score strong,
.orbit-score span {
  display: block;
}

.orbit-score strong {
  font-size: 14px;
}

.orbit-score span {
  margin-top: 3px;
  color: var(--lime);
  font-size: 9px;
}

.stage-controller {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-top: -20px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.052);
  backdrop-filter: blur(18px);
}

.stage-controller button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #aeb3c0;
  background: rgba(255, 255, 255, 0.05);
}

.focused-member {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
}

.focused-member span {
  color: #777d8e;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.focused-member strong {
  font-size: 14px;
  text-align: center;
}

.highlight-scroll {
  display: grid;
  grid-auto-columns: 72%;
  grid-auto-flow: column;
  gap: 12px;
  margin: 17px -18px 0;
  padding: 0 18px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.highlight-scroll::-webkit-scrollbar {
  display: none;
}

.highlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 12px;
  min-height: 174px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  text-align: left;
  scroll-snap-align: start;
  background:
    radial-gradient(circle at 105% -10%, rgba(216, 255, 99, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.058);
}

.highlight-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -55px;
  bottom: -65px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.highlight-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  color: #c2c6d1;
  font-size: 10px;
}

.highlight-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: var(--lime);
  background: rgba(216, 255, 99, 0.12);
}

.highlight-card img {
  grid-row: 2 / span 2;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 19px;
  object-fit: cover;
}

.highlight-card .launch-symbol {
  display: grid;
  grid-row: 2 / span 2;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 19px;
  color: var(--lime);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 35%),
    rgba(216, 255, 99, 0.08);
  font-size: 25px;
  font-weight: 780;
}

.launch-card.progress-card .launch-symbol {
  color: var(--cyan);
  background: rgba(99, 230, 255, 0.08);
}

.launch-card.badge-card .launch-symbol {
  color: var(--pink);
  background: rgba(255, 112, 189, 0.08);
}

.highlight-card strong {
  align-self: end;
  font-size: 18px;
}

.highlight-card p {
  align-self: start;
  margin: 4px 0 0;
  color: #858b9b;
  font-size: 10px;
}

.highlight-score {
  grid-column: 3;
  grid-row: 2 / span 2;
  color: var(--lime);
  font-size: 17px;
  font-weight: 750;
}

.progress-card {
  background:
    radial-gradient(circle at 105% -10%, rgba(99, 230, 255, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.058);
}

.progress-card .highlight-icon,
.progress-card .highlight-score {
  color: var(--cyan);
}

.badge-card {
  background:
    radial-gradient(circle at 105% -10%, rgba(255, 112, 189, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.058);
}

.badge-card .highlight-icon,
.badge-card .highlight-score {
  color: var(--pink);
}

.leaderboard-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 31px 45px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  padding: 9px 12px 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.038);
  transition: background 180ms ease, transform 180ms ease;
}

.leaderboard-item:active {
  background: rgba(255, 255, 255, 0.085);
  transform: scale(0.985);
}

.list-rank {
  color: #747a8b;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.list-rank.top-rank {
  color: var(--lime);
}

.leaderboard-item img {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  object-fit: cover;
}

.list-member strong,
.list-member span,
.list-score strong,
.list-score span {
  display: block;
}

.list-member strong {
  font-size: 14px;
}

.list-member span {
  margin-top: 4px;
  color: #767c8d;
  font-size: 9px;
}

.list-score {
  text-align: right;
}

.list-score strong {
  font-size: 14px;
}

.list-score span {
  margin-top: 4px;
  color: var(--lime);
  font-size: 9px;
}

.data-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 11px;
  margin-top: 38px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.data-note > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(99, 230, 255, 0.1);
  font-family: Georgia, serif;
  font-size: 12px;
}

.data-note p {
  margin: 0;
  color: #747a8b;
  font-size: 10px;
  line-height: 1.6;
}

.data-note strong {
  display: block;
  margin-bottom: 2px;
  color: #b4b8c3;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 0 8px;
}

footer img {
  width: 90px;
  height: 42px;
  object-fit: contain;
  opacity: 0.32;
}

footer p {
  margin: 1px 0 0;
  color: #494e5c;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 28px), 448px);
  height: 67px;
  left: 50%;
  bottom: var(--safe-bottom);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(19, 21, 31, 0.88);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(1.3);
  transform: translateX(-50%);
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 18px;
  color: #696f7f;
  background: transparent;
}

.bottom-nav button span {
  height: 18px;
  font-size: 17px;
  line-height: 1;
}

.bottom-nav button strong {
  font-size: 9px;
  font-weight: 600;
}

.bottom-nav button.active {
  color: var(--lime);
  background: rgba(216, 255, 99, 0.075);
}

dialog {
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.identity-dialog {
  width: min(100%, 480px);
  max-height: 82dvh;
  margin: auto auto 0;
  padding: 14px 18px calc(22px + var(--safe-bottom));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(145, 118, 255, 0.17), transparent 28%),
    #11131c;
}

.identity-dialog[open] {
  animation: sheet-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dialog-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-header h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.close-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  color: #a4a9b6;
  background: rgba(255, 255, 255, 0.05);
  font-size: 22px;
}

.identity-dialog > p {
  margin: 9px 0 19px;
  color: #7d8291;
  font-size: 11px;
  line-height: 1.5;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}

.identity-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
}

.identity-option img {
  width: 58px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 20px;
  object-fit: cover;
}

.identity-option span {
  color: #afb3bf;
  font-size: 11px;
}

.identity-option.selected img {
  border-color: var(--lime);
  box-shadow: 0 0 20px rgba(216, 255, 99, 0.2);
}

.identity-option.selected span {
  color: var(--lime);
}

.member-dialog {
  width: min(calc(100% - 28px), 420px);
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: #10121b;
}

.member-dialog[open] {
  animation: detail-in 430ms cubic-bezier(0.22, 1, 0.36, 1);
}

.member-dialog-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 580px;
  padding: 52px 22px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -5%, rgba(145, 118, 255, 0.25), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 50%);
}

.member-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
}

.detail-aura {
  position: absolute;
  width: 260px;
  height: 260px;
  top: 35px;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 230, 255, 0.1), transparent 64%);
  transform: translateX(-50%);
}

.detail-rank {
  position: absolute;
  z-index: 2;
  top: 47px;
  left: calc(50% + 72px);
  display: grid;
  place-items: center;
  width: 54px;
  height: 28px;
  border: 1px solid rgba(216, 255, 99, 0.22);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(12, 14, 22, 0.86);
  font-size: 9px;
  font-weight: 750;
}

.detail-avatar {
  position: relative;
  z-index: 1;
  width: 154px;
  height: 154px;
  border: 3px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.detail-kicker {
  margin-top: 22px;
  color: #686e7e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.member-dialog h2 {
  margin: 6px 0 8px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.detail-badge {
  padding: 6px 10px;
  border: 1px solid rgba(145, 118, 255, 0.24);
  border-radius: 999px;
  color: #b9acff;
  background: rgba(145, 118, 255, 0.1);
  font-size: 10px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 25px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.detail-stats div {
  text-align: center;
}

.detail-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.075);
}

.detail-stats span,
.detail-stats strong {
  display: block;
}

.detail-stats span {
  color: #73798a;
  font-size: 9px;
}

.detail-stats strong {
  margin-top: 7px;
  font-size: 17px;
}

#detail-delta {
  color: var(--lime);
}

.detail-message {
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-message span {
  color: #767c8d;
  font-size: 9px;
}

.detail-message p {
  margin: 7px 0 0;
  color: #c4c7d0;
  font-size: 12px;
  line-height: 1.6;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes crown-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(35%);
  }
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(18px);
  }
}

@media (min-width: 481px) {
  .app-shell {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .rank-stage {
    margin-right: -14px;
    margin-left: -14px;
  }

  .orbit-card {
    width: 274px;
  }

  .highlight-scroll {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
