:root{
  --bg0:#050208;
  --bg1:#1a1024;
  --bg2:#35203b;
  --ink:#F4F1FF;
  --muted:#B8A9D8;
  --glass: rgba(255,255,255,.06);
  --glass2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.14);
  --accent:#9a6fb3;
  --accent2:#733381;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(154,111,179,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(115,51,129,.18), transparent 60%),
    linear-gradient(160deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  overflow-x:hidden;
}

.wrap{min-height:100%; display:flex; align-items:center; justify-content:center; padding:28px; position:relative;}
.bg-sigil{
  position:fixed; inset:0; pointer-events:none; opacity:.10;
  filter: blur(.2px);
  mix-blend-mode: screen;
}
.bg-sigil svg{width:100%; height:100%}

.card.shell{
  width:min(720px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding:28px;
  position:relative;
  animation: fadeIn .55s ease-out;
}

.hidden{display:none !important}

.brand .mark{
  font-weight:700;
  letter-spacing:.6px;
  font-size:28px;
}
.brand .tag{color:var(--muted); margin-top:8px; line-height:1.35}
.lead{font-size:18px; line-height:1.5; color:var(--ink); opacity:.95}
.muted{color:var(--muted)}
.tiny{font-size:12px}

.content{margin-top:18px}
.center{text-align:center}
.footer{margin-top:22px; border-top:1px solid rgba(255,255,255,.10); padding-top:14px}

.btn{
  border-radius: 999px;
  border:1px solid var(--stroke);
  padding:12px 18px;
  font-weight:600;
  cursor:pointer;
  background: rgba(255,255,255,.04);
  color:var(--ink);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, opacity .14s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22)}
.btn:active{transform: translateY(0px); opacity:.92}
.btn.primary{
  background: linear-gradient(90deg, rgba(154,111,179,.35), rgba(115,51,129,.25));
  border-color: rgba(154,111,179,.55);
}
.btn.ghost{background: rgba(255,255,255,.03)}
.btn.subtle{background: rgba(154,111,179,.12); border-color: rgba(154,111,179,.25)}
.row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:14px}

.cardstage{
  width:min(360px, 72vw);
  aspect-ratio: 2/3;
  margin: 10px auto 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(circle at 30% 30%, rgba(154,111,179,.18), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.2));
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  overflow:hidden;
  position:relative;
  transform-style: preserve-3d;
}

.cardstage img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .55s ease;
}
.cardstage.ready img{opacity:1; transform: scale(1.0)}

.cardtitle{font-size:18px; font-weight:650; margin-top:6px; color:rgba(244,241,255,.95)}
.story{
  margin-top:10px;
  line-height:1.65;
  color:rgba(244,241,255,.92);
  white-space:pre-wrap;
}

.qtitle{font-size:18px; font-weight:650; margin-bottom:14px}
.qopts{display:grid; gap:10px}
.qopt{
  border:1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding:14px 14px;
  background: rgba(255,255,255,.03);
  cursor:pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.qopt:hover{transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(154,111,179,.35)}
.qopt .hint{color:var(--muted); font-size:13px; margin-top:6px}

.qbox{
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10, 6, 18, .35);
  border-radius: 16px;
  padding: 14px;
}

.discoverList { display: grid; gap: 14px; margin-top: 12px; }
.discoverCard {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10, 6, 18, .55);
  border-radius: 14px;
  padding: 12px;
}
.dcTop { display:flex; gap: 12px; align-items:center; }
.dcImg { width: 64px; height: 96px; object-fit: cover; border-radius: 10px; }
.dcTitle { font-weight: 700; }
.dcFinger { opacity:.8; font-size: .9rem; margin-top: 2px; }
.dcExcerpt { margin-top: 10px; opacity: .9; line-height: 1.35; }
.dcActions { margin-top: 10px; display:flex; gap: 10px; }
.subhead { margin: 18px 0 8px; font-size: 1.05rem; opacity: .95; }
.btnGhost { opacity: .95; }

@keyframes fadeIn {
  from {opacity:0; transform: translateY(6px)}
  to {opacity:1; transform: translateY(0)}
}
