@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans.e049b3eeb29f.ttf") format("truetype"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono.9659bb864cc2.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #080c1f;
  --bg-2: #0d1330;
  --panel: #111836;
  --panel-2: #161f45;
  --line: #242e5c;
  --line-soft: #1a2248;
  --text: #e9edfa;
  --sub: #9ba7ca;
  --dim: #6f7ba3;
  --cyan: #25c9de;
  --cyan-deep: #0f8ea0;
  --magenta: #dd35b8;
  --gold: #e6a82a;
  --red: #ff6b7a;
  --green: #4ade9a;
  --radius: 6px;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: .5rem; border-bottom: 2px solid var(--cyan-deep); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: .08em .38em; }
kbd { border-bottom-width: 2px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sub { color: var(--sub); font-size: .9rem; }
.strong { font-weight: 700; }
.r { text-align: right; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 40px; padding-bottom: 72px; }
.narrow { max-width: 640px; }
.narrow.center { margin: 8vh auto; }
.block { margin-top: 56px; }
.lead { font-size: 1.12rem; color: #cdd5ee; max-width: 68ch; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.eyebrow a { color: inherit; }
.empty { color: var(--sub); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; }
.more { font-weight: 600; }
.hint { color: var(--dim); font-size: .85rem; margin: .35rem 0 0; }

.top { background: rgba(8, 12, 31, .92); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; flex: 1; }
.nav a, .nav .linkish { color: var(--text); font-weight: 600; font-size: .92rem; letter-spacing: .02em; }
.nav a:hover { color: var(--cyan); text-decoration: none; }
.nav-gap { flex: 1; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); padding: 8px 14px; font: inherit; font-weight: 600; }
.inline { display: inline; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.notice-bar { background: #3a2a05; border-bottom: 1px solid #6b4d0c; color: #ffe2a0; font-size: .92rem; padding: 9px 0; }
.notice-bar a { color: #fff; text-decoration: underline; margin-left: .4em; }

.btn { display: inline-block; background: var(--cyan); color: #04121a; font: 700 .95rem/1 var(--sans); letter-spacing: .03em; padding: 13px 20px; border: 2px solid var(--cyan); border-radius: var(--radius); cursor: pointer; text-align: center; }
.btn:hover { background: #5edcec; border-color: #5edcec; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-small { padding: 8px 13px; font-size: .84rem; }
.btn-big { padding: 16px 26px; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--cyan); }
.btn-quiet { background: var(--panel-2); border-color: var(--line); color: var(--sub); cursor: default; }
.btn-quiet:hover { background: var(--panel-2); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--red); border-color: #6b2732; }
.btn-danger:hover { background: #3a1219; border-color: var(--red); }

.hero { position: relative; overflow: hidden; border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--cyan) 62%, var(--magenta) 62%) 1; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 31, .96) 0%, rgba(8, 12, 31, .78) 42%, rgba(8, 12, 31, .15) 78%), linear-gradient(0deg, rgba(8, 12, 31, .9) 0%, rgba(8, 12, 31, 0) 40%); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 13ch; text-transform: uppercase; letter-spacing: -.01em; }
.hero .lead { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }

.hold { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; padding: clamp(64px, 12vh, 140px) 20px; text-align: center; background: radial-gradient(60% 55% at 28% 38%, rgba(37, 201, 222, .2), transparent 70%), radial-gradient(55% 55% at 74% 62%, rgba(221, 53, 184, .2), transparent 70%), var(--bg); border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--cyan) 62%, var(--magenta) 62%) 1; }
.hold-grid { position: absolute; left: -50%; right: -50%; bottom: 0; height: 58%; background: repeating-linear-gradient(90deg, rgba(37, 201, 222, .3) 0 1px, transparent 1px 72px), repeating-linear-gradient(0deg, rgba(37, 201, 222, .3) 0 1px, transparent 1px 72px); transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 82%); mask-image: linear-gradient(0deg, #000 0%, transparent 82%); }
.hold-inner { position: relative; z-index: 1; max-width: 680px; }
.hold-logo { margin: 0 0 clamp(24px, 5vh, 44px); }
.hold-logo img { width: min(590px, 86vw); margin: 0 auto; filter: drop-shadow(0 0 34px rgba(221, 53, 184, .4)) drop-shadow(0 0 70px rgba(37, 201, 222, .26)); animation: hold-glow 5s ease-in-out infinite alternate; }
.hold .eyebrow { font-size: .9rem; letter-spacing: .26em; margin-bottom: 1rem; }
.hold .lead { margin: 0 auto; }
.hold-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 0; }
.holding .main { flex: none; padding-top: 0; padding-bottom: 0; }
.holding .messages { padding: 20px 0; }
@keyframes hold-glow { from { filter: drop-shadow(0 0 26px rgba(221, 53, 184, .3)) drop-shadow(0 0 54px rgba(37, 201, 222, .2)); } to { filter: drop-shadow(0 0 42px rgba(221, 53, 184, .52)) drop-shadow(0 0 86px rgba(37, 201, 222, .34)); } }
@media (prefers-reduced-motion: reduce) { .hold-logo img { animation: none; } }

.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0; }
.stats dt { font: 700 2.2rem/1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.stats dd { margin: 6px 0 0; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sub); }
.stats-small { margin-left: auto; gap: 14px 32px; }
.stats-small dt { font-size: 1.7rem; }
.stats-run { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 20px; }
.stats-run dt { font-family: var(--mono); font-size: 1.9rem; }

.trailer { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: var(--radius); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.scale { background: var(--panel); border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; }
.scale h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.bar-row { display: grid; grid-template-columns: 11.5em 1fr 6.5em; gap: 12px; align-items: center; font-size: .9rem; margin-bottom: 12px; }
.bar-row span { font-weight: 600; }
.bar-row b { font-weight: 400; color: var(--sub); }
.bar { display: block; height: 18px; background: var(--cyan-deep); border-radius: 2px; }
.bar-full { width: 100%; }
.bar-mid { width: 6%; }
.bar-tiny { width: 1.7%; min-width: 5px; background: var(--magenta); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-top: 3px solid var(--cyan); border-radius: 0 0 var(--radius) var(--radius); padding: 20px; }
.card-magenta { border-top-color: var(--magenta); }
.card-gold { border-top-color: var(--gold); }
.card .eyebrow { color: var(--cyan); margin-bottom: .45rem; }
.card-magenta .eyebrow { color: #f07ad6; }
.card-gold .eyebrow { color: var(--gold); }
.card p:last-child { margin: 0; color: #c5cde8; font-size: .95rem; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shots a { display: block; border: 1px solid var(--line-soft); border-bottom: 3px solid var(--cyan-deep); overflow: hidden; }
.shots a:nth-child(even) { border-bottom-color: var(--magenta); }
.shots img { width: 100%; transition: transform .25s ease; }
.shots a:hover img { transform: scale(1.04); }

.mini-board, .mini-threads { list-style: none; margin: 0 0 1rem; padding: 0; }
.mini-board { counter-reset: place; }
.mini-board li { counter-increment: place; border-bottom: 1px solid var(--line-soft); }
.mini-board a { display: grid; grid-template-columns: 2em 1fr auto 6.5em; gap: 12px; align-items: center; padding: 10px 4px; color: var(--text); }
.mini-board a::before { content: counter(place); font-family: var(--mono); color: var(--gold); }
.mini-board a:hover { background: var(--panel); text-decoration: none; }
.mini-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.mini-board .sub { text-align: right; }
.mini-threads li { padding: 10px 4px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 2px; }
.mini-threads a { font-weight: 600; color: var(--text); }
.demo { display: flex; gap: 32px; align-items: center; justify-content: space-between; background: var(--panel); border-left: 4px solid var(--gold); padding: 26px 28px; border-radius: 0 var(--radius) var(--radius) 0; }
.demo h2 { border: 0; padding: 0; }
.demo p { margin: 0; }
.demo-actions { flex: none; }
.doc-links { display: flex; flex-wrap: wrap; gap: 12px; }

.avatar { border-radius: 50%; flex: none; object-fit: cover; background: var(--panel-2); }
.avatar-blank { display: inline-grid; place-items: center; font-weight: 700; color: #06101c; text-transform: uppercase; }
.avatar-28 { width: 28px; height: 28px; font-size: .8rem; }
.avatar-40 { width: 40px; height: 40px; font-size: 1.05rem; }
.avatar-64 { width: 64px; height: 64px; font-size: 1.6rem; }
.avatar-96 { width: 96px; height: 96px; font-size: 2.4rem; }
.tone-0 { background: var(--cyan); }
.tone-1 { background: #f07ad6; }
.tone-2 { background: var(--gold); }
.tone-3 { background: #9fb0ff; }

.tag { display: inline-block; font: 600 .68rem/1 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; background: var(--panel-2); color: var(--sub); border: 1px solid var(--line); vertical-align: middle; }
.tag-ok, .tag-verified { color: var(--green); border-color: #1d5c44; background: #0d2a22; }
.tag-warn, .tag-pending, .tag-processing { color: var(--gold); border-color: #6b4d0c; background: #2c2005; }
.tag-rejected { color: var(--red); border-color: #6b2732; background: #2c0f15; }
.tag-staff { color: #f07ad6; border-color: #6b1f5b; background: #2a0d25; }
.tag-cmgr { color: #ffb86b; border-color: #6b4514; background: #2a1a06; }
.tag-mod { color: #9fb0ff; border-color: #2f3a7a; background: #10163a; }
.tag-staff { white-space: nowrap; }
.tag-gold { color: #1a1300; border-color: #f2c14e; background: linear-gradient(180deg, #ffd978, #e6a82a); }
.tag-silver { color: #10151c; border-color: #d5dbe6; background: linear-gradient(180deg, #eef1f6, #b4bccb); }
.tag-bronze { color: #1c0f05; border-color: #d79a6a; background: linear-gradient(180deg, #e7b081, #b9743f); }
.tag-beta { color: var(--cyan); border-color: var(--cyan-deep); background: #06252c; }
.flairs { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; vertical-align: middle; }
.flairs:empty { display: none; }
.board .flairs { flex-wrap: nowrap; margin-left: 8px; }
.tag-closed { color: var(--sub); border-color: var(--line); background: var(--panel-2); }
.tag-locked { color: var(--red); border-color: #6b2732; background: #2c0f15; }
.tag-pin { color: var(--cyan); border-color: var(--cyan-deep); background: #06252c; }

.messages { margin-bottom: 24px; }
.message { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); border-left-width: 4px; background: var(--panel); margin: 0 0 10px; }
.message-success { border-left-color: var(--green); }
.message-info { border-left-color: var(--cyan); }
.message-error, .message-warning { border-left-color: var(--red); }

.form { display: grid; gap: 18px; margin: 24px 0; max-width: 460px; }
.form-wide { max-width: 760px; }
.form .btn { justify-self: start; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field .check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--cyan); flex: none; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], textarea, select { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; font: inherit; }
input[type=file] { width: 100%; font: inherit; color: var(--sub); background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px; }
input[type=file]::file-selector-button { font: 600 .85rem var(--sans); background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; margin-right: 12px; cursor: pointer; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
.field-error input, .field-error textarea { border-color: var(--red); }
.error { color: var(--red); font-size: .88rem; margin: .35rem 0 0; }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.captcha img { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; width: 220px; height: 80px; }
.captcha input { max-width: 220px; font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.social { max-width: 460px; margin: 4px 0 20px; }
.social-or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.social-btn { padding: 12px 10px; }
.choices { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; display: grid; gap: 10px; }
.field.dimmed { opacity: .45; }
.choices legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.choices .hint { margin: 0; }
.avatar-edit { display: flex; gap: 20px; align-items: flex-start; }
.avatar-edit > div { flex: 1; display: grid; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.panel h2 { border: 0; padding: 0; margin-bottom: .5rem; }
.panel-warn { border-left: 4px solid var(--gold); }
.narrow h2 { margin-top: 44px; }

.rows { list-style: none; margin: 0 0 1.4rem; padding: 0; border-top: 1px solid var(--line-soft); }
.rows li { display: grid; grid-template-columns: 9em 1fr auto; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.rows li > span:first-child { color: var(--sub); font-size: .88rem; }
.rows-2 { max-width: 720px; }
.rows-2 li { grid-template-columns: 10em 1fr; }
.rows span { min-width: 0; overflow-wrap: anywhere; }
.list { padding-left: 1.2em; margin: 0 0 1.2em; display: grid; gap: .55em; }
.list li::marker { color: var(--cyan); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); background: var(--bg-2); padding: 11px 14px; white-space: nowrap; }
.table th.r { text-align: right; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:nth-child(even) { background: rgba(17, 24, 54, .55); }
.table tbody tr:hover { background: var(--panel-2); }
.board td { white-space: nowrap; }
.board .rank { color: var(--sub); width: 4.5em; }
.board tr.top .rank { color: var(--gold); font-weight: 700; }
.board tr.top td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.board .strong { font-size: 1.05rem; color: #fff; }
.player { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
h1 .player { gap: 14px; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs a:not(.btn) { padding: 12px 18px; font-weight: 600; color: var(--sub); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:not(.btn):hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--cyan); }
.tabs-action { margin-left: auto; margin-bottom: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 20px 0; }
.inline-field { display: grid; gap: 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); font-weight: 600; }
.inline-field select, .inline-field input { width: auto; min-width: 11em; padding: 8px 10px; font-size: .92rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.seed-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .84rem; color: var(--text); }
.chip i { font-style: normal; background: var(--panel-2); border-radius: 999px; padding: 1px 8px; color: var(--gold); margin-left: 4px; }
.chip.on, .chip:hover { border-color: var(--cyan); text-decoration: none; }
.pages { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 26px 0; font-weight: 600; }
.pages .off { color: var(--dim); }
.pages-now { color: var(--sub); font-weight: 400; font-size: .9rem; }
.viewer { aspect-ratio: 16 / 9; background: #05081a; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.viewer iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer.fill { position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; }
body.viewer-fill { overflow: hidden; }

.head-row { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.head-row h1 { margin: 0; }
.mod { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.boards, .threads, .posts { list-style: none; margin: 0; padding: 0; }
.boards li, .threads li { display: grid; grid-template-columns: 1fr 8em 17em; gap: 20px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line-soft); border-left: 3px solid var(--cyan-deep); margin-bottom: 6px; border-radius: 0 var(--radius) var(--radius) 0; }
.boards li:nth-child(even), .threads li:nth-child(even) { border-left-color: var(--magenta); }
.boards li.unread, .threads li.unread, .boards li.unread:nth-child(even), .threads li.unread:nth-child(even) { border-left-color: var(--gold); border-left-width: 4px; background: linear-gradient(90deg, rgba(230, 168, 42, .10), var(--panel) 38%); }
.unread .board-name, .unread .thread-title { color: #fff; }
.tag-new { color: #1a1300; border-color: #f2c14e; background: var(--gold); }
.board-name, .thread-title { font-weight: 700; font-size: 1.05rem; color: var(--text); margin-right: 8px; }
.board-main p, .thread-main p { margin: 3px 0 0; }
.board-count { font-size: .82rem; color: var(--sub); }
.board-count b { color: var(--text); }
.board-last { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.post { display: grid; grid-template-columns: 150px 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 10px; scroll-margin-top: 90px; }
.post:target { border-color: var(--cyan); }
.post-author { padding: 18px 14px; border-right: 1px solid var(--line-soft); display: grid; gap: 8px; justify-items: center; align-content: start; text-align: center; font-weight: 600; overflow-wrap: anywhere; }
.post-body { padding: 16px 20px; min-width: 0; }
.post-meta { margin: 0 0 10px; }
.post-meta a { color: inherit; }
.post-actions { display: flex; gap: 16px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; position: relative; }
.votes { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-right: 6px; }
.vote { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); border: 0; padding: 0 12px; min-height: 36px; font: inherit; color: var(--sub); cursor: pointer; }
.vote + .vote { border-left: 1px solid var(--line); }
.vote b { font: 600 .82rem var(--mono); color: var(--text); }
.vote-icon { display: block; }
button.vote:hover { background: var(--panel-2); color: var(--text); }
.vote-up.on { color: var(--green); background: #0d2a22; }
.vote-down.on { color: var(--red); background: #2c0f15; }
.vote.on b { color: inherit; }
.vote.static { cursor: default; }
.react { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px 3px 4px; font: inherit; line-height: 1; color: var(--sub); cursor: pointer; min-height: 36px; }
.react img, .react-pick img { display: block; }
.react b { font: 600 .82rem var(--mono); color: var(--text); }
button.react:hover { border-color: var(--cyan); background: var(--panel-2); }
.react.on { border-color: var(--cyan); background: #06252c; }
.react.on b { color: var(--cyan); }
.react.static { cursor: default; }
.react-more summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 999px; color: var(--sub); font-size: 1.15rem; line-height: 1; cursor: pointer; user-select: none; }
.react-more summary::-webkit-details-marker { display: none; }
.react-more summary:hover, .react-more[open] summary { border-color: var(--cyan); color: var(--cyan); }
.react-picker { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; display: grid; grid-template-columns: repeat(6, 44px); gap: 4px; padding: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.react-pick { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; padding: 0; }
.react-pick:hover, .react-pick.on { border-color: var(--cyan); background: var(--bg-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.user-text { overflow-wrap: anywhere; }
.user-text > :last-child { margin-bottom: 0; }
.user-text blockquote { margin: 0 0 1em; padding: 6px 14px; border-left: 3px solid var(--cyan-deep); color: #c5cde8; background: var(--bg-2); }
.user-text pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow-x: auto; }
.user-text pre code { background: none; border: 0; padding: 0; }
.user-text table { border-collapse: collapse; margin-bottom: 1em; }
.user-text th, .user-text td { border: 1px solid var(--line); padding: 6px 10px; }
.user-text h3, .user-text h4 { margin-top: 1em; }
.signature { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .92rem; line-height: 1.45; }
.signature strong { color: var(--text); }
.signature em { color: var(--sub); }
.post-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.post-images a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.post-images img { display: block; width: auto; height: auto; max-width: min(100%, 360px); max-height: 260px; }
.post-images.edit .check { flex-direction: column; gap: 6px; font-size: .88rem; }
.post-images.edit img { max-height: 120px; border-radius: 4px; }
.reply h2 { margin-bottom: 0; }
.reply { scroll-margin-top: 90px; }

.profile-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.profile-head h1 { margin-bottom: .2em; }
.bio { max-width: 60ch; margin-top: .8em; }

.foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); color: var(--sub); font-size: .88rem; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.foot p { margin: 0; }
.foot a { color: var(--sub); margin-left: 20px; }
.foot p:first-child { letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; font-weight: 600; }

@media (max-width: 900px) {
  .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .boards li, .threads li { grid-template-columns: 1fr auto; }
  .board-last { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a, .nav .linkish { padding: 12px 0; text-align: left; }
  .nav .btn { margin-top: 8px; text-align: center; padding: 12px; }
  .nav-gap { display: none; }
  .stats-small { margin-left: 0; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .main { padding-top: 28px; }
  .board .opt, .board .flairs { display: none; }
  .table th, .table td { padding: 10px 8px; }
  .board .rank { width: auto; }
  .tabs a:not(.btn) { padding: 10px 12px; }
  .filters .inline-field { flex: 1 1 45%; }
  .filters .inline-field select, .filters .inline-field input { width: 100%; min-width: 0; }
  .react-picker { grid-template-columns: repeat(6, 1fr); width: min(300px, calc(100vw - 80px)); }
  .react-pick { width: auto; }
  .cards, .cards-4 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .post { grid-template-columns: 1fr; }
  .post-author { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 16px; }
  .post-author .avatar { width: 36px; height: 36px; font-size: 1rem; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .demo, .head-row { flex-direction: column; align-items: stretch; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows li > span:first-child { grid-column: 1 / -1; }
  .rows-2 li { grid-template-columns: 1fr; gap: 2px; }
  .boards li, .threads li { grid-template-columns: 1fr; gap: 8px; }
  .mini-board a { grid-template-columns: 1.6em 1fr auto; }
  .mini-board .sub { display: none; }
  .tabs-action { margin-left: 0; }
  .avatar-edit { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shots img { transition: none; }
}
