/* ============================================================
   WB VOTE LIVE — style.css
   Mobile-first, dark editorial aesthetic
   OneTab Media Network
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg:          #07080d;
  --bg-card:     #10121a;
  --bg-card2:    #181b27;
  --border:      rgba(255,255,255,0.07);
  --accent-gold: #FFD700;
  --accent-teal: #16C79A;
  --accent-red:  #FF4C60;
  --accent-blue: #3B7BFF;
  --accent-oran: #FF8C42;
  --text-primary:#F0F2FF;
  --text-muted:  #7A7F9A;
  --text-dim:    #3D4060;
  --font-head:   'Bebas Neue', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-beng:   'Noto Sans Bengali', sans-serif;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 40px rgba(0,0,0,0.6);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);

  /* Party colors (extendable) */
  --col-tmc:   #1E90FF;
  --col-bjp:   #FF6B00;
  --col-inc:   #19A84C;
  --col-cpim:  #EE1C25;
  --col-others:#9B59B6;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Loader ──────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }

.loader-emblem {
  font-size: 64px;
  display: block;
  animation: floatBob 2s ease-in-out infinite;
}

.loader-bars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 18px 0 14px;
}
.loader-bars span {
  width: 6px;
  height: 36px;
  background: var(--c);
  border-radius: 4px;
  animation: barPulse 1s ease-in-out infinite;
}
.loader-bars span:nth-child(2) { animation-delay: .15s; }
.loader-bars span:nth-child(3) { animation-delay: .3s; }
.loader-bars span:nth-child(4) { animation-delay: .45s; }

.loader-text {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Header ──────────────────────────────────────────────── */
#main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,13,0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon { font-size: 28px; }

.brand-title {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--accent-gold);
}

.brand-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,76,96,0.15);
  border: 1px solid rgba(255,76,96,0.35);
  color: var(--accent-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulseDot 1.4s ease-in-out infinite;
}

.refresh-timer {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color var(--transition);
}
.refresh-timer:hover { color: var(--accent-teal); }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker-wrap {
  display: flex;
  align-items: center;
  background: var(--accent-red);
  overflow: hidden;
  height: 30px;
}

.ticker-label {
  flex-shrink: 0;
  background: #fff;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  white-space: nowrap;
  animation: tickerMove 30s linear infinite;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-left: 24px;
}

/* ── Section Base ────────────────────────────────────────── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.label-icon { font-size: 16px; }

/* Search inside section label */
#search-input {
  margin-left: auto;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  width: 180px;
  transition: border-color var(--transition), width var(--transition);
}
#search-input:focus {
  border-color: var(--accent-teal);
  width: 220px;
}
#search-input::placeholder { color: var(--text-dim); }

/* ── Local Card ──────────────────────────────────────────── */
.local-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient glow */
.local-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(22,199,154,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.local-card-top {
  margin-bottom: 16px;
}

.local-const-name {
  font-family: var(--font-head);
  font-size: 36px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--accent-gold);
}

.local-district {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Candidate rows */
.candidate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  animation: fadeSlideIn 0.5s ease both;
}
.candidate-row:last-child { border-bottom: none; }

.candidate-rank {
  font-family: var(--font-head);
  font-size: 28px;
  width: 36px;
  text-align: center;
  color: var(--text-dim);
  flex-shrink: 0;
}
.candidate-rank.rank-1 { color: var(--accent-gold); }
.candidate-rank.rank-2 { color: #C0C0C0; }

.candidate-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-card2);
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.candidate-info { flex: 1; min-width: 0; }

.candidate-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-party {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.candidate-votes {
  text-align: right;
  flex-shrink: 0;
}

.votes-count {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1;
  color: var(--text-primary);
}

.votes-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Vote bar */
.vote-bar-wrap {
  margin-top: 10px;
  background: var(--bg-card2);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}

.vote-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

.local-status-bar { margin-top: 14px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(22,199,154,0.15);
  border: 1px solid rgba(22,199,154,0.35);
  color: var(--accent-teal);
}

/* ── Scoreboard ──────────────────────────────────────────── */
.scoreboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.party-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  animation: fadeSlideIn 0.5s ease both;
  transition: transform var(--transition), box-shadow var(--transition);
}
.party-card:active { transform: scale(0.99); }

/* Left accent stripe */
.party-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--party-color, var(--text-muted));
  border-radius: var(--radius) 0 0 var(--radius);
}

.party-logo-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card2);
  border-radius: 10px;
  overflow: hidden;
}

.party-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.party-meta { flex: 1; min-width: 0; }

.party-abbr {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--party-color, var(--text-primary));
  line-height: 1;
}

.party-fullname {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.party-stats { text-align: right; }

.seats-won {
  font-family: var(--font-head);
  font-size: 38px;
  line-height: 1;
  color: var(--party-color, var(--text-primary));
}

.seats-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seats-leading {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.seats-leading strong { color: var(--accent-gold); }

/* Party progress bar inside card */
.party-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bg-card2);
}
.party-progress-fill {
  height: 100%;
  background: var(--party-color, var(--text-muted));
  transition: width 1.8s cubic-bezier(0.4,0,0.2,1);
  opacity: 0.6;
}

/* ── Majority Bar ────────────────────────────────────────── */
.majority-track {
  margin: 20px 0 14px;
  position: relative;
}

.majority-bar {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card2);
}

.majority-seg {
  height: 100%;
  transition: width 1.8s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.majority-line {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
.majority-line span {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card2);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px dashed var(--border);
}

/* ── Summary Chips ───────────────────────────────────────── */
.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  animation: fadeSlideIn 0.5s ease both;
}

.chip-icon { font-size: 16px; }
.chip-val  { font-family: var(--font-head); font-size: 18px; color: var(--accent-gold); }
.chip-lab  { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.skeleton-chip {
  width: 100px;
  height: 38px;
  border-radius: 20px;
}

.last-updated {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ── Table ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 540px;
}

.results-table thead th {
  background: var(--bg-card2);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.results-table tbody tr:hover { background: var(--bg-card2); }
.results-table tbody tr:last-child { border-bottom: none; }

.results-table td {
  padding: 11px 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

.tbl-const { font-weight: 500; }
.tbl-party { color: var(--text-muted); font-size: 12px; }
.tbl-votes { font-variant-numeric: tabular-nums; }
.tbl-margin { font-size: 12px; color: var(--accent-gold); }

.tbl-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.status-won     { background:rgba(22,199,154,.15); color:var(--accent-teal); }
.status-leading { background:rgba(59,123,255,.15); color:var(--accent-blue); }
.status-trailing{ background:rgba(255,76,96,.10);  color:var(--accent-red); }

/* Party color dot */
.party-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* ── Comments ────────────────────────────────────────────── */
.leaderboard-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.leaderboard-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--accent-gold);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeSlideIn 0.4s ease both;
}

.lb-rank { font-size: 20px; width: 28px; text-align: center; flex-shrink:0; }
.lb-name { flex: 1; font-size: 14px; font-weight: 500; }
.lb-loc  { font-size: 11px; color: var(--text-muted); }
.lb-score { font-family: var(--font-head); font-size: 20px; color: var(--accent-gold); }
.lb-badge { font-size: 16px; }

.comment-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#comment-name {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
#comment-name:focus { border-color: var(--accent-teal); }

.comment-location-tag {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

#comment-text {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  outline: none;
  transition: border-color var(--transition);
}
#comment-text:focus { border-color: var(--accent-teal); }

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.char-counter {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.btn-comment {
  background: var(--accent-teal);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}
.btn-comment:hover  { background: #12a07c; }
.btn-comment:active { transform: scale(0.97); }

.comment-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  animation: fadeSlideIn 0.4s ease both;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
}

.comment-loc {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-time { font-size: 11px; color: var(--text-dim); }

.comment-body {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.comment-likes {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-like {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-like:hover { border-color: var(--accent-red); color: var(--accent-red); }
.btn-like.liked  { background: rgba(255,76,96,.12); border-color: var(--accent-red); color: var(--accent-red); }

/* ── FAB Share Button ────────────────────────────────────── */
.fab-share {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 200;
  background: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(255,215,0,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fabPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}
.fab-share:hover  { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(255,215,0,0.45); }
.fab-share:active { transform: scale(0.97); }

.fab-icon { font-size: 18px; font-style: normal; }

/* ── Promo Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px 24px 16px 16px;
  padding: 32px 24px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
  transform: translateY(60px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.show .modal-box { transform: translateY(0); }

.modal-emoji { font-size: 48px; margin-bottom: 14px; }

.modal-title {
  font-family: var(--font-head);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.modal-body strong { color: var(--text-primary); }

.modal-cta {
  display: block;
  background: var(--accent-gold);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 12px;
}
.modal-cta:hover { background: #e6c200; transform: translateY(-2px); }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton-block {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border: 1px solid var(--border);
}
.skeleton-wrap { opacity: 0.7; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1;   }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fabPop {
  from { opacity: 0; transform: scale(0.5) translateY(30px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

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

/* ── Desktop Enhancements ────────────────────────────────── */
@media (min-width: 640px) {
  .local-const-name { font-size: 48px; }
  .scoreboard { flex-direction: row; flex-wrap: wrap; }
  .party-card { flex: 1; min-width: 200px; }
  .modal-overlay { align-items: center; }
  .modal-box { border-radius: 24px; }
  .fab-share { bottom: 32px; right: 32px; }
}

@media (min-width: 900px) {
  .section { padding: 28px 24px; }
  #search-input { width: 220px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
