:root {
  --bg: #0C0A09;
  --bg-rgb: 12, 10, 9;
  --surface: #16110E;
  --surface-2: #1D1611;
  --border: #2C221B;
  --text: #E4DAD0;
  --muted: #948277;
  --accent: #E46A24;
  --accent-hot: #F58A3E;
  --accent-soft: rgba(228, 106, 36, .12);
  --live: #5FA870;
  --bad: #D4574B;
  --warn: #C99A4B;
  --glow: rgba(228, 106, 36, .22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --shell: 1120px;
  --r: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(72% 55% at 50% 112%, rgba(228,106,36,.13), transparent 70%),
    radial-gradient(48% 42% at 96% -4%, rgba(228,106,36,.07), transparent 62%),
    radial-gradient(42% 45% at 2% 18%, rgba(178,58,11,.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(228,106,36,.06), transparent 60%),
    rgba(var(--bg-rgb), .85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228,106,36,.5) 30%, rgba(228,106,36,.5) 70%, transparent);
  pointer-events: none;
}

.masthead-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px; flex-wrap: wrap;
}

.mark {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.mark .emblem { display: inline-flex; width: 30px; height: 30px; flex: 0 0 auto; }
.mark .emblem svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(228,106,36,.35)); }
.mark .mark-text {
  font-family: var(--serif); font-size: 1.375rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.mark .spark { color: var(--accent); }

/* --- нav --- */

.nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }

.nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--r);
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.nav a.is-on { color: var(--text); }
.nav a.is-on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav a.is-staff { color: var(--warn); }
.nav a.is-staff.is-on::after { background: var(--warn); }

.nav-ico { display: inline-flex; width: 16px; height: 16px; opacity: .85; }
.nav-ico svg { width: 100%; height: 100%; }

/* --- баруун тал --- */

.user-zone { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.wallet {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none;
  font-size: .8125rem; font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, background .15s ease;
}
.wallet:hover { border-color: var(--accent); background: var(--accent-soft); }
.wallet-ico { display: inline-flex; width: 15px; height: 15px; color: var(--accent); }
.wallet-ico svg { width: 100%; height: 100%; }

.who { display: inline-flex; align-items: center; gap: 8px; }
.avatar {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent-soft);
  border: 1px solid var(--border); color: var(--accent);
  font-family: var(--serif); font-size: .875rem; font-weight: 700;
}
.who-name {
  font-size: .8125rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text); white-space: nowrap;
}

.icon-btn {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid transparent; border-radius: var(--r);
  background: none; color: var(--muted); cursor: pointer; padding: 0;
  transition: color .15s ease, border-color .15s ease;
}
.icon-btn:hover { color: var(--bad); border-color: var(--border); }
.icon-btn svg { width: 16px; height: 16px; }

.ghost-link {
  font-size: .8125rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 6px 4px;
}
.ghost-link:hover { color: var(--text); }

.inline { display: inline; margin: 0; }

@media (max-width: 720px) {
  .masthead-inner { gap: 12px; padding-block: 10px; }
  .nav { order: 3; width: 100%; gap: 2px; }
  .nav a { padding: 7px 9px; font-size: .75rem; }
  .who-name { display: none; }
}

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

.hero {
  position: relative; overflow: hidden;
  background: var(--bg); isolation: isolate;
}

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('/assets/hero.jpg') center 72% / cover no-repeat;
  opacity: .9;
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(var(--bg-rgb), .72) 0%,
      rgba(var(--bg-rgb), .30) 34%,
      rgba(var(--bg-rgb), .42) 62%,
      rgba(var(--bg-rgb), .88) 88%,
      rgba(var(--bg-rgb), 1) 100%),
    radial-gradient(75% 100% at 50% 116%, var(--glow), transparent 66%);
}

#embers {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 2;
}

.hero-inner {
  position: relative; z-index: 3;
  padding-block: clamp(48px, 8vw, 88px);
  display: grid; justify-items: center; text-align: center; gap: 20px;
}

.wordmark {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 8.5vw, 5.25rem); line-height: .95;
  letter-spacing: .06em; text-transform: uppercase; text-wrap: balance;
}
.wordmark .spark { color: var(--accent); }

.tagline {
  margin: 0; max-width: 52ch; font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted); text-wrap: balance;
}

/* countdown */

.countdown { display: grid; justify-items: center; gap: 16px; margin-top: 18px; width: 100%; }

.countdown-label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent);
}

.clock {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%; max-width: 760px;
}

/* хайрцаггүй — том тоо, доор нь жижиг гарчиг, хооронд нь нимгэн зураас */
.unit {
  position: relative;
  display: grid; gap: 6px; justify-items: center;
  padding: 4px 6px;
  border: 0; background: none;
}

.unit b {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 700; line-height: 1;
  letter-spacing: .02em;
  color: var(--text);
  text-shadow:
    0 0 26px rgba(228, 106, 36, .38),
    0 2px 14px rgba(0, 0, 0, .6);
}

.unit span {
  font-size: .625rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
}

.launch-date {
  font-family: var(--mono); font-size: .8125rem; color: var(--muted);
  font-variant-numeric: tabular-nums; margin: 0; letter-spacing: .06em;
}

/* realmlist bar */

.realmbar {
  display: flex; align-items: stretch; border: 1px solid var(--border);
  border-radius: var(--r); background: rgba(var(--bg-rgb), .7);
  overflow: hidden; max-width: 100%;
}
.realmbar .label {
  display: flex; align-items: center; padding: 11px 14px; font-size: .6875rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-right: 1px solid var(--border);
  background: var(--surface-2); white-space: nowrap;
}
.realmbar code {
  display: flex; align-items: center; padding: 11px 16px;
  font-family: var(--mono); font-size: .9375rem; overflow-x: auto; white-space: nowrap;
}
.copy-btn {
  border: 0; border-left: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font: inherit; font-size: .6875rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 11px 16px;
  cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.copy-btn:hover { background: var(--accent-soft); color: var(--accent); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

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

.btn {
  display: inline-block; padding: 11px 24px; border-radius: var(--r);
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer;
  font-family: inherit; background: var(--accent); color: #FFF6EF;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-hot); border-color: var(--accent-hot); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 6px 14px; font-size: .6875rem; }

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

.page { padding-block: 52px; display: grid; gap: 44px; }

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px; align-items: start; padding-block: 52px;
}
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.stream { display: grid; gap: 44px; min-width: 0; }
.rail { display: grid; gap: 22px; min-width: 0; }

h1 { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.15; }
h2 { margin: 0; font-family: var(--serif); font-size: 1.375rem; font-weight: 700; }
h3 { margin: 0; font-family: var(--serif); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }

.lede { margin: 8px 0 0; color: var(--muted); max-width: 64ch; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 10px; margin-bottom: 22px; border-bottom: 1px solid var(--border);
}

/* ---------- news ---------- */

.entries { display: grid; gap: 28px; }
.entry { display: grid; gap: 8px; }
.entry-meta {
  display: flex; align-items: center; gap: 10px; font-size: .6875rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.entry-meta .tag { color: var(--accent); }
.entry-meta .dot { color: var(--border); }
.entry p { margin: 0; color: var(--muted); max-width: 68ch; }

/* ---------- cards / tiles ---------- */

.card {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); padding: 18px 20px;
}
.card > .eyebrow { display: block; margin-bottom: 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); padding: 16px 18px; display: grid; gap: 5px;
}
.tile .k { font-size: .625rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.625rem; line-height: 1; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }

/* realm status */

.realm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.realm-name { font-family: var(--serif); font-size: 1.0625rem; font-weight: 700; letter-spacing: .04em; }
.status {
  display: inline-flex; align-items: center; gap: 7px; font-size: .75rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--live);
}
.beacon { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(95,168,112,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(95,168,112,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,168,112,0); }
}
@media (prefers-reduced-motion: reduce) { .beacon { animation: none; } }

.spec { display: grid; margin: 0; }
.spec div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.spec div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: .875rem;
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before { content: counter(step); font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.steps li > span { min-width: 0; }
.steps code { font-family: var(--mono); font-size: .8125rem; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--border); vertical-align: baseline; }
th { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
td.num, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: .6875rem;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.pill-ok   { background: rgba(95,168,112,.15); color: var(--live); }
.pill-wait { background: var(--accent-soft); color: var(--accent); }
.pill-bad  { background: rgba(212,87,75,.15); color: var(--bad); }
.pill-mute { background: var(--surface-2); color: var(--muted); }
.pill-ally  { background: rgba(0,112,221,.16);  color: #4DA3F0; }
.pill-horde { background: rgba(196,31,59,.16);  color: #E05A6E; }
.pill-open { background: var(--accent-soft); color: var(--accent); }
.pill-shut { background: var(--surface-2); color: var(--muted); }

.plus  { color: var(--live); }
.minus { color: var(--bad); }

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

form.stack { display: grid; gap: 16px; max-width: 430px; }

.field { display: grid; gap: 6px; }
.field label {
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select {
  font: inherit; font-size: .9375rem; padding: 10px 12px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field .hint, .hint { font-size: .75rem; color: var(--muted); }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select {
  font: inherit; font-size: .85rem; padding: 6px 9px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
}

/* ---------- shop ---------- */

.shop-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.balance {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(var(--bg-rgb), .8);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 9px 10px 9px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.balance .bal-coin {
  display: inline-flex; width: 20px; height: 20px; color: var(--accent);
  margin-right: -2px;
}
.balance .bal-coin svg { width: 100%; height: 100%; }
.balance .bal-num { font-size: 1.25rem; font-weight: 600; }
.balance .bal-unit { font-size: .75rem; color: var(--muted); margin-right: 4px; }

/* ангиллын chip */

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); text-decoration: none;
  font-size: .8125rem; font-weight: 500; letter-spacing: .04em;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.chip-ico { display: inline-flex; width: 17px; height: 17px; }
.chip-ico svg { width: 100%; height: 100%; }

/* шүүлтүүр */

.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { gap: 5px; min-width: 190px; }
.filters .field input, .filters .field select { padding: 8px 11px; font-size: .875rem; }

.result-line { border-bottom: 1px solid var(--border); padding-bottom: 8px; }

/* карт */

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }

.item {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  display: grid; grid-template-rows: auto 1fr auto;
  transition: border-color .15s ease, transform .15s ease;
}
.item:hover { border-color: var(--rarity, var(--accent)); transform: translateY(-2px); }

/* rarity — WoW-ийн уламжлалт өнгөний код */
.item.r-common    { --rarity: #9D9D9D; }
.item.r-uncommon  { --rarity: #1EFF00; }
.item.r-rare      { --rarity: #0070DD; }
.item.r-epic      { --rarity: #A335EE; }
.item.r-legendary { --rarity: #FF8000; }

.item-art {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(70% 90% at 50% 108%, color-mix(in srgb, var(--rarity) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.art-ico { display: block; width: 46%; max-width: 92px; color: var(--rarity); opacity: .85; }
.art-ico svg { width: 100%; height: 100%; }

.ribbon {
  position: absolute; z-index: 2; top: 10px; right: -30px;
  transform: rotate(38deg);
  background: var(--accent); color: #FFF6EF;
  font-size: .5625rem; font-weight: 700; letter-spacing: .14em;
  padding: 3px 34px; text-transform: uppercase;
}

.item-body { padding: 14px 16px 12px; display: grid; gap: 6px; align-content: start; }
.item-body .cat {
  font-size: .5625rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.item-body h3 { color: var(--rarity, var(--text)); font-size: 1rem; }
.item-body p { margin: 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }

.item-foot {
  padding: 0 16px 14px; display: grid; gap: 7px; justify-items: stretch;
}
.buy-form { display: grid; gap: 7px; margin: 0; }
.char-pick {
  font: inherit; font-size: .8125rem; padding: 7px 9px; width: 100%;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r);
}

.price-btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  padding: 9px 12px; border-radius: var(--r);
  border: 1px solid var(--accent); background: var(--accent); color: #FFF6EF;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.price-btn:hover { background: var(--accent-hot); border-color: var(--accent-hot); }

.sub-link {
  display: block; text-align: center; font-size: .6875rem;
  color: var(--muted); text-decoration: none;
}
a.sub-link:hover { color: var(--accent); }

/* ---------- flash ---------- */

.flash {
  margin-top: 18px; padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--border); border-left-width: 2px; font-size: .9rem;
}
.flash-ok    { border-left-color: var(--live);   color: var(--live); }
.flash-error { border-left-color: var(--bad);    color: var(--bad); }
.flash-info  { border-left-color: var(--accent); color: var(--text); }

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

footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 24px; }
.foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding-block: 26px; font-size: .8125rem; color: var(--muted);
}
.realmlist { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- donate: багц ---------- */

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.pack {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); padding: 22px 22px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.pack:hover { border-color: var(--accent); transform: translateY(-2px); }

.pack.is-featured {
  border-color: var(--accent);
  background:
    radial-gradient(120% 90% at 50% -20%, var(--accent-soft), transparent 62%),
    var(--surface);
}

.pack-tag {
  position: absolute; top: -1px; right: 16px;
  background: var(--accent); color: #FFF6EF;
  font-size: .5625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 0 0 var(--r) var(--r);
}

.pack-label {
  font-size: .625rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.pack-points { display: flex; align-items: baseline; gap: 7px; }
.pack-points strong { font-family: var(--mono); font-size: 2.25rem; font-weight: 600; line-height: 1; }
.pack-points span { font-size: .8125rem; color: var(--muted); }
.pack-bonus {
  align-self: start; font-size: .6875rem; font-weight: 600; letter-spacing: .04em;
  color: var(--live); background: rgba(95,168,112,.13);
  padding: 3px 9px; border-radius: 100px;
}
.pack-foot { margin-top: auto; padding-top: 6px; }

/* ---------- panel: character карт ---------- */

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

.char {
  border: 1px solid var(--border); border-left: 2px solid var(--cls, var(--border));
  border-radius: var(--r); background: var(--surface);
  padding: 15px 17px; display: grid; gap: 12px;
}

.char-top { display: flex; align-items: center; gap: 13px; }
.char-lvl {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  font-size: .9375rem; font-weight: 600; color: var(--cls, var(--text));
}
.char-name { margin: 0; font-size: 1rem; color: var(--cls, var(--text)); line-height: 1.2; }
.char-meta { font-size: .75rem; color: var(--muted); }
.char-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 11px; border-top: 1px solid var(--border);
}

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

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.tile-alert { border-color: var(--accent); }
.tile-alert .v { color: var(--accent); }
.tile .sub-link { text-align: left; margin-top: 2px; }

.muted-cell { color: var(--muted); }

tbody tr:hover { background: rgba(255,255,255,.015); }

/* ---------- donate: итгэлийн блок ---------- */

.support-card { display: grid; gap: 16px; }

.support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 22px;
}

.support-item { display: flex; align-items: flex-start; gap: 12px; }

.support-ico {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(228, 106, 36, .28);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(228,106,36,.22), transparent 70%),
    var(--surface-2);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.support-ico svg { width: 21px; height: 21px; }

.support-item:hover .support-ico {
  border-color: var(--accent);
  color: var(--accent-hot);
}
.support-grid { gap: 18px 24px; }

.support-item strong { display: block; font-size: .875rem; font-weight: 600; }
.support-item span { display: block; font-size: .75rem; color: var(--muted); line-height: 1.5; }

.support-note {
  margin: 0; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: .8125rem; color: var(--muted);
}

/* ---------- realm карт: онлайн + фракц ---------- */

.realm-card { display: grid; gap: 14px; }
.realm-card > .eyebrow { margin-bottom: 0; }
.realm-card .realm-note { margin: 0; font-size: .8125rem; }

.realm-online {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.realm-online strong { font-size: 1.5rem; font-weight: 600; line-height: 1; }

.faction { display: grid; gap: 8px; }

.faction-heads {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.fac { display: inline-flex; align-items: center; gap: 6px; }
.fac-ico { display: inline-flex; width: 15px; height: 15px; }
.fac-ico svg { width: 100%; height: 100%; }
.fac-a { color: #4DA3F0; }
.fac-h { color: #E05A6E; }

.faction-bar {
  display: flex; height: 7px; border-radius: 100px; overflow: hidden;
  background: var(--surface-2);
}
.bar-a { background: linear-gradient(90deg, #2E6FA8, #4DA3F0); }
.bar-h { background: linear-gradient(90deg, #E05A6E, #9B2233); }

.faction-nums {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: .75rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.faction-nums strong { font-size: .875rem; }

.faction-note {
  font-size: .6875rem; color: var(--muted); letter-spacing: .04em;
}

.faction-bar:has(.bar-a[style*="width: 0%"]):has(.bar-h[style*="width: 0%"]) { opacity: .35; }

/* ---------- мэдээ ---------- */

.entry-link { color: var(--text); text-decoration: none; }
.entry-link:hover { color: var(--accent); }

.read-more {
  justify-self: start;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  color: var(--accent); text-decoration: none;
}
.read-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.news-list .entry {
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.news-list .entry:last-child { border-bottom: 0; padding-bottom: 0; }

/* дэлгэрэнгүй */

.post { display: grid; gap: 14px; max-width: 74ch; }

.back-link {
  justify-self: start; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.post-title {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 2.75rem); line-height: 1.14;
  letter-spacing: -.005em; text-wrap: balance;
}

.post-lede {
  margin: 0; font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); opacity: .9;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}

.post-body { display: grid; gap: 18px; }
.post-body p {
  margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75;
}

/* бусад мэдээ */

.more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

.more-item {
  display: grid; gap: 7px; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); padding: 15px 17px;
  transition: border-color .15s ease, transform .15s ease;
}
.more-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.more-meta {
  display: flex; gap: 9px; align-items: center;
  font-size: .625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.more-meta .tag { color: var(--accent); }
.more-title {
  font-family: var(--serif); font-size: .9375rem; font-weight: 700;
  line-height: 1.35; color: var(--text);
}

/* ---------- rate жагсаалт ---------- */
.rates dd { font-size: .95rem; }
.rates .rate-hot { color: var(--accent); font-weight: 700; }
.rate-note {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: .75rem; color: var(--muted); font-family: var(--mono);
  letter-spacing: .02em;
}

/* ---------- auth (нэвтрэх / бүртгүүлэх) ---------- */
.auth-wrap {
  position: relative; min-height: calc(100vh - 62px);
  display: grid; place-items: center; padding: 40px 24px;
  overflow: hidden; isolation: isolate;
}
.auth-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('/assets/hero.jpg') center 60% / cover no-repeat;
  opacity: .55;
}
.auth-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(var(--bg-rgb), .55), rgba(var(--bg-rgb), .9) 78%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .75), rgba(var(--bg-rgb), .92));
}
.auth-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  border: 1px solid var(--border); border-radius: 6px;
  background: rgba(var(--bg-rgb), .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 34px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 {
  margin: 0 0 6px; font-family: var(--serif); font-weight: 700;
  font-size: 1.9rem;
}
.auth-head .lede { margin: 0; font-size: .9rem; }
.auth-card .stack { max-width: none; gap: 16px; }
.auth-card .field input {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .16);
}
.auth-card .field input:focus {
  background: rgba(255, 255, 255, .07);
  border-color: var(--accent);
}
.auth-card .btn { width: 100%; text-align: center; }
.auth-foot { margin: 16px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- төлбөрийн хуудас ---------- */
.pay-grid {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 18px; align-items: start;
}
@media (max-width: 720px) { .pay-grid { grid-template-columns: 1fr; } }

.pay-summary { display: grid; gap: 12px; }
.pay-points { display: flex; align-items: baseline; gap: 8px; }
.pay-points strong { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--accent); }
.pay-points span { color: var(--muted); font-size: .9rem; }
.pay-amount {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.pay-amount span { color: var(--muted); font-size: .85rem; }
.pay-amount strong { font-family: var(--mono); font-size: 1.4rem; }
.pay-pkg {
  font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

.pay-bank { display: grid; gap: 4px; }
.pay-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.pay-row:last-of-type { border-bottom: 0; }
.pay-k { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.pay-v { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pay-v code {
  font-family: var(--mono); font-size: .95rem; color: var(--text);
  letter-spacing: .02em;
}
.pay-row-key { background: var(--accent-soft); border-radius: var(--r); padding: 12px 12px; margin-top: 6px; }
.pay-row-key .pay-v code { color: var(--accent); font-weight: 700; }

.copy-mini {
  font: inherit; font-size: .65rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px; cursor: pointer;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 100px;
  transition: color .15s ease, border-color .15s ease;
}
.copy-mini:hover { color: var(--accent); border-color: var(--accent); }
.copy-mini.copied { color: var(--live); border-color: var(--live); }

.pay-warn {
  margin: 10px 0 0; padding: 12px 14px;
  background: rgba(201, 154, 75, .1); border: 1px solid rgba(201, 154, 75, .3);
  border-radius: var(--r); font-size: .82rem; color: var(--text); line-height: 1.55;
}

.pay-example { margin-top: 4px; }
.pay-example code { font-family: var(--mono); color: var(--accent); }
.pay-example-box {
  display: grid; gap: 8px; margin: 14px 0;
  padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
}
.pay-example-box > div { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; }
.pay-steps { margin-top: 8px; }

/* ---------- signin + play CTA (Whitemane маягийн) ---------- */
.signin {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); text-decoration: none; padding: 6px 4px;
  text-transform: uppercase;
  transition: color .15s ease;
}
.signin:hover { color: var(--text); }
.signin-ico { display: inline-flex; width: 15px; height: 15px; }
.signin-ico svg { width: 100%; height: 100%; }

.play-cta {
  align-self: stretch;
  display: inline-flex; align-items: center; gap: 9px;
  margin-right: -24px; padding: 0 26px;
  font-family: var(--sans); font-size: .8125rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: #1A0F07; white-space: nowrap;
  background: linear-gradient(135deg, #F9A94B 0%, var(--accent) 55%, #B23A0B 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), -8px 0 24px rgba(228,106,36,.25);
  transition: filter .15s ease;
}
.play-cta:hover { filter: brightness(1.08); }
.play-ico { display: inline-flex; width: 15px; height: 15px; }
.play-ico svg { width: 100%; height: 100%; }

@media (max-width: 720px) {
  .play-cta { margin-right: -24px; padding: 0 18px; font-size: .72rem; }
  .signin { padding: 6px 2px; }
}

/* ---------- roadmap / raid timeline ---------- */
.roadmap { padding-block: 44px; }
.roadmap-head { display: grid; justify-items: center; gap: 12px; margin-bottom: 36px; text-align: center; }
.roadmap-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: .01em;
}
.roadmap-head .rm-en { letter-spacing: .06em; }
.rm-rule {
  width: 90px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.roadmap-hint {
  margin: 30px 0 0; text-align: center; font-size: .8rem; color: var(--muted);
}

.timeline { position: relative; padding: 0 6px; }
.timeline-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative;
}
.timeline-track::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 28px; height: 2px; z-index: 0;
  background: linear-gradient(90deg,
    var(--accent) 0%, rgba(228,106,36,.45) 45%, var(--border) 100%);
}

.tl-node {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 9px; text-align: center;
  text-decoration: none; padding: 0 6px;
}
.tl-dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent);
  transition: transform .15s ease, box-shadow .2s ease;
}
.tl-ico { display: inline-flex; width: 25px; height: 25px; }
.tl-ico svg { width: 100%; height: 100%; }
.tl-node:hover .tl-dot { transform: translateY(-3px); }

.tl-name { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--text); }
.tl-meta {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.tl-sep { opacity: .5; }
.tl-date { font-family: var(--mono); font-size: .68rem; color: var(--muted); opacity: .75; }

/* төлөв бүрийн өнгө */
.st-current .tl-dot {
  border-color: #F9A94B; color: #F9A94B;
  box-shadow: 0 0 0 4px rgba(228,106,36,.14), 0 0 26px rgba(228,106,36,.5);
}
.st-current .tl-name  { color: #F9A94B; }
.st-current .tl-status { color: var(--accent); }

.st-open .tl-status { color: var(--live); }

.st-upcoming { opacity: .68; }
.st-upcoming .tl-dot {
  border-color: var(--border); color: var(--muted); background: var(--surface-2);
}
.st-upcoming .tl-name { color: var(--muted); }
.st-upcoming:hover { opacity: 1; }

@media (max-width: 560px) {
  .tl-dot { width: 46px; height: 46px; }
  .tl-ico { width: 21px; height: 21px; }
  .timeline-track::before { top: 23px; }
  .tl-name { font-size: .85rem; }
  .tl-meta { font-size: .52rem; gap: 4px; }
}

/* ---------- phase дэлгэрэнгүй хуудас ---------- */
.phase-hero {
  border: 1px solid var(--border); border-radius: var(--r);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  padding: 26px 28px; display: grid; gap: 16px;
}
.phase-badge {
  justify-self: start;
  font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 100px;
}
.phase-hero.st-upcoming .phase-badge { color: var(--muted); background: var(--surface-2); }
.phase-hero-main { display: flex; align-items: center; gap: 18px; }
.phase-emblem {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg); color: var(--accent);
}
.phase-emblem svg { width: 32px; height: 32px; }
.phase-hero-main h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.phase-hero-main .lede { margin: 4px 0 0; }
.phase-facts {
  display: flex; gap: 30px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.phase-facts .pf-k { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.phase-facts .pf-v { font-family: var(--mono); font-size: 1.05rem; color: var(--text); }

.guide { margin-top: 8px; }

.guide-steps {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 640px) { .guide-steps { grid-template-columns: 1fr; } }
.gstep {
  display: flex; gap: 15px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  padding: 20px 22px;
}
.gstep > div { min-width: 0; }
.gnum {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  color: var(--accent); border: 1px solid var(--accent); background: var(--accent-soft);
}
.gstep h3 { margin: 0 0 5px; font-size: 1rem; }
.gstep p { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.6; }

.bis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bis-card {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  padding: 20px; display: grid; gap: 9px; align-content: start;
}
.bis-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(228,106,36,.28);
  background: radial-gradient(120% 120% at 50% 0%, rgba(228,106,36,.2), transparent 70%), var(--surface-2);
  color: var(--accent);
}
.bis-ico svg { width: 21px; height: 21px; }
.bis-card h3 { margin: 0; font-size: 1rem; }
.bis-ilvl { margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 600; }
.bis-card p:last-child { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }

.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.rep-item {
  display: grid; gap: 4px;
  border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: var(--r); background: var(--surface); padding: 14px 16px;
}
.rep-item strong { font-size: .92rem; }
.rep-item span { font-size: .8rem; color: var(--muted); line-height: 1.5; }

.guide-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-top: 8px;
}
.guide-cta h3 { margin: 0; font-size: 1.15rem; }

.phase-soon { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 44px 28px; }
.phase-soon-ico {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
}
.phase-soon-ico svg { width: 34px; height: 34px; }
.phase-soon h2 { margin: 0; }
.phase-soon .lede { max-width: 52ch; }

/* timeline: launch milestone + идэвхтэй node */
.st-launch .tl-dot,
.tl-node.is-active .tl-dot {
  border-color: #F9A94B; color: #F9A94B;
  box-shadow: 0 0 0 4px rgba(228,106,36,.14), 0 0 26px rgba(228,106,36,.5);
}
.st-launch .tl-name,
.tl-node.is-active .tl-name { color: #F9A94B; }
.st-launch .tl-meta { color: var(--accent); }

/* WoW жинхэнэ profession icon (зураг) */
.art-img {
  width: 62px; height: 62px; border-radius: 8px;
  border: 2px solid rgba(228,106,36,.55);
  box-shadow: 0 0 18px rgba(228,106,36,.28), inset 0 0 0 1px rgba(0,0,0,.5);
  object-fit: cover; display: block;
}

/* Дэлгүүрийн наймаачны дэвсгэр (админаас оруулна) */
.shop-backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* зургийн дээр харанхуй давхарга тавьж, тод толбыг намдаана */
  background:
    linear-gradient(180deg, rgba(12,10,9,.80), rgba(12,10,9,.88)),
    url('/assets/shopbg.jpg') center / cover no-repeat;
  background-attachment: scroll, fixed;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 30%, #000 62%, transparent);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 30%, #000 62%, transparent);
}

/* donate: үнэ ба ханшийн мөр */
.pack-price { display: grid; gap: 2px; }
.pack-price > strong {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.15rem; color: var(--text);
}
.pack-rate { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
