/* Exit Liquidity — styles
   Mobile-first. Dark, terminal-adjacent, no rounded-corner SaaS softness. */

:root {
  --bg:        #0A0B0D;
  --bg-raise:  #131519;
  --line:      #23272E;
  --line-hot:  #3A414B;
  --ink:       #EDEFF2;
  --ink-dim:   #8B929C;
  --acid:      #C8FF3D;
  --acid-dark: #93BF12;
  --rare:      #FFB13D;
  --mid:       #56D9D0;

  --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --pad: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  min-height: 100svh;
  min-height: 100dvh;
}

/* faint scanline texture, sits behind everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.018) 0px,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 3px
  );
}

#app { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- screens */
.screen { display: none; }
.screen.is-active { display: block; }

.screen--landing,
.screen--reveal {
  min-height: 100svh;
  min-height: 100dvh;
  display: none;
  place-items: center;
  padding: var(--pad);
}
.screen--landing.is-active,
.screen--reveal.is-active { display: grid; }

/* --------------------------------------------------------------- landing */
.landing {
  max-width: 560px;
  text-align: center;
  animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}

.wordmark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--ink-dim);
  margin: 0 0 40px;
}

.landing__h1 {
  font-size: clamp(30px, 8.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 0 0 20px;
}
.accent { color: var(--acid); }

.landing__sub {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: .02em;
  margin: 0 0 36px;
}

.landing__foot {
  font-size: 13px;
  color: #5C626C;
  margin: 26px 0 0;
  font-style: italic;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.01em;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  max-width: 340px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--acid); color: #0A0B0D; }
.btn--primary:hover { background: #D7FF66; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-hot);
}
.btn--ghost:hover { border-color: var(--ink-dim); }

.btn--quiet {
  background: transparent;
  color: var(--ink-dim);
  border-color: transparent;
  font-weight: 500;
  font-size: 14px;
  padding: 12px;
}
.btn--quiet:hover { color: var(--ink); }

/* ------------------------------------------------------------------ quiz */
.screen--quiz.is-active {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100dvh;
}

.quiz__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
}

.progress {
  flex: 1;
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--acid);
  transition: width .28s cubic-bezier(.2,.7,.3,1);
}

.quiz__count {
  font-family: var(--mono);
  font-size: 12px;
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dim { color: #4E545D; }

.quiz__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 30px var(--pad) 40px;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.quiz__q {
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}

.options { display: grid; gap: 10px; }

.option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 17px 18px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--line-hot); background: #171A1F; }
.option:active { transform: translateY(1px); }
.option.is-picked {
  border-color: var(--acid);
  background: rgba(200,255,61,0.10);
  color: var(--acid);
}

.q-enter { animation: rise .3s cubic-bezier(.2,.7,.3,1) both; }

/* ---------------------------------------------------------------- reveal */
.reveal { text-align: center; }
.reveal__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--ink-dim);
  margin: 0 0 20px;
  text-transform: uppercase;
}
.reveal__scramble {
  font-family: var(--mono);
  font-size: clamp(22px, 7vw, 40px);
  color: var(--acid);
  margin: 0;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* ---------------------------------------------------------------- result */
.screen--result.is-active { display: block; }

.result {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px var(--pad) 64px;
  animation: rise .45s cubic-bezier(.2,.7,.3,1) both;
}

.card-frame {
  border: 1px solid var(--line);
  background: #000;
  line-height: 0;
  margin-bottom: 26px;
}
#card-canvas { width: 100%; height: auto; display: block; }

.result__meta { margin-bottom: 28px; }

.result__rarity {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink-dim);
}
.result__rarity[data-tier="rare"] { color: var(--rare); }
.result__rarity[data-tier="mid"]  { color: var(--mid); }
.result__rarity[data-tier="common"] { color: var(--ink-dim); }

.result__name {
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 780;
  margin: 0 0 12px;
}

/* The card image already carries the name and rarity. They stay in the DOM
   for screen readers and for anyone who has images turned off. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.result__blurb {
  font-size: 18px;
  line-height: 1.55;
  color: #C3C9D2;
  margin: 0;
  letter-spacing: -0.005em;
}

.share-hint {
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--acid-dark);
  margin: 16px 0 0;
}

/* tells */
.tells {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 28px;
}
.tells__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5C626C;
  margin: 0 0 14px;
}
.tells__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tells__list li {
  font-size: 14.5px;
  line-height: 1.4;
  color: #A9B0BA;
  padding-left: 18px;
  position: relative;
}
.tells__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--acid-dark);
}

.result__actions { display: grid; gap: 10px; justify-items: center; }
.result__actions .btn { max-width: 100%; }

.result__foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #4E545D;
  margin: 24px 0 0;
}

/* -------------------------------------------------------------- keyframes */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* wider screens: give the quiz a little more air */
@media (min-width: 700px) {
  :root { --pad: 32px; }
  .option { font-size: 16.5px; padding: 18px 20px; }
}
