/* SXYH.NET — black, white and teal. Display: Archivo (wide), labels: JetBrains Mono, text: Inter. */
:root {
  --bg: #050505; --panel: #0d0d0d; --panel-2: #141414; --line: #222; --line-2: #2c2c2c;
  --text: #f2f0eb; --soft: #d6d3cd; --muted: #a8a5a0; --dim: #8f8c86;
  --teal: #19e3c9; --teal-2: #3ff0d8; --teal-3: #5ef0dc; --teal-ink: #041210; --teal-deep: #03120f; --teal-line: #1d4d46;
  --danger: #ff6b5e; --wrap: 1200px; --gutter: clamp(16px, 4vw, 24px);
  --display: "Archivo", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img, video { max-width: 100%; display: block; }
a { color: var(--teal-2); }
a:hover { color: #8af7e9; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.display, h1, h2, h3 { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; letter-spacing: -.01em; line-height: 1; }
h1 { margin: 0; } h2 { margin: 0; } h3 { margin: 0; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--teal); text-transform: uppercase; margin: 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 14px; }

/* header / footer */
.site-header { border-bottom: 1px solid #1c1c1c; position: sticky; top: 0; z-index: 30; background: rgba(5,5,5,.92); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 24px; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--teal); }
.logo:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; font-size: 15px; }
.nav a { color: #e6e3dd; text-decoration: none; padding: 8px 0; }
.nav a[aria-current="page"] { color: var(--teal); }
.nav a:hover { color: var(--teal-2); }
.header-spacer { flex: 1; }
.site-footer { border-top: 1px solid #1c1c1c; margin-top: 64px; padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--teal-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 700 15px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-teal { background: var(--teal); color: var(--teal-ink); }
.btn-teal:hover { background: var(--teal-2); color: var(--teal-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: #3a3a3a; }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); }
.btn-white { background: #fff; color: #0a0a0a; }
.btn-white:hover { background: var(--teal-2); color: var(--teal-ink); }
.btn-dark { background: #0a0a0a; color: #fff; }
.btn-dark:hover { background: #1a1a1a; color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: #5a2522; }
.btn-danger:hover { background: var(--danger); color: #0a0a0a; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 24px; }
.btn[disabled], .btn[aria-disabled="true"] { background: #2a2a2a; color: #8a8a8a; border-color: #2a2a2a; cursor: not-allowed; pointer-events: none; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 5px 10px; border: 1px solid #333; border-radius: 6px; color: var(--soft); }
.tag-teal { border-color: var(--teal); color: var(--teal-3); }
.tag-solid { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 600 13px var(--body);
  background: #111; color: var(--soft); border: 1px solid #2a2a2a; text-decoration: none; }
.chip:hover { border-color: var(--teal); color: var(--text); }
.chip[aria-current="true"] { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }

/* flashes */
.flashes { margin: 18px 0 0; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--teal-line); background: var(--teal-deep); color: var(--text); }
.flash-error { border-color: #5a2522; background: #1a0b0a; }

/* placeholder art */
.stripes { background: repeating-linear-gradient(135deg, #111 0 16px, #161616 16px 32px); }
.art { position: relative; overflow: hidden; background-color: #111; }
.art > img, .art > video { width: 100%; height: 100%; object-fit: cover; }

/* home hero */
.hero { margin-top: 32px; position: relative; border-radius: 20px; overflow: hidden; min-height: 460px; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.65) 45%, rgba(5,5,5,0) 78%); }
.hero-body { position: relative; z-index: 1; padding: clamp(24px, 4vw, 40px); max-width: 600px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: clamp(42px, 7vw, 68px); line-height: .92; }
.hero p { margin: 0; color: #c9c6c0; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-empty { min-height: 320px; align-items: center; }
.hero-empty::after { display: none; }

.section { margin-top: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { flex: 1; font-size: clamp(28px, 3.4vw, 34px); }

/* game cards */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 22px; }
.game-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.game-card:hover { transform: translateY(-3px); border-color: #333; color: inherit; }
.game-card .art { aspect-ratio: 16 / 9; }
.game-card .badge { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 5px;
  background: rgba(0,0,0,.72); color: var(--teal-3); z-index: 1; }
.game-card .badge-new { background: var(--teal); color: var(--teal-ink); }
.game-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.game-card-top { display: flex; align-items: baseline; gap: 8px; }
.game-card-top strong { flex: 1; font-size: 17px; }
.game-card .price { font-family: var(--mono); font-size: 12px; color: var(--teal-3); }
.game-card .meta { font-size: 13px; color: var(--dim); }
.empty { padding: 40px 24px; text-align: center; border: 1px dashed #2c2c2c; border-radius: 16px; color: var(--muted); }

/* engine band */
.engine-band { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 36px); border-radius: 20px; background: var(--teal); color: var(--teal-ink); }
.engine-band .eyebrow { color: var(--teal-ink); }
.engine-band h2 { font-size: clamp(32px, 4.6vw, 46px); line-height: .95; margin: 10px 0; }
.engine-band p { margin: 0; max-width: 52ch; }
.engine-band-text { flex: 1 1 380px; }
.engine-band-cta { flex: 0 1 340px; display: flex; flex-direction: column; gap: 10px; text-align: center; font-family: var(--mono); font-size: 12px; }
.engine-band a.btn-dark { min-height: 52px; font-size: 16px; }

/* devlog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.post-card { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px;
  color: inherit; text-decoration: none; }
.post-card:hover { border-color: #333; color: inherit; }
.post-card .mono { font-size: 12px; color: var(--teal-3); }
.post-card strong { font-size: 17px; }
.post-card span.sum { font-size: 14px; color: var(--muted); }
.prose { max-width: 70ch; font-size: 17px; color: #d9d6d0; }
.prose p { margin: 0 0 1.1em; }

/* game page */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #9a9790; text-decoration: none; font-size: 14px; font-weight: 600; margin-top: 16px; }
.back:hover { color: var(--teal-2); }
.game-layout { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 8px; }
.game-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.game-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.viewer { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b0b0b; }
.viewer img, .viewer video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.viewer .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: #8a8a8a; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 120px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid #2a2a2a; padding: 0; cursor: pointer; background: #121212; position: relative; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border: 2px solid var(--teal); }
.thumb .play-ico { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.game-main h2 { font-size: 26px; margin-top: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.feature { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.feature strong { display: block; margin-bottom: 4px; }
.feature span { font-size: 14px; color: var(--muted); }
.updates { display: flex; flex-direction: column; border-top: 1px solid #1f1f1f; }
.updates > div { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #1f1f1f; }
.updates .mono { font-size: 13px; color: var(--teal-3); width: 76px; flex: none; }
.updates .note { white-space: pre-line; color: var(--soft); font-size: 15px; }
.game-side h1 { font-size: clamp(38px, 5vw, 48px); line-height: .95; }
.panel { padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); }
.get-box { display: flex; flex-direction: column; gap: 12px; }
.get-box .or { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: center; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 40px; border-radius: 10px; cursor: pointer; font: 600 13px var(--body); background: #141414; color: var(--soft); border: 1px solid #2a2a2a; }
.seg button[aria-pressed="true"] { background: #fff; color: #0a0a0a; border-color: #fff; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid #3a3a3a; color: var(--text); font-weight: 700; text-decoration: none; }
.dl-row:hover { border-color: var(--teal); color: var(--text); }
.dl-row .mono { font-size: 12px; color: #9a9790; font-weight: 500; }
.made-with { display: flex; align-items: center; gap: 12px; }
.made-with .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--teal); display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: var(--teal-ink); flex: none; }
.reqs { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.reqs dt { color: var(--dim); } .reqs dd { margin: 0; }

/* play page */
.play-page { background: #000; }
.play-bar { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); border-bottom: 1px solid #1c1c1c; background: #050505; }
.play-bar strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-frame { width: 100%; height: calc(100vh - 62px); height: calc(100dvh - 62px); border: 0; display: block; background: #000; }

/* engine page */
.engine-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 48px; }
.engine-hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 16px; }
.engine-hero h1 { font-size: clamp(48px, 8vw, 72px); line-height: .9; }
.engine-hero p.lead { margin: 0; color: #c9c6c0; font-size: 18px; max-width: 50ch; }
.dl-box { display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.dl-big { justify-content: space-between; min-height: 56px; font-size: 16px; font-weight: 800; }
.dl-big .mono { font-size: 12px; opacity: .85; font-weight: 500; }
.editor { flex: 1 1 460px; min-width: 0; aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid #262626; background: #0c0c0c; overflow: hidden; display: flex; flex-direction: column; }
.editor-bar { height: 34px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-family: var(--mono); font-size: 11px; color: #8a8a8a; }
.editor-bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.editor-body { flex: 1; display: grid; place-items: center; background:
  repeating-linear-gradient(0deg, #0c0c0c 0 23px, #151515 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #151515 23px 24px); }
.editor-body img { width: 100%; height: 100%; object-fit: cover; }
.split { display: flex; flex-wrap: wrap; gap: 28px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.steps b { font-family: var(--mono); color: var(--teal); }
.license-box { padding: 22px; border-radius: 16px; border: 1px solid var(--teal); background: var(--teal-deep); }
.license-box pre { white-space: pre-wrap; font: 14px/1.6 var(--body); color: var(--soft); margin: 8px 0 0; max-height: 220px; overflow: hidden;
  mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--dim); font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 12px 16px; letter-spacing: .04em; }
td { padding: 13px 16px; border-top: 1px solid #1c1c1c; vertical-align: middle; }
.ver { font-family: var(--mono); }
.latest-tag { margin-left: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--teal); color: var(--teal-ink); }
.license-full { white-space: pre-wrap; font: 15px/1.7 var(--body); color: #d9d6d0; max-width: 80ch; }

/* forms (admin + login) */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; background: #121212; border: 1px solid var(--line-2); color: var(--text); font: 15px var(--body); }
textarea { padding: 10px 12px; resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
.hint { font-size: 13px; color: var(--dim); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 34px; cursor: pointer; }
.check input { accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.auth { max-width: 420px; margin: 72px auto; }
.auth h1 { font-size: 34px; margin: 12px 0 20px; }

@media (prefers-reduced-motion: reduce) { .game-card { transition: none; } }

/* ---------- admin ---------- */
.admin { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin-side { flex: 1 1 220px; max-width: 260px; min-width: 200px; border-right: 1px solid #1c1c1c; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-side .logo { font-size: 22px; padding: 0 10px 18px; display: flex; align-items: baseline; gap: 8px; }
.admin-side .logo small { font-family: var(--mono); font-size: 11px; color: var(--dim); font-variation-settings: normal; font-weight: 500; }
.admin-side a.item { padding: 10px 12px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 600; }
.admin-side a.item:hover { background: #121212; color: var(--text); }
.admin-side a.item[aria-current="page"] { background: var(--teal); color: var(--teal-ink); }
.admin-side form { margin-top: 12px; padding: 0 12px; }
.admin-main { flex: 999 1 560px; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 64px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-top h1 { flex: 1; font-size: 32px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.stat .mono { font-size: 11px; color: var(--dim); }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; margin-top: 4px; }
.stat-teal { border-color: var(--teal); background: var(--teal-deep); }
.stat-teal .mono { color: var(--teal-3); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-released { background: var(--teal); color: var(--teal-ink); }
.pill-in_development { background: #1c1c1c; color: var(--teal-3); border: 1px solid var(--teal-line); }
.pill-draft { background: #1c1c1c; color: var(--muted); border: 1px solid #333; }
.thumb-sm { width: 64px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; flex: none; }
.thumb-sm img, .thumb-sm video { width: 100%; height: 100%; object-fit: cover; }
.card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: #0c0c0c; margin-bottom: 18px; }
.card > h2 { font-family: var(--body); font-variation-settings: normal; font-weight: 700; font-size: 18px; margin: 0 0 12px; letter-spacing: 0; }
.card-teal { border-color: var(--teal); background: #050f0d; }
.edit-layout { display: flex; flex-wrap: wrap; gap: 24px; }
.edit-main { flex: 999 1 460px; min-width: 0; }
.edit-side { flex: 1 1 280px; min-width: 0; }
.slot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; border: 1px dashed #333; margin-bottom: 10px; }
.slot.is-ready { border-style: solid; border-color: var(--teal-line); background: #06110f; }
.slot.is-drag { border-color: var(--teal); background: #06110f; }
.slot.is-error { border-color: #5a2522; }
.slot.is-error [data-status] { color: var(--danger); }
.slot-tag { width: 44px; height: 44px; border-radius: 10px; background: #161616; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--teal-3); flex: none; }
.slot-body { flex: 1 1 220px; min-width: 0; }
.slot-body strong { display: block; }
.slot-body [data-status] { font-family: var(--mono); font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.slot .track { height: 4px; border-radius: 4px; background: #222; margin-top: 6px; display: none; }
.slot.is-busy .track { display: block; }
.slot .track span { display: block; height: 4px; border-radius: 4px; background: var(--teal); width: 0; transition: width .2s linear; }
.slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.media-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #2a2a2a; }
.media-item .art { aspect-ratio: 16 / 9; }
.media-item.is-cover { border: 2px solid var(--teal); }
.media-item .cover-tag { position: absolute; left: 6px; top: 6px; z-index: 1; font-family: var(--mono); font-size: 10px; background: var(--teal); color: var(--teal-ink); padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.media-item .tools { display: flex; gap: 4px; padding: 6px; background: #0e0e0e; }
.media-item .tools form { display: inline; }
.media-item .tools button { min-height: 30px; padding: 0 8px; font-size: 12px; }
.status-pick { display: flex; flex-direction: column; gap: 8px; }
.status-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid #2a2a2a; background: #121212; cursor: pointer; }
.status-pick label:has(input:checked) { border-color: var(--teal); background: var(--teal-deep); }
.status-pick input { accent-color: var(--teal); margin-top: 3px; }
.status-pick span { display: block; font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { display: inline; }
.inline { display: inline; }
.dl-big { white-space: normal; flex-wrap: wrap; row-gap: 2px; padding-top: 10px; padding-bottom: 10px; text-align: left; }
.dl-row { flex-wrap: wrap; row-gap: 2px; padding-top: 8px; padding-bottom: 8px; }
.dl-row .mono, .dl-big .mono { overflow-wrap: anywhere; }

/* ---------- accounts ---------- */
.signin-link { color: var(--teal); font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 4px; }
.signin-link:hover { color: var(--teal-2); }
.me-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.me-link:hover { color: var(--teal-2); }
.me-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 15px; flex: none; }
.avatar-xl { width: 96px; height: 96px; border-radius: 24px; font-size: 44px; font-variation-settings: "wdth" 125; }
.avatar-dev { background: var(--teal); color: var(--teal-ink); }
.auth-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; max-width: 1040px; padding-top: 56px; padding-bottom: 40px; }
.auth-pitch { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.auth-pitch h1 { font-size: clamp(40px, 6vw, 52px); line-height: .95; }
.auth-pitch .lead { margin: 0; color: #c9c6c0; font-size: 17px; max-width: 44ch; }
.perks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks li > span:last-child { display: flex; flex-direction: column; font-size: 15px; }
.perks .dim { font-size: 14px; }
.perk-ico { width: 40px; height: 40px; border-radius: 10px; background: #0f2a26; color: var(--teal); display: grid; place-items: center; flex: none; }
.perk-ico svg { width: 20px; height: 20px; }
.auth-card { flex: 1 1 400px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-tabs { display: flex; padding: 4px; border-radius: 12px; background: #141414; border: 1px solid var(--line); }
.auth-tabs a { flex: 1; min-height: 42px; display: grid; place-items: center; border-radius: 9px; color: #c9c6c0; text-decoration: none; font-weight: 600; font-size: 14px; }
.auth-tabs a[aria-current="page"] { background: var(--teal); color: var(--teal-ink); font-weight: 700; }
.btn-google { min-height: 48px; width: 100%; color: #111; }
.btn-google svg { width: 18px; height: 18px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: #262626; }
.auth-form .field:last-of-type { margin-bottom: 6px; }
.auth-form .btn-lg { width: 100%; margin-top: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.label-row label { font-size: 14px; }
.check-top { align-items: flex-start; line-height: 1.5; color: #c9c6c0; }
.check-top input { margin-top: 2px; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--dim); text-align: center; line-height: 1.5; }

/* profile */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 40px 0 28px; border-bottom: 1px solid #1f1f1f; }
.profile-id { flex: 1 1 280px; min-width: 0; }
.profile-id h1 { font-size: 40px; overflow-wrap: anywhere; }
.profile-id .mono { margin-top: 8px; }
.profile-layout { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 28px; }
.profile-main { flex: 999 1 600px; min-width: 0; }
.profile-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.side-card { display: flex; flex-direction: column; gap: 10px; }
.side-title { font-size: 12px; }
.side-card .field { margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 10px; font-size: 14px; overflow-wrap: anywhere; }
.check-row { justify-content: space-between; }
details.side-card summary { cursor: pointer; list-style: none; min-height: 24px; display: flex; align-items: center; }
details.side-card summary::-webkit-details-marker { display: none; }
details.side-card summary::after { content: "+"; margin-left: auto; color: var(--dim); font-size: 18px; }
details.side-card[open] summary::after { content: "–"; }
.side-actions { display: flex; flex-direction: column; gap: 10px; }
.danger-zone summary { list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.game-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.lib-item { display: flex; flex-direction: column; gap: 6px; }
.lib-meta { font-size: 12px; color: var(--dim); padding: 0 4px; }
.my-comments { border-top: 1px solid #1f1f1f; }
.my-comment { padding: 16px 0; border-bottom: 1px solid #1f1f1f; }
.my-comment p { margin: 6px 0 0; white-space: pre-line; color: var(--soft); overflow-wrap: anywhere; }

/* favorite + comments on game pages */
.fav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fav-btn { background: #141414; color: var(--text); border-color: #3a3a3a; min-height: 48px; padding: 0 18px; }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn:hover { border-color: var(--teal); color: var(--text); }
.fav-btn[aria-pressed="true"] { background: #0f2a26; color: var(--teal); border-color: var(--teal); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-row a { color: var(--dim); }
.fav-row a:hover { color: var(--teal-2); }
.comments { margin-top: 36px; scroll-margin-top: 90px; }
.comments h2 { font-size: 26px; margin: 0 0 18px; }
.composer { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.composer-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.composer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.comment-gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 14px;
  border: 1px dashed #2f2f2f; color: #c9c6c0; }
.comment-list { margin-top: 10px; display: flex; flex-direction: column; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #1f1f1f; scroll-margin-top: 90px; }
.comment .avatar:not(.avatar-dev) { background: #1d1d1d; color: var(--soft); }
.comment-reply { margin-left: 52px; padding-left: 16px; border-left: 2px solid var(--teal); }
.comment-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-text { margin: 0; white-space: pre-line; color: var(--soft); line-height: 1.55; overflow-wrap: anywhere; }
.dev-badge { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: var(--teal); color: var(--teal-ink); }
.comment-actions { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -10px; }
.comment-actions form { margin: 0; }
.c-act { min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px var(--body);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.c-act svg { width: 14px; height: 14px; }
.c-act:hover { background: #141414; color: var(--text); }
.c-act[aria-pressed="true"] { color: var(--teal); }
.c-act[aria-pressed="true"] svg { fill: currentColor; }
.c-act[disabled] { cursor: default; opacity: .6; background: transparent; }
.c-muted { color: #8a8780; }
.reply-box { margin: -6px 0 6px 52px; padding-bottom: 12px; border-bottom: 1px solid #1f1f1f; }
.reply-box summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; list-style: none; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box summary:hover { color: var(--teal-2); }
.reply-box form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 6px; }
.reply-box textarea { min-height: 70px; }
@media (max-width: 560px) { .comment-reply, .reply-box { margin-left: 20px; } }

/* admin: comments */
.admin-side a.item-count { display: flex; justify-content: space-between; align-items: center; }
.admin-side .count { font-family: var(--mono); font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--teal); color: var(--teal-ink); }
.admin-side a.item-count[aria-current="page"] .count { background: var(--teal-ink); color: var(--teal); }
.inline-toggle { margin: 0; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-search { flex: 0 1 300px; }
.mod-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mod-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 18px; background: #0b0b0b; }
.mod-row + .mod-row { border-top: 1px solid #1c1c1c; }
.mod-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.mod-head strong { font-size: 15px; }
.mod-text { margin: 0; font-size: 15px; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.is-removed .mod-text { color: #77746e; text-decoration: line-through; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-actions form { display: flex; gap: 8px; margin: 0; }
.flag { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: #3a1d1a; color: #ffb4a8; }
.comment:has(+ .reply-box) { border-bottom: 0; padding-bottom: 8px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); margin: 12px 0 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal ul { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 8px; }
