:root {
  --bg: #0E1116; --panel: #171B22; --panel-hover: #1D2129; --line: #232833; --line2: #2B313C;
  --text: #EDEAE2; --soft: #C9CED6; --muted: #9BA3AF; --gold: #F2C84B; --gold-hi: #FFE08A; --gold-lo: #B8902A;
  --pixel: 'Pixelify Sans', monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Inter, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pixel { font-family: var(--pixel); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(14,17,22,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; }
.brand span { font-family: var(--pixel); font-weight: 700; font-size: 24px; letter-spacing: 2px; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.nav a { color: var(--soft); }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.top .btn { margin-left: auto; }
@media (max-width: 720px) { .top .btn { display: none; } .top .wrap { gap: 12px 20px; } }

/* buttons */
.btn { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px;
  background: var(--gold); color: #14110A; font: 600 15px Inter, sans-serif; cursor: pointer; box-shadow: inset 0 -4px 0 var(--gold-lo); }
.btn:hover { background: var(--gold-hi); color: #14110A; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 17px; box-shadow: inset 0 -5px 0 var(--gold-lo); }
.ghost { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; border: 2px solid #5A6270; border-radius: 4px; color: var(--text); font-weight: 600; background: transparent; cursor: pointer; font-family: Inter, sans-serif; font-size: 16px; }
.ghost:hover { border-color: var(--gold); color: #fff; }
.ghost.small { min-height: 44px; padding: 0 14px; font-size: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; background: #6FA0E8; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 30%, rgba(14,17,22,.55) 70%, var(--bg) 100%); }
.hero .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding-bottom: 56px; }
.hero h1 { margin: 0; font-family: var(--pixel); font-weight: 700; line-height: .95; text-shadow: 0 4px 0 rgba(0,0,0,.45); }
.hero p { margin: 0; color: #E3E6EB; }
.tag { align-self: flex-start; font-family: var(--pixel); font-size: 15px; letter-spacing: 1px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); }
.home-hero { height: min(680px, 88vh); }
.home-hero h1 { font-size: clamp(48px, 8vw, 84px); max-width: 760px; }
.home-hero p { font-size: clamp(17px, 2vw, 20px); max-width: 600px; }
.page-hero { height: 300px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.page-hero p { font-size: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: 14px; color: var(--soft); }

/* sections */
section.block { padding-top: 72px; }
h2.title { margin: 0; font-family: var(--pixel); font-size: clamp(32px, 4vw, 44px); font-weight: 700; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.head p { margin: 0; color: var(--muted); max-width: 420px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; color: var(--text); }
.card .pic { aspect-ratio: 1 / 1; overflow: hidden; }
.card .pic img, .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .pic img, .shot:hover img { transform: scale(1.04); }
.card .body { padding: 18px 18px 22px; }
.card .num { font-family: var(--pixel); color: var(--gold); font-size: 18px; }
.card h3 { margin: 6px 0; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shot { margin: 0; position: relative; overflow: hidden; min-height: 300px; background: var(--panel); }
.shot img { position: absolute; inset: 0; }
.shot.wide { grid-column: span 2; min-height: 380px; }
.shot.tall { min-height: 380px; }
.shot figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 14px; background: var(--bg); font-family: var(--pixel); font-size: 17px; }
@media (max-width: 640px) { .shot.wide { grid-column: auto; } }

.links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.links a { display: block; padding: 28px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.links a:hover { background: var(--panel-hover); }
.links .pixel { font-size: 28px; color: var(--gold); }
.links p { margin: 8px 0 0; color: var(--muted); }

.shopline { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); font-size: 17px; }
.shopline:hover { color: #fff; }
.shopline b { color: var(--gold); white-space: nowrap; }

footer .wrap { padding-top: 40px; padding-bottom: 56px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* two-column pages */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 36px; padding-bottom: 72px; }
.split .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.split aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.box { padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.box .pixel { font-size: 20px; margin-bottom: 10px; display: block; }
.box p, .box ol { margin: 0; color: var(--soft); font-size: 15px; }
.box ol { padding-left: 20px; line-height: 1.7; }
.box .hint { margin-top: 10px; color: var(--muted); font-size: 14px; }
code { font-family: ui-monospace, monospace; color: var(--text); }
input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line2); color: var(--text); font: 15px Inter, sans-serif; }
input:focus { outline: 2px solid var(--gold); outline-offset: -1px; }

/* vote */
.tally { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); }
.tally .pixel { font-size: 26px; color: var(--gold); }
.bar { flex: 1 1 200px; height: 12px; background: var(--bg); border: 1px solid var(--line2); }
.bar div { height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.site { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); }
.site:hover { border-color: #3A4150; }
.site .n { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--pixel); font-size: 20px; background: var(--bg); color: var(--gold); }
.site .t { flex: 1; min-width: 0; }
.site .t b { display: block; font-size: 17px; font-weight: 600; }
.site .t span { color: var(--muted); font-size: 13px; }
.site .btn { padding: 0 20px; }
.site.done { border-color: #3B6B4A; }
.site.done .n { background: #4CAF6A; color: #0B1A10; }
.site.done .btn { background: transparent; color: #7FD69A; box-shadow: none; }

/* forum */
.cats h2 { margin: 0 0 10px; font-family: var(--pixel); font-size: 22px; color: var(--gold); }
.cats ul { list-style: none; margin: 0 0 28px; padding: 0; border: 1px solid var(--line); }
.cats li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.cats li:last-child { border-bottom: 0; }
.cats li img { flex: none; width: 56px; height: 56px; object-fit: cover; }
.cats li b { display: block; font-size: 17px; font-weight: 600; }
.cats li span { color: var(--muted); font-size: 14px; }
.soon { padding: 22px; border: 1px solid var(--gold); background: var(--panel); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.soon p { margin: 0; font-size: 17px; }
