/* Bismuth web — restrained dark theme. One iridescent accent, used sparingly. */
:root {
  --bg: #0a0b0f;
  --bg-soft: #101218;
  --surface: #14161d;
  --surface-2: #181b23;
  --line: #242832;
  --line-soft: #1c1f27;
  --text: #e8e9ee;
  --muted: #8a8d99;
  --accent: #8b7bf0;
  --accent-ink: #0a0b0f;
  --irid: linear-gradient(105deg, #6ee7d6 0%, #8b7bf0 45%, #f0a5d0 100%);
  --ok: #5fd0a8;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 650; }
.muted { color: var(--muted); }
.grad {
  background: var(--irid); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 40px);
  background: rgba(10, 11, 15, 0.72); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 5px; background: var(--irid);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotate(8deg);
}
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.pill {
  font-size: 0.78rem; color: var(--muted);
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px;
}
.pill.ok { color: var(--ok); border-color: rgba(95, 208, 168, 0.35); }

main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); }

/* hero */
.hero { padding: clamp(48px, 9vw, 96px) 0 36px; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; }
.hero p { color: var(--muted); font-size: 1.08rem; margin: 18px 0 26px; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.statline { margin-top: 22px; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.statline b { color: var(--text); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.08s, background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 14px; font-size: 0.88rem; }
.btn-primary { background: var(--text); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #33384a; background: #1d212b; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-go { background: var(--irid); color: var(--accent-ink); font-weight: 700; }
.btn-go:hover { filter: brightness(1.08); }

/* cards / layout */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 0 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h2 { font-size: 1.1rem; }
.tag {
  font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
}
.tag.live { color: var(--ok); border-color: rgba(95, 208, 168, 0.35); }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
input {
  flex: 1; min-width: 130px; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; font-size: 0.95rem;
  transition: border-color 0.15s;
}
input:focus { outline: none; border-color: var(--accent); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.msg { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); min-height: 1.2em; }
.msg.err { color: #f08a8a; }
.msg.ok { color: var(--ok); }
.pfp-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pfp {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface-2);
}
.pfp-row label { cursor: pointer; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { color: var(--muted); font-size: 0.92rem; padding-left: 26px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; border: 1.5px solid var(--line);
}
.checks li.on { color: var(--text); }
.checks li.on::before { background: var(--ok); border-color: var(--ok); }

/* sections */
section { padding: 30px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 1.35rem; }

/* room grid — image-forward tiles */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.room {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); transition: border-color 0.15s, transform 0.1s;
}
.room:hover { border-color: #34394b; transform: translateY(-2px); }
.room-img { aspect-ratio: 16 / 10; background: var(--surface-2) center/cover no-repeat; position: relative; }
.room-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 11, 15, 0.85) 100%);
}
.room-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--irid); padding: 3px 8px; border-radius: 6px;
}
.room-body { padding: 13px 15px 15px; }
.room-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.room-title h3 { font-size: 1.02rem; }
.room-players { color: var(--muted); font-size: 0.8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.room-desc {
  color: var(--muted); font-size: 0.85rem; margin: 6px 0 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
}
.room .btn { width: 100%; }
.room .btn[disabled] { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* events */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.event {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.event h3 { font-size: 1rem; margin-bottom: 6px; }
.event .meta { color: var(--muted); font-size: 0.82rem; }

/* photos — community gallery (real in-game uploads) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.photo {
  margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface); transition: border-color 0.15s, transform 0.1s;
}
.photo:hover { border-color: #34394b; transform: translateY(-2px); }
.photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); }
.photo figcaption { padding: 9px 11px; font-size: 0.82rem; color: var(--muted); }

/* developer / photon */
.dev { margin: 16px 0 8px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-soft); }
.dev > summary {
  cursor: pointer; padding: 14px 18px; color: var(--muted); font-size: 0.9rem; font-weight: 600;
  list-style: none;
}
.dev > summary::-webkit-details-marker { display: none; }
.dev[open] > summary { border-bottom: 1px solid var(--line-soft); }
.dev .card { border: 0; border-radius: 0; background: transparent; }
.console {
  background: #07080c; border: 1px solid var(--line); border-radius: 9px; padding: 12px;
  font-size: 0.8rem; color: #9fd9c8; white-space: pre-wrap; overflow: auto; max-height: 240px; margin: 12px 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* footer */
.foot {
  max-width: var(--maxw); margin: 40px auto 0; padding: 26px clamp(16px, 5vw, 40px);
  border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted);
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 12px 18px; border-radius: 11px; font-size: 0.92rem; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.go { border-color: rgba(139, 123, 240, 0.5); }

@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } .nav-links a:not(:last-child) { display: none; } }
