:root {
  color-scheme: light;
  --bg: #f7f2e8;
  --bg-accent: #fff8df;
  --ink: #2d2142;
  --ink-soft: #5e5572;
  --card: rgba(255, 255, 255, 0.76);
  --card-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(45, 33, 66, 0.12);
  --brand: #ff6b6b;
  --brand-strong: #ff8e3c;
  --success: #2d9d78;
  --warning: #d97706;
  --muted: #7a708f;
  --shadow: 0 24px 60px rgba(63, 46, 86, 0.16);
  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;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 107, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 200, 87, 0.3), transparent 28%),
    linear-gradient(160deg, var(--bg), #efe4ff 55%, #e0f7f1 100%);
}

body::before {
  content: "✈️  🧳  🏖️  🏔️  🍹";
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: center;
  letter-spacing: 0.4rem;
  opacity: 0.18;
  pointer-events: none;
}

.page-shell {
  padding: 1.25rem;
}

.panel {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero h1,
.section-heading h2,
.section-heading h3,
.mini-panel h2,
.mini-panel h3,
.option-admin-card h4 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.75rem);
  max-width: 12ch;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  color: var(--brand);
}

.lede,
.section-heading p,
.muted-copy,
.field span,
.banner,
.notes-grid p,
.notes-grid li,
.empty-state {
  color: var(--ink-soft);
}

.stack-gap {
  display: grid;
  gap: 1rem;
}

.stack-gap-large {
  display: grid;
  gap: 1.5rem;
}

.stack-gap-tight {
  display: grid;
  gap: 0.4rem;
}

.banner,
.mini-panel,
.option-card,
.option-admin-card {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--card);
}

.banner {
  padding: 0.95rem 1.1rem;
  font-weight: 600;
}

.banner-success {
  color: #14532d;
  background: rgba(153, 246, 228, 0.8);
}

.banner-warning {
  color: #7c2d12;
  background: rgba(254, 215, 170, 0.85);
}

.banner-muted {
  background: rgba(255, 255, 255, 0.75);
}

.options-grid,
.notes-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.options-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.notes-grid,
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.option-card,
.option-admin-card,
.mini-panel {
  padding: 1rem;
}

.option-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.option-card:hover {
  transform: translateY(-2px) rotate(-0.2deg);
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: 0 14px 24px rgba(255, 107, 107, 0.12);
}

.option-card input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--brand);
}

.option-copy {
  display: grid;
  gap: 0.3rem;
}

.option-title,
.vote-tally,
.stat-value {
  font-weight: 800;
}

.option-description {
  color: var(--ink-soft);
}

.action-button,
.ghost-button,
input,
textarea {
  font: inherit;
}

.action-button,
.ghost-button {
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.action-button {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 30px rgba(255, 107, 107, 0.28);
}

.action-button:disabled,
.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost-button {
  color: var(--ink);
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 0.45rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(45, 33, 66, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.toolbar {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-live {
  color: #14532d;
  background: rgba(153, 246, 228, 0.85);
}

.status-paused {
  color: #7c2d12;
  background: rgba(254, 215, 170, 0.85);
}

.stat-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.stat-value {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
}

a {
  color: inherit;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.is-disabled {
  opacity: 0.78;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0.75rem;
  }

  .panel {
    border-radius: 1.4rem;
    padding: 1rem;
  }

  .toolbar,
  .option-admin-card {
    flex-direction: column;
    align-items: stretch;
  }
}
