/* ============================================================
   SCOREZLE QUIZ — STYLES
   Mobile-first. Dark. Bold. Sports card aesthetic.
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:        #0D0D0D;
  --surface:   #1C1C1C;
  --surface2:  #272727;
  --white:     #FFFFFF;
  --gray:      #777777;
  --gray-lt:   #BBBBBB;
  --orange:    #F97316;
  --orange-dk: #D96010;

  /* Type accent colors */
  --ceo:       #3B82F6;
  --hotmess:   #EF4444;
  --assassin:  #8B5CF6;
  --hype:      #22C55E;
  --carride:   #06B6D4;
  --lamb:      #F59E0B;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

@media (min-width: 431px) {
  .app {
    border-left: 1px solid var(--surface);
    border-right: 1px solid var(--surface);
  }
}

/* ============================================================
   SCREEN TRANSITIONS
   ============================================================ */

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.38s ease;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.screen.slide-out {
  opacity: 0;
  transform: translateX(-28%);
}

/* ============================================================
   LANDING
   ============================================================ */

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 40px;
  min-height: 100%;
}

.logo {
  height: 90px;
  object-fit: contain;
  margin-bottom: 32px;
}

.logo-sm {
  height: 60px;
  margin-bottom: 24px;
}

.landing-hero {
  text-align: center;
  margin-bottom: 44px;
}

.hero-title {
  font-family: 'Bangers', cursive;
  font-size: 62px;
  line-height: 0.95;
  letter-spacing: 3px;
  color: var(--white);
  text-shadow: 4px 4px 0 var(--orange);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-lt);
}

.sport-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
  text-align: center;
}

.sport-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 28px;
}

.sport-btn {
  background: var(--surface);
  border: 2px solid var(--surface2);
  border-radius: 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  line-height: 1;
}

.sport-btn:active,
.sport-btn.selected {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(0.96);
}

.landing-foot {
  font-size: 12px;
  color: var(--gray);
  margin-top: auto;
  padding-top: 16px;
}

/* ============================================================
   QUESTIONS
   ============================================================ */

.question-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 20px 24px 12px;
  flex-shrink: 0;
}

.progress-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}

.question-content {
  padding: 20px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.question-text {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 28px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-btn {
  background: var(--surface);
  border: 2px solid var(--surface2);
  border-radius: 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  width: 100%;
}

.answer-btn:active {
  transform: scale(0.97);
}

.answer-btn.selected {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(0.97);
}

/* ============================================================
   LOADING
   ============================================================ */

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 48px 24px;
  text-align: center;
}

.card-spinner {
  width: 150px;
  height: 210px;
  perspective: 700px;
  margin-bottom: 44px;
}

.card-spinner-inner {
  width: 100%;
  height: 100%;
  animation: cardSpin 1.6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes cardSpin {
  0%   { transform: rotateY(0deg) scale(1); }
  50%  { transform: rotateY(180deg) scale(1.05); }
  100% { transform: rotateY(360deg) scale(1); }
}

.card-face {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.25);
}

.spinner-logo {
  height: 28px;
  opacity: 0.7;
}

.spinner-q {
  font-family: 'Bangers', cursive;
  font-size: 88px;
  color: var(--orange);
  line-height: 1;
}

.loading-title {
  font-family: 'Bangers', cursive;
  font-size: 38px;
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 18px;
}

.loading-msg {
  font-size: 14px;
  color: var(--gray);
  max-width: 260px;
  line-height: 1.5;
  transition: opacity 0.25s ease;
}

/* ============================================================
   EMAIL GATE
   ============================================================ */

.email-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 52px;
  min-height: 100%;
}

.card-preview-wrap {
  position: relative;
  width: 170px;
  height: 238px;
  margin-bottom: 32px;
  flex-shrink: 0;
}

.card-preview {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.card-preview-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--bg) 90%);
  pointer-events: none;
}

.email-gate {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.gate-title {
  font-family: 'Bangers', cursive;
  font-size: 44px;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
}

.gate-sub {
  font-size: 15px;
  color: var(--gray-lt);
  line-height: 1.65;
  margin-bottom: 24px;
}

#email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-input {
  background: var(--surface);
  border: 2px solid var(--surface2);
  border-radius: 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 17px 18px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
}

.text-input::placeholder {
  color: var(--gray);
}

.text-input:focus {
  border-color: var(--orange);
}

.fine-print {
  font-size: 11px;
  color: var(--gray);
  margin-top: 12px;
}

/* ============================================================
   RESULTS
   ============================================================ */

.results-content {
  padding: 36px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-card-wrap {
  width: 210px;
  height: 294px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  flex-shrink: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.result-body {
  width: 100%;
  max-width: 380px;
  margin-bottom: 32px;
}

.result-name {
  font-family: 'Bangers', cursive;
  font-size: 30px;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 4px;
}

.result-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--gray);
  text-align: center;
  margin-bottom: 20px;
}

.result-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-lt);
  text-align: center;
  margin-bottom: 20px;
}

.result-stat {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 15px;
  line-height: 1.55;
  color: var(--white);
}

.result-challenge {
  border-left: 4px solid var(--orange);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  margin-top: 10px;
}

.challenge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.challenge-value {
  font-size: 15px;
  line-height: 1.55;
  color: var(--white);
}

.result-actions {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   CTA SCREEN
   ============================================================ */

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 56px;
  min-height: 100%;
  text-align: center;
}

.cta-title {
  font-family: 'Bangers', cursive;
  font-size: 60px;
  line-height: 0.95;
  letter-spacing: 3px;
  text-shadow: 4px 4px 0 var(--orange);
  margin-bottom: 22px;
}

.cta-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-lt);
  margin-bottom: 32px;
  max-width: 300px;
}

.spotlight-box {
  background: var(--surface);
  border: 2px solid var(--surface2);
  border-radius: 20px;
  padding: 26px 22px;
  width: 100%;
  max-width: 370px;
  text-align: left;
  margin-bottom: 28px;
}

.spotlight-hed {
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 18px;
}

.spotlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.spotlight-list li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-lt);
}

.spotlight-note {
  font-size: 12px;
  font-style: italic;
  color: var(--gray);
}

.btn-cta {
  width: 100%;
  max-width: 370px;
  margin-bottom: 20px;
  text-decoration: none;
}

.cta-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--gray);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  background: var(--orange);
  border: none;
  border-radius: 16px;
  color: var(--white);
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 20px 24px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  line-height: 1;
}

.btn-primary:active {
  background: var(--orange-dk);
  transform: scale(0.97);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface);
  border: 2px solid var(--surface2);
  border-radius: 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 18px 24px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
}

.btn-secondary:active {
  transform: scale(0.97);
  background: var(--surface2);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--orange);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
  width: 100%;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   REAL CARD PHOTO
   ============================================================ */

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   QUIZ CARD (CSS fallback if image fails to load)
   ============================================================ */

.quiz-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.quiz-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.qc-logo {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 18px;
  opacity: 0.75;
}

.qc-num {
  position: absolute;
  top: 13px;
  right: 13px;
  font-family: 'Bangers', cursive;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

.qc-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.qc-name {
  font-family: 'Bangers', cursive;
  font-size: 17px;
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: white;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.qc-tagline {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.qc-brand {
  position: absolute;
  bottom: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  z-index: 1;
}

/* ============================================================
   THANK YOU SCREEN
   ============================================================ */

.thankyou-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 48px 32px;
  text-align: center;
}

.thankyou-icon {
  font-size: 64px;
  margin-bottom: 28px;
  animation: trophyBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes trophyBounce {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

.thankyou-title {
  font-family: 'Bangers', cursive;
  font-size: 30px;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 24px;
}

.thankyou-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-lt);
  margin-bottom: 14px;
  max-width: 300px;
}

.thankyou-sub {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-top: 12px;
  margin-bottom: 32px;
}

.thankyou-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

/* ============================================================
   CARD POP ANIMATION (results reveal)
   ============================================================ */

@keyframes cardPop {
  0%   { transform: scale(0.7) translateY(20px); opacity: 0; }
  70%  { transform: scale(1.04) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.result-card-wrap.card-pop {
  animation: cardPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ============================================================
   SAVE CARD BUTTON
   ============================================================ */

.btn-save-card {
  background: var(--orange);
  border: none;
  border-radius: 16px;
  color: var(--white);
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 20px 24px;
  cursor: pointer;
  width: 100%;
  max-width: 380px;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.btn-save-card:active {
  background: var(--orange-dk);
  transform: scale(0.97);
}

.btn-save-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.inbox-note {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 28px;
  text-align: center;
}

/* ============================================================
   Q HINT LABEL
   ============================================================ */

.q-hint {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}

/* ============================================================
   FRIEND TYPE SECTION
   ============================================================ */

.friend-section {
  width: 100%;
  max-width: 380px;
  margin-bottom: 28px;
}

.friend-hed {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-lt);
  text-align: center;
  margin-bottom: 14px;
}

.btn-tag-friend {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--surface2);
  border-radius: 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 8px;
}

.btn-tag-friend:active {
  transform: scale(0.97);
  background: var(--surface2);
}

.friend-sub {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  font-style: italic;
}

/* ============================================================
   FRIEND OVERLAY
   ============================================================ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 0 0;
}

.overlay.hidden {
  display: none;
}

.overlay-box {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 40px;
  width: 100%;
  max-width: 430px;
}

.overlay-title {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--white);
  text-align: center;
  margin-bottom: 20px;
}

.overlay-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.overlay-type-btn {
  border: 2px solid;
  border-radius: 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.overlay-type-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.overlay-close {
  background: transparent;
  border: none;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px;
  width: 100%;
  cursor: pointer;
}

/* ============================================================
   BACK BUTTON + RETAKE
   ============================================================ */

.btn-back {
  background: transparent;
  border: none;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 0 0 20px 0;
  cursor: pointer;
  align-self: flex-start;
  width: 100%;
  text-align: left;
}

.btn-back:active {
  color: var(--white);
}

.btn-retake {
  background: transparent;
  border: none;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 16px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
}

/* ============================================================
   RESULTS SHARE BUTTON SPACING
   ============================================================ */

.results-share-btn {
  width: 100%;
  max-width: 380px;
  margin-top: 10px;
  margin-bottom: 8px;
}

/* ============================================================
   SPOTLIGHT INLINE (results page — no navigation needed)
   ============================================================ */

.spotlight-inline {
  width: calc(100% + 48px);
  margin: 8px -24px 0;
  padding: 36px 24px 40px;
  background: linear-gradient(160deg, #1C0A00 0%, #0D0D0D 60%, #1a0800 100%);
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spotlight-transition-text {
  font-family: 'Bangers', cursive;
  font-size: 36px;
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
}

.spotlight-transition-text em {
  color: var(--orange);
  font-style: normal;
}

.spotlight-what {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-lt);
  text-align: center;
  margin-bottom: 20px;
  max-width: 370px;
}

.spotlight-pitch {
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  text-align: center;
  font-style: italic;
  margin-bottom: 24px;
  max-width: 370px;
  padding: 0 8px;
}

.btn-spotlight-inline {
  width: 100%;
  max-width: 370px;
  margin-top: 24px;
  margin-bottom: 16px;
  text-decoration: none;
}

.spotlight-fade-line {
  font-size: 13px;
  font-style: italic;
  color: var(--gray);
}

/* ============================================================
   COPY TOAST
   ============================================================ */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface2);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}
