:root {
  --brand-primary: #14828d;
  --brand-primary-hover: #106b74;
  --brand-primary-light: #4db1bc;
  --brand-primary-subtle: #eef8f9;
  --brand-accent: #e8734a;
  
  --neutral-0: #ffffff;
  --neutral-1: #f8fafc;
  --neutral-2: #f1f5f9;
  --neutral-3: #e2e8f0;
  --neutral-4: #cbd5e1;
  --neutral-5: #94a3b8;
  --neutral-6: #64748b;
  --neutral-7: #334155;
  --neutral-8: #0f172a;
  
  --color-success: #10b981;
  --color-error: #ef4444;
  
  --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 12px 32px rgba(20, 130, 141, 0.08);
  --shadow-modal: 0 24px 64px rgba(20, 130, 141, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: #f4f9f9;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(20, 130, 141, 0.12), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(232, 115, 74, 0.08), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(77, 177, 188, 0.08), transparent 40%);
  color: var(--neutral-8);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(20, 130, 141, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 130, 141, 0.06) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
  content: "";
  pointer-events: none;
}

button,
a {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 32px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neutral-8);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--brand-primary);
  filter: drop-shadow(0 2px 4px rgba(20, 130, 141, 0.2));
}

.brand-logo svg {
  width: 100%;
  height: 100%;
}

.hero-shell {
  display: grid;
  grid-template-rows: auto auto;
  place-items: start center;
  min-height: calc(100vh - 64px);
  padding-bottom: 64px;
}

.hero-card {
  position: relative;
  width: calc(100% - 64px);
  max-width: 960px;
  min-height: 560px;
  margin: 48px auto;
  overflow: hidden;
  border-radius: 32px;
  background-image: url("assets/media/background.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 32px 80px rgba(39, 63, 80, 0.15), 0 0 0 1px rgba(20, 130, 141, 0.1);
}

.hero-card::before {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(20, 130, 141, 0.05));
  content: "";
  opacity: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 30, 40, 0.6) 0%, rgba(20, 130, 141, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}

.page-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: -16px 16px 0;
  color: var(--neutral-6);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-badge {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 640px;
  margin: 24px 0 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 400;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.answer-card {
  border: 0;
  cursor: pointer;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: var(--neutral-0);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 32px;
  transition: background 200ms ease, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms ease;
}

.primary-btn:hover:not(:disabled) {
  background: var(--brand-primary-hover);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  background: var(--neutral-3);
  color: var(--neutral-5);
}

/* Spinner hiển thị khi đang gửi dữ liệu */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}


.hero-cta {
  width: fit-content;
  margin-top: 40px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  background: transparent;
  color: var(--neutral-6);
  font-weight: 600;
  padding: 12px 24px;
  transition: background 200ms ease, color 200ms ease;
}

.ghost-btn:hover {
  background: var(--neutral-2);
  color: var(--neutral-8);
}

.icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 9999px;
  background: var(--neutral-2);
  color: var(--neutral-7);
  font-size: 1.5rem;
  line-height: 1;
  transition: background 200ms ease, color 200ms ease;
}

.icon-btn:hover {
  background: var(--neutral-3);
  color: var(--neutral-8);
}

:focus-visible {
  outline: 3px solid rgba(20, 130, 141, 0.4);
  outline-offset: 4px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.is-open {
  display: flex;
  animation: modal-fade 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.video-backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.video-stage {
  position: relative;
  width: min(1200px, 95vw);
}

.video-close {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.video-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #000000;
  box-shadow: var(--shadow-modal);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.video-control-panel {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 24px 24px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-control-btn {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 200ms ease;
}

.video-control-btn svg {
  width: 18px;
  height: 18px;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.video-progress-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 24px;
  cursor: pointer;
}

.video-progress {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  margin: 0;
  z-index: 2;
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}
.video-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 150ms;
}
.video-progress::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.video-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: var(--brand-primary);
  border-radius: 3px;
  width: 0%;
  z-index: 1;
  pointer-events: none;
}

.video-volume {
  -webkit-appearance: none;
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.video-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.video-stage:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000000;
  width: 100vw;
  height: 100vh;
}

.video-stage:fullscreen .video-frame {
  flex: 1;
  min-height: 0;
  border-radius: 0;
}

.video-stage:fullscreen .video-frame video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.video-stage:fullscreen .video-control-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.video-stage.controls-hidden .video-control-panel {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.video-stage.controls-hidden .feedback-btn {
  opacity: 0;
  pointer-events: none;
}

.time-label {
  min-width: 85px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.feedback-btn {
  position: absolute;
  bottom: 96px;
  right: 32px;
  z-index: 10;
  display: none;
  box-shadow: 0 8px 24px rgba(20, 130, 141, 0.25), 0 0 40px rgba(20, 130, 141, 0.15);
  animation: gentle-pulse 3s ease-in-out infinite;
  border-radius: 9999px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #ffffff;
}

.feedback-btn.is-visible {
  display: inline-flex;
  animation: feedback-reveal 300ms cubic-bezier(0.16, 1, 0.3, 1), gentle-pulse 3s ease-in-out infinite;
}

.content-modal,
.survey-modal {
  width: min(100%, 560px);
  border-radius: 32px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-modal);
  animation: modal-scale 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.content-modal {
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  text-align: center;
}

.content-modal h2,
.survey-modal h2 {
  margin: 0;
  color: var(--neutral-8);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.content-modal p {
  margin: 16px 0 32px;
  color: var(--neutral-6);
  font-size: 1.05rem;
}

.modal-symbol {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 9999px;
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
  font-size: 1.75rem;
  animation: symbol-bounce 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.stacked-actions {
  flex-direction: column;
}

.survey-modal {
  position: relative;
  width: min(100%, 960px);
  max-width: 960px;
  overflow: hidden;
  padding: 0 56px 48px;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(20, 130, 141, 0.04), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(232, 115, 74, 0.02), transparent 40%);
}

.survey-close {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  background: var(--neutral-2);
  color: var(--neutral-6);
  z-index: 100;
  border-radius: 50%;
}

.survey-close:hover {
  background: var(--neutral-3);
  color: var(--neutral-8);
  transform: rotate(90deg);
}

.survey-brand-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 -56px 40px;
  border-bottom: 1px solid rgba(20, 130, 141, 0.08);
  background: linear-gradient(180deg, rgba(20, 130, 141, 0.02) 0%, rgba(20, 130, 141, 0) 100%);
  padding: 32px 80px 32px 56px;
}

.survey-step-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
  font-size: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(20, 130, 141, 0.08);
  border: 1px solid rgba(20, 130, 141, 0.1);
}

.survey-kicker {
  display: block;
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.survey-brand-strip p {
  margin: 0;
  color: var(--neutral-6);
  font-size: 0.95rem;
  font-weight: 500;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-right: 0;
  margin-bottom: 48px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--neutral-2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light));
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(20, 130, 141, 0.4);
}

.progress-row span {
  color: var(--neutral-5);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.survey-step {
  margin-top: 0;
}

.survey-step h2 {
  position: relative;
  max-width: 760px;
  padding-left: 24px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--neutral-8);
  line-height: 1.4;
}

.survey-step h2::before {
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 6px;
  height: 1.5em;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--brand-accent), #f43f5e);
  content: "";
}

.survey-step.is-leaving-next {
  animation: slide-out-left 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.survey-step.is-entering-next {
  animation: slide-in-right 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.survey-step.is-leaving-prev {
  animation: slide-out-right 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.survey-step.is-entering-prev {
  animation: slide-in-left 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.answer-card {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 140px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 1.5px solid var(--neutral-3);
  border-radius: 20px;
  background: var(--neutral-0);
  padding: 24px 32px;
  text-align: left;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.answer-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(20, 130, 141, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.answer-card:hover {
  border-color: var(--brand-primary-light);
  background: var(--brand-primary-subtle);
  box-shadow: 0 12px 24px -4px rgba(20, 130, 141, 0.08), 0 4px 8px -2px rgba(20, 130, 141, 0.04);
  transform: translateY(-2px);
}

.answer-card:hover::before {
  opacity: 1;
}

.answer-card.selected {
  border-color: var(--brand-primary);
  background: var(--neutral-0);
  box-shadow: 0 0 0 3px rgba(20, 130, 141, 0.15), 0 12px 24px -4px rgba(20, 130, 141, 0.1);
}

.answer-card.selected::after {
  content: "✓";
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--brand-primary);
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 0;
  animation: reveal-up 200ms ease forwards;
}

.answer-label {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--neutral-2);
  color: var(--neutral-6);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 200ms ease;
}

.answer-card:hover .answer-label {
  background: var(--brand-primary-light);
  color: var(--neutral-0);
  transform: scale(1.05);
}

.answer-card.selected .answer-label {
  background: var(--brand-primary);
  color: var(--neutral-0);
}

.answer-text {
  color: var(--neutral-7);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
}

.survey-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  border: 4px solid var(--color-success);
  border-radius: 50%;
  animation: check-circle 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.checkmark::after {
  content: "";
  width: 22px;
  height: 40px;
  border-bottom: 5px solid var(--color-success);
  border-right: 5px solid var(--color-success);
  transform: rotate(45deg) translateY(-4px) translateX(-2px) scale(0);
  transform-origin: center;
  animation: check-draw 400ms 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.confetti-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti-burst span {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 8px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand-primary-light);
  opacity: 0;
  animation: confetti-pop 900ms ease-out forwards;
}

.confetti-burst span:nth-child(1) { --confetti-x: -120px; --confetti-y: -60px; }
.confetti-burst span:nth-child(2) { --confetti-x: -70px; --confetti-y: -100px; background: var(--brand-accent); animation-delay: 80ms; }
.confetti-burst span:nth-child(3) { --confetti-x: -20px; --confetti-y: -120px; background: var(--color-success); animation-delay: 120ms; }
.confetti-burst span:nth-child(4) { --confetti-x: 40px; --confetti-y: -110px; background: var(--brand-primary); animation-delay: 160ms; }
.confetti-burst span:nth-child(5) { --confetti-x: 90px; --confetti-y: -80px; background: var(--brand-accent); animation-delay: 210ms; }
.confetti-burst span:nth-child(6) { --confetti-x: 130px; --confetti-y: -50px; background: var(--brand-primary-light); animation-delay: 250ms; }

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-up 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-item:nth-child(2) { animation-delay: 150ms; }
.reveal-item:nth-child(3) { animation-delay: 300ms; }
.reveal-item:nth-child(4) { animation-delay: 450ms; }

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-fade {
  from { opacity: 0; }
}

@keyframes modal-scale {
  from { opacity: 0; transform: scale(0.96); }
}

@keyframes feedback-reveal {
  from { opacity: 0; transform: translateY(12px); }
}

@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(20, 130, 141, 0.25), 0 0 40px rgba(20, 130, 141, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(20, 130, 141, 0.4), 0 0 60px rgba(20, 130, 141, 0.3); }
}

@keyframes symbol-bounce {
  from { transform: scale(0.75); }
  55% { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes slide-out-left { to { opacity: 0; transform: translateX(-40px); } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes slide-out-right { to { opacity: 0; transform: translateX(40px); } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-40px); } }

@keyframes check-circle { from { opacity: 0; transform: scale(0.85); } }
@keyframes check-draw { to { transform: rotate(45deg) translateY(-4px) translateX(-2px) scale(1); } }

@keyframes selected-border {
  0% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes confetti-pop {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--confetti-x, 0), var(--confetti-y, -80px)) rotate(240deg) scale(1); }
}

@media (max-width: 639px) {
  .site-header { min-height: 56px; padding: 0 16px; }
  .hero-shell { min-height: calc(100vh - 56px); padding-bottom: 32px; }
  .hero-card { width: calc(100% - 32px); min-height: 480px; margin: 24px auto; border-radius: 24px; }
  .hero-content { min-height: 480px; padding: 48px 24px; }
  .modal-backdrop { padding: 16px; }
  .content-modal { padding: 24px 20px; }
  .video-stage { width: 100%; }
  .video-frame { border-radius: 16px 16px 0 0; }
  .video-control-panel { border-radius: 0 0 16px 16px; grid-template-columns: auto 1fr auto auto; gap: 8px; padding: 8px 12px; }
  #volumeSlider, #muteBtn { display: none; }
  .time-label { grid-column: auto; text-align: right; min-width: auto; margin-top: 0; font-size: 0.75rem; }
  .feedback-btn { bottom: 60px; right: auto; left: 50%; transform: translateX(-50%); padding: 10px 20px; font-size: 0.9rem; width: max-content; }
  .survey-modal { max-height: calc(100vh - 32px); overflow-y: auto; padding: 0 20px 24px; border-radius: 20px; }
  .survey-close { right: 12px; top: 12px; }
  .survey-brand-strip { margin: 0 -20px 24px; padding: 20px 48px 20px 20px; }
  .answers-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .answer-card { min-height: auto; padding: 16px; }
  .survey-actions { align-items: stretch; margin-top: 24px; }
  .survey-actions > button { flex: 1; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
