:root {
  color-scheme: dark;
  --ink: #fff4df;
  --muted: #b8ad9b;
  --paper: #100e0b;
  --panel: rgba(28, 24, 19, 0.88);
  --panel-strong: rgba(34, 29, 22, 0.96);
  --line: rgba(255, 174, 74, 0.16);
  --orange: #ff9e3d;
  --orange-hot: #ff7138;
  --amber: #ffd166;
  --teal: #74e2c0;
  --rose: #ff8f70;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #1f180f;
  --muted: #746657;
  --paper: #f7f1e7;
  --panel: rgba(255, 251, 243, 0.86);
  --panel-strong: rgba(255, 248, 237, 0.97);
  --line: rgba(88, 61, 29, 0.14);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 137, 58, 0.12), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(116, 226, 192, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 194, 89, 0.07), transparent 28%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: rgba(255, 158, 61, 0.24);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.glass {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 174, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 174, 74, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.floaty {
  animation: floaty 5.5s ease-in-out infinite;
}

.floaty-delay {
  animation: floaty 6.5s ease-in-out -1.8s infinite;
}

.pulse-dot {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.13), rgba(255,255,255,0.03));
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.score-ring {
  background: conic-gradient(from -20deg, var(--orange-hot), var(--orange), var(--amber), var(--teal), var(--orange-hot));
  animation: spin-slow 11s linear infinite;
}

.fade-up {
  animation: fade-up 0.7s cubic-bezier(.2,.8,.2,1) both;
}

.track-row {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.track-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 174, 74, 0.26);
  background: rgba(37, 31, 24, 0.96);
}

.score-pill {
  transition: transform 180ms ease;
}

.track-row:hover .score-pill {
  transform: scale(1.04);
}

.ad-slot {
  width: 100%;
  min-height: 90px;
  border: 1px dashed rgba(255, 174, 74, 0.14);
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.015);
}

.ad-slot::before {
  content: "";
}

@media (min-width: 768px) {
  .ad-slot {
    min-height: 110px;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 158, 61, 0.82);
  outline-offset: 3px;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(.78); opacity: .35; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes shimmer {
  from { background-position: 220% 0; }
  to { background-position: -20% 0; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
