/* Basement WoW website. Same palette and type as the launcher
   (launcher-electron/src/renderer/style.css) so the two feel like one thing.
   System fonts only and no third-party assets: nothing here phones anywhere. */

:root {
  --bg: #0d0f16;
  --panel: #151926;
  --panel-2: #1b2032;
  --border: #262c40;
  --text: #dfe3ee;
  --muted: #8890a8;
  --gold: #f0c75e;
  --gold-dim: #9c7a1e;
  --blue: #4a90d9;
  --green: #4ade80;
  --red: #ef4444;
  --amber: #fbbf24;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.3px; }
h2 { font-size: 24px; color: var(--gold); }
h3 { font-size: 18px; color: var(--text); }

/* ---------------------------------------------------------------- top bar -- */

.topbar {
  background: rgba(13, 15, 22, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(240, 199, 94, 0.25)); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a.btn { color: #1a1405; padding: 8px 16px; }
.nav a.btn:hover { background: #f7d57f; }

/* ----------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 10px; border: 1px solid transparent;
  padding: 12px 22px; min-height: 46px;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, #f5d27a, #d9a93a); color: #1a1405; border-color: #b98a22; }
.btn.primary:hover { background: linear-gradient(180deg, #f9dc92, #e2b548); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.small { padding: 7px 14px; min-height: 36px; font-size: 14px; border-radius: 8px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* -------------------------------------------------------------------- hero -- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(74, 144, 217, 0.22), transparent 70%),
    radial-gradient(700px 380px at 5% 0%, rgba(240, 199, 94, 0.10), transparent 70%),
    linear-gradient(160deg, #1a2136 0%, #10131d 70%);
  border-bottom: 1px solid var(--border);
}
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; }
.hero h1 { font-size: 54px; line-height: 1.08; color: var(--gold); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); margin: 10px 0 16px; }
.hero p.lead { font-size: 19px; color: #c5cbdb; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ------------------------------------------------------------------ panels -- */

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.panel h2 { font-size: 15px; font-family: inherit; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.status-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.dot.warn { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, 0.6); }
.dot.bad { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.stat { background: var(--panel-2); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }

section.band { padding: 56px 0; }
section.band + section.band { border-top: 1px solid var(--border); }
.band > .wrap > h2 { margin-bottom: 6px; }
.band > .wrap > p.sub { color: var(--muted); margin-bottom: 26px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; border: 1px solid var(--gold-dim); color: var(--gold);
  font-family: var(--serif); font-weight: 600;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards .panel h3 { margin-bottom: 6px; color: var(--gold); }
.cards .panel p { color: #c5cbdb; font-size: 15px; }

.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.motd h3 { margin-bottom: 6px; color: var(--gold); }

/* ------------------------------------------------------------------- forms -- */

.page { flex: 1; padding: 48px 0 64px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 34px; color: var(--gold); }
.page-head p { color: var(--muted); margin-top: 4px; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.narrow { max-width: 460px; margin: 0 auto; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; font: inherit; color: var(--text);
  background: #0f1220; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; min-height: 46px;
}
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
fieldset { border: 0; margin-bottom: 8px; }
legend { font-family: var(--serif); font-size: 18px; color: var(--gold); margin-bottom: 12px; }
.divider { height: 1px; background: var(--border); margin: 8px 0 20px; }

.note { background: rgba(74, 144, 217, 0.08); border: 1px solid rgba(74, 144, 217, 0.3); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #c5cbdb; margin-bottom: 18px; }
.error-line { color: #ff8b8b; font-size: 14px; margin-bottom: 12px; }

.code-input { letter-spacing: 10px; font-size: 26px !important; text-align: center; font-variant-numeric: tabular-nums; }

ol.plain { padding-left: 20px; color: #c5cbdb; font-size: 15px; }
ol.plain li { margin-bottom: 10px; }

/* ----------------------------------------------------------------- profile -- */

.banner { display: flex; gap: 14px; align-items: flex-start; border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; border: 1px solid; }
.banner .dot { margin-top: 8px; }
.banner h3 { font-size: 20px; }
.banner p { color: #c5cbdb; font-size: 15px; margin-top: 2px; }
.banner.waiting { background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.35); }
.banner.approved { background: rgba(74, 222, 128, 0.07); border-color: rgba(74, 222, 128, 0.35); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.count { color: var(--muted); font-size: 13px; }
ul.items { list-style: none; margin-bottom: 14px; }
ul.items li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
ul.items li:last-child { border-bottom: 0; }
ul.items .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 1px 8px; }
.tag.grey { color: var(--muted); border-color: var(--border); }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.x:hover { color: #ff8b8b; background: var(--panel-2); }

.download { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.download h3 { color: var(--gold); }
.download p { color: #c5cbdb; font-size: 15px; }

/* ------------------------------------------------------------------ footer -- */

footer.site { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ------------------------------------------------------------------- admin -- */

.admin-section { margin-bottom: 36px; }
.admin-section > h2 { margin-bottom: 14px; }
.admin-section > h2 .count { font-family: "Segoe UI", system-ui, sans-serif; font-size: 15px; }
.admin-list { display: grid; gap: 14px; }
.admin-card-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.admin-card h3 { color: var(--gold); }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-top: 16px; }
.admin-cols ul.items { margin-bottom: 0; }
code.cmd { display: inline-block; margin-top: 8px; font-family: Consolas, "Courier New", monospace; font-size: 14px; background: #0f1220; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; user-select: all; }
.tag.bad { color: #ff8b8b; border-color: rgba(239, 68, 68, 0.5); }
@media (max-width: 700px) { .admin-cols { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- utilities -- */

.mt12 { margin-top: 12px; }
.mt18 { margin-top: 18px; }
.mb14 { margin-bottom: 14px; }
.mb16 { margin-bottom: 16px; }
.tight { margin: -6px 0 16px; }
.full { width: 100%; }
.linklike { font: inherit; font-size: 15px; background: none; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.linklike:hover { color: var(--text); background: var(--panel); }
.inline-form { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.inline-form .field { margin-bottom: 12px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-note { background: #2a1f05; border: 1px solid #4a3a10; color: var(--amber); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.botcheck-slot { min-height: 65px; margin-bottom: 16px; }
.soon { opacity: 0.6; }

/* ------------------------------------------------------------------ phones -- */

@media (max-width: 860px) {
  .hero .wrap, .two, .form-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .hero h1 { font-size: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps, form .row { grid-template-columns: 1fr; }
  .nav a:not(.btn) { padding: 8px; }
  .brand span { display: none; }
  .hero h1 { font-size: 34px; }
  section.band { padding: 40px 0; }
}
