/* Midnight Alibi web pages. Standalone: this folder is plain static HTML
 * served by GitHub Pages, not part of the portfolio's React app.
 * Colors and fonts follow the game (midnight-alibi repo, www/css/styles.css). */

@font-face { font-family: 'Bodoni Moda'; src: url('fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('fonts/bodoni-moda-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('fonts/courier-prime.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('fonts/karla.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --noir: #141217;
  --noir-2: #1d1a21;
  --noir-3: #26222b;
  --noir-ink: #ece4d1;
  --noir-muted: #a79d88;
  --noir-line: rgba(236, 228, 209, 0.13);
  --brass: #d6a54d;
  --brass-hi: #eadcb8;
  --manila: #ded2b8;
  --card: #eee7d6;
  --ink: #2b2417;
  --muted: #6d604a;
  --line: rgba(43, 36, 23, 0.16);
  --stamp: #b3372d;
  --room-ink: #f7efdc;
  --room-0: #33607f; --room-1: #8e3a2f; --room-2: #2f6b4b; --room-3: #604680;
  --lamp: rgba(255, 214, 140, 0.14);
  /* defaults the game's look styles (looks.css) fall back to */
  --desk: #141217; --manila-back: #c5b390; --manila-edge: #c4ae7c; --paper-rule: rgba(72, 54, 29, .045);
  --stamp-on-dark: #e0605a; --note-ink: var(--room-ink); --ink-face: 800 0.62rem var(--sans);
  --desk-detail: radial-gradient(ellipse at 85% 0, var(--lamp), transparent 65%);
  --file-detail: repeating-linear-gradient(0deg, transparent 0 25px, var(--paper-rule) 25px 26px);
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Karla', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --type: 'Courier Prime', 'Courier New', Courier, monospace;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--noir);
  color: var(--noir-ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-hi); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--brass); color: var(--noir); padding: 8px 12px; }

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto; z-index: 3; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--noir-ink); text-decoration: none; font: 600 1.15rem/1 var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand em { color: var(--brass); }
.topbar nav { display: flex; gap: 20px; font-size: 0.92rem; }
.topbar nav a { color: var(--noir-muted); text-decoration: none; }
.topbar nav a:hover { color: var(--noir-ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: end;
  padding: 120px 0 72px;
  background:
    linear-gradient(180deg, rgba(20, 18, 23, 0.25) 0%, rgba(20, 18, 23, 0.55) 45%, var(--noir) 100%),
    url('manor-night.webp') center 30% / cover no-repeat,
    var(--noir);
  overflow: hidden;
}
.hero::after {
  /* the lit window's glow */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 30% at 70% 22%, var(--lamp), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-seal { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); margin-bottom: 18px; }
.hero h1 {
  margin: 0;
  font: 500 clamp(3.2rem, 11vw, 6.5rem)/0.95 var(--display);
  letter-spacing: -0.01em;
}
.hero h1 em { display: block; color: var(--brass); font-style: italic; }
.tagline { margin: 18px 0 8px; font: 1.15rem/1.4 var(--type); color: var(--noir-ink); }
.lede { max-width: 34em; margin: 0 0 28px; color: var(--noir-muted); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  font: 700 1rem/1 var(--sans); text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brass); color: var(--noir); }
.btn-primary:hover { background: var(--brass-hi); color: var(--noir); }
.btn-ghost { color: var(--noir-ink); border-color: var(--noir-line); background: rgba(20, 18, 23, 0.4); }
.btn-ghost:hover { color: var(--noir-ink); border-color: var(--brass); }
.btn svg { width: 20px; height: 20px; flex: none; }
/* Before launch the Play link shows as "Coming soon" and isn't clickable. */
/* Store buttons: "Coming soon" until data-live="true" on launch day. */
.btn-store[data-live="false"] { background: transparent; color: var(--brass); border: 1px dashed rgba(214, 165, 77, 0.55); cursor: default; pointer-events: none; }
.btn-store[data-live="false"] .live, .btn-store[data-live="true"] .soon { display: none; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.kicker { margin: 0 0 10px; font: 0.8rem/1 var(--type); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
h2 { margin: 0 0 16px; font: 500 clamp(2rem, 5vw, 3rem)/1.08 var(--display); }
h3 { margin: 0 0 8px; font: 600 1.35rem/1.2 var(--display); }
.intro { max-width: 40em; color: var(--noir-muted); margin: 0 0 40px; }
.band { background: var(--noir-2); border-block: 1px solid var(--noir-line); }

/* ---------- the premise: a case file with a small timeline ---------- */
.premise { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .premise { grid-template-columns: 1fr; } }
.premise > div { min-width: 0; }
.premise > div > p { color: var(--noir-muted); }
.premise > div > p strong { color: var(--noir-ink); font-weight: 600; }

.casefile {
  background: var(--card);
  color: var(--ink);
  border-radius: 6px;
  padding: 22px 20px 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.2deg);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(72, 54, 29, 0.05) 27px 28px);
}
.casefile .head { display: flex; justify-content: space-between; font: 0.72rem/1 var(--type); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.casefile .victim { margin: 8px 0 2px; font: 600 1.7rem/1.1 var(--display); }
.casefile .found { margin: 0 0 16px; font-size: 0.92rem; color: var(--muted); }
.casefile .found b { color: var(--stamp); font-weight: 700; }
.casefile { min-width: 0; }
.timeline { display: grid; grid-template-columns: 52px repeat(4, minmax(0, 1fr)); gap: 5px; font: 0.78rem/1 var(--type); }
.timeline .hr { text-align: center; color: var(--muted); padding: 4px 0; }
.timeline .hr.crime { color: var(--stamp); font-weight: 700; }
.timeline .who { display: flex; align-items: center; font: 600 0.9rem/1 var(--sans); }
.timeline .sq { aspect-ratio: 1.35; border-radius: 5px; display: grid; place-items: center; overflow: hidden; color: var(--room-ink); font: 700 clamp(0.58rem, 2.4vw, 0.7rem)/1 var(--sans); letter-spacing: 0.02em; }
.timeline .r0 { background: var(--room-0); } .timeline .r1 { background: var(--room-1); }
.timeline .r2 { background: var(--room-2); } .timeline .r3 { background: var(--room-3); }
.timeline .sq.hit { outline: 3px solid var(--stamp); outline-offset: 1px; }
.casefile .verdict { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.stamp {
  font: 700 0.95rem/1 var(--type); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stamp); border: 3px solid var(--stamp); border-radius: 4px; padding: 6px 10px;
  transform: rotate(-6deg); opacity: 0.9;
}

/* ---------- how it plays: three screens ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.step { counter-increment: step; }
.phone {
  border-radius: 28px; padding: 8px; background: #0b0a0d;
  border: 1px solid var(--noir-line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  margin: 0 auto 18px; max-width: 280px;
}
.phone img { border-radius: 21px; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.step h3::before { content: counter(step, decimal-leading-zero) '  '; font: 0.9rem/1 var(--type); color: var(--brass); letter-spacing: 0.1em; }
.step p { margin: 0; color: var(--noir-muted); }

/* ---------- levels ---------- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 16px; }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }
.level { background: var(--manila); color: var(--ink); border-radius: 6px; padding: 20px 18px; position: relative; }
.level .tab { position: absolute; top: -12px; left: 16px; background: var(--manila); border-radius: 6px 6px 0 0; padding: 4px 12px 2px; font: 0.72rem/1.2 var(--type); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.level h3 { margin-top: 4px; }
.level .meta { font: 0.8rem/1.3 var(--type); color: var(--stamp); margin: 0 0 8px; }
.level p { margin: 0; font-size: 0.95rem; color: var(--ink); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { border-top: 1px solid var(--noir-line); padding-top: 18px; }
.feature svg { width: 26px; height: 26px; color: var(--brass); margin-bottom: 10px; }
.feature p { margin: 0; color: var(--noir-muted); font-size: 0.97rem; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--noir-line); border-radius: 14px; padding: 26px 24px; background: var(--noir-2); }
.plan.paid { border-color: rgba(214, 165, 77, 0.45); background: linear-gradient(180deg, rgba(214, 165, 77, 0.08), transparent 60%), var(--noir-2); }
.plan .price { font: 0.85rem/1 var(--type); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: 0 0 8px; }
.plan ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--noir-muted); }
.plan li { margin-bottom: 6px; }
.fineprint { margin-top: 20px; color: var(--noir-muted); font-size: 0.92rem; }

/* ---------- privacy band ---------- */
.privacy-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 820px; }
.privacy-note svg { width: 40px; height: 40px; color: var(--brass); }
.privacy-note p { margin: 0 0 10px; color: var(--noir-muted); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--noir-line); padding: 36px 0 44px; font-size: 0.92rem; color: var(--noir-muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--noir-ink); text-decoration: none; }
footer nav a:hover { color: var(--brass); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise.d1 { animation-delay: 0.12s; } .rise.d2 { animation-delay: 0.24s; } .rise.d3 { animation-delay: 0.36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero { background-position: center 30%; animation: drift 30s ease-in-out infinite alternate; }
  @keyframes drift { to { background-position: center 38%; } }
  .stamp { animation: stamp 0.5s 1.2s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } }
}

/* ---------- text pages: privacy policy, delete account ---------- */
.doc-bar { border-bottom: 1px solid var(--noir-line); }
.doc-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.doc-bar .back { font-size: 0.92rem; color: var(--noir-muted); text-decoration: none; }
.doc-bar .back:hover { color: var(--noir-ink); }
.doc-head {
  padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 4vw, 40px);
  background: radial-gradient(60% 120% at 85% 0%, var(--lamp), transparent 70%);
}
.doc-head h1 { margin: 0 0 10px; font: 500 clamp(2.2rem, 7vw, 3.4rem)/1.05 var(--display); }
.doc-head .sub { margin: 0; font: 0.95rem/1.4 var(--type); color: var(--brass); }
.doc { padding-bottom: 64px; }
/* One reading column for the whole page: bar, title, text and footer line up. */
.doc-bar .wrap, .doc-head .wrap, .wrap.doc, body:has(.doc) footer .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h2 { margin: 40px 0 10px; font: 600 1.5rem/1.2 var(--display); color: var(--noir-ink); }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; color: #d6cdb8; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--brass); }
.doc strong { color: var(--noir-ink); }
.doc em { color: var(--noir-ink); }
.doc .summary {
  margin: 0 0 8px; padding: 18px 20px; border-radius: 10px;
  background: var(--noir-2); border: 1px solid var(--noir-line); border-left: 4px solid var(--brass);
  color: var(--noir-ink);
}
.doc .muted { color: var(--noir-muted); font-size: 0.92rem; }

/* ---------- site navigation (every page) ---------- */
.topbar .wrap { flex-wrap: wrap; row-gap: 8px; }
.topbar nav { flex-wrap: wrap; justify-content: flex-end; column-gap: 18px; row-gap: 4px; }
.topbar nav a[aria-current="page"] { color: var(--brass); }
.topbar.solid { position: sticky; top: 0; z-index: 5; background: rgba(20, 18, 23, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--noir-line); }
@media (max-width: 640px) {
  .topbar nav { display: flex; width: 100%; justify-content: flex-start; column-gap: 14px; font-size: 0.86rem; }
  .topbar .wrap { padding-top: 12px; padding-bottom: 10px; }
}

/* ---------- inner pages ---------- */
.page-hero {
  position: relative; padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 48px);
  background: radial-gradient(70% 120% at 85% 0%, var(--lamp), transparent 70%);
  border-bottom: 1px solid var(--noir-line);
}
.page-hero.has-art { background: linear-gradient(180deg, rgba(20, 18, 23, 0.55), var(--noir) 92%), var(--art) center 35% / cover no-repeat, var(--noir); }
.page-hero h1 { margin: 0 0 12px; font: 500 clamp(2.4rem, 8vw, 4rem)/1.02 var(--display); }
.page-hero h1 em { color: var(--brass); }
.page-hero .lede { margin: 0; }
.crumbs { margin: 0 0 14px; font: 0.8rem/1 var(--type); letter-spacing: 0.12em; text-transform: uppercase; }
.crumbs a { color: var(--noir-muted); text-decoration: none; }
.crumbs a:hover { color: var(--brass); }
section.tight { padding: clamp(36px, 6vw, 64px) 0; }
.prose { max-width: 42em; }
.prose p { color: var(--noir-muted); }
.prose strong { color: var(--noir-ink); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split .phone { margin: 0 auto; max-width: 300px; }
.num { font: 0.9rem/1 var(--type); color: var(--brass); letter-spacing: 0.1em; }

/* screenshot strip */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery .phone { max-width: none; margin: 0 0 10px; }
.gallery figcaption { font-size: 0.9rem; color: var(--noir-muted); }
.gallery figcaption b { display: block; color: var(--noir-ink); font: 500 1.05rem var(--display); }

/* explore cards (home) */
.explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .explore { grid-template-columns: 1fr; } }
.explore a {
  position: relative; display: grid; align-content: end; min-height: 190px; padding: 16px; border-radius: 12px; overflow: hidden;
  color: var(--noir-ink); text-decoration: none; border: 1px solid var(--noir-line);
  background: linear-gradient(180deg, rgba(20, 18, 23, 0.1), rgba(20, 18, 23, 0.92) 70%), var(--art, var(--noir-2)) center / cover no-repeat;
}
.explore a:hover, .explore a:focus-visible { border-color: var(--brass); color: var(--noir-ink); }
.explore b { font: 500 1.35rem/1.1 var(--display); }
.explore span { margin-top: 4px; font-size: 0.88rem; color: var(--noir-muted); }
.explore .glyph { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; }
.explore .glyph svg { width: 100%; height: 100%; }
.explore .glyph.line { color: var(--brass); }

/* icons from the game's sprite */
.ico, .ico-lg { fill: none; stroke: currentColor; }
.ico { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }

/* ---------- how to play ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 72px); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.help-card { padding: 18px; border-radius: 12px; background: var(--noir-2); border: 1px solid var(--noir-line); }
.help-card h3 { display: flex; align-items: center; gap: 8px; }
.help-card h3 svg { width: 22px; height: 22px; color: var(--brass); }
.help-card p { margin: 6px 0 0; color: var(--noir-muted); font-size: 0.95rem; }
.levels-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.levels-table th, .levels-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--noir-line); vertical-align: top; }
.levels-table thead th { font: 700 0.66rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.levels-table tbody th { font: 500 1.1rem var(--display); }
.levels-table td { color: var(--noir-muted); }
@media (max-width: 640px) {
  .levels-table thead { display: none; }
  .levels-table tr { display: grid; grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1px solid var(--noir-line); }
  .levels-table th, .levels-table td { border: 0; padding: 2px 0; }
  .levels-table td::before { content: attr(data-label) ': '; color: var(--noir-ink); font-weight: 700; }
}
.methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.method { padding: 16px 18px; border-radius: 12px; background: var(--card); color: var(--ink); }
.method .lvl { font: 700 0.62rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stamp); }
.method h3 { margin: 4px 0 6px; font: 600 1.2rem var(--display); color: var(--ink); }
.method p { margin: 0; font-size: 0.92rem; color: #4a3f2e; }

/* ---------- ranks ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.points div { padding: 14px; border-radius: 10px; background: var(--noir-2); border: 1px solid var(--noir-line); text-align: center; }
.points b { display: block; font: 500 1.8rem/1 var(--display); color: var(--brass); }
.points span { font-size: 0.82rem; color: var(--noir-muted); }
.tier { margin-top: 36px; }
.tier h3 { font: 500 1.5rem var(--display); margin-bottom: 4px; }
.tier > p { margin: 0 0 14px; color: var(--noir-muted); }
.ladder-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.rank-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--noir-2); border: 1px solid var(--noir-line); }
.rank-card svg.badge-art { width: 64px; height: 64px; }
.rank-card .n { font: 0.75rem var(--type); color: var(--noir-muted); }
.rank-card h4 { margin: 2px 0 4px; font: 500 1.15rem/1.15 var(--display); }
.rank-card .needs { margin: 0 0 6px; font: 0.8rem/1.4 var(--type); color: var(--noir-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.unlock { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(214, 165, 77, 0.12); border: 1px solid rgba(214, 165, 77, 0.35); font: 700 0.76rem/1.3 var(--sans); }
.unlock small { font: 700 0.56rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.looks-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.looks-grid li { padding: 12px; border-radius: 12px; background: var(--noir-2); border: 1px solid var(--noir-line); }
.looks-grid b { display: block; margin-top: 8px; font-size: 0.92rem; }
.looks-grid span { font-size: 0.78rem; color: var(--noir-muted); }
/* Looks are drawn by the game's own styles (looks.css, copied from the game
   by scripts/build-midnight-alibi.cjs); these only size them for the page. */
.look-kind { margin-top: 28px; }
.look-kind h3 { margin: 0; font: 500 1.3rem var(--display); }
.look-kind > p { margin: 2px 0 12px; font-size: 0.88rem; color: var(--noir-muted); }
.swatch { display: grid; place-items: center; height: 76px; padding: 0; border-radius: 8px; border: 1px solid var(--noir-line); background: var(--noir); overflow: hidden; }
.swatch.look-frame::before { width: 40px; height: 40px; }
.swatch.look-seal::before { width: 46px; height: 46px; }
.swatch.look-seal::after { width: 22px; height: 22px; }
.swatch.look-ink::before { transform: scale(1.6); }
.swatch .stamp { padding: 3px 9px; font: 800 0.7rem/1.3 var(--sans); letter-spacing: 0.12em; color: var(--stamp-lit); border-color: var(--stamp-lit); transform: rotate(-4deg); animation: none; }

/* ---------- honours ---------- */
.challenge .earns { color: var(--noir-ink); }
.honour.sealed .ch-ico { border-style: dashed; }
.honour .riddle { font: italic 500 1.1rem/1.45 var(--display); color: var(--noir-ink); }

/* ---------- challenges ---------- */
.challenge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .challenge-list { grid-template-columns: 1fr; } }
.challenge { display: grid; gap: 10px; padding: 20px; border-radius: 14px; background: var(--noir-2); border: 1px solid var(--noir-line); }
.challenge .ch-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(214, 165, 77, 0.5); color: var(--brass); }
.challenge .ch-ico svg { width: 28px; height: 28px; }
.challenge h3 { margin: 0; font-size: 1.45rem; }
.challenge p { margin: 0; color: var(--noir-muted); font-size: 0.95rem; }
.challenge .opens { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--noir-ink); }
.challenge .opens svg { width: 28px; height: 28px; }
.par { width: 100%; max-width: 520px; border-collapse: collapse; }
.par th, .par td { padding: 10px; border-bottom: 1px solid var(--noir-line); text-align: left; }
.par td { font: 1.05rem var(--type); color: var(--brass); }

/* ---------- rooms and suspects ---------- */
.room-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.room { border-radius: 12px; overflow: hidden; background: var(--noir-2); border: 1px solid var(--noir-line); }
.room img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.room div { padding: 12px 14px 14px; }
.room h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.room h3 svg { width: 22px; height: 22px; color: var(--brass); }
.room p { margin: 0; font-size: 0.9rem; color: var(--noir-muted); }
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.suspect { padding: 10px; border-radius: 6px; background: var(--card); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.suspect img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.suspect h3 { margin: 8px 0 2px; font: 600 1.2rem var(--display); color: var(--ink); }
.suspect p { margin: 0; font-size: 0.86rem; color: #4a3f2e; }
.victims { columns: 3 180px; padding-left: 1.2em; color: var(--noir-muted); }
.victims li { margin-bottom: 6px; }

/* the example timeline uses the game's room symbols */
.timeline .sq svg { width: 58%; height: 58%; color: var(--room-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.room-key { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 0; font: 700 0.72rem var(--sans); color: var(--muted); }
.room-key .k { display: inline-flex; align-items: center; gap: 4px; }
.room-key svg { width: 18px; height: 18px; padding: 2px; border-radius: 4px; color: var(--room-ink); }
.room-key .r0 svg { background: var(--room-0); } .room-key .r1 svg { background: var(--room-1); }
.room-key .r2 svg { background: var(--room-2); } .room-key .r3 svg { background: var(--room-3); }

/* phone and tablet showcase (home) */
.devices { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: end; max-width: 860px; margin: 0 auto; }
.tablet { border-radius: 26px; padding: 12px; background: #0b0a0d; border: 1px solid var(--noir-line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); }
.tablet img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; }
.devices .phone { max-width: none; margin: 0; }
.devices figcaption { margin-top: 10px; text-align: center; font-size: 0.88rem; color: var(--noir-muted); }
@media (max-width: 640px) { .devices { grid-template-columns: 1fr; max-width: 320px; } .devices figure:last-child { display: none; } .tablet { padding: 8px; border-radius: 20px; } .tablet img { border-radius: 13px; } }
