/* Dream Hackers VR — pre-site quiz
   Tokens match dreamhackers-vr.com (:root in its styles.css) */
:root {
  --color-bg: #0a0a0f;
  --color-surface: rgba(20, 20, 34, 0.72);
  --color-border: rgba(76, 29, 149, 0.55);
  --color-text: #F4F1FF;
  --color-text-dim: #cfc8e6;
  --color-accent: #A78BFA;
  --color-accent-light: #C4B5FD;
  --color-accent-deep: #6D28D9;
  --color-accent-darker: #4C1D95;
  --color-cyan: #22D3EE;
  --font: 'Rajdhani', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(109, 40, 217, 0.42) 0%, transparent 62%),
    radial-gradient(circle at 90% 92%, rgba(34, 211, 238, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 0% 64%, rgba(236, 72, 153, 0.09) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

/* ---------- Layout (mobile first: 390×844 design) ---------- */
.quiz {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 44px 24px 32px;
}

.quiz__top { display: flex; justify-content: center; align-items: center; }
.quiz__logo { display: block; width: 260px; height: auto; }

.quiz__center { flex: 1; display: flex; flex-direction: column; }
.quiz__tag { display: none; }

.quiz__panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.quiz__corner { display: none; }

.quiz__step { display: flex; flex-direction: column; gap: 28px; animation: stepIn .45s var(--ease-out); margin-block: auto; }
.quiz__head { display: flex; flex-direction: column; gap: 14px; }

.quiz__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.quiz__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  outline: none;
}
.quiz__hl {
  color: var(--color-accent);
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.75);
}
.quiz__sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-text-dim);
}

/* ---------- Answer buttons ---------- */
.quiz__options { display: flex; flex-direction: column; gap: 14px; }

.quiz__opt {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 10px 20px;
  font: inherit;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  border: 2px solid var(--color-accent-darker);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.10));
  box-shadow: inset 0 0 0 1px rgba(76, 29, 149, 0.45), 0 0 30px rgba(76, 29, 149, 0.4);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.quiz__opt:hover {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.5), 0 0 36px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}
.quiz__opt:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 3px; }

/* Primary CTA (Steam demo) */
.quiz__opt--primary {
  min-height: 72px;
  font-weight: 700;
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.46), rgba(109, 40, 217, 0.32));
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45), 0 0 34px rgba(139, 92, 246, 0.5);
}

.quiz__num { font-size: 13px; font-weight: 700; color: var(--color-accent); }
.quiz__opt-text { flex: 1; }

.quiz svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.quiz__arrow { width: 20px; height: 20px; }
.quiz__icon { width: 22px; height: 22px; stroke: var(--color-accent) !important; }
.quiz__opt--primary .quiz__icon { stroke: var(--color-accent-light) !important; }

/* ---------- Progress ---------- */
.quiz__progress { display: flex; gap: 8px; }
.quiz__bar {
  flex: 1;
  height: 3px;
  background: rgba(167, 139, 250, 0.2);
  transition: background .3s, box-shadow .3s;
}
.quiz__bar.is-on { background: var(--color-accent); box-shadow: 0 0 12px rgba(139, 92, 246, 0.8); }

/* ---------- Skip / Back ---------- */
.quiz__meta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.quiz__meta-link:hover { color: var(--color-accent-light); }
.quiz__meta-link:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 2px; }
.quiz__meta-link svg { width: 16px; height: 16px; }

.quiz__bottom { display: flex; justify-content: center; margin-top: 18px; }
[data-desktop-only] { display: none; }

/* ---------- Desktop (1440×900 design) ---------- */
@media (min-width: 768px) {
  .quiz { padding: 32px 56px 48px; }
  .quiz__top { justify-content: space-between; }
  .quiz__logo { width: 170px; }
  [data-desktop-only] { display: inline-flex; }
  .quiz__bottom { display: none; }
  .quiz__meta-link { font-size: 14px; padding: 12px 4px; }

  .quiz__center { align-items: center; justify-content: center; gap: 28px; }
  .quiz__tag {
    display: block;
    padding: 9px 20px;
    border: 1px solid rgba(76, 29, 149, 0.7);
    background: rgba(11, 8, 32, 0.55);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent-light);
    text-align: center;
  }

  .quiz__panel {
    flex: none;
    width: 100%;
    max-width: 680px;
    padding: 56px 64px 48px;
    gap: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 0 60px rgba(76, 29, 149, 0.35);
  }
  .quiz__corner {
    display: block;
    position: absolute;
    width: 28px;
    height: 28px;
    border: 0 solid var(--color-accent);
  }
  .quiz__corner--tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
  .quiz__corner--tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; }
  .quiz__corner--bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; }
  .quiz__corner--br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }

  .quiz__step { gap: 32px; margin-block: 0; }
  .quiz__label { font-size: 13px; }
  .quiz__title { font-size: 46px; line-height: 1.05; }
  .quiz__sub { font-size: 16px; }
  .quiz__options { gap: 16px; }
  .quiz__opt { min-height: 76px; padding: 10px 28px; gap: 20px; font-size: 20px; }
  .quiz__num { font-size: 14px; }
  .quiz__arrow { width: 22px; height: 22px; }
  .quiz__icon { width: 24px; height: 24px; }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz__step { animation: none; }
  .quiz__opt { transition: none; }
}
