/* DeadShot Dealer — dsd.phantrium.com main stylesheet */
:root {
  --bg: #07080d;
  --bg-2: #0d111c;
  --bg-3: #131a2c;
  --line: #1f2740;
  --line-soft: #1a2138;
  --text: #e6ecff;
  --text-soft: #a8b1cc;
  --text-mute: #6c7596;
  /* Accent (was gold) — nu rood. Variabele-namen bewust behouden zodat alle
     site-componenten cascadet zonder verdere refactor. */
  --gold: #ff3b3b;
  --gold-2: #d62828;
  --gold-soft: rgba(255, 59, 59, 0.12);
  --red: #ff3b3b;
  --green: #2ddd7a;
  --yellow: #f8c145;
  --blue: #3aa6ff;
  --purple: #9d6bff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-gold: 0 0 0 1px rgba(255, 59, 59, .35), 0 8px 24px rgba(255, 59, 59, .18);
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 59, 59, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(157, 107, 255, .07), transparent 60%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-2); }
button { font: inherit; cursor: pointer; }

/* ===== Layout ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
section.tight { padding: 32px 0; }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  section { padding: 40px 0; }
  section.tight { padding: 24px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
}
h1, h2, h3, h4 { font-family: var(--font); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 .9em; color: var(--text-soft); }
hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.lead { font-size: 1.12rem; color: var(--text-soft); }
.muted { color: var(--text-mute); }
.center { text-align: center; }
.gold { color: var(--gold); }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.col { flex: 1 1 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 8, 13, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.site-header.scrolled {
  background: rgba(7, 8, 13, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; letter-spacing: .01em;
  font-size: 1.02rem; flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1a1a; font-weight: 900;
  box-shadow: 0 2px 10px rgba(255, 59, 59, .25);
}
.brand .logo i { font-size: 15px; }
.brand-short { display: none; }

/* Primary nav (desktop) */
.nav-primary {
  display: flex; align-items: center; gap: 2px;
  margin-left: 18px; flex: 1;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  color: var(--text-soft); font-weight: 500;
  font-size: .92rem; text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.nav-link i { font-size: 14px; width: 16px; text-align: center; }
.nav-link:hover { color: var(--text); background: var(--bg-3); }
.nav-link.active {
  color: var(--gold);
  background: var(--gold-soft);
}
.nav-link.active i { color: var(--gold); }

/* Dropdown ("Meer") */
.nav-more { position: relative; }
.nav-more-btn .nav-chev { font-size: 10px; opacity: .7; transition: transform .2s; }
.nav-more.open .nav-more-btn .nav-chev { transform: rotate(180deg); }
.nav-more.open .nav-more-btn { color: var(--text); background: var(--bg-3); }
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px;
  min-width: 200px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-more.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown .nav-link { width: 100%; }

/* CTAs */
.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cta-donate i { font-size: 13px; }
.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--text-soft); text-decoration: none;
  transition: all .15s;
}
.nav-icon-btn:hover { color: var(--gold); border-color: var(--gold); }

/* Language switcher */
.lang-switcher { position: relative; display: inline-block; }
.lang-btn { gap: 4px; padding: 0 8px; width: auto; min-width: 56px; }
.lang-btn .lang-cur { font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px; max-height: 320px; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; z-index: 200;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, visibility .15s, transform .15s;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; color: var(--text-soft);
  padding: 8px 12px; border-radius: 8px; font-size: .9rem;
  cursor: pointer; transition: background .12s, color .12s;
}
.lang-item:hover { background: var(--bg-3); color: var(--text); }
.lang-item.active { background: var(--bg-3); color: var(--gold); font-weight: 600; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-chip {
  display: inline-block; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--text-soft); padding: 6px 10px; border-radius: 8px;
  font-size: .85rem; cursor: pointer; transition: all .12s;
}
.lang-chip:hover { color: var(--text); border-color: var(--gold); }
.lang-chip.active { background: var(--gold); color: #0a0a0f; border-color: var(--gold); font-weight: 600; }

/* Mobile toggle */
.nav-toggle {
  display: none; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--text); width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle:hover { color: var(--gold); border-color: var(--gold); }

/* ===== Mobile panel ===== */
.mobile-panel {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  z-index: 70;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease-out, visibility 0s linear .2s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html.nav-open .mobile-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .2s ease-out, visibility 0s linear 0s;
}
html.nav-open, html.nav-open body { overflow: hidden; height: 100%; }
.mobile-panel-inner {
  max-width: 540px; margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex; flex-direction: column; gap: 28px;
  min-height: calc(100vh - var(--nav-h));
}
.mobile-section-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-mute); margin-bottom: 10px; padding: 0 4px;
}
.mobile-list { display: flex; flex-direction: column; gap: 4px; }
.nav-link.nav-row {
  padding: 14px 14px; font-size: 1rem; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  gap: 14px;
}
.nav-link.nav-row i { font-size: 16px; width: 20px; }
.nav-link.nav-row:hover { background: var(--bg-3); }
.nav-link.nav-row.active {
  background: linear-gradient(90deg, var(--gold-soft), transparent);
  border-color: rgba(255, 59, 59, .35);
  color: var(--gold);
}
.mobile-cta-block {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px;
  padding-top: 12px;
}
.mobile-foot {
  text-align: center; padding-top: 4px;
}

/* ===== Responsive breakpoints ===== */
/* Tablet — hide secondary text in nav, keep primary text */
@media (max-width: 1100px) {
  .nav-primary { gap: 0; margin-left: 12px; }
  .nav-link { padding: 8px 10px; font-size: .9rem; }
}

/* Smaller tablet — collapse primary into icons */
@media (max-width: 960px) {
  .nav-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-donate span { display: none; }
  .nav-cta-donate { width: 38px; height: 38px; padding: 0; min-height: 0; border-radius: 10px; }
}

/* Phone */
@media (max-width: 560px) {
  .brand-name { display: none; }
  .brand-short { display: inline; font-size: 1.05rem; letter-spacing: .04em; }
  .brand .logo { width: 30px; height: 30px; }
  .nav { gap: 8px; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 10px;
  border: 1px solid transparent; font-weight: 600;
  text-decoration: none; transition: all .15s; cursor: pointer;
  font-size: .95rem; min-height: 42px;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #161616; border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(255, 59, 59, .18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 59, 59, .28); color: #0e0e0e; }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost {
  background: var(--bg-3); color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; min-height: 34px; font-size: .85rem; }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 30% 20%, rgba(255, 59, 59, .07), transparent 60%),
    radial-gradient(500px 280px at 80% 80%, rgba(157, 107, 255, .08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 32px; }
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold);
  font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(255, 59, 59, .25);
}
.tag i { font-size: 11px; }
.hero h1 span.acc {
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 22px;
}
.hero-stat {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.hero-stat .v { font-size: 1.45rem; font-weight: 800; color: var(--gold); display: block; }
.hero-stat .l { font-size: .78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 480px) {
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 12px 10px; }
  .hero-stat .v { font-size: 1.2rem; }
  .hero-stat .l { font-size: .68rem; letter-spacing: .04em; }
}

/* ===== Cards ===== */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line); }
.card h3 { margin-bottom: 8px; }
.card .icon {
  display: inline-flex; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold);
  border-radius: 10px; margin-bottom: 12px;
  font-size: 18px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split-7-5 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split-7-5 { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Lobby cards ===== */
.lobby-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.lobby {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.lobby:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.lobby-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.lobby-title { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lobby-title .map-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-3); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.up { background: var(--green); box-shadow: 0 0 0 4px rgba(45, 221, 122, .15); }
.dot.down { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 59, 59, .15); }
.dot.idle { background: var(--yellow); }
.lobby .ip {
  background: var(--bg); border: 1px dashed var(--line);
  padding: 10px 12px; border-radius: 10px;
  font-family: var(--font-mono); font-size: .9rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.lobby .ip code { color: var(--text); background: transparent; padding: 0; }
.lobby .meta {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-size: .82rem; color: var(--text-mute);
}
.lobby .meta span b { color: var(--text); font-weight: 600; }

/* ===== Forms ===== */
.form {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
label { display: block; font-size: .87rem; color: var(--text-soft); margin: 0 0 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number],
textarea, select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, .18);
}
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-help { font-size: .8rem; color: var(--text-mute); margin-top: 4px; }
.field-error { font-size: .82rem; color: var(--red); margin-top: 6px; min-height: 1.2em; }
.field-success { font-size: .85rem; color: var(--green); margin-top: 6px; }

/* Amount picker (donate/premium) */
.amounts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.amounts button {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; font-weight: 700;
}
.amounts button.active, .amounts button:hover {
  border-color: var(--gold); color: var(--gold); background: var(--gold-soft);
}

/* Method select */
.methods {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.methods label {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-size: .88rem;
  transition: border-color .15s, background .15s;
}
.methods label:hover { border-color: var(--gold); }
.methods input { position: absolute; opacity: 0; pointer-events: none; }
.methods label.checked { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.methods i { font-size: 14px; }

/* Tabs (donate Mollie vs crypto) */
.tabs {
  display: flex; gap: 6px; border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  background: transparent; border: none; color: var(--text-soft);
  padding: 10px 14px; border-bottom: 2px solid transparent;
  font-weight: 600;
}
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Crypto wallet ===== */
.wallets { display: grid; gap: 14px; }
.wallet {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  display: grid; grid-template-columns: 1fr 130px; gap: 18px;
  align-items: center;
}
@media (max-width: 600px) {
  .wallet { grid-template-columns: 1fr; }
}
.wallet h4 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.wallet h4 i { color: var(--gold); }
.wallet .network {
  display: inline-block; font-size: .75rem; color: var(--text-mute);
  background: var(--bg-3); padding: 2px 8px; border-radius: 6px;
}
.wallet .addr {
  font-family: var(--font-mono); font-size: .82rem;
  background: var(--bg-2); border: 1px dashed var(--line);
  padding: 8px 10px; border-radius: 8px; margin-top: 10px;
  word-break: break-all;
  display: flex; align-items: center; gap: 8px;
}
.wallet .qr {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 6px;
}
.wallet .qr img, .wallet .qr svg { width: 110px; height: 110px; }

/* Copy button */
.copy {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-soft); padding: 4px 10px; border-radius: 6px;
  font-size: .78rem; transition: all .15s;
}
.copy:hover { color: var(--gold); border-color: var(--gold); }
.copy.copied { color: var(--green); border-color: var(--green); }

/* ===== Donation list ===== */
.donation-list { display: grid; gap: 10px; }
.donation-row {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.donation-row .who { display: flex; align-items: center; gap: 10px; }
.donation-row .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #161616; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.donation-row .amount { font-weight: 700; color: var(--gold); }

/* ===== Leaderboard ===== */
.lb-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.lb-table th, .lb-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.lb-table th {
  background: var(--bg-3); font-size: .82rem;
  color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600;
}
.lb-table tbody tr:hover { background: var(--bg-3); }
.lb-table .rank { font-weight: 800; color: var(--text-mute); width: 60px; }
.lb-table .rank.top { color: var(--gold); }
.lb-table .premium {
  background: var(--gold-soft); color: var(--gold);
  font-size: .72rem; padding: 2px 8px; border-radius: 4px;
  font-weight: 700;
}
@media (max-width: 600px) {
  .lb-table thead { display: none; }
  .lb-table tr { display: grid; grid-template-columns: 60px 1fr; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--line-soft); }
  .lb-table td { padding: 0; border: none; font-size: .9rem; }
  .lb-table td.rank { grid-row: span 4; align-self: start; font-size: 1.4rem; }
  .lb-table td[data-label]::before {
    content: attr(data-label) ": "; color: var(--text-mute); font-size: .78rem;
  }
}

/* ===== Mason Chat ===== */
.chat {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; height: 560px; max-height: 70vh;
}
.chat-feed {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--gold); font-size: 14px;
}
.msg .bubble {
  padding: 10px 14px; border-radius: 14px;
  background: var(--bg-3); border: 1px solid var(--line-soft);
  font-size: .94rem;
  white-space: pre-wrap; word-wrap: break-word;
}
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .bubble { background: var(--gold-soft); border-color: rgba(255, 59, 59, .25); color: var(--text); }
.chat-form {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line);
  background: var(--bg);
}
.chat-form input { flex: 1; }
.typing { color: var(--text-mute); font-style: italic; font-size: .9rem; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--text); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-soft); font-size: .92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--text-mute); font-size: .85rem;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--text-soft);
}
.social a:hover { color: var(--gold); border-color: var(--gold); }

/* ===== Misc ===== */
.skel {
  background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2));
  background-size: 200% 100%;
  animation: skel 1.2s infinite ease-in-out;
  border-radius: 8px;
}
@keyframes skel { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

.alert {
  padding: 12px 16px; border-radius: 10px; font-size: .9rem;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; align-items: center; gap: 10px;
}
.alert.error { border-color: var(--red); background: rgba(255, 59, 59, .08); color: var(--text); }
.alert.success { border-color: var(--green); background: rgba(45, 221, 122, .08); color: var(--text); }
.alert.info { border-color: var(--blue); background: rgba(58, 166, 255, .07); color: var(--text); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; color: var(--text-soft);
}
.badge.up { color: var(--green); border-color: rgba(45, 221, 122, .35); }
.badge.down { color: var(--red); border-color: rgba(255, 59, 59, .35); }
.badge.gold { color: var(--gold); border-color: rgba(255, 59, 59, .35); background: var(--gold-soft); }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--bg-3); border: 1px solid var(--green); color: var(--text);
  padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow);
  z-index: 9999; font-size: .92rem;
  animation: toastIn .25s ease-out;
}
@keyframes toastIn { from { transform: translate(-50%, 30px); opacity: 0 } to { transform: translate(-50%, 0); opacity: 1 } }

/* Sections */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.section-head h2 { margin: 0; }
.section-head .lead { margin: 6px 0 0; }

/* Anchored sub-page header */
.page-head {
  padding: 48px 0 28px;
  text-align: center;
}
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { max-width: 640px; margin: 0 auto; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.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;
}

/* Live mode dot + gift rows */
.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: middle; margin-left: 8px; transition: background .2s, box-shadow .2s;
}
.live-dot-off { background: #555; }
.live-dot-connecting { background: #f0b000; animation: live-pulse 1s ease-in-out infinite; }
.live-dot-on { background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,.7); animation: live-pulse-strong 1.6s ease-out infinite; }
.live-dot-error { background: #c34; }
@keyframes live-pulse {
  0%, 100% { opacity: .55 } 50% { opacity: 1 }
}
@keyframes live-pulse-strong {
  0% { box-shadow: 0 0 0 0 rgba(255,59,92,.65) }
  100% { box-shadow: 0 0 0 12px rgba(255,59,92,0) }
}
.live-gift-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font-size: .85rem;
}
.live-gift-row .gname { font-weight: 600; }
.live-gift-row .gmeta { color: var(--text-mute); font-size: .75rem; margin-left: auto; }
.live-gift-row.rejected { opacity: .55; }
.live-gift-row.rejected .gname { text-decoration: line-through; }

/* ===== Site banner (server upgrade notice) ===== */
.site-banner {
  position: sticky; top: var(--nav-h); z-index: 55;
  background: linear-gradient(90deg, rgba(157,107,255,.18), rgba(58,166,255,.15));
  border-bottom: 1px solid rgba(157,107,255,.35);
  color: var(--text);
  font-size: .92rem;
  transition: opacity .2s, transform .2s, max-height .25s;
}
.site-banner-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; min-height: 44px;
}
.site-banner-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(157,107,255,.25); color: #c5aaff;
  display: inline-flex; align-items: center; justify-content: center;
}
.site-banner-text { flex: 1; line-height: 1.45; }
.site-banner-text a { color: #c5aaff; text-decoration: underline; }
.site-banner-text a:hover { color: #e0d0ff; }
.site-banner-close {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid transparent; color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.site-banner-close:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.site-banner-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
@media (max-width: 600px) {
  .site-banner { font-size: .86rem; }
  .site-banner-inner { padding: 9px 14px; gap: 10px; }
  .site-banner-icon { width: 26px; height: 26px; }
}

/* ===== Tier sections ===== */
.tier-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  margin: 8px 0 14px;
}
.tier-head h2 { margin: 0; }
.tier-head .tier-meta { color: var(--text-mute); font-size: .92rem; }
.tier-section + .tier-section { margin-top: 36px; }
.tier-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  border: 1px solid var(--line);
}
.pill.live { background: rgba(45,221,122,.12); color: var(--green); border-color: rgba(45,221,122,.35); }
.pill.modded { background: rgba(157,107,255,.15); color: #c5aaff; border-color: rgba(157,107,255,.4); }
.pill.classic { background: rgba(58,166,255,.12); color: var(--blue); border-color: rgba(58,166,255,.4); }
.pill.soon { background: rgba(248,193,69,.12); color: var(--yellow); border-color: rgba(248,193,69,.4); }
.pill.interactive { background: var(--gold-soft); color: var(--gold); border-color: rgba(255,59,59,.4); }
.pill.mp { background: rgba(255,59,59,.12); color: #ff7a7a; border-color: rgba(255,59,59,.4); }

/* Tier-1 (interactive / featured) */
.lobby.tier-1 {
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(157,107,255,.18), transparent 65%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-color: rgba(157,107,255,.45);
  box-shadow: 0 0 0 1px rgba(157,107,255,.25), 0 10px 28px rgba(157,107,255,.18);
  padding: 22px;
}
.lobby.tier-1 .lobby-title { font-size: 1.15rem; }
.lobby.tier-1 .lobby-title .map-ico {
  width: 40px; height: 40px; color: #c5aaff;
  background: rgba(157,107,255,.18);
  border: 1px solid rgba(157,107,255,.35);
}
.lobby.tier-1:hover {
  border-color: rgba(157,107,255,.7);
  box-shadow: 0 0 0 1px rgba(157,107,255,.5), 0 14px 36px rgba(157,107,255,.28);
}
.lobby-features {
  margin: 12px 0 4px; padding: 12px;
  background: rgba(7,8,13,.55); border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: .85rem; color: var(--text-soft);
  display: grid; gap: 6px;
}
.lobby-features .lf-row { display: flex; align-items: center; gap: 8px; }
.lobby-features .lf-row i { color: #c5aaff; width: 14px; text-align: center; }
.lobby-rec {
  margin-top: 10px; font-size: .82rem; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}

/* Tier-2 (classic) */
.lobby.tier-2 {
  border-color: rgba(58,166,255,.35);
}
.lobby.tier-2:hover {
  border-color: rgba(58,166,255,.6);
  box-shadow: 0 0 0 1px rgba(58,166,255,.4), 0 10px 24px rgba(58,166,255,.16);
}
.lobby.tier-2 .lobby-title .map-ico {
  color: var(--blue);
  background: rgba(58,166,255,.12);
  border: 1px solid rgba(58,166,255,.3);
}

/* Tier-3 (coming back soon — disabled card) */
.lobby.tier-3 {
  opacity: .55;
  background: var(--bg-2);
  border-style: dashed;
  pointer-events: none;
}
.lobby.tier-3 .lobby-title .map-ico {
  color: var(--yellow);
  background: rgba(248,193,69,.10);
  border: 1px solid rgba(248,193,69,.3);
}
.lobby.tier-3 .lobby-status-note {
  font-size: .82rem; color: var(--text-mute); margin-top: 8px;
}

.tier-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  font-size: .88rem; color: var(--text-soft);
}
.tier-note i { color: var(--blue); margin-right: 6px; }

/* ===== Dual hero CTA ===== */
.hero-cta-dual {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 20px 0 10px;
}
.hero-cta-dual .cta-primary,
.hero-cta-dual .cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 12px;
  font-weight: 700; font-size: .98rem;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.hero-cta-dual .cta-primary {
  background: linear-gradient(135deg, #b07bff, #7a4fff);
  color: #fff; border: 1px solid rgba(157,107,255,.6);
  box-shadow: 0 8px 24px rgba(157,107,255,.32);
}
.hero-cta-dual .cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(157,107,255,.42);
  color: #fff;
}
.hero-cta-dual .cta-secondary {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line);
}
.hero-cta-dual .cta-secondary:hover {
  border-color: var(--blue); color: var(--blue);
}
.hero-cta-caption {
  font-size: .85rem; color: var(--text-mute); margin: 4px 0 18px;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px; cursor: pointer;
  font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  margin-left: auto; color: var(--text-mute);
  transition: transform .2s;
  font-size: .8rem;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 18px 16px;
  color: var(--text-soft);
}
.faq-item .faq-body p { margin: 0 0 .6em; }
.faq-item .faq-body code {
  background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px;
  font-family: var(--font-mono); font-size: .85em; color: var(--text);
}

/* Print */
@media print { .site-header, .site-footer, .nav-toggle { display: none } }
