:root{
  --bg: #0b0b0e;
  --text: #e9e9ef;
  --muted: #b9bac6;
  --ease: cubic-bezier(.2,.8,.2,1);
  --fadeMs: 200ms; /* 150–250ms */
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; /* match your site */
  background: var(--bg);     /* plain */
  color: var(--text);
}

a{ color: var(--text); }

.view{
  opacity:1;
  transform: translateY(0px);
  transition: opacity var(--fadeMs) var(--ease), transform var(--fadeMs) var(--ease);
}
.view.fading-out{
  opacity:0;
  transform: translateY(6px);
  pointer-events:none;
}

/* Layout: centered, but not boxed */
#app{
  min-height: 100vh;
  display:flex;
  align-items: flex-start;
  padding-top: 8vh;
  justify-content:center;
  padding: 28px 18px;
}

.stage{
  width: 100%;
  max-width: 760px;   /* narrower = calmer */
  margin: 0 auto;
  padding: 12px 0;   /* vertical breathing */
}

/* Type */
.kicker{
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
  color: var(--muted);
  margin:0 0 10px;
}
h1,h2{ margin:0 0 10px; font-weight:650; }
h1{ font-size: 40px; }
h2{ font-size: 22px; }
p{
  margin:0 0 14px;
  color: var(--muted);
  line-height:1.5;
}
.tiny{
  font-size:12px;
  color: var(--muted);
}

/* Buttons */
.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:14px; }
.btn{
  border: 1px solid rgba(233,233,239,.2);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  cursor:pointer;
  font-weight:650;
  font-size:14px;
  transition: transform 120ms var(--ease), opacity 120ms var(--ease), border-color 120ms var(--ease);
  user-select:none;
}
.btn:hover{ border-color: rgba(233,233,239,.45); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }

/* Gate */
.gate{
  text-align:center;
}
.gateSigilBtn{
  all: unset;
  display:inline-block;
  cursor:pointer;
  user-select:none;
  margin-top: 10px;
}

/* Full-size temple sigil: responsive, no cropping */
.gateSigilBtn img{
  width: min(72vw, 250px);
  height: auto;
  display:block;
  margin: 0 auto;
  object-fit: contain;
  transform: scale(1);
  transition: transform 90ms var(--ease), filter 90ms var(--ease), opacity 90ms var(--ease);
}
.gateSigilBtn:active img{
  transform: scale(.985);
  filter: brightness(.92) contrast(1.05);
}

.gateHint{
  margin-top: 14px;
  color: var(--muted);
  letter-spacing:.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.flashline{
  margin-top:10px;
  color: var(--muted);
  font-size:13px;
  opacity:0;
  transform: translateY(4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  height:18px;
}
.flashline.on{
  opacity:1;
  transform: translateY(0px);
}

/* Quiz */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
  color: var(--muted);
  font-size:13px;
}
.progress{
  height:8px;
  background: rgba(255,255,255,.06);
  border-radius:999px;
  overflow:hidden;
  flex:1;
}
.progress > div{
  height:100%;
  width:0%;
  background: rgba(233,233,239,.85);
  transition: width 200ms var(--ease);
}

.qtitle{ font-size:20px; margin: 8px 0 14px; color: var(--text); }

.options{ display:grid; gap:10px; margin-top:10px; }
.opt{
  border: 1px solid rgba(233,233,239,.14);
  border-radius: 14px;
  padding: 14px 14px;
  cursor:pointer;
  display:flex;
  gap:10px;
  align-items:flex-start;
  transition: transform 80ms var(--ease), border-color 80ms var(--ease), background 80ms var(--ease);
  user-select:none;
}
.opt:hover{
  transform: translateY(-1px);
  border-color: rgba(233,233,239,.35);
  background: rgba(255,255,255,.03);
}
.opt.selected{
  border-color: rgba(233,233,239,.65);
  background: rgba(255,255,255,.05);
}
.pill{
  min-width:26px;
  height:26px;
  border-radius:999px;
  border: 1px solid rgba(233,233,239,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color: var(--muted);
  margin-top:2px;
  flex:0 0 auto;
}
.opt .label{
  font-size:14px;
  color: var(--text);
  line-height:1.35;
}

.footerbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:18px;
}

/* Results: full-size archetype GIF */
.resultHeader{
  text-align: center;
  margin-bottom: 18px;
}

.resultTitle{
  margin-top: 2px;
}

.resultLayout{
  display: grid;
  grid-template-columns: 1fr 1fr;  /* GIF left, text right */
  gap: 24px;
  align-items: start;
  justify-content: center;
  margin: 18px auto 0;
}

/* Make the whole block sit in a nice centered column on big screens */
@media (min-width: 900px){
  .resultLayout{
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* GIF sizing (tweak numbers to taste) */
.resultSigil img{
  width: min(36vw, 360px);
  height: auto;
  display:block;
  margin: 0 auto;
  object-fit: contain;
}

/* Right-side text */
.resultCopy{
  text-align: left;
  margin-top: 50px;
}

/* CTA area centered below */
.resultCta{
  text-align: center;
  margin-top: 22px;
}

/* Mobile: stack */
@media (max-width: 720px){
  .resultLayout{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .resultCopy{
    text-align: left; /* keeps it readable */
    margin-top: 10px;
  }
  .resultSigil img{
    width: min(78vw, 360px);
  }
}

