:root {
  --bg: #0b0b0d;
  --bg-2: #141417;
  --bg-3: #1c1c20;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #ece6d8;
  --ink-2: #b9b2a2;
  --ink-3: #7f7a6e;
  --blood: #b3122e;
  --blood-hi: #d61d3d;
  --amber: #ffb54d;
  --amber-glow: rgba(255, 181, 77, 0.55);
  --display: Creepster, "Chiller", cursive;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); }
h1, h2, h3 { line-height: 1.05; margin: 0; }
h2 { font: 400 clamp(38px, 6vw, 64px)/1 var(--display); color: var(--ink); letter-spacing: 0.02em; }
h3 { font-size: 20px; font-weight: 800; }
section { padding: clamp(64px, 9vw, 112px) 16px; }
section > h2, section > .lede { max-width: var(--wrap); margin-left: auto; margin-right: auto; text-align: center; }
.lede { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 700 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--blood); color: #fff; border-color: var(--blood-hi); box-shadow: 0 6px 24px rgba(179, 18, 46, 0.35); }
.btn-red:hover { background: var(--blood-hi); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- nav ---------- */
.logo { font: 400 40px/1 var(--display); color: var(--blood); text-decoration: none; letter-spacing: 0.04em; text-shadow: 0 0 22px rgba(179, 18, 46, 0.5); }
.logo-sm { font-size: 30px; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: linear-gradient(rgba(11, 11, 13, 0.92), rgba(11, 11, 13, 0.6) 70%, transparent); backdrop-filter: blur(4px); }
.nav nav { display: none; gap: 28px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav nav a:hover { color: var(--ink); }
@media (min-width: 820px) { .nav { padding: 16px 32px; } .nav nav { display: flex; gap: clamp(12px, 1.6vw, 28px); } .nav nav a { font-size: clamp(13px, 1.1vw, 15px); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 0; min-height: min(100svh, 980px); display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 13, 0.25) 0%, rgba(11, 11, 13, 0) 30%, rgba(11, 11, 13, 0.55) 62%, var(--bg) 96%); }
.hero-copy { position: relative; z-index: 1; padding: 120px 16px 56px; max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { font: 400 clamp(56px, 11vw, 132px)/0.95 var(--display); color: var(--ink); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.hero-copy p { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink); max-width: 620px; margin: 18px auto 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- lobby ---------- */
.lobby { padding: 8px 16px 40px; }
.lobby-inner { max-width: 760px; margin: 0 auto; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px 22px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blood-hi); margin-right: 4px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 29, 61, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(214, 29, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 29, 61, 0); } }
.lobby-count { font-size: 22px; margin: 8px 0 16px; }
.lobby-count b { font-weight: 800; }
.houses { list-style: none; display: flex; justify-content: center; gap: clamp(6px, 2vw, 14px); padding: 0; margin: 0; }
.houses li svg { width: clamp(30px, 8vw, 54px); height: auto; display: block; }
.houses li.on svg { filter: drop-shadow(0 0 10px var(--amber-glow)); }
.lobby-note { color: var(--ink-3); margin: 14px 0 0; font-size: 15px; }

/* ---------- play / prompt ---------- */
.play { padding-top: 48px; padding-bottom: 24px; }
.prompt { max-width: 720px; margin: 28px auto 0; background: #0f0f12; border: 1px solid rgba(179, 18, 46, 0.6); border-radius: var(--radius); box-shadow: 0 0 0 4px rgba(179, 18, 46, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5); overflow: hidden; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); font: 600 13px var(--body); color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.copy { font: 700 14px var(--body); color: #fff; background: var(--blood); border: 1px solid var(--blood-hi); border-radius: 999px; padding: 8px 18px; cursor: pointer; min-height: 38px; }
.copy:hover { background: var(--blood-hi); }
.copy.done { background: #2b6b3f; border-color: #3c8c55; }
.prompt p { font: 500 17px/1.6 var(--mono); color: var(--ink); margin: 0; padding: 18px; }
.works { text-align: center; color: var(--ink-3); font-size: 15px; margin-top: 16px; }

/* ---------- steps ---------- */
.steps { max-width: var(--wrap); margin: 40px auto 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step img[src*="keyart"] { object-position: 50% 78%; }
.step img[src*="ai-report"] { object-position: 50% 12%; }
.step .num { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blood); font: 400 24px var(--display); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
.step h3 { padding: 18px 20px 0; font-size: 22px; }
.step p { padding: 8px 20px 22px; margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- last night ---------- */
.night { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .night { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.night > img { border-radius: var(--radius); transform: rotate(-2deg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); max-height: 640px; object-fit: cover; width: 100%; }
.night-copy h2 { text-align: left; margin: 10px 0 18px; }
.night-copy p { color: var(--ink-2); font-size: 18px; margin: 0 0 14px; }
.night-copy .btn { margin-top: 10px; }

/* ---------- leaderboard ---------- */
.table-wrap { max-width: 860px; margin: 32px auto 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; padding: 14px 16px; border-bottom: 1px solid var(--line); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td:first-child { font: 400 26px var(--display); color: var(--ink-3); width: 48px; }
tbody tr:first-child td:first-child { color: var(--amber); }
/* The Sicko cell: portrait (or colour swatch), then the name over the handle. The layout lives on a wrapper,
   never on the <td>, so the table rows keep their borders. */
.who { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.who img, .who .swatch { flex: none; width: 36px; height: 48px; object-fit: cover; border-radius: 6px; }
.who > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who b { display: block; }
td small { color: var(--ink-3); font-size: 13px; }
td a { text-decoration: none; }
.num-col { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
tr.dead td { color: var(--ink-3); }
tr.dead img { filter: grayscale(1) brightness(0.6); }
tr.dead b { text-decoration: line-through; text-decoration-color: var(--blood-hi); text-decoration-thickness: 2px; }

/* ---------- cast ---------- */
.cards { max-width: var(--wrap); margin: 36px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card h3 { padding: 14px 14px 0; font-size: 18px; }
.card p { padding: 6px 14px 16px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }

/* ---------- afterlife ---------- */
.after { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .after { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.after img { border-radius: var(--radius); }
.after h2 { text-align: left; margin-bottom: 14px; }
.after p { color: var(--ink-2); font-size: 18px; margin: 0; }

/* ---------- basement ---------- */
.basement { position: relative; padding: 0; min-height: 70vh; display: grid; align-items: end; overflow: hidden; }
.basement img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.basement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg) 0%, rgba(11, 11, 13, 0.1) 25%, rgba(11, 11, 13, 0.2) 60%, var(--bg) 100%); }
.basement-copy { position: relative; z-index: 1; text-align: center; padding: 0 16px 64px; width: 100%; }
.basement-copy p { color: var(--ink-2); font-size: 19px; margin: 12px 0 0; }

/* ---------- final ---------- */
.final { text-align: center; }
.final .prompt { text-align: left; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 16px 56px; text-align: center; color: var(--ink-3); font-size: 14px; }
footer nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
footer nav a { color: var(--ink-2); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer p { margin: 6px 0; }

/* ---------- age gate ---------- */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 7, 0.86); backdrop-filter: blur(14px); }
.gate[hidden] { display: none; }
.gate-box { max-width: 440px; width: 100%; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
.gate-box .logo { margin: 0 0 14px; color: var(--blood); }
.gate-box h2 { font-size: 40px; }
.gate-box p { color: var(--ink-2); }
.gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
body.gated { overflow: hidden; }

/* ---------- inner pages ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 110px 16px 72px; }
.page.narrow { max-width: 640px; }
.page-title { font: 400 clamp(40px, 7vw, 68px)/1 var(--display); margin: 6px 0 18px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.section-title { font-size: 34px; margin: 42px 0 16px; text-align: left; }
.muted { color: var(--ink-3); }
.center { text-align: center; margin-top: 24px; }
.lede.left { text-align: left; margin-left: 0; }
.notice { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.notice h2 { font: 800 22px var(--body); margin-bottom: 6px; }
.notice.ok { border-color: rgba(255, 181, 77, 0.45); }
.notice p { margin: 6px 0; color: var(--ink-2); }
.err { color: #ff6b7d; font-size: 15px; }
.err p { margin: 4px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
code { font-family: var(--mono); font-size: 0.92em; background: #000; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.form .hint { font-weight: 400; color: var(--ink-3); }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select { width: 100%; font: 400 16px var(--body); color: var(--ink); background: #0f0f12; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 46px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--amber); }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.form .check input { width: 20px; height: 20px; accent-color: var(--blood); }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 8px; }
.form legend { padding: 0 6px; color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.form .btn { justify-self: start; }
.at-input { display: flex; align-items: center; background: #0f0f12; border: 1px solid var(--line); border-radius: 10px; padding-left: 12px; }
.at-input span { color: var(--ink-3); }
.at-input input { border: 0 !important; background: transparent !important; }
.inline-form { grid-template-columns: 1fr; }
@media (min-width: 760px) { .inline-form { grid-template-columns: 2fr 1fr auto; align-items: end; } }

.sicko-card { background: var(--bg-2); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--blood)); border-radius: var(--radius); padding: 18px 20px; }
.sicko-card .handle { color: var(--amber); font-weight: 700; margin: 0; }
.sicko-card .tag { font-size: 19px; margin: 6px 0 12px; }
.sicko-card dl, .facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.sicko-card dt, .facts dt { color: var(--ink-3); font-size: 14px; }
.sicko-card dd, .facts dd { margin: 0; }

.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel h2 { font: 800 24px var(--body); }
.panel h2 a { color: var(--ink); text-decoration: none; }
.panel h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 18px 0 8px; }
.stats { color: var(--ink-2); }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; background: #2a2a30; }
.pill-active { background: rgba(255, 181, 77, 0.18); color: var(--amber); }
.pill-pending_review { background: rgba(179, 18, 46, 0.2); color: #ff8a99; }
.pill-rejected { background: #3a1018; color: #ff6b7d; }
table.mini { font-size: 14px; margin-bottom: 10px; }
table.mini td, table.mini th { padding: 8px 10px; }
table.mini td:first-child { font: 400 14px var(--body); width: auto; color: var(--ink); }
table.mini td:nth-child(2) { display: table-cell; min-width: 0; }
.link-btn { background: none; border: 0; color: var(--amber); cursor: pointer; font: inherit; padding: 0; }
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.keybox code { word-break: break-all; }
.swatch { display: inline-block; width: 36px; height: 48px; border-radius: 6px; grid-row: span 2; }
.swatch.big { width: 54px; height: 72px; background: #222; }

.culdesac { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .culdesac { grid-template-columns: repeat(4, 1fr); } }
.culdesac li a, .culdesac li.empty { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; color: var(--ink); }
.culdesac img, .culdesac .swatch { grid-row: span 2; border-radius: 8px; object-fit: cover; width: 54px; height: 72px; }
.culdesac small { color: var(--ink-3); }
.culdesac li.alive a { border-color: rgba(255, 181, 77, 0.45); box-shadow: 0 0 18px rgba(255, 181, 77, 0.12); }
.culdesac li.dead a { opacity: 0.55; }
.culdesac li.dead img { filter: grayscale(1); }
.culdesac li.dead b { text-decoration: line-through; text-decoration-color: var(--blood-hi); }
.culdesac li.empty { opacity: 0.4; }


.profile { display: grid; gap: 28px; }
@media (min-width: 860px) { .profile { grid-template-columns: 360px 1fr; gap: 48px; } }
.profile-art img { border-radius: var(--radius); width: 100%; }
.portrait-placeholder { aspect-ratio: 3 / 4; border-radius: var(--radius); background: radial-gradient(circle at 50% 35%, var(--c), #0b0b0d 75%); display: grid; place-items: center; }
.portrait-placeholder span { font: 400 140px var(--display); color: rgba(255, 255, 255, 0.85); }
.profile .handle { color: var(--amber); font-weight: 600; }
.bigstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.bigstats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; }
.bigstats b { display: block; font: 400 42px/1 var(--display); color: var(--ink); }
.bigstats span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--blood-hi); font-weight: 800; }
.history { padding-left: 18px; }
.history li { margin: 6px 0; }
.won { color: var(--amber); }

.prose h1 { font: 400 clamp(40px, 7vw, 60px)/1 var(--display); margin: 0 0 18px; }
.prose h2 { font: 800 24px var(--body); margin: 32px 0 10px; text-align: left; }
.prose p, .prose li { color: var(--ink-2); }
.prose table { margin: 12px 0; background: var(--bg-2); border-radius: 12px; }
.ai-hint a { color: var(--ink-2); }
.card { text-decoration: none; color: var(--ink); }
nav[role=navigation] { margin-top: 18px; }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.consent p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
footer nav .link-btn { color: var(--ink-2); font-size: 14px; }
.prose .legal-note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.prose h3 { font: 800 18px var(--body); margin: 22px 0 6px; }
.prose code { white-space: nowrap; }
.prose table td, .prose table td:first-child, .prose table td:nth-child(2) { display: table-cell; font: 400 15px/1.5 var(--body); color: var(--ink-2); width: auto; min-width: 0; }
.prose table td:first-child { color: var(--ink); font-weight: 600; }
.prose table { font-size: 15px; }

/* ---------- collection profile ---------- */
.profile { padding-bottom: 0; }
.collection { padding-top: 24px; }
.section-title small { font: 600 14px var(--body); color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.face { border-radius: 8px; object-fit: cover; display: block; }
.face-blank { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--c), #0b0b0d 80%); font: 400 28px var(--display); color: rgba(255,255,255,.85); border-radius: 8px; }
.portrait-placeholder { position: relative; }
.portrait-placeholder small { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--ink-2); font: 600 13px var(--body); }
.season-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.season { font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255,181,77,.4); border-radius: 999px; padding: 3px 10px; }

.lair-frame { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #06070b; }
.lair-frame iframe { display: block; width: 100%; height: min(70vh, 520px); border: 0; }
.lair-caption { margin: 0; padding: 10px 14px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); }

.shelf { display: flex; flex-wrap: wrap; gap: 18px 14px; padding: 18px 16px 10px; background: linear-gradient(transparent calc(100% - 14px), #3b2a1e calc(100% - 14px)); border-radius: 12px; }
.jar { display: grid; justify-items: center; gap: 6px; width: 92px; text-decoration: none; color: var(--ink-2); }
.jar-glass { position: relative; display: grid; place-items: center; width: 74px; height: 92px; border-radius: 14px 14px 18px 18px; border: 2px solid rgba(200,230,210,.35);
  background: linear-gradient(180deg, rgba(120,170,120,.08) 0 18%, rgba(110,150,60,.35) 18% 100%); box-shadow: inset 0 0 18px rgba(160,220,140,.18), 0 6px 14px rgba(0,0,0,.5); overflow: hidden; }
.jar-glass::before { content: ""; position: absolute; top: -6px; left: 8px; right: 8px; height: 12px; background: #8c8f93; border-radius: 4px; }
.jar-glass .face { filter: sepia(.35) saturate(.8) hue-rotate(40deg); transform: rotate(-6deg); }
.jar-label { font-size: 12px; text-align: center; line-height: 1.25; }
.jar:hover .jar-glass { border-color: var(--amber); }

.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ach { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 3px; }
.ach-icon { font-size: 26px; line-height: 1; }
.ach b { font-size: 15px; }
.ach small { color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.ach a { font-size: 12px; text-decoration: none; }
.ach.locked { opacity: .45; filter: grayscale(1); }
.ach.locked .ach-icon { font: 400 26px var(--display); color: var(--ink-3); }
.ach.earned.tier-gold { border-color: rgba(255,200,80,.6); box-shadow: 0 0 22px rgba(255,190,70,.12); }
.ach.earned.tier-silver { border-color: rgba(200,210,220,.45); }
.ach.earned.tier-bronze { border-color: rgba(190,120,70,.45); }

.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.death-card { background: #121214; border: 1px solid #2a1a1c; border-left: 4px solid var(--blood); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.death-card p { margin: 4px 0; color: var(--ink-2); }
.death-card a { font-size: 13px; }
.rep dt { color: var(--ink-3); }
.clipping { display: grid; gap: 2px; background: #efe6d2; color: #1d1a16; text-decoration: none; border-radius: 4px; padding: 10px 14px; margin-bottom: 8px; font-family: Georgia, serif; transform: rotate(-.4deg); }
.clipping:nth-child(even) { transform: rotate(.5deg); }
.clipping small { font: 600 11px var(--body); color: #6b6255; text-transform: uppercase; letter-spacing: .06em; }
.clipping b { font-size: 18px; text-transform: uppercase; }
.bigstats.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 560px) { .bigstats.five { grid-template-columns: repeat(3, 1fr); } }
.portrait-placeholder.small span { font-size: 90px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.portrait-row { display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.handle-field { display: flex; align-items: center; gap: 4px; background: var(--card, #161619); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 0 12px; max-width: 360px; }
.handle-field span { color: var(--dim, #8f887a); font-weight: 600; }
.handle-field input { border: 0 !important; background: transparent !important; padding: 12px 0 !important; flex: 1; outline: none; color: inherit; font: inherit; }
#handle-status.ok { color: #7bd88f; } #handle-status.err { color: #ff7a7a; }
.town-embed { margin: 18px 0 8px; }
.town-embed iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #06070b; display: block; }
.town-embed .btn { margin-top: 10px; }
.how-more { text-align: center; margin: 28px 0 0; font-weight: 600; }
.how-more a { color: var(--amber, #ffb54d); }
.change { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.change h2 small { color: var(--ink-3); font-size: 14px; font-weight: 600; margin-left: 8px; }
/* Portrait painting: a spinner over the face, then the new portrait fades in */
.face-wrap { position: relative; display: inline-block; line-height: 0; }
.face-wrap .spinner { display: none; }
.face-wrap.is-painting .face { filter: saturate(.4) brightness(.7); }
.face-wrap.is-painting .spinner { display: block; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--amber, #ffb54d); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.face.fade-in { animation: fadein .9s ease; }
@keyframes fadein { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.painting-msg .dots::after { content: ''; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@media (prefers-reduced-motion: reduce) { .face-wrap.is-painting .spinner, .painting-msg .dots::after { animation: none; } }
.ok-msg { color: #7bd88f; }
/* Profile: the Sicko as a spinnable 3D clay figure */
.model-stage { position: relative; border-radius: var(--radius, 16px); overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #2a2328 0%, #0e0d10 75%); aspect-ratio: 3 / 4; }
.model-stage model-viewer { width: 100%; height: 100%; display: block; }
.model-stage .model-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
.model-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }
.claim-portrait { margin: 0 0 16px; }
.my-sicko { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 26px; align-items: start; }
.my-sicko-card { position: sticky; top: 90px; }
@media (max-width: 760px) { .my-sicko { grid-template-columns: 1fr; } .my-sicko-card { position: static; max-width: 320px; } }

/* Now playing (profile) */
.now-playing { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: -8px 0 22px; }
.np-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.np-live { font: 800 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.np-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.np-live.on { color: var(--blood-hi); } .np-live.on::before { background: var(--blood-hi); box-shadow: 0 0 0 0 var(--blood-hi); animation: np-pulse 1.6s infinite; }
@keyframes np-pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 64, 76, .6); } 70% { box-shadow: 0 0 0 8px rgba(214, 64, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 64, 76, 0); } }
.np-title { font: 400 26px/1 var(--display); color: var(--ink); text-decoration: none; }
.np-season { margin-left: auto; } .np-season { font: 800 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255,181,77,.4); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.np-line { margin: 8px 0 10px; color: var(--ink-2); }
.np-alive { color: var(--amber); } .np-dead { color: var(--blood-hi); }
.np-seats { display: flex; gap: 6px; flex-wrap: wrap; }
.np-seat { width: 30px; height: 40px; border-radius: 7px; overflow: hidden; border: 2px solid var(--c, var(--line)); background: var(--bg); display: grid; place-items: center; font-weight: 800; color: var(--c); text-decoration: none; }
.np-seat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-seat.dead { filter: grayscale(1) brightness(.55); border-style: dashed; }
.np-seat.me { outline: 2px solid var(--amber); outline-offset: 2px; }
.np-seat.empty { border: 1px dashed var(--line); }
.np-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Seasons */
.season-hero { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 18px 0 28px; }
.season-hero > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.season-hero b { display: block; font: 400 26px/1.1 var(--display); color: var(--ink); margin-top: 4px; }
.season-hero small { color: var(--ink-3); }
.tourney { background: linear-gradient(160deg, rgba(168,52,63,.18), transparent 60%), var(--bg-2); border: 1px solid rgba(214,64,76,.4); border-radius: 16px; padding: 18px 20px; margin: 0 0 28px; }
.tourney h2 { font: 400 30px/1 var(--display); margin: 4px 0 10px; text-align: left; }
.tourney ul { margin: 6px 0 12px; padding-left: 18px; color: var(--ink-2); }
.entrants { display: flex; gap: 8px; flex-wrap: wrap; }
.entrants a { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; text-decoration: none; font-size: 14px; }
.entrants .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.season-list { display: grid; gap: 14px; }
.season-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: inherit; }
.season-row:hover { border-color: rgba(255,181,77,.5); }
.season-row h2 { font: 400 32px/1 var(--display); margin: 4px 0 6px; text-align: left; }
.season-row .muted { margin: 0; }
.status-pill { font: 800 11px var(--body); letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line); color: var(--ink-3); align-self: start; }
.status-pill.active { color: var(--amber); border-color: rgba(255,181,77,.5); }

/* No vacancy (sign-up cap) */
.no-vacancy { text-align: center; }
.no-vacancy p { color: var(--ink-2); }
.nv-sign { display: inline-block; font: 400 34px/1 var(--display); letter-spacing: .08em; color: #ff5a6a; text-shadow: 0 0 8px rgba(255,60,80,.8), 0 0 22px rgba(255,60,80,.45); border: 2px solid rgba(255,90,106,.6); border-radius: 10px; padding: 10px 18px; margin: 0 0 16px; box-shadow: 0 0 18px rgba(255,60,80,.25), inset 0 0 12px rgba(255,60,80,.15); }
.nv-sign span { animation: nv-flicker 4s infinite steps(1); }
@keyframes nv-flicker { 0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; } 20%, 62% { opacity: .15; } }
.nv-form { text-align: left; margin: 18px auto; max-width: 420px; }

/* Trades */
.trade-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; text-decoration: none; color: inherit; }
.trade-row:hover { border-color: rgba(255,181,77,.5); }
.trade-who small { display: block; color: var(--ink-3); font-size: 13px; }
.trade-sides { display: flex; align-items: center; gap: 8px; }
.trade-side { display: flex; } .trade-side img { width: 30px; height: 40px; object-fit: cover; border-radius: 6px; border: 2px solid var(--bg-2); margin-left: -8px; background: var(--bg); }
.trade-side img:first-child { margin-left: 0; }
.trade-arrow, .trade-swap { color: var(--amber); font-size: 22px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trade-cols fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 16px; min-width: 0; }
.trade-cols legend { font-weight: 800; padding: 0 6px; }
.count { color: var(--amber); font-weight: 700; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; top: 10px; right: 10px; z-index: 9; width: 20px; height: 20px; accent-color: #d6404c; }
.pick:has(input:checked) .scard { outline: 3px solid var(--amber); outline-offset: 2px; }
.pick.off { cursor: not-allowed; } .pick.off .scard { filter: grayscale(1) brightness(.6); }
.pick .why { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.trade-note { display: block; margin: 18px 0 10px; max-width: 560px; } .trade-note input { width: 100%; }
.trade-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 6px; }
.trade-actions form { margin: 0; }
.trade-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 14px 0; }
.trade-board h2 { font: 800 16px var(--body); text-align: left; margin: 0 0 8px; }
.trade-swap { font-size: 34px; }
.trade-quote { border-left: 3px solid var(--amber); margin: 10px 0; padding: 4px 14px; color: var(--ink-2); font-style: italic; } .trade-quote cite { display: block; font-style: normal; color: var(--ink-3); font-size: 13px; }
.trade-log { padding-left: 18px; color: var(--ink-2); } .trade-log li { margin: 6px 0; } .trade-log small { color: var(--ink-3); }
@media (max-width: 760px) { .trade-cols, .trade-board { grid-template-columns: 1fr; } .trade-swap { text-align: center; transform: rotate(90deg); } .trade-row { grid-template-columns: 1fr; } }

/* Handler History */
.handler-log { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.handler-log li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.handler-log li:first-child { border-top: 0; }
.handler-log .ev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); font-size: 16px; }
.handler-log .what b { color: var(--ink); } .handler-log .what a { color: var(--amber); text-decoration: none; font-weight: 700; }
.handler-log time { color: var(--ink-3); font-size: 13px; text-align: right; white-space: nowrap; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: #d6404c; color: #fff; font: 800 11px var(--body); vertical-align: 2px; }

/* Trade window: two sides of slots, like a game's trade screen */
.tw { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin: 18px 0 14px;
  background: linear-gradient(180deg, #1b1a20, #131217); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
.tw .tw-side { min-width: 0; padding: 0; margin: 0; }
.tw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 0 4px 10px; }
.tw-title { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tw-handle { font: 400 26px/1.05 var(--display); color: var(--amber); text-decoration: none; }
.tw-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; } .tw-count b { color: var(--ink); font-size: 18px; }
.tw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 8px;
  max-height: calc(var(--slot-h, 160px) * 2 + 8px * 3); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,181,77,.55) transparent; scroll-behavior: smooth; }
.tw-grid::-webkit-scrollbar { width: 8px; } .tw-grid::-webkit-scrollbar-thumb { background: rgba(255,181,77,.5); border-radius: 8px; } .tw-grid::-webkit-scrollbar-track { background: transparent; }
.slot { position: relative; aspect-ratio: 3 / 4; border-radius: 11px; overflow: hidden; display: grid; place-items: center; }
.slot.empty { background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 6px 14px rgba(0,0,0,.35); }
.slot.add { border: 0; cursor: pointer; color: #fff; background: linear-gradient(160deg, #d6404c, #8f1f2a); box-shadow: 0 4px 0 #5e121a, inset 0 1px 0 rgba(255,255,255,.25); transition: transform .12s, filter .12s; font-family: var(--body); }
.slot.add:hover { filter: brightness(1.12); transform: translateY(-1px); } .slot.add:active { transform: translateY(2px); box-shadow: 0 2px 0 #5e121a; }
.slot.add span { font: 400 46px/1 var(--display); } .slot.add small { position: absolute; bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.slot.filled { background: color-mix(in srgb, var(--c) 30%, #111); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, #fff 10%); animation: slot-in .25s cubic-bezier(.2,1.4,.4,1); }
@keyframes slot-in { from { transform: scale(.82); opacity: 0; } }
.slot-art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font: 800 34px Georgia, serif; text-decoration: none; }
.slot-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.slot-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 10.5px; font-weight: 700; line-height: 1.15; color: #fff; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.slot-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(10,10,12,.82); color: #fff; font: 700 16px/1 var(--body); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.slot-x:hover { background: #d6404c; }
/* the card's finish, as a quiet mark on the slot */
.slot.foil-reverse { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, #fff 10%), inset 0 0 0 4px rgba(232,214,168,.35); }
.tw-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--amber); padding: 0 4px; }
.tw-mid span { font: 800 12px var(--body); letter-spacing: .2em; text-transform: uppercase; }
.tw-mid svg { animation: tw-spin 9s linear infinite; filter: drop-shadow(0 0 10px rgba(255,181,77,.35)); }
@keyframes tw-spin { to { transform: rotate(360deg); } }
.tw-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.tw-note { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; margin: 0; } .tw-note span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tw-note input { flex: 1; min-width: 0; }
.tw-buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .tw-buttons form { margin: 0; }
.tw-status { margin: 0; color: var(--ink-2); } .tw-status small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.btn.tw-decline { background: linear-gradient(160deg, #d6404c, #9c2430); color: #fff; border: 0; box-shadow: 0 3px 0 #5e121a; }
.btn.tw-accept { background: linear-gradient(160deg, #ffc76b, #e59a1c); color: #1b1206; border: 0; font-weight: 800; box-shadow: 0 3px 0 #8a5a0b; }
.tw-send:disabled { opacity: .45; cursor: not-allowed; }
.tw-hint { font-size: 13px; }
/* picker */
.tw-picker { width: min(860px, 94vw); max-height: 84vh; border: 1px solid var(--line); border-radius: 20px; background: #141317; color: var(--ink); padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.tw-picker::backdrop { background: rgba(5,5,7,.72); backdrop-filter: blur(3px); }
.tw-picker header { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: #141317; border-bottom: 1px solid var(--line); }
.tw-picker header [data-close] { margin-left: auto; }
.tw-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 16px 18px 20px; }
.pool-item { position: relative; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.pool-item .scard { max-width: none; transition: transform .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: 2px; }
.pool-item:hover:not(:disabled) .scard { transform: translateY(-3px); }
.pool-item.on .scard { outline-color: var(--amber); }
.pool-item:disabled:not(.on) { cursor: not-allowed; } .pool-item:disabled:not(.on) .scard { filter: grayscale(.9) brightness(.5); }
.pool-state { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(0,0,0,.5); z-index: 9; font: 800 10px var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--amber); color: #1b1206; border-radius: 999px; padding: 2px 8px; }
.pool-state:empty { display: none; }
.pool-item .why { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 860px) { .tw { grid-template-columns: 1fr; } .tw-mid { flex-direction: row; } .tw-mid svg { width: 36px; height: 36px; } }
@media (max-width: 420px) { .tw { padding: 10px; } .tw-grid { gap: 5px; padding: 5px; } .tw-handle { font-size: 21px; } }

/* Archetype chip (profiles) */
.role-chip { --rc: #ffb54d; display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 10px; padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 22%, transparent), color-mix(in srgb, var(--rc) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); max-width: 100%; }
.role-chip:hover { border-color: var(--rc); }
.role-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #141317; background: var(--rc); box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 55%, transparent); }
.role-txt { display: flex; flex-direction: column; line-height: 1.05; flex: none; }
.role-txt small { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.role-txt b { font: 800 17px var(--body); color: var(--rc); letter-spacing: .02em; }
.role-perk { font-size: 13.5px; color: var(--ink-2); border-left: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); padding-left: 10px; min-width: 0; }
.role-schemer { --rc: #d6404c; } .role-fixer { --rc: #5dd6a6; } .role-snoop { --rc: #7fb2ff; } .role-survivor { --rc: #ffb54d; }
@media (max-width: 520px) { .role-chip { border-radius: 18px; align-items: flex-start; } .role-perk { flex-basis: 100%; } .role-chip { flex-wrap: wrap; } }

/* Delegation */
.deleg { border-top: 1px solid var(--line); margin-top: 16px; padding: 14px 0 6px; }
.deleg h3 { margin: 0 0 8px; }
.deleg-state { display: flex; gap: 12px; align-items: flex-start; background: rgba(127,178,255,.07); border: 1px solid rgba(127,178,255,.3); border-radius: 14px; padding: 12px 14px; }
.deleg-state p { margin: 0 0 6px; }
.deleg-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #7fb2ff; color: #101016; font-weight: 800; }
.deleg-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.deleg-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
.deleg-note { flex: 1 1 220px; } .deleg-note input { width: 100%; }
.deleg-offer { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.deleg-offer form { display: inline; margin: 0; }
.deleg-tag { display: inline-block; font: 800 10px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #101016; background: #7fb2ff; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* All Sickos (/sickos) */
.dir-search { display: flex; gap: 10px; margin: 6px 0 14px; }
.dir-search input { flex: 1; min-width: 0; font-size: 17px; padding: 12px 16px; border-radius: 999px; }
.dir-roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.dir-roles a { --rc: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.dir-roles a b { font-weight: 800; color: var(--ink-3); font-size: 12px; }
.dir-roles a span { color: var(--rc); }
.dir-roles a:hover { border-color: var(--rc); }
.dir-roles a.on { background: color-mix(in srgb, var(--rc) 18%, transparent); border-color: var(--rc); color: var(--ink); }
.dir-roles .role-schemer { --rc: #d6404c; } .dir-roles .role-fixer { --rc: #5dd6a6; } .dir-roles .role-snoop { --rc: #7fb2ff; } .dir-roles .role-survivor { --rc: #ffb54d; }
.dir-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.dir-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dir-filters select, .dir-filters input { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.dir-filters .at-input input { width: 130px; }
.dir-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.dir-pill { font-size: 13px; text-decoration: none; color: var(--ink-2); background: rgba(255,181,77,.1); border: 1px solid rgba(255,181,77,.4); border-radius: 999px; padding: 3px 10px; }
.dir-pill:hover { border-color: var(--amber); } .dir-pill b { color: var(--amber); }
.dir-clear { font-size: 13px; color: var(--ink-3); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.dir-tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 28%, #18171c), #121115 60%); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 16px; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.dir-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 80%, #fff); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.dir-tile.foil-reverse { border-image: linear-gradient(135deg, #ff4f9a, #ffb347, #5dffb5, #3fd0ff, #8f6bff) 1; border-radius: 0; }
.dir-art { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c) 35%, #2a2328), #0b0a0d 78%); overflow: hidden; }
.dir-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.dir-initial { position: absolute; inset: 0; display: grid; place-items: center; font: 800 60px Georgia, serif; color: rgba(255,255,255,.5); }
.dir-live { position: absolute; top: 8px; left: 8px; font: 800 10px var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #d6404c; border-radius: 999px; padding: 3px 8px; }
.dir-3d { position: absolute; top: 8px; right: 8px; font: 800 10px var(--body); color: #141317; background: #e8d6a8; border-radius: 6px; padding: 2px 6px; }
.dir-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.dir-name { font: 800 17px/1.15 Georgia, serif; }
.dir-handle { font-size: 12.5px; color: var(--ink-3); }
.dir-role { align-self: flex-start; font: 800 10.5px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: #141317; background: var(--rc, #ffb54d); }
.dir-role.role-schemer { --rc: #d6404c; color: #fff; } .dir-role.role-fixer { --rc: #5dd6a6; } .dir-role.role-snoop { --rc: #7fb2ff; } .dir-role.role-survivor { --rc: #ffb54d; }
.dir-tag { font: italic 13px/1.35 Georgia, serif; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 2px; } .dir-stats b { color: var(--ink); }
.dir-foil { margin-left: auto; font-weight: 800; color: #e8d6a8; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; align-self: center; }
@media (max-width: 520px) { .dir-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .dir-tag { display: none; } .dir-search .btn { padding: 0 16px; } }

/* ---------- profile showcase: portrait, card, 3D ---------- */
@media (min-width: 860px) { .profile.profile-showcased { grid-template-columns: 1fr; gap: 28px; } }
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: start; }
.showcase-panel { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.showcase-panel > img, .showcase-panel > .model-stage, .showcase-panel > .portrait-placeholder { width: 100%; max-width: 320px; aspect-ratio: 63 / 92; border-radius: var(--radius); object-fit: cover; }
.showcase-card .scard { max-width: 320px; }
.showcase-card .scard-art img { border-radius: 0; }
.showcase-panel figcaption { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.showcase-pending { display: grid; place-items: center; color: var(--ink-2); font: 600 14px var(--body); }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; justify-items: center; } }
.model-stage .stage-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; cursor: grab; }
.model-stage .stage-canvas:active { cursor: grabbing; }
.model-stage .stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.model-stage.stage-ready .stage-poster { opacity: 0; pointer-events: none; }

/* ---------- playing (the live match page) ---------- */
.btn-xl { min-height: 60px; padding: 0 40px; font-size: 20px; font-weight: 800; }
.play-err { border-color: var(--blood-hi); }
.play-stage { max-width: 640px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 14px; padding-top: 12px; }
.play-me .face { width: 150px; height: 200px; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); object-fit: cover; }
.play-big { font: 400 clamp(40px, 7vw, 72px)/1 var(--display); letter-spacing: .02em; }
.play-stage .lede { margin: 0; }
.play-links { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.play-links a { color: var(--ink-2); }
.play-seats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 6px 0; }
.play-seats li { opacity: .35; } .play-seats li.on { opacity: 1; }
.play-seats .face { width: 54px; height: 72px; border-radius: 10px; object-fit: cover; }
.clock { font-variant-numeric: tabular-nums; color: var(--amber); }
.clock.low { color: var(--blood-hi); animation: clock-low 1s steps(2) infinite; }
@keyframes clock-low { 50% { opacity: .55; } }
.play-bar { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.play-night { font: 400 clamp(40px, 7vw, 64px)/1 var(--display); margin-top: 4px; }
.play-clock { text-align: right; line-height: 1; }
.play-clock .clock { font: 800 clamp(36px, 6vw, 56px)/1 var(--mono); display: block; }
.play-clock small { color: var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.play-result { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: linear-gradient(120deg, rgba(179, 18, 46, .22), var(--bg-2) 60%); border: 1px solid rgba(214, 29, 61, .4); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.play-result.is-new { animation: result-in .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes result-in { from { transform: scale(.94); opacity: 0; } }
.play-result-face .face { width: 84px; height: 112px; border-radius: 12px; object-fit: cover; filter: grayscale(1) contrast(1.1); box-shadow: 0 0 0 3px var(--blood); }
.play-result h2 { font: 800 clamp(24px, 4vw, 34px)/1.1 var(--body); margin: 4px 0 6px; }
.play-result .muted { margin: 0 0 10px; }
.tally { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-width: 460px; }
.tally li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 28px; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.tally span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ink-3) var(--w), rgba(255, 255, 255, .06) var(--w)); }
.tally li.dead { color: var(--ink); font-weight: 700; } .tally li.dead i { background: linear-gradient(90deg, var(--blood-hi) var(--w), rgba(255, 255, 255, .06) var(--w)); }
.tally b { font-family: var(--mono); text-align: right; }
.play-event { background: rgba(255, 181, 77, .07); border-left: 3px solid var(--amber); padding: 10px 14px; border-radius: 0 10px 10px 0; color: var(--ink-2); margin: 0 0 18px; }
.play-event b { color: var(--ink); }
.play-grid { display: grid; gap: 26px; }
@media (min-width: 960px) { .play-grid { grid-template-columns: 1.55fr 1fr; align-items: start; } }
.play .panel { margin: 0 0 18px; }
.play .panel h2 { font-size: 18px; margin-bottom: 10px; }
.play-q { font: 800 22px/1.2 var(--body); margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.play-q:first-of-type { margin-top: 0; }
.play-q .step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blood); font-size: 14px; flex: none; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.pick { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 6px 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg-2); cursor: pointer; text-align: center; transition: transform .12s, border-color .12s; }
.pick[hidden] { display: none; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick .face { width: 72px; height: 96px; border-radius: 10px; object-fit: cover; }
.pick b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.pick small { font-size: 11px; color: var(--ink-3); }
.pick:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.pick:has(input:checked) { border-color: var(--blood-hi); background: rgba(179, 18, 46, .2); box-shadow: 0 0 0 3px rgba(214, 29, 61, .2); }
.pick:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.action-choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.action-choice { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg-2); cursor: pointer; }
.action-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.action-choice b { font-size: 17px; }
.action-choice span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.action-choice small { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.action-choice:hover { border-color: rgba(255, 255, 255, .3); }
.action-choice:has(input:checked) { border-color: var(--amber); background: rgba(255, 181, 77, .08); }
.action-choice:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.action-target[hidden] { display: none; }
.play-note { display: block; margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.play-note input, .say-form input, .say-form select { width: 100%; margin-top: 6px; }
.play-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 18px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 22px 0 14px; }
.play-lock p { margin: 0; flex: 1 1 260px; font-size: 14px; }
.locked { color: var(--ink-2); } .locked b { color: var(--amber); }
.roster { list-style: none; padding: 0; margin: 0; }
.roster li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.roster .face { width: 30px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.roster li.dead { opacity: .45; } .roster li.dead a { text-decoration: line-through; } .roster li.dead .face { filter: grayscale(1); }
.roster a { color: var(--ink); text-decoration: none; font-weight: 600; }
.roster .muted { display: block; font-size: 12px; }
.small { font-size: 12px; margin: 10px 0 0; }
.chat { max-height: 260px; overflow: auto; margin-bottom: 10px; font-size: 15px; }
.chat p { margin: 4px 0; }
.say-form { display: grid; gap: 6px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.create-sicko label { display: block; margin: 12px 0; } .create-sicko input:not([type=color]), .create-sicko select, .create-sicko textarea { width: 100%; margin-top: 4px; }

/* The Sickos Gazette: a newsprint front page per night (match page) */
.gazette { --paper: #ebe2cc; --ink-n: #1b1814; --rule: #1b1814; position: relative; margin: 22px 0 40px; padding: 18px clamp(14px, 3.4vw, 40px) 26px; color: var(--ink-n);
  background:
    linear-gradient(180deg, transparent 49.6%, rgba(60, 40, 10, .12) 50%, rgba(255, 255, 255, .25) 50.4%, transparent 51%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(110, 80, 30, .28) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 2px 0 #d8ccb0, 0 4px 0 #c9bb9c; transform: rotate(-.35deg); font-family: "Old Standard TT", Georgia, serif; }
.gazette.back-issue { transform: rotate(.4deg); filter: sepia(.25) brightness(.94); }
.gazette::after { content: ""; position: absolute; right: 9%; bottom: 7%; width: 120px; height: 120px; border-radius: 50%; pointer-events: none;
  border: 9px solid rgba(110, 70, 30, .13); box-shadow: inset 0 0 0 3px rgba(110, 70, 30, .07); transform: scaleY(.92); } /* coffee ring */
.gz-mast { text-align: center; border-bottom: 3px double var(--rule); padding-bottom: 6px; position: relative; }
.gz-ears { display: flex; justify-content: space-between; font: 700 11px/1.15 var(--body); text-transform: uppercase; letter-spacing: .08em; }
.gz-ears span { border: 1px solid var(--rule); padding: 5px 7px; text-align: center; } .gz-ears small { font-size: 8px; font-weight: 600; }
.gz-name { font: 900 clamp(30px, 7vw, 78px)/1 "Playfair Display", Georgia, serif; margin: -16px 0 6px; letter-spacing: -.01em; }
.gz-dateline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 5px; margin: 0;
  font: 700 11px/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em; }
.gz-flag { display: inline-block; margin: 14px 0 0; background: var(--blood); color: #fff; font: 800 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; transform: rotate(-1.2deg); }
.gz-head { white-space: nowrap; overflow: hidden; font: 400 clamp(30px, 10vw, 128px)/.95 Anton, Impact, "Arial Narrow", sans-serif; text-transform: uppercase; margin: 8px 0 6px; letter-spacing: -.005em; color: #0e0c0a; text-shadow: 0 0 1px rgba(0, 0, 0, .35); }
.gz-deck { font: italic 400 clamp(18px, 2.2vw, 23px)/1.3 "Old Standard TT", Georgia, serif; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.gz-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .gz-grid { grid-template-columns: 1.05fr 1.25fr .8fr; gap: 0; }
  .gz-grid > * { padding: 0 18px; } .gz-grid > :first-child { padding-left: 0; } .gz-grid > :last-child { padding-right: 0; }
  .gz-grid > * + * { border-left: 1px solid rgba(27, 24, 20, .55); } }
.gz-photo { margin: 0; }
.gz-halftone { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #cfc5ad; border: 1px solid var(--rule); }
.gz-halftone img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.35) brightness(1.05) sepia(.18); mix-blend-mode: multiply; }
.gz-halftone::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 38%, rgba(235, 226, 204, .5) 62%) 0 0 / 4px 4px; mix-blend-mode: screen; }
.gz-nophoto { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 700 14px/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; color: #6b6150; }
.gz-stamp { position: absolute; z-index: 1; left: 50%; bottom: 14%; transform: translateX(-50%) rotate(-14deg); padding: 4px 14px; border: 4px solid rgba(179, 18, 46, .85); border-radius: 6px; color: rgba(179, 18, 46, .88);
  font: 400 clamp(26px, 3.4vw, 40px)/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .08em; mix-blend-mode: multiply; }
.gz-photo figcaption { font: italic 14px/1.35 "Old Standard TT", Georgia, serif; margin-top: 6px; }
.gz-story > p { font-size: 18px; line-height: 1.5; margin: 0 0 12px; text-align: justify; hyphens: auto; }
.gz-story > p:first-child::first-letter { float: left; font: 400 64px/.82 Anton, Impact, sans-serif; margin: 6px 8px 0 0; color: var(--blood); }
.gz-remain { display: grid; justify-items: center; text-align: center; background: var(--ink-n); color: var(--paper); padding: 12px 10px 14px; margin-bottom: 16px; }
.gz-remain b { font: 400 76px/.9 Anton, Impact, sans-serif; }
.gz-remain span { font: 400 26px/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.gz-remain small { font: 600 11px/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; opacity: .8; }
.gz-quote { margin: 0 0 14px; padding: 10px 0 0; border-top: 3px solid var(--rule); }
.gz-quote p { font: italic 700 21px/1.25 "Old Standard TT", Georgia, serif; margin: 0 0 6px; }
.gz-quote cite { font: 800 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; font-style: normal; }
.gz-quote cite::before { content: "— "; }
.gz-count { margin-top: 18px; border-top: 3px double var(--rule); padding-top: 10px; font-family: var(--body); }
.gz-count summary { cursor: pointer; font: 400 20px/1.2 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.gz-count table { width: 100%; border-collapse: collapse; margin-top: 10px; font: 14px/1.3 "Old Standard TT", Georgia, serif; }
.gz-count th { font: 800 10px/1.2 var(--body); text-transform: uppercase; letter-spacing: .1em; text-align: right; border-bottom: 2px solid var(--rule); padding: 4px 6px; }
.gz-count td { text-align: right; padding: 4px 6px; border-bottom: 1px dotted rgba(27, 24, 20, .5); }
.gz-count th:first-child, .gz-count td:first-child { text-align: left; }
@media (max-width: 600px) { .gazette { transform: none; } .gz-story > p { text-align: left; } .gz-halftone { aspect-ratio: 4 / 3.4; } .gz-halftone img { object-position: 50% 15%; } .gz-ears { display: none; } .gz-name { margin-top: 0; } .gz-count { overflow-x: auto; } .gz-count table { min-width: 520px; } }
.gz-roll { margin-top: 16px; border-top: 3px double var(--rule); padding-top: 8px; }
.gz-roll-head { font: 400 20px/1.1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.gz-roll ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.gz-roll li { display: flex; justify-content: space-between; gap: 6px; break-inside: avoid; border-bottom: 1px dotted rgba(27, 24, 20, .5); padding: 3px 0; font-size: 15px; }
.gz-roll a { color: inherit; text-decoration: none; font-weight: 700; } .gz-roll a:hover { color: var(--blood); }
.gz-roll span { font: 600 10px/1.9 var(--body); text-transform: uppercase; letter-spacing: .08em; color: #5c5345; white-space: nowrap; }
@media (max-width: 420px) { .gz-roll ul { columns: 1; } }
.gz-obit { margin: 0 0 10px; font-size: 15px; line-height: 1.35; border-bottom: 1px dotted rgba(27, 24, 20, .5); padding-bottom: 8px; }
.gz-obit a { color: inherit; text-decoration: none; } .gz-obit a:hover { color: var(--blood); }
.gz-obit span { float: right; font: 600 10px/2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: #5c5345; }

/* ---------- homepage (play-first) ---------- */
.hero-play .hero-copy { padding-bottom: 150px; }
.hero-fine { font-size: 14px !important; color: var(--ink-2) !important; letter-spacing: .04em; margin-top: 14px !important; }
.hero-live { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; padding: 10px 16px 12px; width: max-content; max-width: calc(100% - 24px); text-decoration: none; color: var(--ink); background: rgba(11, 11, 13, .72); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(6px); }
.hero-live:hover { border-color: rgba(255, 255, 255, .3); }
.hero-live-head { font: 800 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; text-align: center; }
.hero-live-seats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.hl-seat .face { width: clamp(30px, 8vw, 42px); height: clamp(40px, 10.6vw, 56px); border-radius: 8px; object-fit: cover; box-shadow: 0 0 12px var(--amber-glow); }
.hl-seat.dead .face { filter: grayscale(1) brightness(.5); box-shadow: none; }
.hl-seat.dead { position: relative; } .hl-seat.dead::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--blood-hi); font-weight: 800; font-size: 22px; }
.beats { list-style: none; max-width: var(--wrap); margin: 44px auto 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
@media (min-width: 860px) { .beats { grid-template-columns: repeat(3, 1fr); gap: 0; } .beats li + li { border-left: 1px solid var(--line); } .beats li { padding: 0 32px; } }
.beats .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blood); font: 400 26px var(--display); margin-bottom: 14px; }
.beats h3 { font-size: 23px; margin-bottom: 8px; }
.beats p { margin: 0; color: var(--ink-2); }
.how-more { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.paper { padding-top: 24px; }
.paper .gazette { max-width: 980px; margin: 0 auto; }
.paper .gz-head { white-space: normal; font-size: clamp(34px, 7vw, 84px); }
@media (min-width: 860px) { .gz-grid.gz-grid-home { grid-template-columns: .8fr 1.6fr; } }
.gz-more a { color: var(--blood); font-weight: 700; }
.dev-keys { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.dev-keys summary { cursor: pointer; color: var(--ink-3); font-size: 14px; }
body.playing .nav nav { display: none; }

.how-more a.btn-red { color: #fff; } .how-more a.btn-ghost { color: var(--ink); }

.play-bar .play-walk { margin-left: auto; align-self: center; }

.seen { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-2); } .seen li { padding: 5px 0; border-bottom: 1px solid var(--line); } .seen b { color: var(--ink); }

/* Practice night: the coach's note, and the reveal of what everyone really did */
.notice.coach { border-color: var(--red, #c8102e); }
.notice.coach form { margin-top: .6rem; }
.reveal { width: 100%; max-width: 760px; margin: 1.2rem auto .6rem; border-collapse: collapse; text-align: left; font-size: .95rem; }
.reveal th, .reveal td { padding: .45rem .6rem; border-bottom: 1px solid rgba(255,255,255,.09); vertical-align: middle; }
.reveal thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; font-weight: 600; }
.reveal tbody th { font-weight: 600; white-space: nowrap; }
.reveal tbody th .face { vertical-align: middle; margin-right: .45rem; }
.reveal td:nth-child(n+3), .reveal thead th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.reveal tr.dead th, .reveal tr.dead td { color: #ff5a6e; }
.reveal tr.me th { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .reveal { font-size: .84rem; } .reveal th, .reveal td { padding: .4rem .3rem; } .reveal tbody th .face { display: none; } }
.reveal tbody th { text-transform: none; letter-spacing: 0; font-size: inherit; }

/* Traits on the play page: a neighbour's weakness under their portrait, the roster line, the move that crosses your own line */
.pick small.weak { color: #ffb54d; font-size: .68rem; line-height: 1.2; }
.roster small.trait { display: block; font-size: .72rem; opacity: .7; }
.action-choice.crosses { border-color: rgba(255, 90, 110, .55); }
.action-choice.crosses small { color: #ff8a98; }
.play-note-line { margin: .5rem 0 0; font-size: .9rem; color: var(--ink-2); }
.trait-rules { display: grid; gap: .6rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); }

/* The phone menu */
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: grid; gap: 5px; align-content: center; width: 42px; height: 38px; padding: 0 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .18s, opacity .18s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .nav.open .nav-toggle span:nth-child(2) { opacity: 0; } .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 819px) {
  .nav.open { background: rgba(11, 11, 13, .97); }
  .nav.open nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; gap: 0; padding: 6px 16px 18px; background: rgba(11, 11, 13, .97); border-bottom: 1px solid var(--line); max-height: calc(100vh - 62px); overflow-y: auto; }
  .nav.open nav a { padding: 14px 4px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.open nav a:last-child { border-bottom: 0; }
}
@media (min-width: 820px) { .nav-toggle { display: none; } }

/* Status pills, the matches list and the match page's head */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 800 11px var(--body); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill-live { color: #fff; background: var(--blood); border-color: var(--blood-hi); } .pill-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.pill-wait { color: #ffb54d; border-color: rgba(255, 181, 77, .5); }
@keyframes pulse { 50% { opacity: .25; } }
.match-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.match-card a { display: grid; gap: 12px; height: 100%; padding: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.match-card a:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.match-card.is-live a { border-color: rgba(214, 29, 61, .55); box-shadow: 0 0 26px rgba(214, 29, 61, .14); }
.match-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .match-card header b { font: 400 26px/1 var(--display); letter-spacing: .02em; }
.match-faces { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.match-faces span { display: block; } .match-faces .face { width: 100% !important; height: auto !important; aspect-ratio: 3 / 4; border-radius: 6px; object-fit: cover; display: grid; place-items: center; }
.match-faces .dead .face { filter: grayscale(1) brightness(.45); } .match-faces .won .face { outline: 2px solid #ffb54d; outline-offset: 1px; } .match-faces .empty { opacity: .4; }
.match-line { margin: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 14px; } .match-line span { color: var(--ink); font-weight: 600; white-space: nowrap; }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; } .match-head .page-title { margin-bottom: 8px; } .match-head .lede { margin: 0; }
.match-winner { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border: 1px solid rgba(255, 181, 77, .5); border-radius: 16px; background: rgba(255, 181, 77, .07); color: var(--ink); text-decoration: none; }
.match-winner .face { border-radius: 10px; object-fit: cover; } .match-winner small { display: block; font: 800 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #ffb54d; } .match-winner b { font: 400 28px/1.05 var(--display); }
.match-clock { text-align: right; } .match-clock .clock { display: block; font: 800 44px/1 "JetBrains Mono", monospace; color: #ffb54d; font-variant-numeric: tabular-nums; } .match-clock small { color: var(--ink-3); }
.culdesac small.trait { grid-column: 2; font-size: 11px; line-height: 1.25; }
.trait-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 16px; }
.trait-cards p { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); display: grid; gap: 3px; }
.trait-cards small { font: 800 10px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); } .trait-cards b { font-size: 16px; } .trait-cards span { color: var(--ink-2); font-size: 13px; }

.lede.lede-left { text-align: left; margin-left: 0; }
/* The homepage hero's live town: fades in over the picture once it has drawn */
.hero-town { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.hero-town.on { opacity: 1; }
.hero-town iframe { width: 100%; height: 100%; border: 0; display: block; }
