/* Vobeee – Live-Entscheidungs-App */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --border: #2a2a3a;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);
  --warning: #f59e0b;
  --option-a: #3b82f6;
  --option-b: #ec4899;
  --option-c: #8b5cf6;
  --option-d: #f97316;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --nav-height: 72px;
  --header-height: 60px;
}

html.legal-page,
html.legal-page body {
  height: auto;
  min-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

html.legal-page body {
  padding: 24px;
  padding-bottom: 48px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

html.legal-page h1,
html.legal-page h2 {
  color: #a78bfa;
}

html.legal-page a {
  color: #a78bfa;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

input, textarea, select, [contenteditable] {
  user-select: text;
  -webkit-user-select: text;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.35));
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-id-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: default;
}

.points-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--warning);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.icon-btn {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Main */
main {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.view {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(var(--nav-height) + 16px);
  animation: fadeIn 0.3s ease;
}

.view.active { display: flex; }

.view-header, .feed-header {
  margin-bottom: 20px;
}

.view-header h2, .feed-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Swipe Feed */
.swipe-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

.swipe-card {
  position: absolute;
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  cursor: grab;
  touch-action: none;
  transition: transform 0.1s ease, opacity 0.3s ease;
  will-change: transform;
}

.swipe-card.premium {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px rgba(124, 58, 237, 0.1);
  animation: premiumPulse 2s ease-in-out infinite;
}

.swipe-card.turbo {
  border-color: var(--warning);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.swipe-card.turbo::before {
  content: '🚀 TURBO';
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--warning);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.card-question {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: center;
}

.card-options {
  display: flex;
  gap: 12px;
}

.card-option {
  flex: 1;
  padding: 16px 12px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-option.a {
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid var(--option-a);
  color: var(--option-a);
}

.card-option.b {
  background: rgba(236, 72, 153, 0.15);
  border: 2px solid var(--option-b);
  color: var(--option-b);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-votes {
  font-family: var(--mono);
  color: var(--accent);
}

.swipe-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  border-radius: 12px;
  border: 3px solid;
}

.swipe-overlay.left {
  left: 20px;
  color: var(--option-a);
  border-color: var(--option-a);
}

.swipe-overlay.right {
  right: 20px;
  color: var(--option-b);
  border-color: var(--option-b);
}

.swipe-hints {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hint-center {
  font-size: 0.7rem;
  opacity: 0.6;
}

.vote-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.vote-btn:active,
.vote-btn.voted-flash {
  transform: scale(0.97);
}

.vote-btn.voted-selected {
  box-shadow: 0 0 0 2px var(--accent);
}

.vote-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.vote-btn.voted-selected:disabled {
  opacity: 1;
}

.swipe-card.showing-results .swipe-overlay {
  display: none;
}

.vote-results {
  margin-top: 8px;
}

.vote-results .live-bars {
  margin: 0 0 16px;
}

.vote-results .btn-full {
  width: 100%;
}

.live-bar-row.chosen .live-bar-pct {
  color: var(--accent);
}

.live-bar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 6px;
}

.live-bar-letter.a { background: rgba(59, 130, 246, 0.2); color: var(--option-a); }
.live-bar-letter.b { background: rgba(236, 72, 153, 0.2); color: var(--option-b); }
.live-bar-letter.c { background: rgba(139, 92, 246, 0.2); color: var(--option-c); }
.live-bar-letter.d { background: rgba(249, 115, 22, 0.2); color: var(--option-d); }

.vote-btn-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}

.vote-btn-a { border-color: var(--option-a); }
.vote-btn-a .vote-btn-letter { background: rgba(59, 130, 246, 0.2); color: var(--option-a); }
.vote-btn-a:hover { border-color: var(--option-a); background: rgba(59, 130, 246, 0.08); }

.vote-btn-b { border-color: var(--option-b); }
.vote-btn-b .vote-btn-letter { background: rgba(236, 72, 153, 0.2); color: var(--option-b); }
.vote-btn-b:hover { border-color: var(--option-b); background: rgba(236, 72, 153, 0.08); }

.vote-btn-c { border-color: var(--option-c); }
.vote-btn-c .vote-btn-letter { background: rgba(139, 92, 246, 0.2); color: var(--option-c); }
.vote-btn-c:hover { border-color: var(--option-c); background: rgba(139, 92, 246, 0.08); }

.vote-btn-d { border-color: var(--option-d); }
.vote-btn-d .vote-btn-letter { background: rgba(249, 115, 22, 0.2); color: var(--option-d); }
.vote-btn-d:hover { border-color: var(--option-d); background: rgba(249, 115, 22, 0.08); }

.vote-btn-text {
  flex: 1;
  line-height: 1.3;
}

.hint-left { color: var(--option-a); }
.hint-right { color: var(--option-b); }

/* Live Bars */
.live-bars {
  margin: 16px 0;
}

.live-bar-row {
  margin-bottom: 12px;
}

.live-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.live-bar-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-bar-pct {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.3s;
}

.live-bar-track {
  height: 12px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.live-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.live-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: shimmer 1.5s infinite;
}

.live-bar-fill.a { background: linear-gradient(90deg, var(--option-a), #60a5fa); }
.live-bar-fill.b { background: linear-gradient(90deg, var(--option-b), #f472b6); }
.live-bar-fill.c { background: linear-gradient(90deg, var(--option-c), #a78bfa); }
.live-bar-fill.d { background: linear-gradient(90deg, var(--option-d), #fb923c); }

.live-total {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.live-total span {
  color: var(--accent);
  font-weight: 700;
}

/* Question Card (My Questions) */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.question-card.expired {
  border-color: var(--warning);
}

.question-card.has-outcome {
  border-color: var(--success);
}

.qc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.qc-text {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.qc-timer {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  white-space: nowrap;
}

.qc-timer.urgent {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.15);
  animation: pulse 1s infinite;
}

.justifications {
  margin-top: 16px;
  max-height: 120px;
  overflow-y: auto;
}

.justification {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  animation: slideIn 0.3s ease;
}

.justification-option {
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.justification-option.a { background: rgba(59,130,246,0.2); color: var(--option-a); }
.justification-option.b { background: rgba(236,72,153,0.2); color: var(--option-b); }

.justification-text {
  color: var(--text-muted);
  font-style: italic;
}

.outcome-box {
  margin-top: 16px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: 12px;
}

.outcome-box strong { color: var(--success); }

/* Create Form */
.create-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-field.locked {
  position: relative;
  opacity: 0.6;
}

.option-field.unlocked { opacity: 1; }

.premium-tag {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.unlock-btn {
  background: transparent;
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 4px;
}

.premium-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.premium-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-card {
  cursor: pointer;
}

.premium-card input { display: none; }

.premium-card-content {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.premium-card input:checked + .premium-card-content {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.premium-emoji { font-size: 1.5rem; }

.premium-card-content strong {
  display: block;
  font-size: 0.95rem;
}

.premium-card-content .price {
  color: var(--warning);
  font-family: var(--mono);
  font-size: 0.85rem;
  margin-left: 8px;
}

.premium-card-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-large {
  padding: 16px 24px;
  font-size: 1rem;
  width: 100%;
}

/* Profile */
.profile-hero {
  text-align: center;
  padding: 24px 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 12px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warning);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.leaderboard, .vote-history {
  margin-top: 24px;
}

.leaderboard h3, .vote-history h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.leaderboard ol {
  list-style: none;
}

.leaderboard li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.leaderboard .rank {
  font-family: var(--mono);
  font-weight: 700;
  width: 24px;
  color: var(--text-muted);
}

.leaderboard .rank.gold { color: #fbbf24; }
.leaderboard .rank.silver { color: #94a3b8; }
.leaderboard .rank.bronze { color: #d97706; }

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.history-item-guest {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.history-q { font-weight: 600; line-height: 1.35; }
.history-opt { color: var(--text-muted); font-size: 0.8rem; }

.history-result.win { color: var(--success); }
.history-result.lose { color: var(--danger); }

/* Bottom Nav */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font);
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.nav-item.active { color: var(--accent); }
.nav-icon { font-size: 1.3rem; }

.justification-prompt {
  margin: 16px 0;
  text-align: left;
}

.justification-prompt p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.justification-prompt input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-icon { font-size: 3rem; margin-bottom: 12px; }

.payment-price {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--warning);
  margin: 16px 0;
}

.payment-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.outcome-modal { text-align: left; }
.outcome-prompt { color: var(--text-muted); font-size: 0.9rem; margin: 12px 0 20px; }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 0.9rem;
  z-index: 400;
  animation: slideUp 0.3s ease;
  max-width: 90%;
  text-align: center;
}

/* Live Ticker */
.live-ticker {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--success);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); margin-bottom: 16px; }

.empty-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
}

.how-to-steps {
  text-align: left;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-to-steps .step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.how-to-steps .step span {
  background: var(--accent);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

.nav-item { position: relative; }

.nav-badge:empty { display: none; }

.outcome-question {
  font-weight: 600;
  font-size: 1rem;
  margin: 12px 0;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: 12px;
}

.outcome-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outcome-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.outcome-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.outcome-choice input { accent-color: var(--accent); }

.onboarding-modal { text-align: left; }

.onboarding-sub {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.onboarding-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding-step strong { display: block; margin-bottom: 2px; }

.swipe-card {
  user-select: none;
}

.onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Emoji explosion for premium */
.emoji-explosion {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 250;
}

.emoji-particle {
  position: absolute;
  font-size: 1.5rem;
  animation: explode 1s ease-out forwards;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes premiumPulse {
  0%, 100% { box-shadow: 0 0 30px var(--accent-glow); }
  50% { box-shadow: 0 0 50px var(--accent-glow), 0 0 80px rgba(124, 58, 237, 0.2); }
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes explode {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.5); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Desktop hint */
@media (min-width: 481px) {
  body {
    background: #050508;
  }
  #app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* Auth & VOTE-ID */
.auth-modal { text-align: left; }
.auth-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.auth-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,0.1); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form[hidden] { display: none !important; }
.auth-guest-btn { width: 100%; margin-top: 16px; }
.btn-ghost {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.vote-id-info { font-size: 0.8rem; color: var(--text-muted); }
.vote-id-info code { color: var(--warning); font-family: var(--mono); }
.name-hint { font-size: 0.75rem; margin-top: 4px; }
.name-hint.ok { color: var(--success, #22c55e); }
.name-hint.err { color: var(--danger); }
.btn-full { width: 100%; }
.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: underline;
}
.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
}
.btn-danger:hover { background: #b91c1c; }
.account-actions {
  margin: 24px 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.account-actions h3 { font-size: 0.95rem; margin-bottom: 12px; }
.account-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.auth-error { color: var(--danger); font-size: 0.85rem; margin-top: 12px; text-align: center; }

.vote-id-card {
  margin: 16px auto;
  padding: 16px;
  max-width: 300px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--accent);
  border-radius: 16px;
  text-align: center;
}
.vote-id-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.vote-id-value {
  display: block;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warning);
  letter-spacing: 0.05em;
}
.vote-id-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid var(--warning);
  font-size: 0.85rem;
}

.verify-banner-text { flex: 1; min-width: 0; }
.verify-banner-text p { margin: 0; }
.verify-direct-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.verify-direct-link:hover { text-decoration: underline; }

.verify-banner[hidden] { display: none !important; }

.btn-small { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }

.legal-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px;
  font-size: 0.7rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.legal-footer a { color: var(--text-muted); text-decoration: none; }
.legal-footer a:hover { color: var(--accent); }

#app { padding-bottom: 0; }

.ad-slot {
  margin: 12px 16px 0;
  padding: 12px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ad-placeholder {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 24px));
  z-index: 600;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.78rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p { margin: 0; color: var(--text-muted); line-height: 1.45; flex: 1; }
.cookie-banner a { color: var(--accent); }
.cookie-banner .btn { flex-shrink: 0; margin-top: 2px; }

.guest-profile-section {
  max-width: 320px;
  margin: 16px auto 0;
  text-align: left;
}

.guest-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.recovery-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  text-align: center;
}

.recovery-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.recovery-code {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.live-total-muted {
  color: var(--text-muted);
  font-size: 0.75rem;
}
