/* ══════════════════════════════════════
   VIBE CHECK — style.css
   ══════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:     #0a0a0f;
  --card:   #12121a;
  --border: #2a2a3d;
  --a1:     #c8f564;
  --a2:     #f564c8;
  --a3:     #64c8f5;
  --text:   #e8e8f0;
  --muted:  #6b6b8a;
}

/* ── BASE ── */
html, body {
  min-height: 100%;
  background: var(--bg);
  font-family: 'Syne', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
  position: relative;
}

/* ── KEYFRAMES ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes rise {
  0%   { transform: translateY(100vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: .65; }
  90%  { opacity: .65; }
  100% { transform: translateY(-80px) rotate(360deg); opacity: 0; }
}

/* ── PARTICLES ── */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  animation: rise linear infinite;
}

/* ── SCREENS ── */
.screen {
  display: none;
  max-width: 520px;
  width: 100%;
  animation: slide-up .5s ease;
}
.screen.active { display: block; }
#screen-intro  { text-align: center; max-width: 520px; }

/* ── LANGUAGE PICKER ── */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 40px;
}
.lang-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 7px 12px;
  color: var(--text);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.lang-btn:hover  { background: rgba(200,245,100,.10); border-color: rgba(200,245,100,.4); }
.lang-btn.active { background: rgba(200,245,100,.15); border-color: var(--a1); color: var(--a1); }

/* ── LOGO SPINNER ── */
.logo-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  position: relative;
  animation: float 3s ease-in-out infinite;
}
.logo-disk {
  width: 100%;
  height: 100%;
  background: conic-gradient(var(--a1), var(--a2), var(--a3), var(--a1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: spin 8s linear infinite;
}
.logo-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--a1);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

/* ── INTRO TEXT ── */
.label-sm {
  color: var(--a1);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Space Mono', monospace;
}
.main-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  white-space: pre-line;
  background: linear-gradient(135deg, var(--text) 0%, var(--a2) 50%, var(--a3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.sub-text  { color: var(--muted); font-size: 14px; margin-bottom: 34px; line-height: 1.6; }
.hint-text { color: var(--muted); font-size: 12px; margin-top: 16px; }

/* ── PRIMARY BUTTON ── */
.btn-primary {
  background: var(--a1);
  border: none;
  border-radius: 50px;
  padding: 14px 38px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0f;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 28px rgba(200,245,100,.4); }
.btn-primary.full  { width: 100%; }

/* ── PROGRESS BAR ── */
.progress-wrap { margin-bottom: 26px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.progress-meta span              { font-size: 12px; font-family: 'Space Mono', monospace; color: var(--muted); }
.progress-meta span:last-child   { color: var(--a1); }
.progress-track { height: 3px; background: rgba(255,255,255,.06); border-radius: 10px; }
.progress-fill  {
  height: 100%;
  background: linear-gradient(90deg, var(--a3), var(--a1));
  border-radius: 10px;
  transition: width .4s ease;
}

/* ── QUESTION CARD ── */
.q-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}
.q-emoji { font-size: 34px; margin-bottom: 14px; }
.q-text  { color: var(--text); font-size: 19px; font-weight: 700; margin-bottom: 24px; line-height: 1.4; }
.options { display: flex; flex-direction: column; gap: 9px; }

.opt-btn {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: all .2s;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
}
.opt-btn:hover    { background: rgba(200,245,100,.08); border-color: rgba(200,245,100,.35); transform: translateX(4px); }
.opt-btn.selected { background: rgba(200,245,100,.15); border-color: var(--a1); }

.opt-check {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  transition: all .2s;
  display: inline-block;
}
.opt-btn.selected .opt-check { background: var(--a1); border-color: var(--a1); }

/* ── LOADING ── */
#screen-loading { text-align: center; max-width: 320px; }

.spinner-wrap {
  width: 78px;
  height: 78px;
  margin: 0 auto 28px;
  position: relative;
}
.spin-ring {
  position: absolute;
  border: 2px solid;
  border-radius: 50%;
  border-top-color: transparent;
}
.spin-ring:nth-child(1) { inset: 0;   border-color: var(--a1); border-top-color: transparent; animation: spin 1.4s linear infinite; }
.spin-ring:nth-child(2) { inset: 8px; border-color: var(--a2); border-top-color: transparent; animation: spin 1.9s linear infinite; }
.spin-ring:nth-child(3) { inset: 16px;border-color: var(--a3); border-top-color: transparent; animation: spin 2.4s linear infinite; }

.spin-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.loading-text {
  color: var(--a1);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
}
.dot-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a2);
}
.dot:nth-child(1) { animation: dot-bounce .8s ease-in-out 0s    infinite; }
.dot:nth-child(2) { animation: dot-bounce .8s ease-in-out .15s  infinite; }
.dot:nth-child(3) { animation: dot-bounce .8s ease-in-out .30s  infinite; }
.dot:nth-child(4) { animation: dot-bounce .8s ease-in-out .45s  infinite; }

/* ── RESULT ── */
#screen-result { max-width: 476px; }

.result-hero {
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 13px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-glow {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  filter: blur(26px);
}
.result-tag {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'Space Mono', monospace;
  color: var(--muted);
}
.result-emoji { font-size: 44px; margin-bottom: 10px; }
.result-title { font-size: 25px; font-weight: 800; color: var(--text); margin-bottom: 13px; line-height: 1.2; }
.result-desc  { color: #aaaacc; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.result-badge {
  display: inline-block;
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  font-weight: 600;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 11px;
}
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 17px;
}
.result-card-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-family: 'Space Mono', monospace;
}
.result-card-val { color: var(--text); font-size: 13px; line-height: 1.5; }

.result-match {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 17px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.match-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(100,200,245,.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.match-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: 'Space Mono', monospace;
  color: var(--a3);
}
.match-val { color: var(--text); font-size: 14px; font-weight: 600; }
