:root {
  --bg: #0e0f12;
  --panel: #15171c;
  --border: #262a32;
  --text: #e6e8ee;
  --muted: #8b90a0;
  --accent: #95d600;     /* deformed green (primary) */
  --accent-dim: #6f9f02;
  --accent-2: #9147ff;   /* brand secondary (footer) */
  --good: #aef13d;
  --warn: #ffb454;
  --wow: #f0b429;        /* WoW gold — the one tool-specific nod */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg);
}

/* ---------- global header ---------- */

.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand { display: block; line-height: 0; }
.brandLogo {
  width: min(480px, 86vw);
  height: auto;
  display: block;
}

.crumbs {
  font: 12px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}
.crumbs a,
.crumbs a:visited {
  color: var(--accent);
  text-decoration: none;
}
.crumbs a:hover { color: var(--good); }
.crumbs a .gg,
.crumbs a:hover .gg { color: inherit; }
.crumbs .sep { color: #3a4150; margin: 0 4px; }


/* ---------- layout ---------- */

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 48px;
}

.head h1 { margin: 0 0 24px; font-size: 24px; font-weight: 650; }
.head h1::before {
  content: ">";
  color: var(--accent);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  margin-right: 10px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.realmrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.realm { color: var(--wow); font-weight: 700; letter-spacing: 0.01em; }

.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--muted); font-weight: 400; }

.box {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  background: #0f1117;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.box:focus { outline: none; border-color: var(--accent-dim); }
.box.out { color: var(--good); }

.box.small { min-height: 90px; margin-top: 8px; color: var(--warn); }

.meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.warnText { color: var(--warn); font-weight: 600; }
.link {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0 2px;
  text-decoration: underline;
}

.controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

.btn {
  background: var(--accent);
  color: #10130a;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); font-weight: 600; }

.statusline { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.statusline.err { color: var(--warn); }

.progress {
  font: 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 12px;
}

.scanline { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.current {
  font: 14px/1 ui-monospace, Menlo, Consolas, monospace;
  color: var(--wow); /* WoW gold — the one tool-specific nod */
  font-weight: 600;
}

.note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }

.flagrow { margin-top: 18px; }

/* ---------- how it works ---------- */

.how h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
}
.how h2::before {
  content: ">";
  color: var(--accent);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  margin-right: 8px;
}
.how p { margin: 0; font-size: 13px; color: var(--muted); }
.how em { color: var(--text); font-style: normal; font-weight: 600; }

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

.contact {
  text-align: center;
  font-size: 13px;
  color: var(--accent-2);
  padding: 0 20px 28px;
}
.contact a { color: var(--accent-2); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .site { padding-top: 24px; }
  .wrap { padding-top: 28px; }
}
