/* Alibi Hour website and party pages. No third-party fonts or requests. */
:root {
  --paper: #faf7f0; --card: #ffffff; --ink: #161a24; --muted: #5b6270; --line: #e4ddce;
  --accent: #b45309; --accent-ink: #ffffff; --accent-soft: #fdf0d8; --navy: #14213d; --navy-soft: #e8ecf5;
  --ok: #15803d; --ok-soft: #e3f4e8; --bad: #b42318; --bad-soft: #fde8e6; --focus: #2563eb; --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1420; --card: #171e2c; --ink: #eef1f6; --muted: #a7b0bf; --line: #283244;
    --accent: #fbbf24; --accent-ink: #1c1405; --accent-soft: #2d2412; --navy: #c9d4ee; --navy-soft: #1d2638;
    --ok: #5fd08a; --ok-soft: #12291b; --bad: #ff8a80; --bad-soft: #321716;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1420; --card: #171e2c; --ink: #eef1f6; --muted: #a7b0bf; --line: #283244;
  --accent: #fbbf24; --accent-ink: #1c1405; --accent-soft: #2d2412; --navy: #c9d4ee; --navy-soft: #1d2638;
  --ok: #5fd08a; --ok-soft: #12291b; --bad: #ff8a80; --bad-soft: #321716;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
nav.top { display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--ink); }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 36em; }
.hl { color: var(--accent); }
.hero { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 0; font-size: 16px; cursor: pointer; font-family: inherit; }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: default; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
section { padding: 36px 0; }
section + section { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 20px 0 0; list-style: none; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.file { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.file .kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.file h2 { margin-bottom: 8px; }
.file p { margin: 6px 0; }
.suspects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; margin: 14px 0 0; }
.suspects li { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; }
.av.s0 { background: #1d4ed8; } .av.s1 { background: #b91c1c; } .av.s2 { background: #047857; } .av.s3 { background: #7c3aed; }
.who { min-width: 0; line-height: 1.2; }
.who strong { display: block; }
.who span { color: var(--muted); font-size: 14px; }
.map { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.map div { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; font-weight: 700; font-size: 14px; background: var(--paper); }
.map div.scene { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.note { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .example { grid-template-columns: 1fr; } }
.quote { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; margin: 10px 0; font-style: italic; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose table, table.compare { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td, table.compare th, table.compare td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.compare { background: var(--card); }
table.compare.wide { min-width: 560px; }
table.compare thead th { background: var(--accent-soft); }
.table-scroll { overflow-x: auto; margin: 12px 0; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: grid; gap: 10px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
.guide h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.guide h2, .use h2 { margin-top: 32px; }
.crumbs { margin: 0 0 8px; font-size: 14px; }
.answer { color: var(--ink); max-width: none; }
.updated { font-size: 14px; color: var(--muted); }
.howto { padding-left: 1.3em; }
.howto li { margin: 8px 0; }
.guide-list { padding-left: 1.1em; }
.guide-list li { margin: 14px 0; }
.prompts { display: grid; gap: 10px; padding: 0; list-style: none; }
.prompts li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.result { font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.dots { font-size: 26px; letter-spacing: 2px; }
.lines td:first-child { white-space: nowrap; }
.lie { color: var(--bad); }

/* ---------------------------------------------------------------- party phone page */
body.party { min-height: 100vh; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.bar .logo { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; }
.bar .logo svg { width: 26px; height: 26px; }
.code { font-weight: 800; letter-spacing: .18em; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 8px; }
body.party main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px; }
body.party footer { padding: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 14px; }
.card h2 { font-size: 22px; margin: 0 0 6px; }
.card p { margin: 6px 0; }
.pick { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pick button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; min-height: 56px; }
.pick button[disabled] { opacity: .5; cursor: default; }
.pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.tag { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.role { border-radius: 14px; padding: 14px; margin: 10px 0; font-weight: 700; }
.role.innocent { background: var(--ok-soft); color: var(--ok); }
.role.culprit { background: var(--bad-soft); color: var(--bad); }
.sheet-lines { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.sheet-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: baseline; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.sheet-lines .t { font-weight: 800; color: var(--accent); }
.sheet-lines li.incident .t::after { content: " ⚑"; }
.hidden-sheet { text-align: center; padding: 22px 12px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: var(--bad); font-weight: 600; }
textarea.notes { width: 100%; min-height: 120px; font: inherit; font-size: 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px; }
.tally { display: grid; gap: 6px; margin: 10px 0; }
.tally div { display: grid; grid-template-columns: 90px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 15px; }
.bar-fill { height: 12px; border-radius: 6px; background: var(--accent); min-width: 2px; }
.truth { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.truth th, .truth td { border: 1px solid var(--line); padding: 5px 4px; text-align: center; }
.truth td.at-scene { background: var(--accent-soft); font-weight: 800; }
details summary { cursor: pointer; font-weight: 700; }
.small { font-size: 14px; }
