/* Hyperfocus community games on Velora (velora.ikelene.net/community/) - the Velora look:
   flat, square corners only, the user's accent colour (accent.js sets --accent etc.),
   and a Hyperfocus header band like the homepage's Hyperfocus section. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0e0e10; --card: #151517; --surface: #1a1a1d; --surface-3: #212125;
  --border: #292930; --border-2: #35353d;
  --text: #e7e7ea; --mid: #a1a1aa; --dim: #71717a;
  --accent: #9d8ad1; --accent-dim: rgba(157, 138, 209, .12); --accent-glow: rgba(157, 138, 209, .25);
  --btn-bg: var(--accent); --btn-text: #16141c;
  --err: #c26a6a; --ok: #6f9e7c; --info: #7d9fd6; --warn: #d9b46a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body > header, body > .cg-bar, body > main, body > footer { position: relative; z-index: 1; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.2px; }
p { line-height: 1.55; margin: 0 0 10px; }
code { font: 12.5px Consolas, "Cascadia Code", monospace; }

/* ── header band (same as the homepage's Hyperfocus section) ── */
.cg-head { overflow: hidden; background: #0a0a14; border-bottom: 1px solid var(--border); }
.cg-head-stars { position: absolute; inset: 0; overflow: hidden; opacity: .14; pointer-events: none; }
.cg-head-stars::before { content: ""; position: absolute; top: -102.9067px; left: -102.9067px; right: 0; bottom: 0; background: url("/assets/hyperfocus/stars.svg") repeat; animation: cg-stars 9s linear infinite; will-change: transform; }
@keyframes cg-stars { to { transform: translate(102.9067px, 102.9067px); } }
@media (prefers-reduced-motion: reduce) { .cg-head-stars::before { animation: none; } }
.cg-head-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 44px 20px 40px; }
.cg-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.cg-title { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; font-size: 36px; line-height: 1.1; letter-spacing: -1px; }
.cg-title img { width: 44px; height: 44px; }
.cg-lead { color: var(--mid); font-size: 15px; max-width: 560px; margin: 0 0 20px; }
.cg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cg-actions .btn { padding: 9px 16px; }
/* away from the gallery the band shrinks to just the title */
body:not(.v-gallery) .cg-head-in { padding: 22px 20px 20px; }
body:not(.v-gallery) .cg-lead, body:not(.v-gallery) .cg-actions { display: none; }
body:not(.v-gallery) .cg-title { font-size: 24px; margin-bottom: 0; }
body:not(.v-gallery) .cg-title img { width: 30px; height: 30px; }

/* ── section tabs + account ── */
.cg-bar { background: var(--card); border-bottom: 1px solid var(--border); }
.cg-bar-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
#nav { display: flex; flex: 1; flex-wrap: wrap; min-width: 0; }
#nav a { display: block; padding: 12px 16px; color: var(--mid); font-weight: 600; font-size: 13px; text-decoration: none; border-right: 1px solid var(--border); }
#nav a:first-child { border-left: 1px solid var(--border); }
#nav a::first-letter { text-transform: uppercase; }
#nav a:hover { color: var(--text); background: var(--surface); }
#nav a.on { color: var(--text); background: var(--accent-dim); box-shadow: inset 0 -2px 0 var(--accent); }
#acct { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
#acct .who { color: var(--dim); font-size: 12.5px; }
.pfp { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 700; font-size: 12px; color: var(--mid); }
.uname { font-weight: 600; }

main#main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; }
.cg-foot { width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid var(--border); color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── boxes ── */
.box { background: var(--card); border: 1px solid var(--border); margin-bottom: 20px; }
.box.sub { margin: 0 0 12px; background: var(--surface); }
.box-h { display: block; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--mid); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.box-h.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.box-h a { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; }
.p { padding: 16px; }
.hint { color: var(--dim); font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 120px; }
.acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ── buttons + inputs ── */
.btn {
  display: inline-block; text-align: center; vertical-align: middle;
  background: var(--btn-bg); border: 1px solid var(--btn-bg); border-radius: 0; color: var(--btn-text) !important;
  padding: 7px 14px; font: 600 13px/1.3 var(--font); text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: filter .15s, background .15s, border-color .15s, color .15s;
}
.btn::first-letter { text-transform: uppercase; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border-color: var(--border-2); color: var(--text) !important; }
.btn.ghost:hover { filter: none; background: var(--surface-3); border-color: var(--dim); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff !important; }
.btn.big { font-size: 15px; padding: 11px 20px; width: 100%; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.x { border: 0; background: transparent; color: var(--dim); font: inherit; cursor: pointer; padding: 2px 8px; }
.x:hover { color: #fff; background: var(--err); }
input, textarea, select {
  font: 13.5px/1.4 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-2); border-radius: 0; padding: 7px 10px; max-width: 100%;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { width: 100%; resize: vertical; }
input[type=color] { padding: 0 2px; width: 44px; height: 32px; }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
input[type=file] { display: none; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.field .lbl { font-size: 13px; font-weight: 600; color: var(--mid); }
.field .lbl::first-letter { text-transform: uppercase; }
.field input:not([type=checkbox]):not([type=color]), .field select { width: 100%; max-width: 480px; }

/* ── gallery ── */
.bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bar .search { flex: 1; min-width: 200px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.empty { grid-column: 1 / -1; padding: 36px; text-align: center; color: var(--dim); border: 1px dashed var(--border-2); }
.card { display: block; color: inherit; text-decoration: none !important; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-art { position: relative; aspect-ratio: 16 / 9; background: #0a0a14; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-none { position: absolute; inset: 0; background: url("/assets/hyperfocus/stars.svg") repeat; opacity: .14; }
.tag { position: absolute; top: 8px; left: 8px; padding: 1px 6px; font-size: 10px; font-weight: 700; background: rgba(14, 14, 16, .85); border: 1px solid var(--border-2); color: var(--mid); text-transform: uppercase; letter-spacing: 1px; }
.card-trailer { position: absolute; bottom: 8px; left: 8px; display: inline-flex; align-items: center; padding: 1px 6px; font-size: 10px; font-weight: 700; background: rgba(14, 14, 16, .85); border: 1px solid var(--border-2); color: var(--mid); text-transform: uppercase; letter-spacing: 1px; }
.card-foot { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-top: 1px solid var(--border); }
.ico { width: 36px; height: 36px; flex: none; object-fit: cover; background: var(--surface-3); }
.ico.letter, .big-ico.letter { display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); font-weight: 700; }
.card-text { flex: 1; min-width: 0; }
.card-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-by { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-plays { font-size: 12px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-price { flex: none; font-size: 11px; font-weight: 700; padding: 2px 6px; border: 1px solid currentColor; color: var(--warn); white-space: nowrap; }
.card-art .card-logo { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 76%; max-height: 64%; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.75)); pointer-events: none; }
.card-art .card-logo.none { display: none; }
.card-art .card-logo-t { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font-weight: 800; font-size: 22px; line-height: 1.15; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.85); pointer-events: none; }

/* ── a game's page ── */
.hero { position: relative; aspect-ratio: 16 / 6; min-height: 200px; background: #0a0a14; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero.none::before { content: ""; position: absolute; inset: 0; background: url("/assets/hyperfocus/stars.svg") repeat; opacity: .14; }
/* the cover fills the banner - but NOT the logo, which also sits in .hero */
.hero > img:not(.hero-logo), .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,.35), transparent 40%, rgba(14,14,16,.7)); }
.hero-logo { position: absolute; left: 24px; top: 20px; width: auto; height: auto; max-width: 45%; max-height: 70%; object-fit: contain; object-position: left top; filter: drop-shadow(0 3px 10px rgba(0,0,0,.6)); }
.hero-title { position: absolute; left: 24px; top: 18px; max-width: 60%; font-size: 40px; font-weight: 800; letter-spacing: -1px; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.game-body { display: flex; gap: 24px; padding: 20px; flex-wrap: wrap; }
.game-main { flex: 1; min-width: 280px; }
.game-side { width: 300px; display: flex; flex-direction: column; gap: 12px; }
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.big-ico { width: 64px; height: 64px; object-fit: cover; flex: none; background: var(--surface-3); }
.game-head h2 { margin: 0; font-size: 24px; letter-spacing: -.4px; }
.desc { white-space: pre-line; color: var(--mid); }
.facts { display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.facts .k, .facts .v { padding: 7px 12px; border-top: 1px solid var(--border); }
.facts .k:nth-child(1), .facts .v:nth-child(2) { border-top: 0; }
.facts .k { color: var(--dim); }
.facts .v { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.links-list { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--surface); }
.links-list .link-row { display: flex; align-items: center; gap: 9px; padding: 8px 12px; color: var(--text); text-decoration: none; border-top: 1px solid var(--border); }
.links-list .link-row:first-child { border-top: 0; }
.links-list .link-row:hover { background: var(--surface-3); }
.link-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.link-ico svg { width: 20px; height: 20px; display: block; }
/* trailer on a game's page */
.trailer { margin: 14px 0; border: 1px solid var(--border); background: #000; }
.trailer-h { padding: 7px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mid); background: var(--surface); border-bottom: 1px solid var(--border); }
.trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.banner-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 6px; }
.banner-strip a, .banner-strip span { flex: none; }
.banner-strip img { height: 120px; display: block; border: 1px solid var(--border); }
.banner-strip .shot-btn { flex: none; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.banner-strip .shot-btn:hover img { border-color: var(--accent); }
.statusbar { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg); }
.badge { display: inline-block; padding: 1px 7px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 1px solid currentColor; }
.badge.draft { color: var(--dim); }
.badge.pending { color: var(--info); }
.badge.approved { color: var(--ok); }
.badge.denied, .badge.retired { color: var(--err); }
.stage { display: inline-block; padding: 1px 7px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #1e1e2e; white-space: nowrap; vertical-align: middle; }
.stage.early { background: #94e2d5; }
.stage.soon { background: #89b4fa; }
.stage.corner { position: absolute; top: 8px; right: 8px; font-size: 10px; }
.field[hidden] { display: none; }

/* tabs (game notices + the editor) */
ul.links { display: flex; flex-wrap: wrap; margin: 0; padding: 0; background: var(--surface); border-bottom: 1px solid var(--border); }
ul.links li { list-style: none; padding: 10px 16px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--mid); border-right: 1px solid var(--border); }
ul.links li::first-letter { text-transform: uppercase; }
ul.links li:hover { color: var(--text); background: var(--surface-3); }
ul.links li.on { color: var(--text); background: var(--accent-dim); box-shadow: inset 0 -2px 0 var(--accent); }
ul.news { margin: 0; padding: 6px 14px; list-style: none; }
ul.news li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
ul.news li:last-child { border-bottom: 0; }
ul.news code { color: var(--dim); flex: none; }
ul.plain { margin: 6px 0 0; padding-left: 20px; color: var(--mid); }

/* my games */
.mine-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mine-row:last-child { border-bottom: 0; }
.mine-text { flex: 1; min-width: 200px; }
.mine-text b { font-size: 15px; }
.note { color: var(--err); font-size: 12.5px; }

/* editor */
.ed-body { padding: 20px; }
.m-row { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.m-prev { width: 220px; height: 124px; flex: none; display: grid; place-items: center; background: #0a0a14; border: 1px solid var(--border); overflow: hidden; }
.m-prev img, .m-prev video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.m-prev.m-icon { width: 124px; }
.m-prev.m-music { height: auto; min-height: 54px; padding: 8px; }
.m-prev.m-music audio { width: 100%; }
.m-prev.m-trailer { width: 320px; height: 180px; }
.m-prev.m-trailer video { width: 100%; height: 100%; background: #000; }
.m-side { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 7px; }
.m-side .row input { flex: 1; min-width: 160px; }
.m-sec { padding: 16px 0 4px; display: flex; flex-direction: column; gap: 7px; }
.m-sub { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 8px 0 2px 14px; border-left: 2px solid var(--accent); }
.m-sub textarea { width: 100%; font-family: Consolas, monospace; font-size: 12px; }
.hint.warn-note { color: var(--warn); }
.banners-ed { display: flex; flex-direction: column; gap: 8px; }
.ban { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ban-img { height: 60px; border: 1px solid var(--border); }
.ban input { flex: 1; min-width: 200px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.rows .row input.date { width: 100px; }
.tab-name { background: var(--bg) !important; font-weight: 600; text-transform: none; letter-spacing: 0; }
.prog { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.prog-bar { flex: 1; max-width: 420px; height: 8px; background: var(--surface-3); border: 1px solid var(--border); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.prog-t { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* analytics */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { border: 1px solid var(--border); border-top: 2px solid var(--accent); background: var(--surface); padding: 12px 14px; }
.stat .n { font-size: 26px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .k { font-weight: 600; }
.stat .s { font-size: 12px; color: var(--dim); }
.chart-t { font-weight: 600; margin-bottom: 8px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 8px; background: var(--surface); border: 1px solid var(--border); }
.bar-c { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-c i { display: block; width: 100%; min-height: 2px; background: var(--accent); opacity: .75; }
.bar-c:hover i { opacity: 1; }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 4px; }

/* review */
.rev { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rev:last-child { border-bottom: 0; }
.rev-main { flex: 1; min-width: 260px; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--border); }
table.list th, table.list td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--border); }
table.list th { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--dim); background: var(--surface); border-top: 0; }
.scroll-x { overflow-x: auto; }

.soon { text-align: center; padding: 48px 20px; }
.soon img { width: 64px; }

/* modal + toasts */
.modal-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.6); padding: 20px; animation: cg-fade .15s ease-out; }
.modal { width: min(460px, 100%); margin: 0; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: cg-pop .2s cubic-bezier(.2,.8,.2,1); }
@keyframes cg-fade { from { opacity: 0; } }
@keyframes cg-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; width: 100%; max-width: 560px; }
.toast { width: 100%; padding: 10px 14px; background: var(--card); color: var(--text); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.45); font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s; }
.toast.in { opacity: 1; transform: none; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }

/* screenshots fullscreen */
.lb-back { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.85); padding: 50px 10px 12px; }
.lb-img { max-width: 94vw; max-height: 86vh; object-fit: contain; border: 1px solid var(--border); background: #0a0a14; }
.lb-bar { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.lb-count { color: var(--mid); font-size: 12px; margin-right: auto; }
.lb-nav { background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; padding: 0 6px; cursor: pointer; }
.lb-nav:hover { color: var(--accent); }

/* achievements tab */
.ach-row textarea { width: 100%; }
.ach-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--border-2); background: #0a0a14; font-size: 20px; overflow: hidden; }
.ach-ico img { width: 100%; height: 100%; object-fit: cover; }
.ach-ico.rare { border-color: var(--warn); box-shadow: 0 0 10px rgba(217, 180, 106, .5); }
.ach-id code { padding: 2px 6px; background: var(--bg); border: 1px solid var(--border); }

/* official games (owner) */
.off-list { display: flex; flex-direction: column; border: 1px solid var(--border); margin: 12px 0; }
.off-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.off-row:first-child { border-top: 0; }
.off-ico { width: 44px; height: 44px; object-fit: cover; flex: none; display: grid; place-items: center; background: #0a0a14; color: var(--dim); }
.off-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.off-banner .off-bimg { width: 96px; height: 54px; object-fit: cover; flex: none; }
.off-raw { width: 100%; font-family: Consolas, monospace; font-size: 12px; }
.off-bk { font-size: 12px; max-height: 50vh; overflow-y: auto; }

/* launcher settings (owner) */
.ls-tracks { display: flex; flex-direction: column; border: 1px solid var(--border); margin: 8px 0 10px; }
.ls-track { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.ls-track:first-child { border-top: 0; }
.ls-track .n { width: 22px; flex: none; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.ls-track .u { flex: 1; min-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px Consolas, "Cascadia Code", monospace; color: var(--mid); }
.ls-track audio { height: 32px; width: 240px; max-width: 100%; }
.ls-empty { padding: 14px; color: var(--dim); font-size: 13px; background: var(--surface); }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ls-info { border: 1px solid var(--border); border-top: 2px solid var(--accent); background: var(--surface); padding: 12px 14px; }
.ls-info .k { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.ls-info .v { font-size: 18px; font-weight: 700; margin: 2px 0; }
.ls-info .s { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }

/* switching views: the new view slides + fades in */
.cg-in { animation: cg-in .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cg-in { from { opacity: 0; transform: translateX(18px); } }
@media (prefers-reduced-motion: reduce) { .cg-in, .modal, .modal-back { animation: none; } }

@media (max-width: 700px) {
  .game-side { width: 100%; }
  .hero-title { font-size: 28px; }
  .cg-title { font-size: 28px; }
  #nav a { padding: 10px 12px; }
  .ls-track audio { width: 100%; }
}

/* drawn icons (community.js ICONS) instead of emoji / symbol characters */
.vi { display: inline-flex; width: 1.05em; height: 1.05em; vertical-align: -.17em; flex: none; }
.vi svg { width: 100%; height: 100%; display: block; }
.vi + span, span + .vi { margin-left: .4em; }
.lb-nav .vi { width: 38px; height: 38px; }

/* betas tab (betas.js) */
.beta .box-h .beta-name { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.beta .box-h .beta-meta { text-transform: none; letter-spacing: 0; font-weight: 400; }
.beta .m-sec { border-top: 1px solid var(--border); margin-top: 8px; }
.beta .m-sec:first-child { border-top: 0; margin-top: 0; }
.beta-bar { margin: 12px 0; }
.beta-code { padding: 6px 14px; background: var(--bg); border: 1px solid var(--border-2); font: 700 20px Consolas, "Cascadia Code", monospace; letter-spacing: 3px; user-select: all; }
.beta-link { font: 12.5px Consolas, "Cascadia Code", monospace; color: var(--mid); }
.beta-members { border: 1px solid var(--border); max-height: 320px; overflow-y: auto; }
.beta-member { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--border); background: var(--card); flex-wrap: wrap; }
.beta-member:first-child { border-top: 0; }
.beta-member .who { flex: 1; min-width: 120px; font-weight: 600; overflow-wrap: anywhere; }

/* keys tab (keys.js) */
.keys-bar { margin: 12px 0; }
.keys-list { border: 1px solid var(--border); }
.key-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--border); background: var(--card); flex-wrap: wrap; }
.key-row:first-child { border-top: 0; }
.key-row.revoked .key-code { text-decoration: line-through; color: var(--dim); }
.key-code { padding: 3px 9px; background: var(--bg); border: 1px solid var(--border-2); font: 700 14px Consolas, "Cascadia Code", monospace; letter-spacing: 1.5px; user-select: all; }
.key-note { min-width: 120px; overflow-wrap: anywhere; font-size: 13px; }
.key-none { padding: 10px 12px; margin: 0; }

/* notice-board posts: the collapsible editors in the notices tab + the cards on a game page */
.posts { display: flex; flex-direction: column; gap: 8px; }
.post { border: 1px solid var(--border); background: var(--card); }
.post.open { border-color: var(--border-2); }
.post-h { display: flex; align-items: center; gap: 6px; padding-right: 6px; }
.post-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: transparent; border: 0; color: var(--text); font: 600 13px/1.3 var(--font); text-align: left; cursor: pointer; }
.post-toggle:hover { background: var(--surface-3); }
.post-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-date { flex: none; color: var(--dim); font-weight: 400; font-size: 12.5px; }
.post-b { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.post-b input.date { width: 110px; }
.post-b > input { width: 100%; max-width: none; }
.post-lbl { margin-bottom: -4px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.post-pic-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.post-pic { width: 192px; height: 108px; flex: none; object-fit: cover; border: 1px solid var(--border); background: #0a0a14; display: grid; place-items: center; }
.post-pic-side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 7px; }
.post-pic-side input { width: 100%; max-width: none; }
.post-b textarea { min-height: 130px; }
.post-prev { border: 1px solid var(--border); background: var(--bg); padding: 10px 14px; }

.news-item { display: block; }
.news-rich { min-width: 0; width: 100%; }
.news-head { display: flex; gap: 12px; align-items: baseline; }
.news-head code { color: var(--dim); flex: none; }
.news-img-btn { display: block; margin: 8px 0 4px; padding: 0; border: 0; background: none; width: 100%; max-width: 520px; cursor: zoom-in; }
.news-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); background: #0a0a14; }
.news-img.none { height: 0; padding-bottom: 56.25%; }

/* rendered markdown (mdLite) */
.md { overflow-wrap: anywhere; font-size: 13.5px; color: var(--text); }
.md > :first-child { margin-top: 6px; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 6px 0; }
.md .md-h { margin: 12px 0 4px; line-height: 1.25; letter-spacing: -.1px; }
.md h3.md-h { font-size: 16px; }
.md h4.md-h { font-size: 14.5px; }
.md h5.md-h { font-size: 13.5px; color: var(--mid); }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 2px 0; }
.md code { background: var(--bg); border: 1px solid var(--border); padding: 0 4px; }
.md pre { margin: 8px 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); overflow-x: auto; }
.md pre code { background: none; border: 0; padding: 0; }
.md a { text-decoration: underline; }

/* "Velora login for your game" in the details tab */
.vl-login .row { cursor: pointer; font-weight: 600; }
.vl-detail { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 10px 0 2px 14px; border-left: 2px solid var(--accent); }
.vl-detail .field { margin-bottom: 4px; }
.scope-list { display: flex; flex-direction: column; border: 1px solid var(--border); max-width: 640px; }
.scope-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; background: var(--surface); border-top: 1px solid var(--border); cursor: pointer; flex-wrap: wrap; }
.scope-row:first-child { border-top: 0; }
.scope-row:hover { background: var(--surface-3); }
.scope-row input { margin-top: 2px; flex: none; }
.scope-t { flex: 1; min-width: 200px; }
.scope-t code { color: var(--accent); }
.scope-ask { flex: none; padding: 1px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #1e1e2e; background: var(--warn); }
@media (max-width: 700px) { .post-pic { width: 100%; height: auto; aspect-ratio: 16 / 9; } }
/* platforms (Windows / macOS logos) + the Mac build slot */
.plat-line { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.plat { display: inline-flex; align-items: center; white-space: nowrap; }
.plat .vi { width: 1em; height: 1em; }
.plat-h { display: inline-flex; align-items: center; }
.mac-slot { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
