:root {
  --bg: #05070d;
  --bg-elevated: #0d121f;
  --bg-card: #131a2b;
  --border: #1f2a40;
  --blue: #2f6bff;
  --blue-dim: #1c3f8f;
  --text: #eef1f8;
  --text-dim: #8a93a8;
  --danger: #ff5c5c;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.typeform-screen {
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-card);
  z-index: 2;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.35s ease;
}

.question-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
}

.question {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.question-enter-active {
  opacity: 1;
  transform: translateY(0);
}

.question-exit {
  opacity: 0;
  transform: translateY(-24px);
}

.question-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
}

.question-subtitle {
  margin: -12px 0 0;
  color: var(--text-dim);
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
}

.answer-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.tf-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 300;
  padding: 10px 4px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.tf-input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.tf-input:focus {
  border-color: var(--blue);
}

.tf-error {
  color: var(--danger);
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.1em;
}

.tf-ok {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px 32px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s;
}

.tf-ok:hover {
  background: #4a7dff;
}

.tf-ok:active {
  transform: scale(0.97);
}

.tf-ok-icon {
  opacity: 0.7;
  font-size: 0.9rem;
}

.tf-video-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.tf-video {
  width: 100%;
  max-height: 55vh;
  display: block;
  object-fit: contain;
}

.tf-video-countdown {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.tf-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.tf-option-btn {
  flex: 1 1 140px;
  max-width: 220px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.tf-option-btn:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
}

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

.tf-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
  margin-top: 8px;
}

.tf-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--text);
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.tf-cta-btn:hover {
  background: var(--blue-dim);
}

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

@media (min-width: 640px) {
  .question-wrap {
    padding: 48px;
  }

  .tf-input {
    font-size: 1.5rem;
  }
}
