/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C8B080;
  --gold-light: #DCC898;
  --gold-bright: #E8D8B0;
  --gold-dim: #9A8A60;
  --teal: #5BAA8A;
  --teal-light: #7CC4A8;
  --void: #050504;
  --void-mid: #0A0908;
  --void-card: #0E0D0A;
  --surface: #141210;
  --surface-light: #1C1A16;
  --text: #E8E4DA;
  --text-dim: #A09880;
  --white: #F5F0E8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 32px rgba(200,176,128,0.05);
  --glow-sm: 0 0 12px rgba(200,176,128,0.10);
  --glow-lg: 0 0 40px rgba(200,176,128,0.06);
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--void);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 520px;
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== UTILITIES ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.3s, opacity 0.15s;
  min-height: 48px;
  min-width: 48px;
  text-align: center;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(232,213,168,0.15);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(232,213,168,0.25);
}

.btn-accent {
  background: rgba(232,213,168,0.08);
  color: var(--gold);
  border: 1px solid rgba(232,213,168,0.15);
  backdrop-filter: blur(8px);
}
.btn-accent:hover {
  background: rgba(232,213,168,0.14);
  box-shadow: var(--glow-sm);
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-dim);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 1rem;
}

/* Blackhole background — constrained to content column */
.bg-blackhole {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/horizon.jpg?v=1') center top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 75vh;
  min-height: 75dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.hero-content {
  text-align: center;
}

/* ===== HERO TITLE ===== */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 40px rgba(232,160,80,0.15);
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: var(--gold-light);
  margin-top: 0.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

/* ===== CONTENT UPPER (desc + vote + cta + cities) ===== */
.content-upper {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  width: 90%;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

/* ===== EVENT DESCRIPTION ===== */
.event-desc {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

/* ===== EVENT CTA ===== */
.event-cta {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ===== CITIES BAR ===== */
.cities-bar {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.vote-box {
  position: relative;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232,213,168,0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 0 30px rgba(232,160,80,0.06);
}

.results-question {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.vote-box-count {
  display: block;
  text-align: right;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.45;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ===== RESULT BARS ===== */
.result-bars {
  margin-bottom: 0.25rem;
}
.bar-group {
  margin-bottom: 0.6rem;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}
.bar-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(240,237,229,0.85);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.bar-pct {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.bar-track {
  height: 12px;
  background: rgba(232,213,168,0.05);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(232,213,168,0.06);
}
.bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-fill-yes {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  box-shadow: 0 0 12px rgba(232,213,168,0.25);
}
.bar-fill-no {
  background: rgba(255,255,255,0.08);
}

/* ===== QR Vote Buttons ===== */
.qr-vote {
  margin-bottom: 1rem;
  text-align: center;
}
.qr-vote-prompt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.qr-vote-buttons {
  display: flex;
  gap: 0.6rem;
}
.btn-vote {
  flex: 1;
  padding: 0.85rem 0.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.3s;
  min-height: 48px;
}
.btn-vote:active { transform: scale(0.96); }
.btn-vote:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-vote-yes {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void);
  box-shadow: 0 0 16px rgba(232,213,168,0.2);
}
.btn-vote-no {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

/* QR Confirm */
.qr-confirm {
  background: rgba(232,213,168,0.05);
  border: 1px solid rgba(232,213,168,0.12);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.qr-confirm-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(232,213,168,0.4);
}
.qr-confirm-text {
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== GIVEAWAY ===== */
.giveaway {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  text-align: center;
  border-top: none;
}
.giveaway .section-title {
  color: var(--gold-light);
}
.title-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.title-link:hover {
  color: var(--gold-bright);
}
.giveaway-subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* How to Enter */
.rules-title-inline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.rules-subtitle {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.entry-rules {
  text-align: left;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;
  counter-reset: rules;
}
.entry-rules li {
  counter-increment: rules;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  padding-left: 2rem;
}
.entry-rules li::before {
  content: counter(rules);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--gold-dim);
  color: var(--void);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(232,213,168,0.25);
}
.entry-rules a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bonus entries table */
.bonus-entries-card {
  background: rgba(232,213,168,0.03);
  border: 1px solid rgba(232,213,168,0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.bonus-entries-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.bonus-table {
  width: 100%;
  border-collapse: collapse;
}
.bonus-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.bonus-table tr:last-child {
  border-bottom: none;
}
.bonus-table td {
  padding: 0.6rem 0.4rem;
  vertical-align: middle;
}
.bonus-action {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}
.bonus-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: right;
  white-space: nowrap;
}
.bonus-value-accent {
  color: var(--text-dim);
}
.bonus-value-glow {
  color: var(--text-dim);
}
.bonus-stack-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Countdown */
.countdown-block {
  margin-bottom: 2rem;
}
.countdown-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-unit span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 16px rgba(232,213,168,0.3);
}
.cd-unit small {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.share-tools {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.share-btn svg { flex-shrink: 0; }

.giveaway .link-btn {
  color: var(--text-dim);
  display: block;
  margin: 1rem auto 0;
}

/* ===== RULES MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  color: var(--text);
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(232,213,168,0.08);
  box-shadow: var(--glow-lg);
}
.modal h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.modal ul {
  padding-left: 1.25rem;
}
.modal li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dim);
  line-height: 1;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HIGHLIGHTS ===== */
.highlights {
  text-align: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.photo-scroll::-webkit-scrollbar { display: none; }
.photo-card {
  flex: 0 0 240px;
  position: relative;
  scroll-snap-align: start;
}
.photo-item {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232,213,168,0.1);
}
.photo-location {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.brand-blurb {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dim);
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: none;
}
.footer-social {
  margin-bottom: 1rem;
}
.footer-social a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--gold);
}
.footer-legal {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-brand {
  font-size: 0.75rem;
}
.footer-brand strong {
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .share-tools { flex-direction: row; justify-content: center; }
}
