/* CalcLoot stylesheet ---------------------------------------------------- */
:root {
  --bg: #0d0f14;
  --bg-2: #12151c;
  --panel: #171b24;
  --panel-2: #1e2330;
  --line: #2a3040;
  --text: #e8ebf2;
  --muted: #8f98ab;
  --accent: #f5b83d;
  --accent-2: #ffd27a;
  --up: #3ddc84;
  --down: #ff5d6c;
  --radius: 14px;
  --radius-sm: 9px;
  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 184, 61, .08), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(120, 90, 255, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
small { font-size: .8em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 20, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 1.3rem var(--font-head); color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--accent); }
.site-nav { display: flex; gap: 4px; flex: 1; overflow: hidden; }
.site-nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 600; font-size: .94rem; }
.site-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.header-search input { width: 220px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-search { display: none; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .site-nav.is-open { display: flex; }
}

/* Forms & buttons ------------------------------------------------------- */
input[type="search"], input[type="text"], input[type="email"], input[type="number"], select, textarea {
  font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; width: 100%; transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--panel-2); }
input::placeholder, textarea::placeholder { color: #69728a; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 700 .95rem var(--font-body); color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 18px; cursor: pointer; transition: transform .1s, background .15s, border-color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #3c4459; background: #252b3a; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #1a1204; border-color: transparent; }
.btn-primary:hover { background: linear-gradient(180deg, #ffe0a0, var(--accent-2)); border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-ghost { background: transparent; }

/* Hero ------------------------------------------------------------------ */
.hero { padding: 72px 0 40px; max-width: 780px; }
.eyebrow { font: 600 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.hl { background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: #b9c0cf; max-width: 68ch; }
.hero-search { display: flex; gap: 8px; margin: 28px 0 20px; max-width: 600px; }
.hero-search input { padding: 14px 18px; font-size: 1.05rem; }
.page-narrow .hero-search { margin-inline: auto; }
.stats-row { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 0; color: var(--muted); }
.stats-row b { color: var(--text); font: 700 1.2rem var(--font-mono); margin-right: 4px; }

.page-head { padding: 36px 0 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; font-size: .87rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #4a5266; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* Sections -------------------------------------------------------------- */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.more { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.notice { background: rgba(245, 184, 61, .1); border: 1px solid rgba(245, 184, 61, .35); padding: 12px 16px; border-radius: var(--radius-sm); }
.notice ul { margin: 0; padding-left: 18px; }
.notice-ok { background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .4); }
.notice-err { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .4); }

/* Game cards ------------------------------------------------------------ */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.game-grid > .filter-row { display: contents; }
.game-card {
  --accent: #f5b83d;
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--panel)) 0%, var(--panel) 55%);
  border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--shadow); text-decoration: none; }
.game-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.game-mono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #140d02; font: 700 1.5rem var(--font-head); }
.game-card-name { font: 700 1.25rem var(--font-head); }
.game-card-meta, .game-card-date { color: var(--muted); font-size: .88rem; }
.game-card-top-item { font-size: .9rem; color: #b9c0cf; }
.pill { display: inline-block; font: 700 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.pill-hot { background: rgba(255, 93, 108, .15); color: #ff8f9a; border-color: rgba(255, 93, 108, .3); }

/* Tool cards ------------------------------------------------------------ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tool-name { font: 700 1.08rem var(--font-head); }
.tool-desc { color: var(--muted); font-size: .92rem; }
.tool-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 6px; background: rgba(245, 184, 61, .14); position: relative; }
.tool-icon::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.2rem var(--font-mono); color: var(--accent); }
.tool-trade-calculator::after { content: "⇄"; }
.tool-value-list::after { content: "$"; }
.tool-tier-list::after { content: "S"; }
.tool-codes::after { content: "#"; }
.tool-damage-calculator::after { content: "⚔"; }

/* Thumbs, badges -------------------------------------------------------- */
.thumb {
  --rc: #9aa4b2; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 10px; color: var(--rc); font: 700 .85rem var(--font-head);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--rc) 35%, transparent), color-mix(in srgb, var(--rc) 10%, var(--panel-2)) 70%);
  border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb-sm { width: 36px; height: 36px; font-size: .78rem; border-radius: 8px; }
.thumb-md { width: 48px; height: 48px; }
.thumb-lg { width: 64px; height: 64px; font-size: 1.1rem; }
.thumb-xl { width: 120px; height: 120px; font-size: 2.2rem; border-radius: 20px; }
.rarity { --rc: #9aa4b2; display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); white-space: nowrap; }
.chg { font: 700 .85rem var(--font-mono); white-space: nowrap; }
.chg-up { color: var(--up); }
.chg-down { color: var(--down); }
.chg-flat { color: var(--muted); font-weight: 500; }
.demand { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.demand-0 { color: var(--muted); }
.demand-1 { color: #ff5d6c; }
.demand-2 { color: #ff9f43; }
.demand-3 { color: #f5d142; }
.demand-4 { color: #7ee07e; }
.demand-5 { color: #3ddc84; }

.item-cell { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; min-width: 0; }
.item-cell:hover { text-decoration: none; color: var(--accent-2); }
.item-cell span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.item-cell small { color: var(--muted); font-weight: 500; }

/* Tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table th { font: 600 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-2); white-space: nowrap; position: sticky; top: 0; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.data-table .num { text-align: right; }
.sortable th[data-sort] { cursor: pointer; user-select: none; }
.sortable th[data-sort]:hover { color: var(--text); }
.sortable th[aria-sort="ascending"]::after { content: " ▲"; color: var(--accent); }
.sortable th[aria-sort="descending"]::after { content: " ▼"; color: var(--accent); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.filter-bar input[type="search"] { max-width: 340px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { --rc: var(--accent); font: 700 .82rem var(--font-body); color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.is-on { color: var(--rc); border-color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); }

.rank-list { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .item-cell { flex: 1; }
.rank { font: 700 .85rem var(--font-mono); color: var(--muted); width: 20px; }

.item-results { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.item-results li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }

/* Codes ----------------------------------------------------------------- */
.code-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.code-row { display: grid; grid-template-columns: minmax(140px, auto) 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.code-row code { font-size: 1.02rem; font-weight: 700; color: var(--accent-2); background: rgba(245, 184, 61, .08); border: 1px dashed rgba(245, 184, 61, .4); padding: 6px 10px; border-radius: 8px; word-break: break-all; }
.code-row span { display: flex; flex-direction: column; }
.code-list-expired .code-row { opacity: .6; }
.code-list-expired code { color: var(--muted); text-decoration: line-through; border-color: var(--line); background: transparent; }
@media (max-width: 560px) { .code-row { grid-template-columns: 1fr auto; } .code-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* Trade calculator ------------------------------------------------------ */
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 20px; box-shadow: var(--shadow); }
.trade-sides { display: grid; grid-template-columns: 1fr 240px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .trade-sides { grid-template-columns: 1fr; } .trade-verdict { order: 3; } }
.trade-side { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.side-head h2 { font-size: 1.1rem; margin: 0; }
.side-total { font-size: 1.3rem; font-weight: 700; color: var(--accent-2); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 40px; margin-bottom: 12px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .82rem; }
.slot .thumb { width: 44px; height: 44px; }
.slot-name { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.slot-val { color: var(--muted); font: 500 .78rem var(--font-mono); }
.slot-qty { display: flex; align-items: center; gap: 4px; }
.slot-qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 700; line-height: 1; }
.slot-qty span { min-width: 22px; font: 700 .85rem var(--font-mono); }
.slot-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; }
.slot-x:hover { color: var(--down); background: rgba(255, 93, 108, .12); }
.btn-add { width: 100%; border-style: dashed; color: var(--muted); }
.btn-add:hover { color: var(--accent-2); border-color: var(--accent); }
.btn-add[disabled] { opacity: .4; cursor: not-allowed; }
.trade-verdict { text-align: center; padding: 18px 12px; align-self: center; }
.verdict { font: 700 2.2rem var(--font-head); letter-spacing: -.02em; color: var(--muted); }
.verdict.is-win { color: var(--up); }
.verdict.is-fair { color: var(--accent); }
.verdict.is-loss { color: var(--down); }
.verdict-sub { font-size: .9rem; margin-bottom: 14px; min-height: 2.8em; }
.meter { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--down), var(--accent) 50%, var(--up)); position: relative; margin: 0 8px 18px; opacity: .85; }
.meter span { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--bg); transform: translate(-50%, -50%); transition: left .25s ease; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.trade-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.picker { width: min(560px, 100% - 24px); max-height: min(80vh, 720px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.picker::backdrop { background: rgba(5, 6, 10, .7); backdrop-filter: blur(3px); }
.picker-inner { display: flex; flex-direction: column; max-height: min(80vh, 720px); padding: 16px; gap: 12px; }
.picker-head { display: flex; justify-content: space-between; align-items: center; }
.picker-head h2 { font-size: 1.15rem; margin: 0; }
.picker-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; display: grid; gap: 4px; }
.picker-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.picker-item:hover, .picker-item:focus-visible { background: var(--panel); border-color: var(--line); }
.pi-name { flex: 1; display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.pi-name small { color: var(--muted); font-weight: 500; }

/* Damage calculator ----------------------------------------------------- */
.dmg-calc { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
@media (max-width: 820px) { .dmg-calc { grid-template-columns: 1fr; } }
.dmg-inputs { display: grid; gap: 14px; align-content: start; }
.dmg-inputs label, .contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.dmg-inputs label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dmg-inputs input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.dmg-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; align-content: start; }

/* Stats ----------------------------------------------------------------- */
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.stat span, .stat dt { color: var(--muted); font: 600 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.stat b, .stat dd { margin: 0; font-size: 1.45rem; font-weight: 700; }
.stat dd small { font-size: .8rem; color: var(--muted); font-family: var(--font-body); }
.stat-hl { border-color: rgba(245, 184, 61, .45); background: linear-gradient(160deg, rgba(245, 184, 61, .12), var(--bg-2)); }
.stat-hl b, .stat-hl dd { color: var(--accent-2); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 24px 0 0; }

/* Item page ------------------------------------------------------------- */
.item-hero { display: flex; gap: 24px; align-items: center; padding: 32px 0 4px; }
.item-hero h1 { margin-bottom: .25em; }
.item-hero .lead { margin: 0; }
@media (max-width: 600px) { .item-hero { flex-direction: column; align-items: flex-start; } .thumb-xl { width: 88px; height: 88px; } }
.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font: 500 11px var(--font-mono); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(245, 184, 61, .1); }
.chart .dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.chart .dot:hover { fill: var(--accent); }
.hist-table { margin-top: 8px; }
.hist-table summary { cursor: pointer; color: var(--accent-2); font-weight: 700; margin-bottom: 10px; }
.hist-table table { max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.worth-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.worth-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.worth-eq { color: var(--muted); font-size: .9rem; }
.worth-eq b { color: var(--text); }

/* Tier list ------------------------------------------------------------- */
.tier-list { display: grid; gap: 10px; }
.tier-row { --tc: #94a3b8; display: grid; grid-template-columns: 110px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier-label { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; background: var(--tc); color: #111; text-align: center; }
.tier-label h2 { margin: 0; font-size: 2.4rem; line-height: 1; }
.tier-label small { font-weight: 700; opacity: .75; }
.tier-body { padding: 14px; }
.tier-desc { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.tier-items { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tier-items a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; color: var(--text); font-size: .8rem; font-weight: 700; line-height: 1.2; }
.tier-items a:hover { color: var(--accent-2); text-decoration: none; }
.tier-items a:hover .thumb { transform: translateY(-2px); }
.tier-items .thumb { transition: transform .15s; }
@media (max-width: 560px) { .tier-row { grid-template-columns: 64px 1fr; } .tier-label h2 { font-size: 1.7rem; } .tier-items a { width: 76px; } }

/* Prose, FAQ, how ------------------------------------------------------- */
.prose { max-width: 75ch; color: #c9cfdb; }
.prose h2 { color: var(--text); margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.page-narrow { max-width: 760px; margin-inline: auto; padding-top: 36px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 700 1.2rem var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #c9cfdb; padding-bottom: 14px; margin: 0; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-grid p { color: var(--muted); margin: 0; }
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(245, 184, 61, .14); color: var(--accent); font: 700 1rem var(--font-mono); margin-bottom: 10px; }
.big-404 { font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; margin: 0; color: var(--accent); line-height: 1; }

.contact-form { display: grid; gap: 16px; margin: 24px 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 600 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { color: #b9c0cf; }
.footer-base { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Toast ----------------------------------------------------------------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); z-index: 200; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.small-print { font-size: .85rem; margin-top: 40px; }

/* Trending & news ------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.trend-list { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.trend-row { display: grid; grid-template-columns: 28px 56px 1fr auto auto; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.trend-row:last-child { border-bottom: 0; }
.trend-icon { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--panel-2); flex: none; display: block; }
.trend-icon img { width: 100%; height: 100%; object-fit: cover; }
.trend-main { display: flex; flex-direction: column; min-width: 0; }
.trend-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-players { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.trend-players b { color: var(--accent-2); font-size: 1.05rem; }
.trend-players small { color: var(--muted); font-size: .72rem; }
.trend-links { display: flex; gap: 6px; }
@media (max-width: 640px) {
  .trend-row { grid-template-columns: 24px 48px 1fr auto; }
  .trend-icon { width: 48px; height: 48px; }
  .trend-links { grid-column: 3 / -1; }
}
.trend-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.trend-strip a { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
.trend-strip a:hover { border-color: var(--accent); text-decoration: none; }
.trend-strip a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.trend-strip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-strip small { color: var(--up); }
.game-card-live { display: inline-flex; align-items: center; gap: 6px; color: var(--up); font: 700 .85rem var(--font-mono); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.news-list { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.news-date h2 { font-size: 1rem; color: var(--muted); font-family: var(--font-mono); margin: 28px 0 10px; }
.news-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.news-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.news-item h3 a { color: var(--text); }
.news-item p { margin: 0; font-size: .92rem; }
.news-item .pill { flex: none; margin-top: 2px; }
.news-trending .pill { color: #ff8f9a; }
.news-codes .pill { color: var(--accent-2); }
.news-values .pill { color: var(--up); }
.news-game .pill { color: #a78bfa; }
.news-mini { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.news-mini li { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.news-mini li:last-child { border-bottom: 0; }
.news-mini a { color: var(--text); font-weight: 600; }
.news-mini .mono { width: 48px; flex: none; font-size: .85rem; }
