:root{
  --bg:#0B0B0A; --panel:#141412; --panel2:#17150F; --line:#24221E; --line2:#3A3528;
  --text:#EDEAE2; --bright:#F4F1E8; --muted:#B5B1A7; --dim:#8F8B81;
  --gold:#D4A84B; --gold-hi:#E8C374; --ink:#12110E;
  --r:18px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--gold)} a:hover{color:var(--gold-hi)}
h1,h2,h3{font-family:"Space Grotesk",Inter,sans-serif;margin:0}
.gold{color:var(--gold)}
.muted{color:var(--muted)} .small{font-size:14px}
.center{text-align:center}
.fine{font-size:12px;line-height:1.5;color:var(--dim);margin:24px 0 0}
.label{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}

/* screens */
.screen{display:none;min-height:100dvh;animation:fade .35s ease}
.screen.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.wrap{width:100%;margin:0 auto;padding:28px 24px 40px}
.narrow{max-width:560px}
.wide{max-width:1080px}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 20px;border-radius:14px;border:1px solid var(--line2);background:transparent;color:var(--text);font:600 15px/1 "Space Grotesk",Inter,sans-serif;text-decoration:none;cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,background .2s}
.btn:hover{color:var(--bright);border-color:#55503f}
.btn:active{transform:scale(.98)}
.btn:focus-visible,.answer:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.btn-gold{background:var(--gold);border:0;color:var(--ink);box-shadow:0 10px 40px rgba(212,168,75,.28),inset 0 1px 0 rgba(255,255,255,.35)}
.btn-gold:hover{background:var(--gold-hi);color:var(--ink);box-shadow:0 14px 48px rgba(212,168,75,.38),inset 0 1px 0 rgba(255,255,255,.4)}
.btn-light{background:var(--text);border:0;color:var(--bg)} .btn-light:hover{background:#fff;color:var(--bg)}
.btn-ghost{border-color:var(--line2)}
.btn-xl{width:100%;height:68px;border-radius:18px;font-size:19px;font-weight:700}
.btn-lg{width:100%;height:54px;font-size:16px}
.btn[disabled]{opacity:.6;cursor:wait}
.pill{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:999px;background:rgba(11,11,10,.55);border:1px solid rgba(244,241,232,.18);color:var(--bright);text-decoration:none;font-size:13px;font-weight:500;backdrop-filter:blur(8px)}
.pill:hover{color:#fff;border-color:rgba(244,241,232,.4)}
.icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn[disabled]{opacity:.35;cursor:default}

/* topbar */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{font:700 14px "Space Grotesk",sans-serif;letter-spacing:.22em;color:var(--bright);text-decoration:none}
.brand-row{display:flex;align-items:center;gap:12px}
.avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:center 25%;border:1.5px solid var(--gold)}

/* START — mobile */
.start{position:relative;min-height:100dvh;display:flex;flex-direction:column}
.start-media{position:relative;height:min(46vh,380px);overflow:hidden}
.start-media img{width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block}
.start-fade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,11,10,.15) 0%,rgba(11,11,10,0) 35%,rgba(11,11,10,.85) 80%,var(--bg) 100%)}
.start .topbar{position:absolute;top:0;left:0;right:0;padding:24px}
.start-body{position:relative;margin-top:-40px;padding:0 24px 32px;display:flex;flex-direction:column}
.eyebrow{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.eyebrow .rule{width:24px;height:1px;background:var(--gold)}
.start h1{margin-top:14px;font-weight:600;font-size:clamp(40px,11vw,44px);line-height:1.02;letter-spacing:-.035em}
.lead{margin:14px 0 0;font-size:16px;line-height:1.55;color:var(--muted)}
.start .btn-xl{margin-top:28px}
.gift-line{margin:16px 0 0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;color:#D8D4CA}
.gift-line svg{color:var(--gold);flex:none}
.gift-line strong{color:var(--bright);font-weight:600}
.stats{margin-top:32px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stats div{padding:16px 0;display:flex;flex-direction:column;align-items:center;gap:4px}
.stats div+div{border-left:1px solid var(--line)}
.stats b{font:600 22px "Space Grotesk",sans-serif;color:var(--bright)}
.stats span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.start .fine{text-align:center}

/* QUIZ */
.qbar{display:flex;align-items:center;justify-content:space-between}
.qcount{font-size:14px;color:var(--dim)} .qcount b{color:var(--text)}
.spacer{width:44px}
.progress{margin-top:20px;height:4px;border-radius:4px;background:#24221E;overflow:hidden}
.progress>div{height:4px;background:var(--gold);transition:width .35s ease}
.qtext{margin-top:44px;font-weight:600;font-size:clamp(24px,6.5vw,32px);line-height:1.2;letter-spacing:-.01em;min-height:2.4em}
.answers{margin-top:28px;display:flex;flex-direction:column;gap:12px}
.answer{text-align:left;min-height:60px;padding:16px 18px;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:400 16px/1.4 Inter,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;transition:border-color .15s,background .15s,transform .1s}
.answer:hover{border-color:#4a4536;background:#191815}
.answer.selected{border:1.5px solid var(--gold);background:#1E1B13}
.answer .check{flex:none;width:20px;height:20px;color:var(--gold);opacity:0}
.answer.selected .check{opacity:1}

/* EMAIL */
.static{margin-bottom:0}
.progress.full{margin-top:20px}
.locked{margin-top:40px;border-radius:var(--r);border:1px solid var(--line);background:var(--panel);padding:22px;display:flex;flex-direction:column;gap:12px}
.skel{display:flex;flex-direction:column;gap:8px}
.skel i{display:block;height:12px;width:100%;border-radius:6px;background:#221F1B}
.skel i:first-child{background:#2A2823}
.lock-note{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--gold)}
.h2{margin-top:32px;font-weight:600;font-size:28px;line-height:1.2}
form{display:flex;flex-direction:column;margin-top:24px}
label{font-size:13px;font-weight:500;color:var(--muted);margin:14px 0 8px}
label:first-child{margin-top:0}
input{height:56px;border-radius:14px;border:1px solid var(--line2);background:var(--panel);color:var(--text);padding:0 16px;font:16px Inter,sans-serif}
input::placeholder{color:#77736a}
.error{min-height:20px;margin:10px 0 4px;font-size:14px;color:#F0A47E}
form .btn-xl{margin-top:4px}

/* RESULT */
.result-grid{display:grid;grid-template-columns:1fr;gap:32px;margin-top:36px}
.type{margin-top:10px;font-weight:600;font-size:clamp(36px,10vw,56px);line-height:1.02;letter-spacing:-.03em}
.scorebox{margin-top:20px;display:flex;flex-direction:column;gap:8px}
.score-row{display:flex;justify-content:space-between;font-size:13px;color:var(--dim)} .score-row b{color:var(--text)}
.bar{height:6px;border-radius:6px;background:#24221E;overflow:hidden}
.bar>div{height:6px;width:0;background:var(--gold);transition:width .8s ease}
.score-ends{display:flex;justify-content:space-between;font-size:11px;color:var(--dim)}
.body{margin:24px 0 0;font-size:16px;line-height:1.6;color:#D3CFC5}
.card{margin-top:24px;border-radius:16px;border:1px solid var(--line);background:var(--panel);padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.weak{font-size:17px}
.result-main h3,.cert h3{margin-top:28px;font-weight:600;font-size:20px}
.rules{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;counter-reset:r}
.rules li{display:flex;gap:14px;align-items:flex-start;font-size:15px;line-height:1.5;counter-increment:r}
.rules li::before{content:counter(r);flex:none;width:28px;height:28px;border-radius:8px;background:#1E1B13;color:var(--gold);font-weight:600;font-size:14px;display:flex;align-items:center;justify-content:center;margin-top:-2px}
.gold-border{border:1.5px solid var(--gold);background:var(--panel2);border-radius:20px;padding:22px;gap:12px;margin-top:0}
.gift-title{font:600 22px/1.2 "Space Grotesk",sans-serif}
.gift p{margin:0;font-size:15px;line-height:1.55}
.cert h3{margin-top:32px}
.cert p{margin:6px 0 14px;font-size:14px}
.cert-img{display:block;width:100%;aspect-ratio:1200/630;border-radius:14px;border:1px solid var(--line2);background:var(--panel);object-fit:cover}
.cert .btn{margin-top:12px}

/* DESKTOP */
@media (min-width:900px){
  .wrap{padding:40px 48px 56px}
  .start{display:grid;grid-template-columns:minmax(440px,1fr) 1fr;min-height:100dvh}
  .start-media{order:2;height:auto;min-height:100dvh}
  .start-fade{background:linear-gradient(90deg,var(--bg) 0%,rgba(11,11,10,.55) 18%,rgba(11,11,10,0) 45%)}
  .start .topbar{padding:32px 48px}
  .start-body{order:1;margin:0;width:100%;max-width:none;padding:140px clamp(40px,5vw,80px) 48px clamp(48px,7vw,128px);justify-content:center}
  .start h1{max-width:620px}
  .start h1{font-size:68px}
  .lead{font-size:18px;max-width:460px}
  .start .btn-xl{max-width:440px}
  .gift-line{justify-content:flex-start}
  .stats{max-width:460px}
  .start .fine{text-align:left;max-width:460px}
  .qtext{margin-top:56px}
  .answers{gap:14px}
  .result-grid{grid-template-columns:1.15fr .85fr;gap:56px;align-items:start}
  .result-side{position:sticky;top:32px}
}
@media (min-width:1400px){ .start h1{font-size:76px} }

/* share page + admin */
.share-wrap{max-width:720px;display:flex;flex-direction:column;gap:20px;text-align:center;padding-top:48px}
.share-img{width:100%;border-radius:16px;border:1px solid var(--line2)}
.share h1{font-size:clamp(28px,6vw,40px);line-height:1.15}
.share .btn-xl{max-width:420px;margin:8px auto 0}
.admin table{width:100%;border-collapse:collapse;margin:12px 0 28px;font-size:14px}
.admin th,.admin td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line)}
.admin th{color:var(--dim);font-weight:500}
.admin h1{font-size:32px;margin-bottom:16px} .admin h2{font-size:20px}
.admin .btn{display:inline-flex}

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