:root {
  --bg: #0d1114;
  --panel: rgba(16, 10, 7, .86);
  --panel-soft: rgba(30, 19, 13, .78);
  --gold: #f3c567;
  --gold-2: #9b6229;
  --jade: #48d6b5;
  --red: #9e2d21;
  --text: #f8eddb;
  --muted: #cdbb9b;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #2b2218 0, #10161a 48%, #080b0d 100%); }
a { color: inherit; text-decoration: none; }
.site { min-height: 100vh; }
.hero {
  min-height: 620px;
  background-image: linear-gradient(90deg, rgba(6,8,10,.42), rgba(6,8,10,.8) 38%, rgba(6,8,10,.28)), url("../img/hero-wuxia.png");
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}
.topbar {
  background: linear-gradient(180deg, rgba(41,25,17,.96), rgba(9,12,14,.98));
  border-bottom: 1px solid rgba(243,197,103,.18);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 900; color: var(--gold); font-size: 24px; text-shadow: 0 2px 12px #000; }
.brand span { display:block; color:#fff2ce; font-size:13px; font-weight:600; margin-top:2px; }
.nav-links { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.nav-links a { padding: 10px 14px; border: 1px solid rgba(243,197,103,.25); background: rgba(30,12,8,.45); color: #ffe4aa; }
.nav-links a:hover { background: rgba(158,45,33,.72); }
.hero-inner { width:min(1180px, calc(100% - 32px)); margin: 72px auto 0; display:grid; grid-template-columns: 1.1fr .9fr; gap:30px; align-items:end; }
.hero-copy h1 { font-size: clamp(32px, 4.8vw, 66px); line-height: 1.02; margin: 0 0 18px; color: #ffe1a0; text-shadow: 0 6px 22px #000; white-space: nowrap; }
.hero-copy p { font-size: 19px; color: #fff4df; max-width: 650px; line-height:1.65; text-shadow:0 2px 10px #000; }
.cta-row { display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.btn { border:0; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding: 0 18px; background: linear-gradient(#b93b2b, #5e160f); color:#fff3d1; font-weight:800; box-shadow: inset 0 0 0 1px rgba(255,230,154,.3), 0 8px 18px rgba(0,0,0,.35); }
.btn.secondary { background: linear-gradient(#3d7f76, #143c42); }
.btn.ghost { background: rgba(14,11,8,.68); border:1px solid rgba(243,197,103,.3); }
.mini-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.mini-actions a { padding:9px 12px; background:rgba(10,8,6,.66); border:1px solid rgba(243,197,103,.28); color:#ffe3aa; font-weight:800; }
.mini-actions a:hover { background:rgba(158,45,33,.72); }
.stats { display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }
.stat { background: var(--panel); border:1px solid rgba(243,197,103,.28); padding:18px; min-height:92px; }
.stat b { display:block; font-size:30px; color:var(--jade); }
.stat span { color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:.04em; }
.wrap { width:min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 54px 0; }
.grid { display:grid; gap:18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card, .panel { background: var(--panel); border:1px solid rgba(243,197,103,.2); box-shadow: 0 18px 50px rgba(0,0,0,.32); }
.card { padding:22px; }
.card h3, .panel h2 { margin:0 0 12px; color:#ffd98b; }
.muted { color:var(--muted); }
.tag { color:#1c1a13; background:var(--gold); padding:3px 8px; font-size:12px; font-weight:800; }
.form { max-width: 520px; margin: 36px auto; padding: 26px; background: var(--panel); border:1px solid rgba(243,197,103,.25); }
.form h1 { margin-top:0; color:var(--gold); }
.field { margin-bottom:14px; }
.field label { display:block; color:#f8db9c; font-weight:700; margin-bottom:7px; }
.field input, .field textarea, .field select {
  width:100%; border:1px solid rgba(243,197,103,.25); background:#100b09; color:#fff5e0; padding:12px 13px; outline:none;
}
.field textarea { min-height:110px; resize:vertical; }
.alert { margin:12px auto; width:min(1180px, calc(100% - 32px)); padding:12px 16px; border:1px solid rgba(255,255,255,.16); background:#15110d; }
.alert.success { border-color:#3bc79e; color:#bafbe9; }
.alert.danger { border-color:#e45c4d; color:#ffd3cd; }
.alert.warning { border-color:#ecc15f; color:#ffedbd; }
.table { width:100%; border-collapse:collapse; background:var(--panel); }
.table th,.table td { text-align:left; border-bottom:1px solid rgba(243,197,103,.16); padding:12px; }
.table th { color:#ffd98b; }
.rank-table td:first-child { font-weight:900; color:#f3c567; }
.rank-top { color:#48d6b5 !important; font-size:18px; }
.empty-state { min-height:160px; display:flex; flex-direction:column; justify-content:center; }
.footer { padding:30px 0; color:var(--muted); border-top:1px solid rgba(243,197,103,.12); background:#080b0d; }
@media (max-width: 850px) {
  .hero-copy h1 { white-space: normal; font-size: 38px; }
  .hero-inner, .grid.two, .grid.three { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr; }
  .nav { height:auto; padding:18px 0; display:block; }
  .nav-links { justify-content:flex-start; margin-top:14px; }
}
