:root {
  --bg: #140a0c; --bg2: #1c0f12; --panel: #241418; --line: #3a2328;
  --text: #f3e9dc; --muted: #b9a596; --gold: #e2b34a; --gold2: #f6d68a; --red: #a3192b;
  --ok: #5fcf7f; --bad: #e0605a;
  --radius: 12px; --gutter: 16px; --max: 1160px;
  --head: "Cinzel", Georgia, serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { background: #00000055; padding: 1px 6px; border-radius: 6px; color: var(--gold2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; letter-spacing: .02em; }
h2 { font-size: clamp(26px, 4vw, 38px); color: var(--gold2); }
.sub { color: var(--muted); margin: 8px 0 28px; max-width: 640px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 16px var(--body);
  padding: 13px 24px; border-radius: 10px; color: #2a1606; background: linear-gradient(180deg, var(--gold2), var(--gold) 60%, #b98522);
  box-shadow: 0 2px 0 #7a5212, 0 8px 24px #e2b34a33; text-decoration: none !important; min-height: 44px; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--gold2); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn-sm { padding: 8px 16px; font-size: 14px; min-height: 38px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: #140a0ce6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px var(--head); color: var(--gold2); text-decoration: none !important; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.off { background: var(--bad); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--gold2); margin: 5px 0; border-radius: 2px; }

/* hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("/assets/splash.webp") center 20% / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #140a0cd0 0%, #140a0c8c 38%, #140a0c00 66%), linear-gradient(180deg, #140a0c00 0%, #140a0c00 40%, #140a0cd9 78%, var(--bg) 100%); }
.hero-in { position: relative; width: 100%; padding-top: 240px; padding-bottom: 48px; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); color: #fff6e3; text-shadow: 0 4px 24px #000c; }
.lead { max-width: 560px; font-size: 18px; color: #eadcca; text-shadow: 0 2px 12px #000; margin: 16px 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 28px; }
.facts li { display: flex; flex-direction: column; }
.facts b { font: 800 28px var(--head); color: var(--gold2); }
.facts span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* status strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr) 2fr; }
.tile { padding: 18px 16px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); min-width: 0; }
.tile:first-child { border-left: 0; padding-left: 0; }
.tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tile .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* sections */
.sec { padding: 72px 0; }
.sec.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.group { font-size: 18px; color: var(--gold); margin: 32px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h4 { font-size: 17px; color: var(--gold2); margin-bottom: 6px; }
.card p { margin: 0; color: #dccbb9; font-size: 15px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* news */
.news { display: grid; gap: 14px; margin-bottom: 18px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.post header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.post h3 { font-size: 20px; color: #fff3dc; flex-basis: 100%; }
.tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 6px; background: #a3192b55; color: #ffc9c2; }
.tag.Update { background: #e2b34a33; color: var(--gold2); }
.tag.Event { background: #5fcf7f2b; color: #a8f0bd; }
.post p { margin: 8px 0 0; color: #dccbb9; }
.post .more { background: none; border: 0; color: var(--gold2); cursor: pointer; padding: 6px 0 0; font: 500 15px var(--body); }

/* events */
.days { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.days button, .tab { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 14px var(--body); cursor: pointer; min-height: 40px; }
.days button.on, .tab.on { background: var(--gold); color: #2a1606; border-color: var(--gold); font-weight: 600; }
.ev-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ev-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.ev-list li.past { opacity: .5; }
.ev-list li.next { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.ev-list .t { font-weight: 600; color: var(--gold2); font-variant-numeric: tabular-nums; }
.ev-list .w { display: block; color: var(--muted); font-size: 14px; }
#evHourly li { grid-template-columns: 1fr; }

/* rankings */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank th, .rank td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.rank td.n { color: var(--muted); width: 48px; }
.rank tr:nth-child(1) td.n, .rank tr:nth-child(2) td.n, .rank tr:nth-child(3) td.n { color: var(--gold2); font-weight: 700; }
.rank td.num { text-align: right; }
.rank th.num { text-align: right; }
.rank tbody tr:last-child td { border-bottom: 0; }
.search { margin-top: 28px; max-width: 520px; }
.search label { font-weight: 600; display: block; margin-bottom: 8px; }
.row { display: flex; gap: 8px; }
input { width: 100%; background: #0e0708; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 16px var(--body); min-height: 46px; }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pcard { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 18px; }
.pcard h4 { grid-column: 1 / -1; font-size: 20px; color: var(--gold2); }
.pcard div span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* download + signup */
.dl { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dl img { border-radius: 20px; box-shadow: 0 8px 24px #000a; }
.dl b { display: block; font-size: 18px; }
.steps { padding-left: 22px; margin: 0; display: grid; gap: 10px; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.ticks { padding-left: 20px; color: #dccbb9; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.msg { margin: 0; min-height: 24px; font-weight: 500; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: #dccbb9; }
.discord { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(90deg, #5865f233, #a3192b33); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.discord b { display: block; font-size: 18px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 36px; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav nav.open { display: flex; }
  .nav nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav nav .btn { margin-top: 12px; }
  .pill { order: 2; margin-left: auto; }
  .menu-btn { order: 3; margin-left: 0; }
  .hero-bg { background-position: 58% top; }
  .hero-bg::after { background: linear-gradient(180deg, #140a0c00 0%, #140a0c40 30%, #140a0ce6 62%, var(--bg) 100%); }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .tile { border-left: 0; padding-left: 0; }
  .tile.wide { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .two, .ev-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-in { padding-top: 160px; }
  .sec { padding: 52px 0; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .facts { gap: 20px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
