/* The Morgue: cold steel, one warm lamp, a red eye. One column, big type, plain labels. */

:root {
    --bg: #0b0d10;
    --bg-2: #101317;
    --panel: #141920;
    --panel-2: #1a2029;
    --line: #262d37;
    --line-2: #364050;
    --text: #e2e7ec;
    --text-2: #c2cad3;
    --muted: #8d99a8;
    --amber: #d9a441;
    --amber-2: #f0c169;
    --red: #e23b2e;
    --cyan: #6fc0d6;
    --green: #6fcb8a;
    --tag: #eadfc3;
    --tag-ink: #2b2418;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px;
    --wrap: 1040px;
    --read: 760px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    background: var(--bg);
    background-image: radial-gradient(1100px 480px at 70% -10%, rgba(111, 192, 214, 0.10), transparent 60%),
                      radial-gradient(700px 400px at 10% 0%, rgba(217, 164, 65, 0.07), transparent 60%);
    color: var(--text);
    font: 17px/1.6 var(--sans);
}
a { color: var(--amber-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.45em; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.dim { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.fine { color: var(--muted); font-size: 0.9rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--amber); color: #000; padding: 6px 10px; z-index: 10; }
.kicker { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.5em; }
.lede { font-size: 1.2rem; color: var(--text-2); max-width: var(--read); }
.empty { color: var(--muted); padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 1.05rem; }
.meta-line { color: var(--muted); font-size: 1rem; margin-bottom: 1em; }
.meta-line a { color: var(--text-2); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); background: rgba(11, 13, 16, 0.92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-eye { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff 0 10%, var(--red) 25%, #6b1410 80%); box-shadow: 0 0 12px rgba(226, 59, 46, 0.7); animation: blink 6s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.brand-word { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.2em; color: var(--amber-2); }
.brand-sub { color: var(--muted); font-size: 0.9rem; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--text); padding: 10px 14px; border-radius: var(--radius); font-size: 1rem; font-weight: 500; }
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a[aria-current] { color: var(--amber-2); box-shadow: inset 0 -2px 0 var(--amber); }
.nav-ext { color: var(--cyan) !important; }

main { padding: 36px 24px 56px; }

/* Buttons and badges */
.btn { display: inline-block; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); background: var(--panel); font-size: 1rem; font-weight: 600; margin: 0 8px 8px 0; }
.btn:hover { background: var(--panel-2); border-color: var(--amber); text-decoration: none; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #1a1408; }
.btn-amber:hover { background: var(--amber-2); }
.btn-red { border-color: var(--red); color: #ffb1a9; }
.btn-sm { padding: 7px 12px; font-size: 0.92rem; }
.badge { display: inline-block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.badge-kind { color: var(--cyan); border-color: rgba(111, 192, 214, 0.45); }
.badge-status.is-active { color: var(--green); border-color: rgba(111, 203, 138, 0.45); }
.badge-status.is-stable { color: var(--amber); border-color: rgba(217, 164, 65, 0.45); }
.badge-status.is-dormant { color: var(--muted); }
.chip { display: inline-block; font-size: 0.92rem; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); margin: 2px 6px 2px 0; white-space: nowrap; }
.chip:hover { border-color: var(--amber); text-decoration: none; }

/* Sections */
.section { margin: 0 0 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.section-head h1, .section-head h2 { margin: 0; }
.more { font-size: 1rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 8px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 0.4em; }
.hero-actions { margin-top: 22px; }
.latest { display: block; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
a.latest:hover { border-color: var(--amber); text-decoration: none; }
.latest img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin: 10px 0; }
.latest-label { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; color: var(--red); text-transform: uppercase; }
.latest-title { display: block; font-weight: 700; font-size: 1.25rem; margin-top: 8px; }
.latest-date { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 6px; }
.latest-pending { border-style: dashed; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 1rem; }
.stats b { color: var(--text); font-size: 1.3rem; margin-right: 6px; }

/* Project cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pgrid-1 { grid-template-columns: 1fr; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.pcard:hover { border-color: var(--line-2); }
.pcard-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pcard-ver { margin-left: auto; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.pcard-title { margin: 4px 0 0; font-size: 1.35rem; }
.pcard-title a { color: var(--text); }
.pcard-game { margin: 0; font-size: 1rem; color: var(--muted); }
.pcard-tag { margin: 4px 0; color: var(--text-2); }
.pcard-links { margin: 8px 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 1rem; }
.facts dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; }
.facts-inline { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.facts-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 28px; }

/* Game cards (toe tags) */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tag { position: relative; display: block; background: var(--tag); color: var(--tag-ink); border-radius: 6px 16px 6px 6px; padding: 16px 16px 16px 30px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); transition: transform 0.12s; }
.tag:hover { transform: translateY(-2px); text-decoration: none; }
.tag::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; border-left: 1px dashed rgba(43, 36, 24, 0.35); }
.tag-hole { position: absolute; left: 12px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px #9a8c6a; }
.tag-title { display: block; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.tag-row { display: block; font-family: var(--mono); font-size: 0.85rem; color: #4d4331; }
.tag-row b { color: #7a6a4a; font-weight: 600; letter-spacing: 0.08em; margin-right: 6px; }

/* Index table */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 18px; }
.filter { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; color: var(--muted); }
.filter input, .filter select { font: 1rem var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px 12px; min-width: 220px; }
.filter input:focus, .filter select:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.filter-count { align-self: center; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.index { width: 100%; border-collapse: collapse; font-size: 1rem; }
.index th { text-align: left; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); white-space: nowrap; }
.index td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.index tr:last-child td { border-bottom: 0; }
.index tr:hover td { background: rgba(255, 255, 255, 0.02); }
.row-title { color: var(--text); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.cod { color: var(--muted); min-width: 280px; }

/* Reading pages */
.crumbs { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.page { max-width: var(--read); }
.page h2 { margin-top: 36px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.page-wide { max-width: none; }
.portrait { float: right; width: 200px; margin: 0 0 16px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); }
.cover { float: right; width: 220px; margin: 0 0 16px 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); }
.cod-quote { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--red); background: var(--panel); color: #edd0cc; font-style: italic; font-size: 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--read); }
.verdict { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--amber); background: var(--panel); font-size: 1.15rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--read); }
.verdict cite { display: block; margin-top: 8px; font-family: var(--mono); font-style: normal; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted); }
.features { padding-left: 1.2em; max-width: var(--read); }
.features li { margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 16px 0; }
.gallery img { border-radius: 6px; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.player { aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; max-width: 900px; }
.player iframe { width: 100%; height: 100%; border: 0; }
.clearfix::after { content: ""; display: block; clear: both; }

/* Episodes */
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ecard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ecard-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-2); }
.ecard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ecard-nothumb { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.ecard-num { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 0.8rem; background: rgba(0, 0, 0, 0.7); color: var(--amber-2); padding: 3px 8px; border-radius: 4px; }
.ecard-body { padding: 14px 16px 16px; }
.ecard-body h3 a { color: var(--text); }
.ecard-date { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.ecard-loot { font-size: 0.95rem; margin: 0; }
.ecard-loot b { color: var(--red); letter-spacing: 0.08em; margin-right: 6px; font-family: var(--mono); font-size: 0.8rem; }

/* Shats */
.shats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.shat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.shat-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.shat-body { margin: 0; font-size: 1rem; }
.shat-meta { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Crossover block (not named "ad": ad blockers hide .ad by class) */
.crossover { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; background: linear-gradient(135deg, #1b1610, #141920 60%); border: 1px solid rgba(217, 164, 65, 0.45); border-radius: var(--radius); padding: 22px 20px 18px; }
.crossover::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(217, 164, 65, 0.25); border-radius: 5px; pointer-events: none; }
.crossover-label { position: absolute; top: -10px; left: 16px; background: var(--bg); padding: 0 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--amber); }
.crossover-face { border-radius: 50%; background: #000; border: 2px solid var(--amber); }
.crossover-body b { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.crossover-body p { font-size: 1rem; color: var(--text-2); margin-bottom: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 20px; }
.footer-row { padding: 26px 24px; font-size: 0.95rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.notfound { text-align: center; padding: 60px 0; }

/* Responsive */
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .masthead-row { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    h1 { font-size: 1.9rem; }
    .crossover { grid-template-columns: 1fr; }
    .crossover-face { width: 64px; height: 64px; }
    .portrait, .cover { float: none; width: 100%; max-width: 260px; margin: 0 0 16px; }
    .filter input, .filter select { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-eye { animation: none; }
    .tag { transition: none; }
}
