/* SB Online website: same dark look as the game (dark stone, gold, ember red). */
:root {
  color-scheme: dark;
  --bg: #120f14; --panel: #1d1820; --line: #3a2f33; --fg: #efe4d2; --muted: #a8968a;
  --gold: #e0a73d; --ember: #d9472b; --ok: #5ce07a;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  background: radial-gradient(ellipse at 50% -10%, rgba(120,40,24,.35), transparent 60%), var(--bg);
}
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px max(16px, calc((100% - 1040px) / 2)); border-bottom: 1px solid var(--line); background: rgba(18,15,20,.85);
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--fg); text-decoration: none; letter-spacing: .02em; }
.logo span, .hero h1 span { color: var(--ember); }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-family: var(--font-display); letter-spacing: .06em; font-size: .9rem; }
nav > a[aria-current="page"], nav > a:not(.btn):hover { color: var(--gold); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang a { padding: 3px 9px; text-decoration: none; color: var(--muted); font-family: var(--font-display); font-size: .78rem; }
.lang a[aria-current="true"] { background: var(--ember); color: #fff; }
main { flex: 1; width: 100%; max-width: 1072px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 18px; }
footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 16px; border-top: 1px solid var(--line); }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: .04em; margin: 0 0 10px; }
h1 { font-size: 1.6rem; color: var(--gold); } h2 { font-size: 1.1rem; color: var(--gold); }
.card { background: var(--panel); border: 1px solid #5a4630; border-radius: 6px; padding: 18px 20px; box-shadow: 0 0 0 1px #120f14; }
.card.narrow { max-width: 440px; width: 100%; margin: 0 auto; }
form { display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .9rem; }
input { font: inherit; color: var(--fg); background: #120f14; border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; }
.btn {
  display: inline-block; font-family: var(--font-display); letter-spacing: .06em; text-decoration: none; cursor: pointer; text-align: center;
  background: var(--ember); color: #fff; border: 1px solid var(--gold); border-radius: 4px; padding: 8px 16px; font-size: .95rem;
}
.btn.big { font-size: 1.2rem; padding: 12px 28px; box-shadow: 0 0 18px rgba(217,71,43,.45); }
.btn.ghost { background: transparent; color: var(--gold); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 6px 0; align-self: flex-start; }
.hint { color: var(--muted); font-size: .86rem; margin: 0; }
.err { color: #ff7a6a; margin: 0; }
.vip-line { margin: 0 0 4px; } .vip-1 { color: #d8dce4; } .vip-2 { color: #f2c14e; } .ok { color: var(--ok); margin: 0; }
.hero { text-align: center; padding: 34px 16px 10px; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); color: var(--fg); font-weight: 700; margin-bottom: 6px; }
.hero p { margin: 0 0 16px; font-size: 1.05rem; }
.hero .btn { margin: 0 6px 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats .online b { color: #7ee07e; }
.stats .online b::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5fd35f; box-shadow: 0 0 8px #5fd35f; margin-right: 8px; vertical-align: middle; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px; text-align: center; display: flex; flex-direction: column; }
.stats b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); font-weight: 500; }
.stats span { color: var(--muted); font-size: .86rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
td:first-child, th:first-child { width: 44px; }
.rank td { font-variant-numeric: tabular-nums; }
.rank .top1 td:first-child { color: #f2c14e; font-weight: 700; } .rank .top2 td:first-child { color: #c9c4bd; font-weight: 700; } .rank .top3 td:first-child { color: #c8844a; font-weight: 700; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tabs a { color: var(--fg); text-decoration: none; border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; font-size: .88rem; }
.tabs a[aria-current="page"] { background: var(--ember); border-color: var(--gold); color: #fff; }
.tabs .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } th:nth-child(5), td:nth-child(5), th:nth-child(6), td:nth-child(6) { display: none; } }
