/* =====================================================================
   Limitless WoW. Legion theme: fel green on dark, void violet, a little bronze.
   ===================================================================== */
:root {
  --bg: #0b0f0d;
  --bg-2: #0f1411;
  --panel: #131a16;
  --panel-2: #17201b;
  --panel-3: #1d2821;
  --line: #223029;
  --line-2: #2f4238;
  --edge: #223029;
  --text: #dfe8e2;
  --text-2: #b1c0b7;
  --muted: #7c8d83;
  --head: #eef6f0;
  --accent: #86e34f;
  --accent-2: #4f9e2f;
  --accent-soft: #b6f28f;
  --gold: #d6b26a;
  --gold-2: #a8843f;
  --ember: #e0622c;
  --fel: #86e34f;
  --fel-2: #5fc23a;
  --fel-3: #22501a;
  --void: #a784ff;
  --void-2: #6f4fd0;
  --danger: #ff6b5e;
  --warn: #ffb547;
  --radius: 3px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --cond: "Manrope", "Segoe UI", system-ui, sans-serif;
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #0070dd; --q4: #a335ee; --q5: #ff8000; --q6: #e6cc80; --q7: #00ccff; --q8: #00ccff;
  --c1: #c69b6d; --c2: #f48cba; --c3: #aad372; --c4: #fff468; --c5: #ffffff; --c6: #c41e3a; --c7: #0070dd; --c8: #3fc7eb; --c9: #8788ee; --c10: #00ff98; --c11: #ff7c0a; --c12: #a330c9;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 15px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* Faint faceted backdrop (low-poly). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22260%22%20height%3D%22260%22%3E%3Cpolygon%20points%3D%220%2C0%20140%2C0%2060%2C90%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.012%22/%3E%3Cpolygon%20points%3D%22140%2C0%20260%2C0%20200%2C70%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.021%22/%3E%3Cpolygon%20points%3D%2260%2C90%20140%2C0%20200%2C70%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.007%22/%3E%3Cpolygon%20points%3D%220%2C0%2060%2C90%200%2C160%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.017%22/%3E%3Cpolygon%20points%3D%2260%2C90%20200%2C70%20150%2C190%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.018%22/%3E%3Cpolygon%20points%3D%22200%2C70%20260%2C0%20260%2C150%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.009%22/%3E%3Cpolygon%20points%3D%220%2C160%2060%2C90%20150%2C190%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.011%22/%3E%3Cpolygon%20points%3D%22150%2C190%20200%2C70%20260%2C150%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.015%22/%3E%3Cpolygon%20points%3D%220%2C160%20150%2C190%2070%2C260%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.020%22/%3E%3Cpolygon%20points%3D%22150%2C190%20260%2C150%20260%2C260%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.012%22/%3E%3Cpolygon%20points%3D%2270%2C260%20150%2C190%20260%2C260%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.007%22/%3E%3Cpolygon%20points%3D%220%2C160%2070%2C260%200%2C260%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.013%22/%3E%3C/svg%3E") 0 0 / 260px 260px;
}
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; line-height: 1.08; margin: 0 0 .5em; color: var(--head); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
h4 { font-size: 1.1rem; }
em.accent, .hl { font-style: italic; color: var(--accent); }
.hl-void { font-style: italic; color: var(--void); }
.hl-fel { color: var(--fel); }
p { margin: 0 0 1em; }
code { background: var(--panel-3); padding: .1em .4em; border-radius: 3px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: var(--accent-2); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
main { flex: 1; padding-bottom: 72px; }
main:has(> .cta:last-child) { padding-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .layout-side { grid-template-columns: 1fr; } }

/* Small tracked label, e.g. "01 — What's different". */
.label { display: inline-flex; align-items: center; gap: 10px; font: 700 .7rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.label .num { color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------------------------------------------------------- header */
/* Thin utility bar: realm status on the left, account and currencies on the right. */
.util-bar { background: #080b09; border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.util-bar .container { display: flex; align-items: center; gap: 18px; height: 34px; }
.util-bar .status { display: flex; align-items: center; gap: 8px; }
.util-bar .status strong { color: var(--text-2); font-weight: 700; }
.util-bar .links { margin-left: auto; display: flex; align-items: center; }
.util-bar .links a, .util-bar .links span { white-space: nowrap; color: var(--text-2); padding: 0 12px; border-left: 1px solid var(--line-2); line-height: 1; font-weight: 600; }
.util-bar .links > :first-child { border-left: 0; }
.util-bar .links a:hover { color: #fff; }
.util-bar .links .coin { color: var(--accent); }
.util-bar .links .coin.vote { color: var(--fel); }
.util-bar .links a.strong { color: var(--accent); }

/* Main bar: wordmark on the left, nav on the right split by fine dividers. */
.site-header { position: sticky; top: 0; z-index: 50; background: #131a16; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--head); white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; }
.brand .name { display: block; font: 700 1.75rem/1 var(--display); letter-spacing: .01em; }
.brand .name span { color: var(--accent); }
.brand small { display: block; margin-top: 3px; font: 700 .6rem/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: stretch; margin-left: auto; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 18px; color: var(--text-2); white-space: nowrap; font: 700 .76rem var(--body); letter-spacing: .12em; text-transform: uppercase; position: relative; }
.nav a:hover { color: #fff; }
.nav a.active { color: var(--accent); }
.nav a.nav-play { color: var(--fel); }
.nav a.nav-play:hover { color: #fff; }
.header-search { position: relative; }
.header-search input { width: 190px; padding: 8px 12px 8px 32px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); font: inherit; font-size: .84rem; }
.header-search input:focus { outline: none; border-color: var(--accent-2); }
.header-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); }
.search-results { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: none; z-index: 60; }
.search-results.open { display: block; }
.search-results a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a.sel { background: var(--panel-3); }
.search-results .sub { color: var(--muted); font-size: .8rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius); padding: 6px 9px; cursor: pointer; margin-left: auto; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 78px; height: auto; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 6px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-search input { width: 150px; }
}
@media (max-width: 640px) {
  .util-bar .status span.extra, .util-bar .links .desk { display: none; }
  .util-bar .links > .desk + .desk + .desk + * { border-left: 0; }
  .site-header .container { height: 64px; gap: 14px; }
  .nav { top: 64px; padding: 6px 16px 16px; }
  .header-search { display: none; }
  .brand img { width: 32px; height: 32px; }
  .brand .name { font-size: 1.45rem; }
  .brand small { display: none; }
}

/* ---------------------------------------------------------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  font: 700 .84rem/1.2 var(--body); letter-spacing: .02em; transition: background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--fel-2); color: #0b1a06; }
.btn-primary:hover { background: var(--fel); color: #0b1a06; }
.btn-fel { background: var(--fel); color: #0e1a08; }
.btn-fel:hover { background: #a9ef80; color: #0e1a08; }
.btn-void { background: var(--void); color: #150c2e; }
.btn-void:hover { background: #c3adff; color: #150c2e; }
.btn-gold { background: var(--accent); color: #1d1405; }
.btn-gold:hover { background: #e8c983; color: #1d1405; }
.btn-ghost { background: transparent; color: var(--head); border-color: var(--line-2); }
.btn-ghost:hover { color: #fff; border-color: var(--text-2); background: rgba(255, 255, 255, .03); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 107, 94, .4); }
.btn-danger:hover { background: rgba(255, 107, 94, .1); color: var(--danger); }
.btn-sm { padding: 7px 13px; font-size: .78rem; }
.btn-lg { padding: 14px 26px; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
/* Text link with an arrow and an underline that slides in. */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--head); font: 700 .86rem var(--body); position: relative; padding-bottom: 3px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { color: #fff; }
.link-arrow:hover::after { transform: translateX(3px); }

label { display: block; font: 700 .7rem var(--cond); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 7px; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 13px; background: var(--bg-2); color: var(--text); font: inherit;
  border: 1px solid var(--line-2); border-radius: 8px; transition: .15s;
}
textarea { min-height: 280px; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); }
.field { margin-bottom: 16px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.field-error, .validation-summary-errors { color: var(--danger); font-size: .85rem; margin-top: 5px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font: 400 .92rem/1.5 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.inline-form { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.filters .field { margin: 0; min-width: 150px; }
.filters select { padding: 8px 10px; }

/* ---------------------------------------------------------------- panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.panel-tight { padding: 0; overflow: hidden; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h2, .panel-title h3 { margin: 0; }
.frame { position: relative; }
.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 18px; }
.alert-ok { background: rgba(143, 227, 94, .06); border-color: rgba(143, 227, 94, .35); color: #cdf5b3; }
.alert-err { background: rgba(255, 107, 94, .06); border-color: rgba(255, 107, 94, .35); color: #ffc0b8; }
.alert-info { background: rgba(134, 227, 79, .06); border-color: rgba(134, 227, 79, .35); color: #f6dcaa; }
.alert-warn { background: rgba(255, 181, 71, .06); border-color: rgba(255, 181, 71, .35); color: #ffd9a0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 2px; font: 700 .66rem var(--body); letter-spacing: .12em; text-transform: uppercase; background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line-2); }
.badge-fel { color: var(--fel); border-color: rgba(143, 227, 94, .35); background: rgba(143, 227, 94, .07); }
.badge-gold { color: var(--accent); border-color: rgba(134, 227, 79, .4); background: rgba(134, 227, 79, .07); }
.badge-void { color: var(--void); border-color: rgba(173, 145, 255, .4); background: rgba(173, 145, 255, .07); }
.badge-red { color: var(--danger); border-color: rgba(255, 107, 94, .4); background: rgba(255, 107, 94, .07); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.on { background: var(--fel); }
.dot.off { background: var(--danger); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 700 .8rem var(--cond); letter-spacing: .08em; text-transform: var(--label-case, uppercase); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: rgba(124, 255, 79, .03); }
.table .rank { width: 48px; color: var(--muted); font-weight: 700; }
.table tr.top1 .rank { color: #ffd76a; } .table tr.top2 .rank { color: #d8e1ea; } .table tr.top3 .rank { color: #d99962; }
.table th { font-size: .66rem; letter-spacing: .14em; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-2); }
.pager span.current { background: var(--fel-3); color: #fff; border-color: var(--fel-2); }

/* ---------------------------------------------------------------- page headers */
.page-hero { position: relative; padding: 64px 0 40px; overflow: hidden; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: .55; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 15, 13, .78);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--text-2); max-width: 680px; margin: 0; }
.embers { display: none; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile .k { font: 700 .66rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tile .v { font: 800 1.55rem var(--body); color: var(--head); margin-top: 4px; display: flex; align-items: center; gap: 10px; }
.faction-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 10px; background: var(--panel-3); }
.faction-bar .a { background: #2f6bdb; } .faction-bar .h { background: #c7302b; }

/* ---------------------------------------------------------------- news */
.news-card { display: grid; grid-template-columns: 220px 1fr; gap: 0; overflow: hidden; padding: 0; }
.news-card .thumb { background-size: cover; background-position: center; min-height: 150px; }
.news-card .body { padding: 20px 22px; }
.news-card h3 { font-size: 1.25rem; margin-bottom: .3em; }
.news-card h3 a { color: #fff; }
.news-card h3 a:hover { color: var(--fel); }
@media (max-width: 640px) { .news-card { grid-template-columns: 1fr; } }
.article { max-width: 820px; }
.article .cover { border-radius: var(--radius); aspect-ratio: 21/9; background-size: cover; background-position: center; margin-bottom: 26px; border: 1px solid var(--line); }
.prose { color: var(--text-2); font-size: 1.02rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: 8px; }
.prose blockquote { border: 1px solid var(--line); margin: 1em 0; padding: .2em 1em; color: var(--text); background: var(--panel); border-radius: 0 8px 8px 0; }

/* ---------------------------------------------------------------- identity bits */
.cls { font-weight: 700; }
.c1 { color: var(--c1); } .c2 { color: var(--c2); } .c3 { color: var(--c3); } .c4 { color: var(--c4); } .c5 { color: var(--c5); } .c6 { color: var(--c6); }
.c7 { color: var(--c7); } .c8 { color: var(--c8); } .c9 { color: var(--c9); } .c10 { color: var(--c10); } .c11 { color: var(--c11); } .c12 { color: var(--c12); }
.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); } .q3 { color: var(--q3); } .q4 { color: var(--q4); } .q5 { color: var(--q5); } .q6 { color: var(--q6); } .q7 { color: var(--q7); } .q8 { color: var(--q8); }
.icon { width: 36px; height: 36px; border-radius: 6px; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08); vertical-align: middle; object-fit: cover; background: #111; }
.icon-sm { width: 22px; height: 22px; border-radius: 4px; }
.icon-xs { width: 18px; height: 18px; border-radius: 3px; }
.icon-lg { width: 56px; height: 56px; border-radius: 8px; }
.icon.qb2 { border-color: var(--q2); } .icon.qb3 { border-color: var(--q3); } .icon.qb4 { border-color: var(--q4); } .icon.qb5 { border-color: var(--q5); } .icon.qb6 { border-color: var(--q6); } .icon.qb7 { border-color: var(--q7); }
.char-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.faction-icon { width: 16px; height: 16px; display: inline-block; border-radius: 50%; }
.faction-icon.f0 { background: #2f5cc4; } .faction-icon.f1 { background: #b8261e; }
.role-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 .62rem var(--body); color: #000; }
.role-icon.r0 { background: #6fa8ff; } .role-icon.r1 { background: #7cff4f; } .role-icon.r2 { background: #ff7a6a; }
.score { font: 700 1.15rem var(--cond); letter-spacing: .02em; }

/* ---------------------------------------------------------------- mythic+ */
.dungeon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dungeon-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; background: var(--panel); color: var(--text); }
.dungeon-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; transition: .3s; }
.dungeon-card:hover .bg { opacity: .75; transform: scale(1.03); }
.dungeon-card::after { content: ""; position: absolute; inset: 0; background: rgba(5,7,6,.6); }
.dungeon-card > * { position: relative; z-index: 1; }
.dungeon-card .name { font: 700 1.05rem var(--display); color: #fff; }
.keylevel { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 7px; border-radius: 6px; font: 700 1rem var(--cond); background: var(--panel-3); border: 1px solid var(--line-2); color: #fff; }
.keylevel.timed { border-color: rgba(124, 255, 79, .5); color: var(--fel); }
.keylevel.depleted { color: var(--muted); }
.chests { color: var(--gold); letter-spacing: -2px; font-size: .8rem; }
.affixes { display: flex; gap: 6px; flex-wrap: wrap; }
.affix { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; }
.affix img { width: 26px; height: 26px; border-radius: 50%; }
.party { display: flex; gap: 3px; flex-wrap: wrap; }
.party a { display: inline-flex; }
.party img { width: 26px; height: 26px; border-radius: 5px; border: 1px solid #000; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--text-2); font: 700 1.05rem var(--cond); letter-spacing: .06em; text-transform: var(--label-case, uppercase); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: #fff; border-color: var(--fel); }
.run-hero { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); padding: 36px 28px; margin-bottom: 24px; }
.run-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.run-hero::after { content: ""; position: absolute; inset: 0; background: rgba(5,7,6,.78); }
.run-hero > * { position: relative; z-index: 1; }
.timer-bar { height: 10px; background: var(--panel-3); border-radius: 5px; position: relative; overflow: visible; margin: 18px 0 8px; }
.timer-bar .fill { height: 100%; border-radius: 5px; background: var(--fel-2); }
.timer-bar .fill.over { background: var(--danger); }
.timer-bar .mark { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--gold); }

/* ---------------------------------------------------------------- armory */
.char-header { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); padding: 30px 28px; margin: 28px 0 22px; }
.char-header .bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: .35; }
.char-header::after { content: ""; position: absolute; inset: 0; background: rgba(5,7,6,.82); }
.char-header > * { position: relative; z-index: 1; }
.char-header .name { font: 900 clamp(2rem, 5vw, 3rem) var(--display); line-height: 1; margin: 0; }
.char-header .meta { color: var(--text-2); margin-top: 8px; font-size: 1.02rem; }
.char-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.kpi { background: rgba(10, 14, 12, .82); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 16px; min-width: 130px; }
.kpi .k { font: 700 .76rem var(--cond); letter-spacing: .12em; text-transform: var(--label-case, uppercase); color: var(--muted); }
.kpi .v { font: 700 1.6rem var(--cond); color: #fff; }
.gear { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
@media (max-width: 760px) { .gear { grid-template-columns: 1fr; } }
.gear-slot { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; min-height: 60px; }
.gear-slot:hover { background: var(--panel-2); border-color: var(--line); }
.gear-slot .icon { width: 44px; height: 44px; flex: none; border-width: 2px; }
.gear-slot .info { min-width: 0; }
.gear-slot .iname { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.gear-slot .sub { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.gear-slot .sub .ench { color: var(--q2); }
.gear-slot .ilvl { font-weight: 800; color: var(--gold); }
.gear-slot.empty .icon { opacity: .2; }
.gear-slot .gems { display: inline-flex; gap: 2px; }
.gear-slot .gems img { width: 15px; height: 15px; border-radius: 3px; }
.talent-grid { display: grid; gap: 6px; }
.talent-row { display: grid; grid-template-columns: 44px repeat(3, 1fr); gap: 6px; align-items: stretch; }
.talent-row .lvl { display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: .8rem; background: var(--panel-2); border-radius: 6px; }
.talent { display: flex; gap: 9px; align-items: center; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-2); opacity: .38; filter: grayscale(.85); font-size: .84rem; font-weight: 600; min-width: 0; }
.talent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.talent.on { opacity: 1; filter: none; border-color: rgba(217, 183, 108, .55); background: rgba(217,183,108,.08); color: #fff; }
.talent img { width: 30px; height: 30px; border-radius: 5px; flex: none; }
@media (max-width: 640px) { .talent span { display: none; } .talent { justify-content: center; } }
.traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.trait { display: flex; gap: 9px; align-items: center; padding: 6px 8px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); font-size: .84rem; }
.trait img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold-2); }
.trait .r { margin-left: auto; font-weight: 800; color: var(--gold); }
.stat-list { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: .92rem; }
.stat-list dt { color: var(--muted); }
.stat-list dd { margin: 0; font-weight: 700; text-align: right; }
.ach-list { display: grid; gap: 6px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 7px; }
.ach:hover { background: var(--panel-2); }
.ach .pts { margin-left: auto; font-weight: 800; color: var(--gold); font-size: .85rem; }
.best-runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.best-run { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.best-run .dn { font-weight: 700; font-size: .88rem; }

/* ---------------------------------------------------------------- account */
.acct-nav { display: flex; flex-direction: column; gap: 2px; }
.acct-nav a { padding: 10px 14px; border-radius: 8px; color: var(--text-2); font-weight: 600; display: flex; justify-content: space-between; }
.acct-nav a:hover, .acct-nav a.active { background: var(--panel-3); color: #fff; }
.acct-nav a.active { color: #fff; background: var(--panel-3); }
.layout-account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .layout-account { grid-template-columns: 1fr; } .acct-nav { flex-direction: row; overflow-x: auto; } .acct-nav a { white-space: nowrap; } }
.balance { display: flex; gap: 14px; flex-wrap: wrap; }
.balance .tile { flex: 1; min-width: 180px; }
.coin-vote { color: #c9d6ff; } .coin-donate { color: var(--gold); }
.auth-card { max-width: 460px; margin: 48px auto; }
.auth-card .panel { padding: 30px; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.package { position: relative; }
.package input { position: absolute; opacity: 0; }
.package label { display: block; text-align: center; padding: 16px 10px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: var(--bg-2); margin: 0; }
.package label .amt { font: 700 1.5rem var(--display); color: #fff; }
.package label .pts { color: var(--gold); font-weight: 700; font-size: .88rem; }
.package label .bonus { font-size: .72rem; color: var(--fel); }
.package input:checked + label { border-color: var(--gold); background: rgba(217,183,108,.06); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.store-item { display: flex; flex-direction: column; gap: 12px; }
.store-item .top { display: flex; gap: 12px; align-items: center; }
.store-item .prices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.vote-card { display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: auto; background: #080b09; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 44px 0 34px; }
.footer-main h3 { font-size: 1.35rem; margin-bottom: .35em; }
.footer-main p { max-width: 460px; margin: 0; }
.footer-nav { text-align: right; }
.footer-nav .label { margin-bottom: 12px; }
.footer-nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 0; }
.footer-nav nav a { padding: 0 12px; border-left: 1px solid var(--line-2); line-height: 1.1; font-weight: 600; }
.footer-nav nav a:first-child { border-left: 0; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .78rem; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; }
  .footer-nav nav { justify-content: flex-start; }
  .footer-nav nav a:first-child { padding-left: 0; }
}

/* ---------------------------------------------------------------- tooltips */
#tt-layer { position: fixed; z-index: 1000; pointer-events: none; max-width: min(380px, calc(100vw - 20px)); display: none; }
#tt-layer.show { display: block; }
.tt { display: flex; gap: 6px; align-items: flex-start; font: 13px/1.42 var(--body); }
.tt-icon { width: 52px; height: 52px; border-radius: 6px; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 6px 20px rgba(0,0,0,.6); flex: none; }
.tt-body { background: rgba(8, 11, 23, .97); border: 1px solid #6b6b6b; border-radius: 5px; padding: 8px 11px 9px; color: #fff; min-width: 240px; box-shadow: 0 0 0 1px #000, 0 10px 34px rgba(0,0,0,.7); }
.tt-name { font-size: 15px; font-weight: 700; }
.tt-ilvl { color: #ffd100; }
.tt-green { color: #1eff00; }
.tt-grey { color: #9d9d9d; }
.tt-gold { color: #ffd100; }
.tt-desc { margin-top: 4px; }
.tt-split { display: flex; justify-content: space-between; gap: 18px; }
.tt-gap { height: 7px; }
.tt-set { padding-left: 10px; }
.tt-set-on { color: #ffff98; }
.tt-socket { display: flex; gap: 6px; align-items: center; }
.tt-socket img, .tt-socket i { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.tt-socket.empty { color: #9d9d9d; }
.tt-socket.empty i { background: #333; border: 1px solid #888; border-radius: 50%; }
.tt-socket.filled { color: #fff; }
.tt-sell { margin-top: 3px; }
.tt-shield { color: #fff; font-weight: 800; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5z' fill='%23a8843f'/%3E%3C/svg%3E") center/contain no-repeat; min-width: 26px; text-align: center; font-size: 11px; padding-top: 3px; }
.tt-loading { background: rgba(8, 11, 22, .96); border: 1px solid #555; border-radius: 5px; padding: 8px 12px; color: #aaa; font: 13px var(--body); }
.coin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 2px; vertical-align: -1px; }
.coin.g { background: #d9a400; }
.coin.s { background: #b5bcc4; }
.coin.c { background: #b0602c; }
[data-tt] { cursor: pointer; }

/* ---------------------------------------------------------------- misc */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state h3 { color: var(--text); }
.kbd-copy { display: flex; gap: 8px; align-items: center; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 14px; font-family: ui-monospace, Consolas, monospace; }
.kbd-copy span { flex: 1; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--fel-3); color: #fff; font: 800 1rem var(--display); }
.demo-ribbon { background: #1d1730; border-bottom: 1px solid rgba(167,132,255,.3); color: #ddd0ff; text-align: center; font-size: .8rem; padding: 5px 16px; }
.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 42px 0 16px; }
.section-title h2 { margin: 0; }
.section-title a { font: 700 .7rem var(--cond); letter-spacing: .14em; text-transform: uppercase; }

/* Encounter Journal backgrounds use only the top-left ~62% x 72% of their 512px texture. */
.bg.ej { background-size: 162% auto !important; background-position: 0 12% !important; background-repeat: no-repeat; }

/* ---------------------------------------------------------------- donate */
.donate-hero { padding-bottom: 28px; }
.donate-hero .embers { z-index: 0; }
.donate-balance { margin-top: 18px; }
.donate-balance .tile { min-width: 190px; }
.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .donate-layout { grid-template-columns: 1fr; } }
.step-head { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.step-head h2 { margin: 0; font-size: 1.35rem; }
.step-no { font: 600 1.35rem var(--display); color: var(--muted); }
.step-no::after { content: "."; }

/* Packages read like a vendor window: item icon, price, what you get. */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 8px; }
.pkg { position: relative; display: block; margin: 0; cursor: pointer; }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-inner { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .12s, background .12s; }
.pkg-icon { grid-row: 1 / 3; width: 52px; height: 52px; border: 1px solid #000; border-radius: 4px; outline: 1px solid rgba(255,255,255,.12); }
.pkg:hover .pkg-inner { border-color: var(--muted); background: var(--panel-2); }
.pkg:has(input:checked) .pkg-inner { border-color: var(--gold); background: #1f241a; }
.pkg:has(input:checked) .pkg-icon { outline-color: var(--gold); }
.pkg:has(input:focus-visible) .pkg-inner { outline: 2px solid var(--fel); outline-offset: 2px; }
.pkg-amount { font: 700 1.5rem/1.1 var(--cond); color: #fff; }
.pkg-amount small { font-size: .95rem; margin-right: 1px; color: var(--text-2); }
.pkg-points { font: 700 .95rem var(--cond); color: var(--gold); }
.pkg-points em { font-style: normal; font-weight: 500; color: var(--text-2); }
.pkg-bonus { grid-column: 2; font: 600 .8rem var(--cond); color: var(--fel); }
.pkg-bonus s { color: var(--muted); margin-left: 4px; font-weight: 500; }
.pkg-bonus.muted { color: var(--muted); }
.pkg-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pkg-ribbon { position: absolute; z-index: 1; top: -7px; right: 10px; padding: 0 6px; background: var(--bg); font: 700 .62rem/14px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--fel); }
.pkg-ribbon.gold { color: var(--gold); }

.custom-amount { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.money-input { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 14px; flex: 1; min-width: 220px; transition: .15s; }
.money-input:focus-within { border-color: var(--fel-2); }
.money-input > span:first-child { font: 700 1.6rem var(--cond); color: var(--text-2); }
.money-input input { border: 0; background: transparent; box-shadow: none !important; font: 700 1.5rem var(--cond); padding: 8px 0; }
.money-input input.invalid { color: var(--danger); }
.tier-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tier { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 .95rem var(--cond); color: var(--muted); transition: .25s; }
.tier.on { color: #eaffd9; border-color: rgba(124,255,79,.5); background: rgba(124,255,79,.1); }

.disclaimer { border-color: rgba(217,183,108,.35); background: var(--bg-2); }
.disclaimer ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); }
.disclaimer li { margin-bottom: 8px; }
.disclaimer li::marker { color: var(--gold); }

.summary-wrap { position: sticky; top: 88px; }
.summary h3 { margin-bottom: 14px; }
.summary-lines dd { font: 700 1.1rem var(--cond); }
.summary-total { margin: 18px 0 10px; padding: 16px; border-radius: 12px; text-align: center; background: var(--bg-2); border: 1px solid rgba(217,183,108,.3); }
.summary-total span { display: block; font: 600 .85rem var(--cond); letter-spacing: .14em; text-transform: var(--label-case, uppercase); color: var(--muted); }
.summary-total strong { display: inline-block; font: 700 2.8rem/1.1 var(--cond); }
.summary-total small { display: block; color: var(--text-2); }
.bump { animation: bump .45s ease; }
.agree { display: grid; gap: 10px; margin-bottom: 16px; }
.agree .check { font: 400 .92rem var(--body); letter-spacing: 0; }
.pay-btn { position: relative; overflow: hidden; }
.pay-btn.loading { pointer-events: none; opacity: .8; }
.secure-note { display: grid; gap: 2px; text-align: center; margin-top: 12px; font-size: .82rem; color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); color: #fff; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bump { animation: none; }
}

/* ---------------------------------------------------------------- legal pages */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; } }
.legal-nav { position: sticky; top: 88px; }
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: 1.3rem; margin-top: 2em; padding-top: .8em; border-top: 1px solid var(--line); }
.legal-doc h2:first-of-type { border-top: 0; margin-top: .6em; }
.legal-doc .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.legal-doc ol, .legal-doc ul { padding-left: 1.3em; }
.legal-doc li { margin-bottom: .45em; }
.legal-doc .callout { border: 1px solid rgba(217,183,108,.3); background: rgba(217,183,108,.06); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 1em 0; color: var(--text); }
.rule-list { counter-reset: rule; list-style: none; padding: 0 !important; }
.rule-list > li { counter-increment: rule; position: relative; padding: 14px 16px 14px 58px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.rule-list > li::before { content: counter(rule); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
  font: 700 1rem var(--cond); background: var(--panel-3); color: var(--fel); border: 1px solid var(--line-2); }
.rule-list strong { color: #fff; }
.site-footer .legal-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .82rem; }

/* ---------------------------------------------------------------- mobile nav helpers */
.nav-mobile-only { display: none; }
@media (max-width: 1100px) { .nav-mobile-only { display: contents; } }

/* ---------------------------------------------------------------- font preview */
.font-sample .fs-name { font: 700 1.3rem var(--fd); color: #fff; }
.fs-demo { margin-top: 14px; padding: 18px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--fb); }
.fs-eyebrow { font: 700 .9rem var(--fl); color: var(--fel); margin-bottom: 6px; }
.fs-h1 { font: 700 2.6rem/1.1 var(--fd); color: #fff; }
.fs-h2 { font: 700 1.4rem var(--fd); color: #f1f6f2; margin: 6px 0 10px; }
.fs-body { color: var(--text-2); margin: 0 0 12px; font-size: 1.05rem; }
.fs-nav { display: flex; gap: 18px; flex-wrap: wrap; font: 600 1.05rem var(--fl); color: var(--text); }

/* ---------------------------------------------------------------- shop */
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
@media (max-width: 1000px) { .shop-layout { grid-template-columns: 1fr; } }
.shop-side { position: sticky; top: 20px; }
.tabs a img { width: 20px; height: 20px; border-radius: 4px; vertical-align: -4px; margin-right: 7px; }
.shop-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.shop-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.shop-group { font: 600 .82rem var(--cond); letter-spacing: .08em; text-transform: var(--label-case, uppercase); color: var(--muted); }
.shop-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.shop-price { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 1.05rem; }
.shop-price strong { font: 700 1.35rem var(--cond); color: var(--gold); }
.shop-buy { display: flex; gap: 8px; }
.shop-buy select { padding: 7px 10px; flex: 1; min-width: 0; }
.gem-ico { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -1px; transform: rotate(45deg); border-radius: 3px;
  background: var(--gold); }
.gem-list { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.shop-layout:not(:has(> .shop-side)) { grid-template-columns: 1fr; }

/* ---------------------------------------------------------------- armory equipment scene */
.equipment-scene { position: relative; overflow: hidden; padding: 0; min-height: 720px; isolation: isolate;
  background: #0a100c; }
.scene-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .38; filter: saturate(.85); }
.scene-model { position: absolute; z-index: 1; left: 22%; right: 22%; top: 64px; bottom: 5%; display: flex; justify-content: center; pointer-events: none; }
.portrait-img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 14px 30px rgba(0,0,0,.65)); }
.portrait-img.portrait-fallback { width: 96px; height: 96px; align-self: center; border-radius: 16px; opacity: .55; object-fit: cover; }
.portrait-status { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: .8rem; color: var(--text-2);
  background: rgba(6,9,7,.85); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--fel); animation: spin 0.9s linear infinite; }
.scene-content { position: relative; z-index: 2; padding: 22px; }
.gear-armory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1.05fr) minmax(0, 1fr); gap: 10px; }
.gear-col { display: grid; gap: 8px; align-content: start; }
.gear-weapons { margin-top: 18px; }
/* Item boxes float over the scene: translucent, bordered, lightly blurred. */
.equipment-scene .gear-slot { background: rgba(8, 12, 10, .62); border: 1px solid rgba(124, 255, 79, .14); border-radius: 10px; min-height: 62px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .15s, background .15s, transform .15s; }
.equipment-scene .gear-slot:hover { background: rgba(14, 22, 17, .82); border-color: rgba(124, 255, 79, .45); transform: translateY(-1px); }
.equipment-scene .gear-slot.empty { background: rgba(8, 12, 10, .38); border-style: dashed; border-color: rgba(255,255,255,.1); }
.equipment-scene .gear-col .gear-slot .iname { max-width: 100%; }
.gear-armory .gear-col:last-child .gear-slot { flex-direction: row-reverse; text-align: right; }
.gear-armory .gear-col:last-child .gear-slot .sub { justify-content: flex-end; }
@media (max-width: 900px) {
  .equipment-scene { min-height: 0; }
  .scene-model { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 420px; margin: 0 16px; }
  .scene-content { padding-top: 0; }
  .gear-armory { grid-template-columns: 1fr 1fr; }
  .gear-spacer { display: none; }
}
@media (max-width: 560px) { .gear-armory { grid-template-columns: 1fr; } .gear-armory .gear-col:last-child .gear-slot { flex-direction: row; text-align: left; } .gear-armory .gear-col:last-child .gear-slot .sub { justify-content: flex-start; } }

/* ---------------------------------------------------------------- homepage */
/* Banner band: slideshow on the left, welcome panel on the right. */
.banner { position: relative; padding: 34px 0; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.banner .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; }

.slider { display: block; color: inherit; position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--line-2); border-right: 0; background: #050806; }
.slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.2s ease; color: inherit; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide .img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.slide.is-active .img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(5, 8, 6, .3); }
.slide .cap { position: absolute; right: 22px; bottom: 18px; z-index: 2; text-align: right; }
.slide .cap b { display: block; font: 800 1.05rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 8px #000; }
.slide .cap small { display: block; margin-top: 3px; font-size: .8rem; color: var(--accent-soft); text-shadow: 0 1px 6px #000; }
.slider .arrows { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.slider .arrows button { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(5, 8, 6, .7); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: .15s; }
.slider .arrows button:hover { border-color: var(--accent); color: var(--accent); }
.slider .arrows svg { width: 14px; height: 14px; }
.slider .dots { position: absolute; left: 22px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.slider .dots button { width: 22px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .28); cursor: pointer; }
.slider .dots button.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .slide.is-active .img { animation: none; } .slide { transition: none; } }

.welcome { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); padding: 0; }
.welcome .head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.welcome .head h2 { margin: 0; font: 800 1rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.welcome .head h2 span { color: var(--accent); }
.welcome .head small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.welcome .body { padding: 16px 22px; font-size: .9rem; color: var(--text-2); flex: 1; overflow: auto; }
.welcome .body p:last-child { margin: 0; }
.welcome .foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.welcome .foot .links { margin-left: auto; display: flex; flex-direction: column; font-size: .76rem; line-height: 1.6; text-align: right; }
.welcome .foot .links a { color: var(--muted); }
.welcome .foot .links a:hover { color: var(--accent-soft); }
@media (max-width: 900px) {
  .banner .container { grid-template-columns: 1fr; }
  .slider { min-height: 0; aspect-ratio: 2.1 / 1; border-right: 1px solid var(--line-2); border-bottom: 0; }
}

/* Row of three tiles under the announcement strip. */
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tile3 { position: relative; min-height: 118px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: center; color: inherit; }
.tile3 .k { font: 800 .7rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tile3 .k span { color: var(--accent); }
.tile3 .big { font: 800 1.3rem/1.25 var(--body); color: var(--head); }
.tile3 .sub { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.tile3.status .rows { display: flex; gap: 18px; margin-top: 4px; }
.tile3.status .rows b { display: block; font: 800 1.25rem/1.2 var(--body); color: var(--head); }
.tile3.status .rows span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.tile3.news { background-size: cover; background-position: center; }
.tile3.news::before { content: ""; position: absolute; inset: 0; background: rgba(11, 15, 13, .8); }
.tile3.news > * { position: relative; }
.tile3.news:hover .big { color: #fff; }
.tile3.vote { background: #24521a; border-color: #3f8a2a; }
.tile3.vote .k { color: #c9f5ad; }
.tile3.vote .big { color: #fff; }
.tile3.vote .sub { color: #cfe8c1; }
.tile3.vote .btn { position: absolute; right: 18px; bottom: 16px; }
@media (max-width: 900px) { .tiles3 { grid-template-columns: 1fr; } }

/* Latest news and the two top-5 lists. */
.home-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; margin-top: 52px; align-items: start; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec-title h2 { margin: 0; font: 800 1rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.sec-title h2 span { color: var(--accent); }
.sec-title a { font-size: .78rem; font-weight: 700; }
.news-rows { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: grid; grid-template-columns: 180px 1fr; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.news-row .pic { display: block; background-size: cover; background-position: center; min-height: 118px; }
.news-row .body { padding: 14px 18px; }
.news-row h3 { font: 800 .95rem/1.35 var(--body); letter-spacing: .02em; margin: 0 0 4px; }
.news-row h3 a { color: var(--head); }
.news-row h3 a:hover { color: var(--accent-soft); }
.news-row .meta { font-size: .74rem; color: var(--muted); margin-bottom: 6px; }
.news-row p { font-size: .86rem; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .news-row { grid-template-columns: 1fr; } .news-row .pic { min-height: 140px; } }
.top5 + .top5 { margin-top: 30px; }
.top5 ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.top5 li { counter-increment: r; display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; }
.top5 li + li { border-top: 0; }
.top5 li::before { content: counter(r); width: 22px; height: 22px; flex: none; display: grid; place-items: center; font: 800 .74rem var(--body); color: var(--text-2); background: var(--panel-3); border-radius: 2px; }
.top5 li:nth-child(1)::before { background: var(--gold); color: #1d1405; }
.top5 li:nth-child(2)::before { background: #c9d2da; color: #1b1f23; }
.top5 li:nth-child(3)::before { background: #c98553; color: #1f1005; }
.top5 .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5 .val { font-weight: 800; color: var(--head); }
.top5 .empty { color: var(--muted); }
.top5 .empty::before { content: none; }
.top5 .affix-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.top5 .affix-line img { width: 22px; height: 22px; border-radius: 2px; }
@media (max-width: 900px) { .home-cols { grid-template-columns: 1fr; } }

/* Announcement strip. */
.announce { display: flex; align-items: center; gap: 18px; padding: 12px 18px; margin-top: 24px; background: var(--panel); border: 1px solid var(--line); color: inherit; }
.announce .tag { font: 800 .7rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.announce .title { flex: 1; min-width: 0; color: var(--head); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce .when { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.announce .more { font: 800 .74rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--head); white-space: nowrap; }
.announce:hover .more { color: var(--accent); }
@media (max-width: 640px) { .announce { flex-wrap: wrap; } .announce .title { white-space: normal; flex-basis: 100%; order: 3; } }

/* ---------------------------------------------------------------- donation bonuses */
.bonus-banners { display: grid; gap: 12px; margin-bottom: 26px; }
.bonus-banner { display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); }
.bonus-banner.event { background: var(--panel); }
.bonus-banner .pct { flex: none; min-width: 74px; text-align: center; font: 800 1.5rem/1 var(--body); color: var(--accent); }
.bonus-banner.event .pct { color: var(--void); }
.bonus-banner .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bonus-banner .text strong { color: var(--head); font-size: .98rem; }
.bonus-banner .text span { font-size: .86rem; color: var(--text-2); }
.bonus-banner .text .yours { color: var(--accent-soft); }
.bonus-banner .ends { flex: none; font-size: .8rem; color: var(--muted); text-align: right; }
.bonus-banner .ends strong { display: block; color: var(--head); font-size: .95rem; }
@media (max-width: 640px) { .bonus-banner { flex-wrap: wrap; } .bonus-banner .ends { text-align: left; } }

/* How-to-play help: collapsible troubleshooting blocks and numbered sub-steps. */
details.help { margin: 10px 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
details.help summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--text); }
details.help[open] summary { border-bottom: 1px solid var(--line-2); }
details.help > p, details.help > ol { margin: 10px 14px 12px; }
ol.guide { padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }

/* Launcher feature lists on How to play. */
.launcher-list { padding-left: 18px; display: grid; gap: 6px; margin: 0; }

/* Mythic+ key types, flags and run details */
.family-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.family-switch a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 14, 12, .65); color: var(--text-2); font: 700 .95rem var(--cond); letter-spacing: .06em; text-transform: var(--label-case, uppercase); }
.family-switch a .n { margin-left: 8px; color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.family-switch a.active, .family-switch a:hover { color: #fff; border-color: var(--fel); }
.affix .lvl { color: var(--muted); font: 700 .75rem var(--cond); margin-left: -2px; }
.affix-icon { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #000; }
.party .bot img, .party img.bot { opacity: .5; filter: grayscale(.6); }
.bot-row td { opacity: .75; }
.gear-strip { display: flex; flex-wrap: wrap; gap: 2px; }
.gear-strip img { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #000; }
.best-run.empty { opacity: .45; }
.mplus-family + .mplus-family { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
