@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap');

:root {
  --game-bg: #eef4fb;
  --game-navy: #0d1b4a;
  --game-navy-2: #15245c;
  --game-gold: #f5c542;
  --game-gold-2: #f59e0b;
  --game-cyan: #22d3ee;
  --game-teal: #14b8a6;
  --game-card: #ffffff;
  --game-ink: #1e2a4a;
}

.game-app {
  font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif !important;
  color: var(--game-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(245, 197, 66, 0.12), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 45%),
    var(--game-bg) !important;
}

.game-app main,
.game-app .flex-1.overflow-y-auto,
.game-app .flex-1.overflow-auto {
  background: transparent !important;
}

.game-app aside {
  background: linear-gradient(180deg, #0b1740 0%, #1a237e 55%, #312e81 100%) !important;
  box-shadow: 8px 0 30px rgba(13, 27, 74, 0.25) !important;
  border-right: 1px solid rgba(245, 197, 66, 0.15);
}

.game-app aside h1,
.game-app aside .font-bold.tracking-wider {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.game-app header.bg-white,
.game-app header.bg-white\/80,
.game-app header.shadow-sm {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 40, 80, 0.06) !important;
  box-shadow: none !important;
}

.game-app .bg-white.rounded-2xl,
.game-app .bg-white.rounded-xl,
.game-app .bg-white.shadow-sm {
  box-shadow: 0 10px 30px rgba(16, 40, 90, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

.game-xp {
  height: 8px;
  border-radius: 999px;
  background: #e8eef6;
  overflow: hidden;
}

.game-xp > span,
.game-xp-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
}

.game-xp.cyan > span,
.game-xp.cyan .game-xp-fill {
  background: linear-gradient(90deg, #5eead4, #06b6d4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}

.game-xp.green > span,
.game-xp.green .game-xp-fill {
  background: linear-gradient(90deg, #86efac, #22c55e);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.champion-card {
  position: relative;
  background: linear-gradient(90deg, #0c173d 0%, #1b2a6b 55%, #1a1f4a 100%);
  border-radius: 22px;
  padding: 16px 20px;
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(245, 197, 66, 0.55),
    0 12px 40px rgba(245, 197, 66, 0.28);
}

.champion-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 12% 50%, rgba(245, 197, 66, 0.35), transparent 42%);
  pointer-events: none;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 14px rgba(16, 40, 90, 0.04);
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
}

.team-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid #edf2f7;
  box-shadow: 0 8px 24px rgba(16, 40, 90, 0.06);
  position: relative;
}

.team-card.lead {
  box-shadow:
    0 0 0 2px rgba(167, 139, 250, 0.45),
    0 12px 30px rgba(124, 58, 237, 0.12);
}

.quest-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #edf2f7;
  box-shadow: 0 8px 22px rgba(16, 40, 90, 0.06);
  min-height: 112px;
  position: relative;
  overflow: hidden;
}

.quest-card.locked {
  background: linear-gradient(180deg, #edf1f6, #e4eaf2);
  filter: saturate(0.85);
}

.medal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 22px;
  filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.35));
}

.laurel-ring {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  padding: 3px;
  background: conic-gradient(from 180deg, #facc15, #f59e0b, #fde68a, #facc15);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}

.laurel-ring img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 3px solid #0c173d;
  object-fit: cover;
}

.game-title {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f1c3f;
}

.chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

.float-medal {
  animation: floaty 3.2s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.shimmer {
  background: linear-gradient(90deg, #facc15, #fff7cc, #f59e0b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.game-app .progress-bar {
  background-image: linear-gradient(90deg, #22d3ee, #6366f1);
}

.game-app .badge-glow {
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55) !important;
}

.game-app table tbody tr:first-child {
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.12), transparent 70%);
}

.game-app .badge-card {
  border-radius: 22px !important;
  box-shadow: 0 10px 24px rgba(16, 40, 90, 0.07) !important;
}

.game-app .badge-card:not(.grayscale) {
  box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.25), 0 10px 24px rgba(16, 40, 90, 0.07) !important;
}

.hex-badge {
  width: 54px;
  height: 60px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(180deg, #fbbf24, #d97706);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.35);
}

.circle-progress {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #0f766e;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#22c55e var(--p, 80%), #e2e8f0 0);
}
