:root {
  color-scheme: light;
  --ink: #20182b;
  --muted: #6c6179;
  --paper: #fffaf2;
  --cream: #fff2d8;
  --pink: #ff5d8f;
  --hot: #ff3b6f;
  --orange: #ff9a3d;
  --yellow: #ffd166;
  --mint: #5ce1b8;
  --teal: #18a999;
  --blue: #4d96ff;
  --violet: #8f5cff;
  --line: rgba(32, 24, 43, 0.13);
  --shadow: 0 22px 55px rgba(76, 45, 94, 0.22);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 93, 143, 0.94), rgba(255, 209, 102, 0.88) 38%, rgba(92, 225, 184, 0.84)),
    url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=2400&q=82")
      center/cover fixed;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.stage {
  display: grid;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.hero,
.mixer,
.results {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 18px;
  align-items: stretch;
  min-height: 360px;
  background: rgba(255, 250, 242, 0.82);
  overflow: hidden;
}

.hero-copy {
  display: grid;
  align-content: end;
  padding: 34px;
}

.hero-ticket {
  display: grid;
  align-content: space-between;
  gap: 18px;
  background: linear-gradient(160deg, #20182b, #5a2c83 55%, #ff5d8f);
  color: white;
  margin: 14px;
  border-radius: 16px;
  padding: 26px;
}

.ticket-label,
.eyebrow,
.label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow,
.label {
  color: #7d2cff;
}

.ticket-label {
  color: rgba(255, 255, 255, 0.78);
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
}

.hero-copy p:last-child,
.status,
.privacy-note,
.winner-panel p:last-child,
.answer-card p,
.mini-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.46;
}

.hero-copy p:last-child {
  max-width: 47rem;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.hero-ticket h2 {
  max-width: 10ch;
  font-size: 2.15rem;
}

.recipe-chips,
.stat-row,
.card-links,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recipe-chips span,
.stat-row span,
.pill {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 900;
}

.mixer {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
  background: rgba(255, 250, 242, 0.92);
  padding: 16px;
}

.launch-card,
.control-band,
.dial-card,
.winner-panel,
.plans-section,
.backup-section,
.saved-section,
.scoreboard {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.launch-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

label {
  font-size: 0.86rem;
  font-weight: 950;
}

.location-row {
  display: grid;
  gap: 9px;
}

.privacy-note {
  margin: 0;
  font-size: 0.8rem;
}

.privacy-note a {
  color: #6e2cff;
  font-weight: 900;
}

input[type="search"] {
  width: 100%;
  min-height: 50px;
  border: 2px solid rgba(32, 24, 43, 0.14);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--hot);
}

input:focus,
button:focus-visible {
  outline: 3px solid rgba(77, 150, 255, 0.32);
  outline-offset: 2px;
}

.launch-actions {
  display: grid;
  gap: 12px;
}

.spin-button,
.secondary-button,
.small-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font-weight: 950;
}

.spin-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.spin-button {
  background: linear-gradient(135deg, var(--hot), var(--orange), var(--yellow));
  color: #231126;
  box-shadow: 0 14px 28px rgba(255, 59, 111, 0.28);
}

.secondary-button {
  background: #20182b;
  color: white;
}

.small-button {
  min-height: 38px;
  background: rgba(32, 24, 43, 0.08);
  color: var(--ink);
  padding: 0 12px;
}

.status {
  min-height: 44px;
  margin: 0;
}

.control-band {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.color-pop {
  background: linear-gradient(135deg, rgba(255, 93, 143, 0.15), rgba(92, 225, 184, 0.2));
}

.band-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card-row.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.answer-card,
.bubble-option,
.segment-button {
  border: 2px solid transparent;
  color: var(--ink);
  text-align: left;
}

.answer-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border-radius: 14px;
  background: var(--cream);
  padding: 14px;
}

.answer-card:nth-child(2n) {
  background: #e6fbf3;
}

.answer-card:nth-child(3n) {
  background: #f0e8ff;
}

.answer-card strong,
.bubble-option,
.segment-button {
  font-weight: 950;
}

.answer-card p {
  margin: 0;
  font-size: 0.9rem;
}

.answer-card:hover,
.answer-card.active,
.bubble-option:hover,
.bubble-option.active,
.segment-button.active {
  border-color: var(--hot);
  transform: translateY(-2px);
  box-shadow: 0 13px 24px rgba(255, 93, 143, 0.18);
}

.bubble-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bubble-option {
  min-height: 44px;
  border-radius: 999px;
  background: white;
  padding: 10px 14px;
}

.dial-panel {
  display: grid;
  grid-column: 2;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dial-card {
  padding: 16px;
}

.dial-readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 900;
}

.dial-readout strong {
  color: var(--ink);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segment-button {
  min-height: 44px;
  border-radius: 12px;
  background: #fff2d8;
  text-align: center;
}

.results {
  display: grid;
  gap: 16px;
  background: rgba(255, 250, 242, 0.93);
  padding: 16px;
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(105px, auto);
  gap: 14px;
  padding: 16px;
}

.scoreboard strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr);
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #20182b, #483078);
  color: white;
  padding: 20px;
}

.winner-panel .label {
  color: var(--yellow);
}

.winner-panel p:last-child {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0;
}

.stat-row span {
  display: grid;
  min-width: 98px;
}

.stat-row strong {
  font-size: 1rem;
}

.plans-section,
.backup-section,
.saved-section {
  padding: 18px;
}

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

.count {
  border-radius: 999px;
  background: #20182b;
  color: white;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 950;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.plan-card {
  display: grid;
  gap: 14px;
  border: 2px solid rgba(32, 24, 43, 0.1);
  border-radius: 16px;
  background: white;
  padding: 18px;
  box-shadow: 0 14px 26px rgba(32, 24, 43, 0.08);
}

.plan-card.featured {
  border-color: var(--hot);
  background: linear-gradient(180deg, #fff, #fff2d8);
}

.plan-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--hot);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}

.plan-summary,
.place-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.plan-steps {
  display: grid;
  gap: 10px;
}

.plan-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  border-radius: 12px;
  background: rgba(77, 150, 255, 0.1);
  padding: 12px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 950;
}

.pill {
  background: rgba(32, 24, 43, 0.08);
  color: var(--ink);
}

.pill.rose {
  background: rgba(255, 93, 143, 0.15);
}

.pill.gold {
  background: rgba(255, 209, 102, 0.32);
}

.pill.sage {
  background: rgba(92, 225, 184, 0.24);
}

.map-link {
  color: #6e2cff;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

.card-action {
  justify-self: start;
}

.map-link:hover {
  text-decoration: underline;
}

.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.mini-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 14px;
}

.mini-card {
  display: grid;
  gap: 7px;
}

.mini-card p,
.empty-state p {
  margin: 0;
}

@media (max-width: 1000px) {
  body {
    background-attachment: scroll;
  }

  .hero,
  .mixer,
  .dial-panel,
  .winner-panel {
    grid-template-columns: 1fr;
  }

  .dial-panel {
    grid-column: auto;
  }

  h1 {
    font-size: 4rem;
  }
}

@media (max-width: 680px) {
  .stage {
    padding: 10px;
  }

  .hero-copy,
  .plans-section,
  .backup-section {
    padding: 18px;
  }

.card-row,
  .card-row.compact,
  .segmented,
  .scoreboard,
  .backup-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }

  .scoreboard strong {
    white-space: normal;
  }
}
