:root {
  --green: #83e456;
  --lime: #e6e75d;
  --black: #000000;
  --paper: #f7f8ef;
  --ink: #11150f;
  --muted: #6f756b;
  --soft: rgba(247, 248, 239, 0.72);
  --line: rgba(17, 21, 15, 0.12);
  --dark-line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(131, 228, 86, 0.44), transparent 28rem),
    radial-gradient(circle at 18% 88%, rgba(230, 231, 93, 0.26), transparent 30rem),
    linear-gradient(135deg, #f7f8ef 0%, #e7eadf 46%, #dce3d3 100%);
  color: var(--ink);
  font-family: Archivo, Inter, system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.ambient::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  position: absolute;
}

.presentation {
  background:
    radial-gradient(circle at 78% 18%, rgba(131, 228, 86, 0.42), transparent 28rem),
    radial-gradient(circle at 12% 82%, rgba(230, 231, 93, 0.28), transparent 30rem),
    #f6f8ef;
  display: none;
  inset: 0;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(16px, 3vw, 38px);
  position: fixed;
  z-index: 50;
}

.presentation.active {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.presentation-bg {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.presentation-bg::before {
  background:
    linear-gradient(90deg, rgba(17, 21, 15, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(17, 21, 15, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  position: absolute;
}

.presentation-bg span {
  background: var(--black);
  border-radius: 999px;
  display: block;
  opacity: 0.08;
  position: absolute;
}

.presentation-bg span:nth-child(1) {
  height: 280px;
  right: -120px;
  top: 12%;
  width: 280px;
}

.presentation-bg span:nth-child(2) {
  bottom: 14%;
  height: 180px;
  left: 8%;
  width: 180px;
}

.presentation-bg span:nth-child(3) {
  height: 90px;
  left: 50%;
  top: 8%;
  width: 90px;
}

.presentation-top,
.presentation-controls {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.presentation-logo strong {
  color: var(--ink);
}

.sponsor-top {
  margin-left: auto;
  margin-right: 12px;
}

.presentation-count {
  align-items: baseline;
  background: var(--black);
  border-radius: 999px;
  color: var(--paper);
  display: flex;
  font-family: "Space Grotesk", sans-serif;
  gap: 2px;
  padding: 10px 14px;
}

.presentation-count b {
  color: var(--green);
  font-size: 22px;
}

.presentation-stage {
  display: grid;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.presentation-slide {
  align-items: center;
  display: none;
  gap: clamp(22px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin: auto;
  max-width: 1240px;
  width: 100%;
}

.presentation-slide.active {
  display: grid;
}

.slide-copy {
  max-width: 560px;
}

.slide-copy h2 {
  font-size: clamp(42px, 6.7vw, 94px);
  line-height: 0.92;
  margin-bottom: 18px;
}

.slide-copy p:last-child {
  color: #596156;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.slide-visual {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 44px;
  box-shadow: 0 30px 90px rgba(17, 21, 15, 0.14);
  min-height: min(56vh, 520px);
  overflow: hidden;
  padding: clamp(22px, 4vw, 46px);
  position: relative;
}

.slide-visual::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(131, 228, 86, 0.22), transparent 22%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-map,
.split-choice,
.yes-no-demo,
.swipe-demo,
.duel-demo,
.share-demo,
.admin-demo,
.final-demo {
  align-items: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-map {
  grid-template-columns: 1fr auto 1fr;
}

.hero-map span,
.split-choice button {
  align-items: center;
  background: var(--black);
  border: 0;
  border-radius: 28px;
  color: var(--paper);
  display: grid;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  min-height: 190px;
  padding: 22px;
  text-align: center;
  width: 100%;
}

.hero-map i {
  background: var(--green);
  border-radius: 999px;
  height: 18px;
  position: relative;
  width: 18px;
}

.hero-map i::before,
.hero-map i::after {
  background: var(--green);
  content: "";
  height: 2px;
  position: absolute;
  top: 8px;
  width: 86px;
}

.hero-map i::before {
  right: 22px;
}

.hero-map i::after {
  left: 22px;
}

.split-choice {
  grid-template-columns: 1fr 1fr;
}

.split-choice button:first-child,
.yes-no-demo span:last-child,
.trail.right {
  background: var(--green);
  color: var(--black);
}

.split-choice button:last-child {
  background: var(--lime);
  color: var(--black);
}

.yes-no-demo {
  grid-template-columns: 0.6fr 1fr 0.6fr;
}

.yes-no-demo span,
.trail {
  align-items: center;
  border-radius: 999px;
  display: grid;
  font-size: 22px;
  font-weight: 900;
  height: 92px;
  place-items: center;
  width: 92px;
}

.yes-no-demo span:first-child,
.trail.left {
  background: var(--black);
  color: var(--paper);
}

.mini-song-card,
.tilted-card {
  align-items: center;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(135deg, var(--green), #153d27);
  border-radius: 34px;
  color: var(--paper);
  display: grid;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  min-height: 330px;
  padding: 28px;
  place-items: end start;
  width: min(100%, 330px);
}

.swipe-demo {
  grid-template-columns: 0.5fr 1fr 0.5fr;
}

.tilted-card {
  animation: cardFloat 2.6s ease-in-out infinite alternate;
  transform: rotate(7deg);
}

@keyframes cardFloat {
  to {
    transform: translateX(18px) rotate(10deg);
  }
}

.bars-demo {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.bars-demo span {
  align-items: end;
  background: linear-gradient(to top, var(--green), var(--lime));
  border-radius: 22px 22px 12px 12px;
  color: var(--black);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  height: var(--h);
  min-height: 120px;
  padding: 12px;
  text-transform: uppercase;
}

.bracket-demo {
  align-content: center;
  display: grid;
  gap: 14px;
}

.bracket-demo span {
  background: var(--black);
  border-radius: 18px;
  color: var(--paper);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 900;
  padding: 18px 22px;
  position: relative;
}

.bracket-demo span:not(:last-child)::after {
  background: var(--green);
  bottom: -14px;
  content: "";
  height: 14px;
  left: 32px;
  position: absolute;
  width: 3px;
}

.duel-demo {
  grid-template-columns: 1fr auto 1fr;
}

.duel-demo div {
  align-items: center;
  background: var(--black);
  border-radius: 32px;
  color: var(--paper);
  display: grid;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  min-height: 280px;
  padding: 22px;
  place-items: center;
  text-align: center;
  width: 100%;
}

.duel-demo strong {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 6vw, 84px);
}

.share-demo,
.admin-demo {
  align-content: center;
  grid-template-columns: 1fr 1fr;
}

.share-demo span,
.admin-demo span {
  background: var(--black);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 900;
  padding: 20px 24px;
  text-align: center;
  width: 100%;
}

.share-demo span:nth-child(2),
.share-demo span:nth-child(3),
.admin-demo span:nth-child(2) {
  background: var(--green);
  color: var(--black);
}

.final-demo {
  background: var(--black);
  color: var(--paper);
}

.final-demo span {
  color: var(--lime);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.final-demo strong {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.9;
  text-align: center;
}

.final-demo em {
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.presentation-controls {
  gap: 12px;
}

.deck-btn {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  min-height: 48px;
  padding: 0 18px;
}

.deck-btn.primary,
.deck-btn.enter-demo {
  background: var(--black);
  color: var(--paper);
}

.deck-btn.enter-demo {
  background: var(--green);
  color: var(--black);
  display: none;
}

.deck-btn.enter-demo.visible {
  display: inline-flex;
  align-items: center;
}

.deck-dots {
  display: flex;
  flex: 1;
  gap: 7px;
  justify-content: center;
}

.deck-dots button {
  background: rgba(17, 21, 15, 0.18);
  border: 0;
  border-radius: 999px;
  height: 10px;
  padding: 0;
  transition: width 180ms ease, background 180ms ease;
  width: 10px;
}

.deck-dots button.active {
  background: var(--black);
  width: 34px;
}

.plans-modal[hidden] {
  display: none;
}

.plans-modal {
  display: grid;
  inset: 0;
  place-items: center;
  position: fixed;
  z-index: 80;
}

.plans-backdrop {
  backdrop-filter: blur(18px);
  background: rgba(17, 21, 15, 0.48);
  inset: 0;
  position: absolute;
}

.plans-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(131, 228, 86, 0.28), transparent 20rem),
    #f7f8ef;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 36px;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.34);
  max-height: calc(100vh - 32px);
  max-width: 1120px;
  overflow: auto;
  padding: clamp(18px, 4vw, 34px);
  position: relative;
  width: calc(100% - 32px);
}

.plans-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.plans-head h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.94;
  margin: 0;
  max-width: 760px;
}

.plans-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.plan-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 20px;
  position: relative;
}

.plan-card.featured {
  background: var(--black);
  color: var(--paper);
  transform: translateY(-10px);
}

.plan-card span {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: var(--black);
  display: grid;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  height: 42px;
  place-items: center;
  width: 42px;
}

.plan-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  line-height: 1;
  margin: 0;
}

.plan-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.plan-card.featured p {
  color: rgba(247, 248, 239, 0.7);
}

.plan-card strong {
  align-self: end;
  background: rgba(131, 228, 86, 0.22);
  border-radius: 999px;
  color: #284a24;
  font-size: 12px;
  padding: 9px 11px;
  text-transform: uppercase;
  width: max-content;
}

.plan-card.featured strong {
  background: var(--green);
  color: var(--black);
}

.app-shell {
  display: grid;
  gap: clamp(22px, 4vw, 56px);
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.5fr);
  min-height: 100vh;
  padding: clamp(16px, 3vw, 44px);
  position: relative;
  z-index: 1;
}

.brand-panel {
  background: var(--black);
  border-radius: var(--radius);
  color: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - clamp(32px, 6vw, 88px));
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  position: sticky;
  top: clamp(16px, 3vw, 44px);
}

.brand-panel::before {
  background:
    linear-gradient(120deg, rgba(131, 228, 86, 0.24), transparent 45%),
    repeating-linear-gradient(90deg, rgba(230, 231, 93, 0.18) 0 2px, transparent 2px 18px);
  content: "";
  inset: auto -20% -12% -20%;
  height: 44%;
  position: absolute;
  transform: rotate(-4deg);
}

.top-nav,
.logo,
.signal-board,
.phone-stage,
.device-header,
.vote-progress,
.fixture-row,
.ranking-item {
  align-items: center;
  display: flex;
}

.top-nav {
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logo {
  gap: 12px;
}

.logo span {
  align-items: center;
  background: var(--green);
  border-radius: 16px;
  color: var(--black);
  display: grid;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  height: 46px;
  place-items: center;
  width: 46px;
}

.logo strong,
.nav-pill,
.kicker,
.live-chip,
.device-header span,
.vote-progress span,
.round-action span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-pill,
.ghost-icon,
.mini-btn {
  border: 0;
  border-radius: 999px;
}

.nav-pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
  min-height: 38px;
  padding: 0 14px;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.brand-copy {
  align-self: center;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.kicker,
.live-chip,
.device-header span,
.vote-progress span {
  color: #56704c;
  letter-spacing: 0.08em;
}

.brand-copy .kicker {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", Archivo, sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.92;
  margin-bottom: 20px;
}

.brand-copy p,
.companion-card p,
.fixture-head p,
.upload-onboarding p,
.intro-card p,
.after-vote p,
.upload-success p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.brand-copy p {
  color: rgba(247, 248, 239, 0.68);
  font-size: 18px;
}

.signal-board {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--dark-line);
  border-radius: 22px;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
  position: relative;
  z-index: 1;
}

.signal-board span {
  display: grid;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}

.signal-board b {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

.signal-board span {
  color: rgba(247, 248, 239, 0.64);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-stage {
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  justify-content: center;
}

.device {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 30%),
    #11150f;
  border: 10px solid #11150f;
  border-radius: 44px;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(860px, calc(100vh - 56px));
  max-width: 456px;
  min-height: 680px;
  overflow: hidden;
  position: relative;
  width: min(100%, 456px);
}

.device::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  height: 120%;
  left: -120%;
  pointer-events: none;
  position: absolute;
  top: -10%;
  transform: rotate(12deg);
  width: 60%;
  z-index: 8;
  animation: deviceShine 7s ease-in-out infinite;
}

@keyframes deviceShine {
  0%, 42% { left: -120%; }
  58%, 100% { left: 140%; }
}

.device::before {
  background: #0c0f0b;
  border-radius: 0 0 16px 16px;
  content: "";
  height: 24px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 126px;
  z-index: 6;
}

.device-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 239, 0.88));
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
  gap: 12px;
  justify-content: space-between;
  min-height: 84px;
  padding: 24px 18px 14px;
  position: relative;
  z-index: 5;
}

.device-header div {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.device-header strong {
  font-size: 15px;
}

.ghost-icon {
  align-items: center;
  background: #eef2e7;
  color: var(--ink);
  display: grid;
  font-size: 20px;
  height: 42px;
  place-items: center;
  width: 42px;
}

.screen {
  background:
    radial-gradient(circle at 80% 0%, rgba(131, 228, 86, 0.18), transparent 18rem),
    linear-gradient(180deg, #f9faef, #eef2e6);
  display: none;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 21, 15, 0.22) transparent;
}

.screen.active {
  display: grid;
  align-content: start;
}

.intro-card,
.companion-card,
.song-form,
.upload-onboarding,
.after-vote,
.upload-success,
.classification-hero {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(24, 30, 20, 0.1);
  padding: 22px;
}

.live-chip {
  background: rgba(131, 228, 86, 0.24);
  border: 1px solid rgba(131, 228, 86, 0.54);
  border-radius: 999px;
  color: #31512a;
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
}

.intro-card h2,
.upload-onboarding h2,
.classification-hero h2,
.companion-card h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.98;
  margin-bottom: 12px;
}

.stage-path {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.stage-path span {
  background: rgba(17, 21, 15, 0.06);
  border: 1px solid rgba(17, 21, 15, 0.08);
  border-radius: 18px;
  color: #485044;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  min-height: 76px;
  padding: 10px;
}

.stage-path b {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: var(--black);
  display: grid;
  height: 26px;
  place-items: center;
  width: 26px;
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.sponsor-cta {
  margin-top: 14px;
  width: 100%;
}

.choice-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--black);
  border: 0;
  border-radius: 24px;
  color: var(--paper);
  display: grid;
  gap: 8px;
  min-height: 154px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.choice-card::after {
  background: radial-gradient(circle, rgba(131, 228, 86, 0.72), transparent 60%);
  content: "";
  height: 160px;
  position: absolute;
  right: -58px;
  top: -56px;
  width: 160px;
}

.upload-choice::after {
  background: radial-gradient(circle, rgba(230, 231, 93, 0.75), transparent 60%);
}

.choice-card:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px) scale(1.01);
}

.choice-icon {
  align-items: center;
  background: var(--green);
  border-radius: 18px;
  color: var(--black);
  display: grid;
  font-size: 22px;
  height: 50px;
  place-items: center;
  width: 50px;
  z-index: 1;
}

.choice-card strong {
  font-size: 24px;
  line-height: 1;
  max-width: 260px;
  z-index: 1;
}

.choice-card small {
  color: rgba(247, 248, 239, 0.68);
  font-size: 14px;
  line-height: 1.35;
  z-index: 1;
}

.how-strip {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.how-strip article {
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.how-strip span {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  display: grid;
  font-weight: 900;
  height: 32px;
  place-items: center;
  width: 32px;
}

.how-strip p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.how-strip b {
  color: var(--ink);
}

.vote-progress {
  justify-content: space-between;
  margin: 6px 0 14px;
}

.vote-progress strong {
  font-family: "Space Grotesk", sans-serif;
}

.swipe-help {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}

.swipe-help span {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 10px;
  text-align: center;
  text-transform: uppercase;
}

.swipe-zone {
  height: clamp(390px, 50vh, 472px);
  min-height: 390px;
  position: relative;
}

.song-card {
  background:
    radial-gradient(circle at 80% 0%, rgba(131, 228, 86, 0.14), transparent 16rem),
    #11150f;
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  color: var(--paper);
  display: grid;
  grid-template-rows: minmax(168px, 0.9fr) auto;
  inset: 0;
  height: 100%;
  overflow: hidden;
  padding: 16px;
  position: absolute;
  transform-origin: 50% 92%;
  transition: transform 260ms ease, opacity 260ms ease;
  user-select: none;
}

.song-card::selection {
  background: transparent;
}

.song-card.dragging {
  cursor: grabbing;
  transition: none;
}

.song-card.next {
  opacity: 0.5;
  transform: scale(0.94) translateY(26px);
}

.song-card::before,
.song-card::after {
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  opacity: var(--signal, 0);
  padding: 10px 14px;
  position: absolute;
  top: 28px;
  transition: opacity 120ms ease;
  z-index: 3;
}

.song-card::before {
  background: var(--green);
  color: var(--black);
  content: "SI CLASIFICA";
  right: 28px;
  transform: rotate(8deg);
}

.song-card::after {
  background: #11150f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--paper);
  content: "NO TODAVIA";
  left: 28px;
  transform: rotate(-8deg);
}

.song-card.hint-yes {
  --signal: 1;
}

.song-card.hint-no {
  --signal: 1;
}

.song-card.hint-yes::after,
.song-card.hint-no::before {
  opacity: 0;
}

.song-art {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, var(--a), var(--b));
  border-radius: 28px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.song-art::before {
  animation: pulseAura 2.8s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36), transparent 54%);
  content: "";
  height: 180px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  z-index: 1;
}

@keyframes pulseAura {
  to {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1.28);
  }
}

.song-art::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 34%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 5px, transparent 5px 10px);
  content: "";
  inset: 0;
  position: absolute;
}

.song-info {
  display: grid;
  gap: 6px;
  padding: 12px 2px 0;
}

.song-info h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 4vh, 32px);
  line-height: 0.96;
  margin-bottom: 0;
}

.classification-badge {
  align-items: center;
  background: rgba(131, 228, 86, 0.16);
  border: 1px solid rgba(131, 228, 86, 0.34);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  padding: 7px 9px;
  width: max-content;
}

.classification-badge::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.song-info p {
  color: rgba(247, 248, 239, 0.68);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
}

.song-info p:nth-of-type(2) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.song-meta span {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(247, 248, 239, 0.8);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 9px;
}

.visualizer {
  align-items: end;
  display: flex;
  gap: 4px;
  height: 28px;
  margin-top: 4px;
}

.visualizer i {
  animation: beat 720ms ease-in-out infinite alternate;
  background: var(--green);
  border-radius: 999px;
  display: block;
  width: 7px;
}

.visualizer i:nth-child(1) { height: 20px; }
.visualizer i:nth-child(2) { animation-delay: 80ms; height: 28px; }
.visualizer i:nth-child(3) { animation-delay: 130ms; height: 16px; }
.visualizer i:nth-child(4) { animation-delay: 180ms; height: 32px; }
.visualizer i:nth-child(5) { animation-delay: 230ms; height: 25px; }
.visualizer i:nth-child(6) { animation-delay: 280ms; height: 31px; }

@keyframes beat {
  to {
    transform: scaleY(0.38);
  }
}

.vote-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 0.9fr 1fr;
  margin-top: 14px;
}

.round-action {
  border: 0;
  border-radius: 24px;
  min-height: 62px;
  transition: transform 180ms ease, filter 180ms ease;
}

.round-action:hover {
  filter: brightness(1.02);
  transform: translateY(-2px);
}

.round-action.no {
  background: #11150f;
  color: var(--paper);
}

.round-action.play {
  background: #e4e9dd;
  color: var(--ink);
}

.round-action.yes {
  background: var(--green);
  color: var(--black);
}

.after-vote {
  margin-top: 12px;
  padding: 16px;
}

.classification-screen {
  gap: 12px;
}

.classification-list {
  display: grid;
  gap: 10px;
}

.classification-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto 1fr auto;
  padding: 10px;
}

.rank-number {
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.classification-row .rank-art {
  height: 48px;
  width: 48px;
}

.classification-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.classification-row strong,
.classification-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classification-row small {
  color: var(--muted);
  font-weight: 800;
}

.classification-row em {
  background: rgba(131, 228, 86, 0.24);
  border-radius: 999px;
  color: #274c22;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 8px 9px;
  text-transform: uppercase;
}

.classification-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.mini-btn {
  background: #11150f;
  color: var(--paper);
  font-weight: 900;
  min-height: 48px;
  padding: 0 18px;
}

.mini-btn.primary {
  background: var(--green);
  color: var(--black);
}

.mini-btn.full {
  width: 100%;
}

.song-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.song-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  text-transform: uppercase;
}

input,
select {
  background: #ffffff;
  border: 1px solid rgba(17, 21, 15, 0.12);
  border-radius: 16px;
  color: var(--ink);
  min-height: 50px;
  outline: none;
  padding: 0 14px;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(131, 228, 86, 0.2);
}

.upload-success {
  margin-top: 14px;
}

.upload-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.song-link-screen {
  gap: 12px;
}

.public-song {
  background:
    radial-gradient(circle at 82% 0%, rgba(131, 228, 86, 0.22), transparent 17rem),
    #11150f;
  border-radius: 32px;
  color: var(--paper);
  min-height: 100%;
  overflow: hidden;
  padding: 16px;
}

.public-cover {
  align-items: end;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, var(--a), var(--b));
  border-radius: 28px;
  display: grid;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.public-cover::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 38%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 5px, transparent 5px 10px);
  content: "";
  inset: 0;
  position: absolute;
}

.public-cover span {
  background: rgba(17, 21, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 11px;
  position: relative;
  text-transform: uppercase;
  width: max-content;
  z-index: 1;
}

.public-content {
  display: grid;
  gap: 10px;
  padding: 16px 2px 0;
}

.public-content h2 {
  color: var(--paper);
  font-size: clamp(38px, 6vh, 54px);
  line-height: 0.9;
  margin: 0;
}

.public-content p {
  color: rgba(247, 248, 239, 0.68);
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.public-score {
  align-items: end;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.public-score strong {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  line-height: 0.9;
}

.public-score span {
  color: rgba(247, 248, 239, 0.7);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-meter {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.public-meter span {
  background: linear-gradient(90deg, var(--green), var(--lime));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--w);
}

.public-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

.simple-fixture {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.fixture-row {
  background: #ffffff;
  border: 1px solid rgba(17, 21, 15, 0.08);
  border-radius: 22px;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.fixture-song {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fixture-song strong {
  font-size: 14px;
}

.fixture-song small {
  color: var(--muted);
  font-weight: 700;
}

.vs-pill {
  background: var(--black);
  border-radius: 999px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 9px;
}

.desktop-companion {
  display: grid;
  gap: 16px;
  max-width: 520px;
  min-width: 320px;
}

.companion-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.5));
  overflow: hidden;
  position: relative;
}

.companion-card::after {
  background: var(--green);
  border-radius: 999px;
  content: "";
  height: 110px;
  opacity: 0.32;
  position: absolute;
  right: -42px;
  top: -48px;
  width: 110px;
}

.companion-grid {
  display: grid;
  gap: 10px;
}

.ranking-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  gap: 12px;
  padding: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ranking-item:hover {
  box-shadow: 0 18px 44px rgba(17, 21, 15, 0.1);
  transform: translateY(-2px);
}

.rank-art {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(135deg, var(--a), var(--b));
  border-radius: 16px;
  height: 58px;
  width: 58px;
}

.ranking-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ranking-item strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item small {
  color: var(--muted);
  font-weight: 800;
}

.toast {
  background: var(--black);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  color: var(--paper);
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 13px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.song-card.swipe-yes {
  opacity: 0;
  transform: translateX(120%) rotate(15deg);
}

.song-card.swipe-no {
  opacity: 0;
  transform: translateX(-120%) rotate(-15deg);
}

@media (max-width: 1120px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card.featured {
    transform: none;
  }

  .presentation-slide {
    grid-template-columns: 1fr;
    overflow-y: auto;
    padding: 22px 0;
  }

  .slide-visual {
    min-height: 360px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    position: relative;
    top: 0;
  }

  .brand-copy {
    margin: 58px 0;
  }

  .phone-stage {
    align-items: start;
  }
}

@media (max-width: 760px) {
  body {
    background: #eef2e6;
  }

  .app-shell {
    gap: 14px;
    padding: 0;
  }

  .presentation {
    overflow-y: auto;
  }

  .presentation.active {
    display: block;
  }

  .presentation-top,
  .presentation-controls {
    gap: 10px;
  }

  .presentation-top {
    margin-bottom: 18px;
  }

  .presentation-logo strong {
    display: none;
  }

  .sponsor-top {
    display: none;
  }

  .presentation-stage {
    min-height: auto;
  }

  .presentation-slide.active {
    display: grid;
  }

  .slide-copy h2 {
    font-size: 42px;
  }

  .slide-copy p:last-child {
    font-size: 16px;
  }

  .slide-visual {
    border-radius: 30px;
    min-height: 320px;
    padding: 18px;
  }

  .hero-map,
  .split-choice,
  .yes-no-demo,
  .swipe-demo,
  .duel-demo,
  .share-demo,
  .admin-demo {
    grid-template-columns: 1fr;
  }

  .hero-map i,
  .hero-map i::before,
  .hero-map i::after {
    display: none;
  }

  .hero-map span,
  .split-choice button {
    min-height: 120px;
  }

  .mini-song-card,
  .tilted-card {
    min-height: 240px;
  }

  .bars-demo {
    min-height: 300px;
  }

  .presentation-controls {
    bottom: 0;
    flex-wrap: wrap;
    margin-top: 18px;
    position: sticky;
  }

  .deck-dots {
    order: -1;
    width: 100%;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plans-head {
    align-items: start;
  }

  .plans-panel {
    border-radius: 28px;
  }

  .brand-panel {
    border-radius: 0 0 30px 30px;
    padding: 18px;
  }

  .brand-copy {
    margin: 40px 0 22px;
  }

  h1 {
    font-size: 42px;
  }

  .signal-board {
    display: none;
  }

  .phone-stage {
    display: block;
  }

  .device {
    border: 0;
    border-radius: 30px 30px 0 0;
    box-shadow: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    max-width: none;
    min-height: 100svh;
    width: 100%;
  }

  .device::before {
    display: none;
  }

  .screen {
    min-height: calc(100svh - 84px);
    overflow-y: visible;
  }

  .desktop-companion {
    display: none;
  }
}

@media (max-width: 430px) {
  .device-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .screen {
    padding: 14px;
  }

  .song-card {
    min-height: 0;
  }

  .swipe-zone {
    height: 410px;
    min-height: 410px;
  }

  .song-info h3 {
    font-size: 27px;
  }

  .stage-path {
    grid-template-columns: 1fr;
  }

  .classification-row {
    grid-template-columns: auto auto 1fr;
  }

  .classification-row em {
    grid-column: 2 / -1;
    width: max-content;
  }

  .classification-actions {
    grid-template-columns: 1fr;
  }

  .upload-actions,
  .public-actions {
    grid-template-columns: 1fr;
  }

  .public-content h2 {
    font-size: 36px;
  }
}
