:root{
  --bg:#070b14;
  --panel:#171b2d;
  --panel-2:#12182b;
  --panel-3:#0f1528;
  --text:#e9ecff;
  --muted:#9aa0c3;
  --accent:#7aa2ff;
  --line:#242a45;
  --gold:#d4af37;
  --success:#3cb371;
  --danger:#d96b6b;
  --warning:#d9a441;
  --shadow:0 18px 40px rgba(0,0,0,.24);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 20% 10%,rgba(212,175,55,.08),transparent 20%),
    linear-gradient(180deg,#070b14 0%,#0d1325 40%,#05070e 100%);
  color:var(--text);
  font-family:Georgia,"Times New Roman",serif;
  line-height:1.55;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 15% 20%,rgba(255,255,255,.03),transparent 10%),
    radial-gradient(circle at 85% 12%,rgba(122,162,255,.06),transparent 12%),
    radial-gradient(circle at 50% 85%,rgba(212,175,55,.03),transparent 14%);
}
header,.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,13,24,.92)!important;
  border-bottom:1px solid rgba(212,175,55,.18)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  backdrop-filter:blur(8px);
}
nav,.top,.topbar-inner,.header-inner{
  width:min(1700px,100%);
  margin:auto;
  padding:14px 18px!important;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.brand{font-size:21px;font-weight:900;color:#fff}
.links,.nav,.nav-group{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
a{color:inherit}
.btn,.nav-btn,.logout-btn,.game-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px!important;
  border-radius:12px!important;
  text-decoration:none;
  color:#fff!important;
  background:linear-gradient(180deg,rgba(31,38,66,.95),rgba(16,22,38,.98))!important;
  border:1px solid rgba(212,175,55,.18)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:.2s;
  cursor:pointer;
  font:inherit;
  font-weight:700;
}
.btn:hover,.nav-btn:hover,.logout-btn:hover,.game-btn:hover{
  border-color:rgba(212,175,55,.45)!important;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(0,0,0,.25),0 0 0 1px rgba(212,175,55,.08) inset;
}
.btn.primary,.btn-primary,.game-btn:not(.alt){
  background:linear-gradient(180deg,#335fa8 0%,#233f72 100%)!important;
  border-color:rgba(122,162,255,.55)!important;
  color:#fff!important;
}
.btn.danger,.btn-danger{background:rgba(217,107,107,.16)!important;border-color:rgba(217,107,107,.42)!important;color:#ffd5d5!important}
.btn.small,.btn-small{min-height:34px;padding:7px 11px!important;font-size:13px;border-radius:10px!important}
main{width:min(1700px,100%);margin:auto;padding:28px 18px 80px!important}
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right,rgba(212,175,55,.10),transparent 24%),
    radial-gradient(circle at top left,rgba(122,162,255,.10),transparent 28%),
    linear-gradient(180deg,rgba(22,28,48,.98) 0%,rgba(12,18,34,.98) 100%)!important;
  border:1px solid rgba(212,175,55,.18)!important;
  border-radius:26px!important;
  box-shadow:0 20px 50px rgba(0,0,0,.28)!important;
  padding:28px!important;
  margin-bottom:22px;
}
.hero::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-80px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(212,175,55,.10) 0%,transparent 70%);
  pointer-events:none;
}
.hero>*{position:relative;z-index:1}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#f0ddb0!important;font-weight:800}
.hero h1,h1{color:var(--gold)!important;letter-spacing:.02em;text-shadow:0 2px 18px rgba(212,175,55,.15)}
.hero h1{font-size:clamp(38px,6vw,70px)!important;margin:4px 0 10px!important}
.hero p,.hero-sub{max-width:900px;color:#c8d2f4!important;line-height:1.65}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.section,.panel,.card,.doc,.mini,.player,.new-player-box,.entry-card,.info-box{
  background:
    radial-gradient(circle at top right,rgba(122,162,255,.05),transparent 24%),
    linear-gradient(180deg,rgba(20,24,40,.98) 0%,rgba(11,16,29,.98) 100%)!important;
  border:1px solid rgba(212,175,55,.12)!important;
  border-radius:20px!important;
  box-shadow:var(--shadow)!important;
}
.section,.panel{padding:22px!important;margin-top:22px}
.card,.doc,.mini,.player,.entry-card,.info-box,.new-player-box{padding:16px!important}
.section h2,.panel h2,.card h2,.doc h3,.mini h3{color:#fff!important;font-family:Georgia,"Times New Roman",serif}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.muted,.small{color:var(--muted)!important;line-height:1.55}.small{font-size:14px}
.grid,.grid-2,.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.grid-3,.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.grid-4,.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.docs,.players{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.players-list,.list-editor{display:grid;grid-template-columns:1fr;gap:10px}
label{display:block;margin:10px 0 6px!important;font-size:14px;color:#d8def8!important;font-weight:600}
input,select,textarea{
  width:100%;
  border:1px solid #253152!important;
  background:rgba(12,18,32,.96)!important;
  color:#fff!important;
  border-radius:12px!important;
  padding:11px 12px!important;
  font:inherit;
  outline:none;
}
textarea{min-height:100px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#7aa2ff!important;box-shadow:0 0 0 3px rgba(122,162,255,.12)!important}
.status,.notice,.player-status,.message{
  padding:12px 14px!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,rgba(20,27,46,.95),rgba(13,19,34,.98))!important;
  border:1px solid rgba(212,175,55,.15)!important;
  color:var(--muted)!important;
}
.status.ok,.status.success,.message.success,.player-status.ok{color:#cdf1da!important;border-color:rgba(60,179,113,.45)!important}
.status.error,.message.error,.player-status.error,.notice.error{color:#ffd5d5!important;border-color:rgba(217,107,107,.5)!important}
.tabs{display:flex;gap:10px;flex-wrap:wrap;position:sticky;top:82px;z-index:20;padding:14px;margin:0 0 22px;border-radius:18px;background:rgba(10,14,26,.78);backdrop-filter:blur(8px);border:1px solid rgba(212,175,55,.12);box-shadow:0 14px 32px rgba(0,0,0,.18)}
.tab{padding:10px 14px;border-radius:12px;background:linear-gradient(180deg,rgba(28,34,58,.96),rgba(15,20,35,.98));border:1px solid rgba(255,255,255,.06);color:#dfe7ff;cursor:pointer;font-weight:700;user-select:none}
.tab.active{background:linear-gradient(180deg,#d4af37 0%,#9a7621 100%);border-color:#d4af37;color:#111722;box-shadow:0 10px 24px rgba(212,175,55,.22)}
.game-hub{display:grid;grid-template-columns:1.25fr repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 24px}
.game-card{position:relative;overflow:hidden;min-height:132px;padding:18px;border-radius:20px;border:1px solid rgba(212,175,55,.14);background:radial-gradient(circle at top right,rgba(122,162,255,.12),transparent 26%),linear-gradient(180deg,rgba(22,28,48,.98) 0%,rgba(12,18,34,.98) 100%);box-shadow:0 18px 36px rgba(0,0,0,.22);display:flex;flex-direction:column;justify-content:space-between}
.game-card.primary{background:radial-gradient(circle at top right,rgba(212,175,55,.18),transparent 28%),linear-gradient(180deg,rgba(32,39,64,.99) 0%,rgba(13,19,34,.99) 100%)}
.game-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.game-title{font-size:24px;font-weight:800;color:#fff;margin:0}.game-sub{margin-top:8px;color:#c6d2f4;line-height:1.5}.game-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#f0ddb0}.game-icon{font-size:34px}.game-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.player{display:block;text-decoration:none;color:#fff!important;transition:.2s}.player:hover,.doc:hover,.mini:hover,.card:hover{border-color:rgba(212,175,55,.34)!important;transform:translateY(-2px)}
.player strong{display:block;font-size:20px}.player span{display:block;margin-top:6px;color:var(--muted)}.player em{display:inline-block;margin-top:10px;color:var(--gold);font-style:normal;font-weight:800}
.map{width:100%;border-radius:18px!important;border:1px solid rgba(212,175,55,.16)!important;box-shadow:var(--shadow)}
.table-wrap{overflow:auto;border:1px solid rgba(212,175,55,.10);border-radius:16px;background:var(--panel-2)}
table{width:100%;border-collapse:collapse}th,td{border-bottom:1px solid var(--line);padding:10px;text-align:left}th{background:#11192d;color:#f5f8ff}
.crawl{padding:20px!important;border-left:4px solid var(--gold)!important;background:rgba(0,0,0,.18)!important;border-radius:14px!important}
footer{width:min(1700px,100%);margin:auto;padding:0 18px 28px;color:var(--muted);font-size:14px;text-align:center}
@media(max-width:1180px){.game-hub{grid-template-columns:1fr 1fr}.tabs{top:72px}}
@media(max-width:900px){.grid,.grid-2,.grid2,.grid-3,.grid3,.grid-4,.grid4{grid-template-columns:1fr}}
@media(max-width:760px){.game-hub{grid-template-columns:1fr}.tabs{position:static;padding:0;background:none;border:none;box-shadow:none}.hero{padding:22px!important}.hero h1{font-size:38px!important}}
