:root{
  --bg:#1f1d36; --card:#2b2850; --text:#f7f5ff; --muted:#b8b3d9;
  --left:#e8485f; --right:#2f80ed; --good:#2ecc71; --bad:#ff6b6b; --accent:#ffd166;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;background:var(--bg);color:var(--text)}
body{min-height:100vh;min-height:100dvh}
body{transition:background .3s}
body[data-result="good"]{background:#18392b}
body[data-result="bad"]{background:#3d1d2a}
#app{max-width:480px;margin:0 auto;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
.screen{display:none;flex-direction:column;gap:14px;animation:pop .25s ease}
.screen.active{display:flex}
@keyframes pop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.logo{font-size:2.6rem;text-align:center;margin:28px 0 4px;line-height:1.1}
.logo .l{color:var(--left)} .logo .r{color:var(--right)} .logo small{font-size:1.2rem;color:var(--muted)}
.lead{text-align:center;color:var(--muted);font-size:1.05rem;margin:0}
.rules{list-style:none;padding:16px;margin:0;background:var(--card);border-radius:16px;display:grid;gap:8px}
.btn{border:0;border-radius:16px;padding:16px;font-size:1.2rem;font-weight:700;color:#fff;cursor:pointer;
  transition:transform .1s, filter .2s; touch-action:manipulation; min-height:56px}
.btn:active{transform:scale(.96)}
.btn:disabled{filter:grayscale(1) brightness(.7)}
.btn.primary{background:var(--accent);color:#1f1d36}
.btn.left{background:var(--left)} .btn.right{background:var(--right)}
.link{background:none;border:0;color:var(--muted);text-decoration:underline;font-size:.95rem;cursor:pointer}
.hud{display:flex;align-items:center;gap:10px;font-weight:700}
.bar{flex:1;height:8px;background:var(--card);border-radius:8px;overflow:hidden}
#bar-fill{height:100%;width:0;background:var(--accent);transition:width .3s}
.photo{margin:0;background:var(--card);border-radius:20px;overflow:hidden}
.photo img{display:block;width:100%;height:min(52vh,440px);height:min(52dvh,440px);object-fit:cover;object-position:center 20%;background:#3a3666}
.credit{font-size:.75rem;color:var(--muted);padding:8px 12px;word-break:break-word}
.credit a,.reveal a,.credits a{color:var(--accent)}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.reveal{background:var(--card);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:8px;animation:pop .25s ease}
.reveal h2{margin:0;font-size:1.3rem}
.reveal p{margin:0;line-height:1.45}
.verdict{font-size:1.5rem;font-weight:800}
body[data-result="good"] .verdict{color:var(--good)}
body[data-result="bad"] .verdict{color:var(--bad)}
details{font-size:.9rem;color:var(--muted)} details ul{padding-left:18px;margin:6px 0}
summary{cursor:pointer}
.final{font-size:4rem;font-weight:900;text-align:center;margin:8px 0;color:var(--accent)}
.final small{font-size:1.6rem;color:var(--muted)}
.recap{background:var(--card);border-radius:16px;padding:12px 12px 12px 36px;margin:0;display:grid;gap:4px}
.credits{list-style:none;padding:0;margin:0;display:grid;gap:10px;font-size:.85rem}
.credits li{background:var(--card);padding:10px;border-radius:12px;word-break:break-word}
.muted{color:var(--muted);font-size:.9rem}
h2{margin:8px 0 0}
