@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
  --bg-deep: #0b0d1a;
  --bg-glow-1: #4b1cff;
  --bg-glow-2: #ff2e88;
  --accent: #7c4dff;
  --accent-2: #ff5da2;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --text-soft: rgba(255, 255, 255, 0.72);
}

body.hide-real-cursor,
body.hide-real-cursor * {
  cursor: none !important;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(75, 28, 255, 0.35), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(255, 46, 136, 0.25), transparent 40%),
              radial-gradient(circle at 50% 100%, rgba(0, 200, 255, 0.15), transparent 45%),
              var(--bg-deep);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

.screen {
  display: none;
  width: 100%;
  max-width: 960px;
  animation: fadeUp 0.6s ease both;
}

.screen.active {
  display: block;
}

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

/* ---------- Landing ---------- */
.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(124, 77, 255, 0.6);
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 1.2rem 0 1rem;
  background: linear-gradient(90deg, #fff, #cfd2ff 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-soft);
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 2rem;
}

.stat-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(6px);
}

@media (max-width: 576px) {
  .stats-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-row .stat-pill {
    width: 100%;
  }
}

.stat-pill .stat-num {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent-2);
}

.btn-mega {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 2.6rem;
  border-radius: 999px;
  box-shadow: 0 15px 40px -10px rgba(255, 93, 162, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-mega:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 50px -8px rgba(255, 93, 162, 0.75);
  color: #fff;
}

#btn-start {
  font-size: 1.4rem;
  padding: 1.2rem 3.2rem;
}

/* ---------- Fake AI box ---------- */
.terminal-card {
  background: #0d1020;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.terminal-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-body {
  min-height: 120px;
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  margin-top: 1.2rem;
  color: #b9ffcb;
}

.cursor-blink {
  display: inline-block;
  width: 10px;
  background: #b9ffcb;
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Name form ---------- */
.name-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  text-align: center;
}

.form-control-fun {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
}
.form-control-fun:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent-2);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 93, 162, 0.25);
}
.form-control-fun::placeholder {
  color: rgba(255,255,255,0.4);
}

.privacy-joke {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

.tiny-truth {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  font-size: 0.72rem;
}

/* ---------- Choice cards ---------- */
.choice-title {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 2rem;
}

.choice-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.party-card {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem 1.5rem calc(2rem + 9px);
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.party-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.3);
}

.party-card.no-hover-lift:hover {
  transform: none;
}

.party-card.fidesz { --glow: rgba(255, 140, 0, 0.35); }
.party-card.tisza { --glow: rgba(0, 200, 180, 0.35); }

.party-card::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}

.party-logo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card-border);
  overflow: hidden;
}

.party-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.party-logo-fallback {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.2;
}

.party-name {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.choose-btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  position: relative;
}

.fidesz .choose-btn {
  background: linear-gradient(90deg, #ff8c00, #ff5722);
}

.tisza .choose-btn {
  background: linear-gradient(90deg, #00c9a7, #00b0ff);
  position: relative;
  z-index: 5;
}

.tisza .choose-btn.dodging {
  transition: transform 0.18s ease-out;
}

.vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-deep);
  border: 2px solid var(--card-border);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 4;
}

.fake-cursor {
  position: fixed;
  width: 34px;
  height: 34px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: top 1.1s cubic-bezier(.2,.9,.15,1.05), left 1.1s cubic-bezier(.2,.9,.15,1.05), opacity 0.2s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.putyin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 1rem;
}

.putyin-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.putyin-img {
  width: min(320px, 70vw);
  border-radius: 20px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.8);
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  from { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.putyin-caption {
  font-weight: 800;
  font-size: 1.6rem;
  margin-top: 1.2rem;
  color: var(--accent-2);
}

/* ---------- Final screen ---------- */
.final-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.final-screen.flash {
  animation: flashBg 0.5s steps(2) infinite;
}

@keyframes flashBg {
  0% { background-color: #ff2e88; }
  25% { background-color: #7c4dff; }
  50% { background-color: #00c9a7; }
  75% { background-color: #ff8c00; }
  100% { background-color: #ff2e88; }
}

.final-eyebrow {
  max-width: 640px;
  padding: 0 1.5rem;
  margin-bottom: 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  letter-spacing: 0.01em;
}

.orban-spin-wrap {
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 60px rgba(255,255,255,0.5);
  animation: spinOrban 2.2s linear infinite;
  margin-top: 1.5rem;
}

@keyframes spinOrban {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  to { transform: rotate(360deg) scale(1); }
}

.orban-spin-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-caption {
  margin-top: 2rem;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.2;
}

.final-footnote {
  margin-top: 1.2rem;
  max-width: 560px;
  padding: 0 1.5rem;
  text-align: center;
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  color: rgba(255,255,255,0.7);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 16px;
  opacity: 0.9;
  animation: fall linear infinite;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); }
}

.img-placeholder-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
}
