:root {
  color-scheme: light dark;
  --bg: #09101d;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-dark: rgba(15, 23, 42, 0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #14b8a6;
  --accent-2: #f59e0b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 24%),
    linear-gradient(180deg, #edf6ff 0%, #dde8f5 100%);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 46vw;
  height: 46vw;
  filter: blur(80px);
  opacity: 0.42;
  pointer-events: none;
}

.ambient--one {
  top: -10vw;
  left: -8vw;
  background: #2dd4bf;
  animation: float 8s ease-in-out infinite;
}

.ambient--two {
  right: -12vw;
  top: 24vh;
  background: #fbbf24;
  animation: float 10s ease-in-out infinite reverse;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.hero {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.88));
  color: #f8fafc;
}

.hero__topline,
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.74);
}

.hero__title {
  margin: 12px 0 10px;
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1.04;
}

.hero__subtitle {
  margin: 0;
  font-size: 15px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.action {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
}

.action--primary {
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9);
  color: #042f2e;
}

.action--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.recommendation {
  padding: 18px;
}

.recommendation__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recommendation__header strong {
  font-size: 28px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(14, 165, 233, 0.08));
}

.hero-card--loading {
  opacity: 0.75;
}

.hero-card__orb {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 32% 32%, #fef3c7 0%, #f59e0b 26%, #0ea5e9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: pulse 2.2s infinite;
}

.recommendation__text {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
}

.recommendation__time {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ranking,
.notes {
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-card {
  display: grid;
  grid-template-columns: 52px 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transform: translateY(24px);
  opacity: 0;
  animation: slide-up 0.5s forwards;
}

.rank-card__index {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.rank-card__mascot {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 6px;
}

.rank-card__alias {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.rank-card__tagline,
.rank-card__level {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.notes__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(24px);
  }
}

@keyframes slide-up {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background:
      radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 26%),
      radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 20%),
      linear-gradient(180deg, #07101d 0%, #09111f 100%);
    color: #e2e8f0;
  }

  .panel {
    background: var(--panel-dark);
  }

  .recommendation__time,
  .section-heading span,
  .rank-card__tagline,
  .rank-card__level,
  .notes__list {
    color: #94a3b8;
  }

  .rank-card {
    background: rgba(15, 23, 42, 0.66);
  }
}

