/* mop.dungeons.ca — one stylesheet, no external assets, no inline styles
   (nginx serves this with a `default-src 'self'` CSP). */

:root {
  --bg: #0a0e0d;
  --bg-2: #0e1513;
  --panel: #111a17;
  --panel-2: #16211d;
  --line: #23332d;
  --ink: #e8f0ec;
  --ink-dim: #9db0a8;
  --jade: #4fc39b;
  --jade-dark: #2b7d63;
  --gold: #d8b56a;
  --red: #d8736b;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(79, 195, 155, .13), transparent 70%),
    radial-gradient(800px 400px at 8% 4%, rgba(216, 181, 106, .08), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: .2em; }
h3 { font-size: 1.06rem; margin-bottom: .35em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--jade); text-decoration: none; border-bottom: 1px solid rgba(79, 195, 155, .3); }
a:hover { border-bottom-color: var(--jade); }

code, pre { font-family: ui-monospace, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace; }

code {
  background: rgba(79, 195, 155, .1);
  border: 1px solid rgba(79, 195, 155, .16);
  border-radius: 5px;
  padding: .08em .38em;
  font-size: .88em;
  color: #c7ead9;
}

pre {
  background: #0a1210;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: .86rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

pre code { background: none; border: 0; padding: 0; color: #bfe6d3; font-size: 1em; }

/* ---------------------------------------------------------------- chrome -- */

.site-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.4rem 1.35rem .6rem;
}

.brand { display: flex; align-items: center; gap: .8rem; border-bottom: 0; color: inherit; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--jade-dark), #143028 70%);
  border: 1px solid rgba(79, 195, 155, .35);
  color: #d8f6e8;
  font-family: Georgia, serif;
  font-size: .95rem;
  letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: Georgia, serif; font-size: 1.06rem; font-weight: 600; }
.brand-text small { color: var(--ink-dim); font-size: .76rem; letter-spacing: .02em; }

.site-nav { display: flex; flex-wrap: wrap; gap: .35rem .2rem; align-items: center; }

.nav-link {
  color: var(--ink-dim);
  border: 0;
  padding: .42rem .78rem;
  border-radius: 8px;
  font-size: .93rem;
}
.nav-link:hover { color: var(--ink); background: rgba(79, 195, 155, .09); }
.nav-link.is-active { color: var(--ink); background: rgba(79, 195, 155, .13); }

main { max-width: 1080px; margin: 0 auto; padding: 1rem 1.35rem 4rem; }

.site-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.35rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: .82rem;
}
.site-foot p { margin-bottom: .5em; }

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

.hero { padding: 2.2rem 0 2.6rem; }
.hero-inner { max-width: 46rem; }
.hero h1 { margin-top: .7rem; }

.lede { font-size: 1.12rem; color: #cfe0d8; max-width: 42rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 2.2rem;
}

.stat {
  background: linear-gradient(180deg, rgba(22, 33, 29, .9), rgba(17, 26, 23, .9));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem .95rem;
}
.stat-value {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.15;
}
.stat-label { display: block; color: var(--ink-dim); font-size: .78rem; letter-spacing: .02em; }

/* ----------------------------------------------------------------- panel -- */

.panel {
  background: linear-gradient(180deg, rgba(19, 29, 26, .85), rgba(14, 21, 19, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.1rem);
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow);
}

.panel.narrow { max-width: 42rem; }
.panel .lead { color: #c6d8d0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.4rem 0 1.2rem; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.9rem;
  margin-bottom: 1.6rem;
}
.steps > li:last-child { margin-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .05rem;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(79, 195, 155, .4);
  background: rgba(79, 195, 155, .1);
  color: var(--jade);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .3em; }

.ports {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-dim);
}
.ports strong { color: var(--ink); font-weight: 600; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .9rem;
  margin-top: 1.2rem;
}

.card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.card p { font-size: .93rem; color: #c3d6ce; margin: 0; }
.card h3 { color: var(--gold); }

/* ----------------------------------------------------------------- rates -- */

.table-wrap { overflow-x: auto; margin-top: 1.1rem; }

table.rates { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.rates th, table.rates td {
  text-align: left;
  padding: .58rem .4rem;
  border-bottom: 1px solid rgba(35, 51, 45, .8);
}
table.rates th {
  color: var(--ink-dim);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
table.rates td { color: #d3e4dc; }
table.rates .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--jade); white-space: nowrap; }
table.rates tbody tr:last-child td { border-bottom: 0; }

.rules { margin: 1rem 0 0; padding-left: 1.15rem; color: #cadbd3; }
.rules li { margin-bottom: .5rem; }

/* ----------------------------------------------------------------- pills -- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .03em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.pill-up { color: #86e7bb; background: rgba(79, 195, 155, .12); border-color: rgba(79, 195, 155, .35); }
.pill-up .dot { box-shadow: 0 0 0 3px rgba(79, 195, 155, .18); }
.pill-down { color: #f0a09a; background: rgba(216, 115, 107, .12); border-color: rgba(216, 115, 107, .35); }
.pill-idle { color: var(--ink-dim); background: rgba(157, 176, 168, .08); border-color: rgba(157, 176, 168, .2); }
.pill.tiny { font-size: .7rem; padding: .15rem .5rem; }

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

.btn {
  display: inline-block;
  padding: .68rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(79, 195, 155, .5);
  background: linear-gradient(180deg, #4fc39b, #2f8f70);
  color: #06251b;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: rgba(79, 195, 155, .5); color: var(--jade); background: rgba(79, 195, 155, .07); }
.btn-block { display: block; width: 100%; margin-top: 1.1rem; }
.btn-small { padding: .42rem .9rem; font-size: .86rem; }

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

.auth { margin-top: 1.4rem; }

label {
  display: block;
  margin: 1rem 0 .35rem;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0a1210;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
input:focus {
  outline: none;
  border-color: rgba(79, 195, 155, .65);
  box-shadow: 0 0 0 3px rgba(79, 195, 155, .13);
}

.alert {
  padding: .7rem .95rem;
  border-radius: 10px;
  font-size: .92rem;
  margin: 1.1rem 0;
  border: 1px solid transparent;
}
.alert-error { color: #f6c4bf; background: rgba(216, 115, 107, .12); border-color: rgba(216, 115, 107, .38); }
.alert-ok { color: #a8efcf; background: rgba(79, 195, 155, .12); border-color: rgba(79, 195, 155, .38); }

/* ---------------------------------------------------------------- account -- */

.account-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.account-head h1 { margin-bottom: .2em; }

.count {
  display: inline-block;
  margin-left: .4rem;
  padding: .05em .5em;
  border-radius: 999px;
  background: rgba(79, 195, 155, .14);
  border: 1px solid rgba(79, 195, 155, .3);
  color: var(--jade);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .72rem;
  vertical-align: middle;
}

.chars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}

.char {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  background: var(--panel-2);
  border-left-width: 3px;
}
.char-alliance { border-left-color: #6fa8dc; }
.char-horde { border-left-color: #cf5f5f; }
.char-neutral { border-left-color: var(--gold); }

.char-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.char-head h3 { margin: 0; font-size: 1.05rem; }
.char-level {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: .8rem;
  border: 1px solid rgba(216, 181, 106, .35);
  border-radius: 999px;
  padding: .05rem .5rem;
}
.char-sub { color: var(--ink-dim); font-size: .84rem; margin: .3rem 0 .7rem; }

.badge {
  display: inline-block;
  margin-left: .35rem;
  padding: 0 .38rem;
  border-radius: 4px;
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .07);
  color: var(--ink-dim);
}

.char-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0; }
.char-facts div { min-width: 0; }
.char-facts dt { color: var(--ink-dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.char-facts dd { margin: 0; font-size: .84rem; color: #d7e6df; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ misc -- */

.dim { color: var(--ink-dim); }
.small { font-size: .84rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 1.2rem; }
  .site-head { padding-top: 1rem; }
  .char-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-link, .char { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
