/* zerodev.games — shared styles for the landing page (/) and /shelved/ */
:root {
  --bg: #070a14; --surface: #171b2e; --border: #2c3252;
  --ink: #e8eaf6; --ink-2: #9aa3c7; --ink-3: #6b7394; --cyan: #57e6d8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--cyan); }
.stars { position: fixed; inset: 0; pointer-events: none; opacity: .5; }
.wrap { position: relative; max-width: 880px; margin: 0 auto; padding: 64px 20px 70px; }

.brand { font-size: clamp(30px, 6vw, 52px); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin: 0; }
.brand a { color: inherit; text-decoration: none; }
.brand .zero { color: var(--cyan); text-shadow: 0 0 26px rgba(87,230,216,.4); }
.brand .dot { color: var(--ink-3); }
.tag { font-size: clamp(17px, 2.6vw, 21px); color: var(--ink); margin: 14px 0 6px; font-weight: 600; }
.sub { color: var(--ink-2); max-width: 62ch; margin: 0 0 8px; }
.sub b { color: var(--ink); }

/* top bar: menu tabs on the left, external links on the right */
.nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin: 22px 0 44px; border-bottom: 1px solid var(--border); }
.menu { display: flex; gap: 4px; }
.menu a { position: relative; padding: 10px 16px 12px; font-size: 14px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--cyan); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--cyan); box-shadow: 0 0 12px rgba(87,230,216,.6); }
.menu .count { margin-left: 7px; font-size: 11px; color: var(--ink-3); font-weight: 600;
  font-variant-numeric: tabular-nums; }
.ext { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 10px; }
.ext a { font-size: 12.5px; text-decoration: none; padding: 5px 12px; color: var(--ink-3);
  border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.ext a:hover { border-color: var(--cyan); color: var(--ink); }
@media (max-width: 640px) {
  .menu { margin-left: -8px; }
  .menu a { padding: 10px 8px 12px; font-size: 12px; letter-spacing: .02em; }
  .menu a[aria-current="page"]::after { left: 6px; right: 6px; }
  .menu .count { margin-left: 5px; }
  .ext { padding-bottom: 12px; }
}

h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: var(--ink); display: block;
  transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(87,230,216,.5); }
.card img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border); background: #0f1322; }
.card .body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.meta b { color: var(--cyan); font-weight: 600; }
.meta.feedback { margin-top: 6px; gap: 8px; }
.meta.feedback .muted { color: var(--ink-3); opacity: .7; }
.empty { color: var(--ink-3); font-size: 14px; }

#prealpha, #lab, #tools { margin-top: 44px; }
#prealpha h2, #lab h2, #shelved h2 { display: flex; align-items: center; gap: 10px; }
.pre-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 2px 9px;
  border-radius: 999px; background: rgba(255,209,102,.14); color: #ffd166;
  border: 1px solid rgba(255,209,102,.45); }
.shelf-badge { background: rgba(154,163,199,.12); color: var(--ink-2); border-color: rgba(154,163,199,.4); }
.pre-sub { margin: -4px 0 14px; color: var(--ink-2); font-size: 13.5px; }
#prealpha .card, #lab .card { border-style: dashed; }
#shelved .card { border-style: dashed; opacity: .78; }
#shelved .card:hover { opacity: 1; }
#shelved .card img { filter: saturate(.6); }
footer { margin-top: 34px; color: var(--ink-3); font-size: 13px; }

/* ---------- site feedback widget ---------- */
#sf-btn {
  position: fixed; right: 14px; bottom: 14px; z-index: 1000;
  background: #6c5ce7; color: #fff; border: 0; border-radius: 999px;
  padding: 10px 16px; font: 600 14px system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
#sf-panel {
  position: fixed; right: 14px; bottom: 64px; z-index: 1001; width: min(320px, calc(100vw - 28px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; font: 14px system-ui, sans-serif; display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
#sf-panel.open { display: block; }
#sf-panel h3 { margin: 0 0 10px; font-size: 15px; }
#sf-panel .x { float: right; background: none; border: 0; color: var(--ink-2); font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1; }
#sf-panel label { font-size: 12px; color: var(--ink-2); }
#sf-panel textarea {
  width: 100%; background: #0f1322; color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px; margin: 4px 0 10px;
  font: 13px system-ui, sans-serif; resize: none; height: 44px;
}
#sf-send { width: 100%; border: 0; border-radius: 8px; padding: 9px 0; cursor: pointer;
  font: 600 13px system-ui, sans-serif; background: #6c5ce7; color: #fff; }
#sf-done { margin-top: 8px; font-size: 12px; display: none; }
