:root {
  --bg: #0e0c08;
  --bg2: #161109;
  --panel: rgba(28, 23, 14, 0.86);   /* ~14% transparent so the background shows through */
  --panel2: rgba(37, 30, 18, 0.86);
  --border: #392f1d;
  --border-lit: #4d3f24;
  --gold: #e3c06a;
  --gold-bright: #f6dd9a;
  --gold-dim: #9c8244;
  --text: #ece4d2;
  --muted: #9a917c;
  --green: #7bdc8a;
  --green-bg: #1d3322;
  --red: #e87b7b;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Language switcher (fixed top-right corner) ---------- */
#lang-switcher { position: fixed; top: 12px; right: 14px; z-index: 90; }
#lang-switcher select {
  background: rgba(28, 23, 14, .92); border: 1px solid var(--border-lit);
  color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 13px;
  font-family: inherit; cursor: pointer; box-shadow: var(--shadow); backdrop-filter: blur(4px);
}
#lang-switcher select:hover { border-color: var(--gold-dim); }

/* ---------- Invisible scrollbar (scroll still works) ---------- */
* { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(12, 10, 6, 0.52), rgba(10, 8, 5, 0.68)),
    url("/bg.jpg") center top / cover no-repeat fixed,
    linear-gradient(180deg, #17120a 0%, #0e0c08 58%, #0a0805 100%);
  background-attachment: fixed;
  color: var(--text);
  padding: 28px clamp(16px, 4vw, 56px) 60px;
  min-height: 100vh;
}

/* Albion-style overlay: faint golden "studs" texture + edge vignette. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(227, 192, 106, .04) 1px, transparent 1.5px),
    radial-gradient(ellipse at 50% 38%, transparent 52%, rgba(0, 0, 0, .55) 100%);
  background-size: 26px 26px, 100% 100%;
  background-position: 0 0, center;
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(700px 350px at 85% 0%, rgba(227, 192, 106, .07), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(122, 84, 30, .06), transparent 70%);
}
/* Faint Albion-style runic inscriptions watermarked into the background. */
.glow::before,
.glow::after {
  position: absolute;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 140px;
  letter-spacing: 26px;
  white-space: nowrap;
  color: rgba(227, 192, 106, .045);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
.glow::before, .glow::after { display: none; } /* runes off — the background image carries the theme now */

@media (max-width: 640px) {
  .glow::before, .glow::after { font-size: 76px; letter-spacing: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.crest {
  font-size: 34px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2c2210, #14100a);
  border: 1px solid var(--border-lit);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow);
}
.hero h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: .02em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.hero .src { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
.hero .src a { color: var(--gold); text-decoration: none; }
.hero .src a:hover { text-decoration: underline; }

/* ---------- Stat cards ---------- */
.stats {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow);
}
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-family: "Cinzel", serif; font-size: 26px; font-weight: 700; }
.stat-value.gold { color: var(--gold); }
.stat-value.sm { font-size: 18px; }

/* ---------- Controls ---------- */
.controls {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, var(--panel), rgba(21,17,10,0.86));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
label {
  display: flex; flex-direction: column;
  font-size: 11px; color: var(--muted);
  gap: 5px; text-transform: uppercase; letter-spacing: .05em;
}
select, input[type="number"] {
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
select:focus, input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(227, 192, 106, .12);
}

.filter-block { margin-bottom: 14px; }
.filter-title { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.filter-title .hint { text-transform: none; letter-spacing: 0; color: var(--gold-dim); font-size: 10.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .14s;
}
.chip:hover { border-color: var(--border-lit); color: var(--text); }
.chip.on {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-color: var(--gold-bright);
  color: #1a160c; font-weight: 700;
  box-shadow: 0 2px 10px rgba(227, 192, 106, .2);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }

.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
button#find {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  color: #1a150b;
  border: 1px solid var(--gold-bright);
  border-radius: 9px;
  padding: 11px 24px;
  font-size: 15px; font-weight: 700; font-family: "Cinzel", serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(227, 192, 106, .25);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
button#find:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(227, 192, 106, .35); }
button#find:active { transform: translateY(0); }
button#find:disabled { filter: grayscale(.5) brightness(.7); cursor: wait; transform: none; }
.auto { flex-direction: row; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.auto input { accent-color: var(--gold); }
.status { color: var(--muted); font-size: 13px; margin-left: auto; }

/* ---------- Results: sort bar + card grid ---------- */
.results { position: relative; z-index: 1; }
.results-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar .status-line { margin: 0; }
.sort-control { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.sort-control .mini { padding: 8px 11px; font-size: 14px; line-height: 1; }

.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.deal {
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: border-color .14s, transform .14s;
  animation: fadeIn .25s ease both;
}
.deal:hover { border-color: var(--border-lit); transform: translateY(-2px); }

.deal-head { display: flex; align-items: center; gap: 12px; }
.deal-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; background: radial-gradient(circle at 50% 35%, #2c2210, #14100a); border: 1px solid var(--border-lit); display: grid; place-items: center; overflow: hidden; }
.deal-icon img { width: 48px; height: 48px; object-fit: contain; }
.deal-id { min-width: 0; flex: 1; }
.deal-name { font-weight: 700; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-sub { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; align-items: center; gap: 6px; }

.deal-route { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.18); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.route-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.route-col.right { text-align: right; align-items: flex-end; }
.route-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.route-price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); font-size: 13px; }
.route-arrow { color: var(--gold-dim); font-size: 16px; flex-shrink: 0; }

.deal-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deal-foot .profit-pill { font-size: 14px; }
.deal-margin { color: var(--gold); font-weight: 700; font-size: 13px; }
.deal-metas { margin-left: auto; display: inline-flex; gap: 12px; }
.deal-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Top Traded + Crafting card extras */
.rank { font-family: "Cinzel", serif; color: var(--gold-dim); font-weight: 700; font-size: 13px; align-self: flex-start; min-width: 26px; }
.vol-pill { display: inline-block; background: rgba(227,192,106,.1); color: var(--gold); border: 1px solid rgba(227,192,106,.3); padding: 4px 11px; border-radius: 7px; font-weight: 700; font-variant-numeric: tabular-nums; }
.deal-profit { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.craft-mats { display: flex; flex-wrap: wrap; gap: 6px; }
.mat { background: rgba(0,0,0,.2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  position: sticky; top: 0;
  background: #1a150c;
  color: var(--gold-dim);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  text-align: left; padding: 13px 14px;
  border-bottom: 1px solid var(--border-lit);
}
/* Sortable headers */
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; transition: color .12s; }
th[data-sort]:hover { color: var(--gold); }
th.sorted { color: var(--gold); }
th[data-dir="desc"]::after { content: " ▾"; }
th[data-dir="asc"]::after { content: " ▴"; }
th[data-sort]:not(.sorted)::after { content: " ⇅"; opacity: .35; font-size: 10px; }
tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(57, 47, 29, .5); white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(227, 192, 106, .05); }
tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.item-name { font-weight: 600; color: var(--text); }
.cat { color: var(--muted); font-size: 12.5px; }

.city { display: inline-flex; align-items: center; gap: 7px; }
.city .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }

.qbadge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--panel2); border: 1px solid var(--border);
  font-size: 11px; color: var(--muted);
}

.profit-pill {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(123, 220, 138, .3);
  padding: 3px 10px; border-radius: 7px;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.margin-v { color: var(--gold); font-weight: 600; }
.age-fresh { color: var(--green); }
.age-stale { color: var(--red); }

/* ---------- Loader / empty ---------- */
.loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 50px; color: var(--muted); }
.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--border-lit);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--muted); padding: 44px; text-align: center; }
.hidden { display: none; }

tbody tr { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

footer { position: relative; z-index: 1; color: var(--muted); font-size: 12px; margin-top: 26px; text-align: center; }
footer a { color: var(--gold-dim); }
footer a:hover { color: var(--gold); }

/* ---------- Legal / privacy page ---------- */
.legal {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, var(--panel), rgba(21,17,10,0.86));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 28px clamp(20px, 4vw, 40px); box-shadow: var(--shadow);
  color: var(--text); line-height: 1.65; max-width: 860px;
}
.legal h2 { font-family: "Cinzel", serif; color: var(--gold); font-size: 18px; margin: 26px 0 8px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { color: #cfc6b2; font-size: 14px; }
.legal a { color: var(--gold); }
.legal-updated { color: var(--muted); font-size: 12px; }

/* ---------- Filter-block head + bulk (All/Clear) ---------- */
.filter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.filter-head .filter-title { margin-bottom: 0; }
.bulk { display: inline-flex; gap: 6px; }
.mini {
  background: var(--panel2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 6px; padding: 3px 10px; font-size: 11px; cursor: pointer;
  font-family: inherit; transition: all .12s;
}
.mini:hover { border-color: var(--gold-dim); color: var(--text); }

/* ---------- Actions ---------- */
.actions-note { color: var(--muted); font-size: 12.5px; }

/* ---------- Results page header actions ---------- */
.hero-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost {
  background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit; transition: all .12s;
  display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }
.server-pill {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(227, 192, 106, .08); border: 1px solid var(--gold-dim);
  color: var(--gold); font-weight: 600; font-size: 13px;
}

/* ---------- Support buttons (Donate / Watch an ad) ---------- */
.support-group { display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.support-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.btn-donate {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  color: #1a150b; border: 1px solid var(--gold-bright); border-radius: 8px;
  padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; font-family: inherit;
  box-shadow: 0 3px 12px rgba(227, 192, 106, .22);
  transition: transform .12s, box-shadow .12s;
}
.btn-donate:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(227, 192, 106, .34); }
.btn-ad { gap: 6px; }
@media (max-width: 640px) {
  .support-label { display: none; }
}

.status-line { position: relative; z-index: 1; color: var(--muted); font-size: 13px; margin: 0 0 14px; }

/* ---------- Page shell: left rail + content ---------- */
.shell {
  position: relative; z-index: 1;
  max-width: 1560px; margin: 0 auto;
  display: flex; gap: 24px; align-items: flex-start;
}
.content { flex: 1; min-width: 0; } /* min-width:0 lets the table scroll inside flex */
.rail {
  width: 200px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 28px;
}

/* ---------- AdSense slots + static banners ---------- */
.ad-slot {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; margin: 0 0 22px;
  border: 1px dashed var(--border-lit); border-radius: 12px;
  background: rgba(255,255,255,.015);
}
.ad-slot span { color: var(--gold-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.ad-slot.ad-live { border-color: transparent; background: transparent; } /* real ad rendered */

/* ---------- Auth widget (header) ---------- */
.auth-widget { display: inline-flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--border-lit); border-radius: 20px; background: var(--panel2); }
.user-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold), var(--gold-dim)); color: #1a150b; font-weight: 800; font-size: 13px; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-name .prem { color: var(--gold-bright); }
.auth-logout { padding: 7px 12px; font-size: 12px; }

/* ---------- Auth modal ---------- */
.auth-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 5, 3, .72); backdrop-filter: blur(4px); }
.auth-card { position: relative; width: 100%; max-width: 380px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--border-lit); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.auth-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.auth-close:hover { color: var(--text); }
.auth-title { font-family: "Cinzel", serif; color: var(--gold); margin: 0 0 16px; font-size: 20px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.auth-tab { flex: 1; background: none; border: none; color: var(--muted); padding: 8px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.auth-tab.on { background: var(--panel2); color: var(--gold); }
.btn-discord { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; background: #5865f2; color: #fff; border: none; border-radius: 9px; padding: 11px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .12s; }
.btn-discord:hover { filter: brightness(1.08); }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.auth-field input { background: var(--bg2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 10px 11px; font-size: 14px; font-family: inherit; }
.auth-field input:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(227,192,106,.12); }
.auth-error { color: var(--red); font-size: 13px; margin: 2px 0 0; }
.auth-submit { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 120; background: var(--panel2); border: 1px solid var(--gold-dim); color: var(--text); padding: 11px 18px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- GDPR consent banner ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(20, 16, 9, .97);
  border-top: 1px solid var(--border-lit);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
}
.consent-text { flex: 1; min-width: 240px; color: var(--text); font-size: 13px; line-height: 1.5; }
.consent-text a { color: var(--gold); }
.consent-actions { display: flex; gap: 10px; align-items: center; }
.consent-actions .mini { padding: 9px 16px; font-size: 13px; }
.ad-leaderboard { min-height: 100px; }
.ad-skyscraper { min-height: 600px; margin-bottom: 0; }
.banner {
  display: flex; align-items: center; justify-content: center;
  min-height: 250px; border: 1px dashed var(--border-lit); border-radius: 12px;
  background: rgba(255,255,255,.015); text-decoration: none;
  color: var(--gold-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  transition: border-color .12s;
}
.banner:hover { border-color: var(--gold-dim); }

/* ---------- Home page: server picker ---------- */
.hero-home { border-bottom: none; padding-bottom: 8px; }
.home-pick {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, var(--panel), rgba(21,17,10,0.86));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.pick-title { font-family: "Cinzel", serif; color: var(--gold); margin: 0 0 4px; font-size: 22px; }
.pick-note { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.server-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .14s, border-color .14s;
}
.server-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.server-emoji { font-size: 42px; line-height: 1; }
.continent { width: 58px; height: 58px; display: block; color: var(--gold); fill: currentColor; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition: color .14s; }
.server-card:hover .continent { color: var(--gold-bright); }
.tool-svg { width: 46px; height: 46px; display: block; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .14s; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.server-card:hover .tool-svg { stroke: var(--gold-bright); }
.server-name { font-family: "Cinzel", serif; font-weight: 700; font-size: 16px; text-align: center; }
.loading-dots { color: var(--muted); padding: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .rail { display: none; } /* hide side rail on tablets/phones */
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { padding: 16px 14px 48px; }
  .hero { flex-wrap: wrap; gap: 12px; }
  .crest { width: 52px; height: 52px; font-size: 28px; }
  .hero h1 { font-size: 22px; }
  .hero .src, .hero-actions { margin-left: 0; width: 100%; }
  .hero .src { text-align: left; }
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .home-pick { padding: 22px 18px; }
  table { font-size: 13px; }
  thead th, tbody td { padding: 9px 10px; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
}
