:root{
  --bg:#0b0f14;
  --panel:#10141c;
  --panel2:#1c2027;
  --border:#1c2430;
  --accent:#46c2ff;
  --accent-soft:#46c2ff22;
  --accent-glow:#46c2ff55;
  --text:#e6edf3;
  --muted:#8b949e;
}


*{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:Nunito,system-ui;
  background:linear-gradient(rgba(8,10,14,.88),rgba(8,10,14,.95)),url("assets/background.png") center/cover fixed;
  color:var(--text);
}


nav{
  height:85px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  padding:0 60px;
  background:linear-gradient(90deg,rgba(10,15,22,0.65),rgba(5,10,18,0.55));
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,0.05);
}

nav img{height:60px}

.nav-links{
  display:flex;
  justify-content:center;
  gap:60px;
}

.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:700;
  position:relative;
}

.nav-links a.active,
.nav-links a:hover{color:var(--accent)}


.wrapper{
  max-width:1350px;
  margin:auto;
  padding:50px 20px;
  display:grid;
  grid-template-columns:220px 1fr;
  gap:70px;
  align-items:start;
}


.sidebar{
  background:linear-gradient(180deg,rgba(15,20,29,0.65),rgba(11,16,22,0.55));
  border:1px solid rgba(255,255,255,0.06);
  border-radius:18px;
  padding:18px;
  height:fit-content;
}

.sidebar h3{margin-bottom:20px}

.navcat{
  padding:14px;
  border-radius:12px;
  margin-bottom:10px;
  cursor:pointer;
}

.navcat.active{
  background:linear-gradient(135deg,rgba(70,194,255,0.45),rgba(10,15,25,0.7));
  border:1px solid rgba(70,194,255,0.4);
  color:white;
}


.header-rules{
  display:flex;
  justify-content:space-between;
  margin-bottom:25px;
}

.search input{
  width:320px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--panel);
  color:var(--text);
}


.rule{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  margin-bottom:18px;
  overflow:hidden;
}

.rule-title{
  padding:20px;
  font-weight:700;
  cursor:pointer;
  position:relative;
}

.rule-title::before{
  content:"";
  position:absolute;
  left:0;
  top:22%;
  height:56%;
  width:4px;
  border-radius:10px;
  background:var(--accent);
}

.rule-content{
  display:none;
  padding:18px;
  border-top:1px solid var(--border);
  white-space:pre-line;
}

.rule.open .rule-content{display:block}


.quote{
  position:relative;
  margin:8px 0;
  padding-left:18px; 
  font-weight:600;
}

.rule-content li{
  list-style:none;
  position:relative;
  margin:6px 0;
  padding-left:18px;
}


.quote::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  height:14px;
  width:3px;
  border-radius:4px;
  background:#8b949e;
  opacity:0.8;
}

.rule-content li::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#8b949e;
  opacity:0.8;
}


.rule-content ul{
  margin:8px 0;
  padding-left:0; 
}

.rule-content li{
  list-style:none;
}




.table-wrapper{overflow-x:auto}

.rule-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 14px;
}

.rule-table th{
  text-align:left;
  padding:14px 25px;
  color:var(--accent);
}

.rule-table td{
  background:#141922;
  padding:20px 25px;
}

.rule-table td:first-child{border-radius:16px 0 0 16px}
.rule-table td:last-child{border-radius:0 16px 16px 0}


.weapon-group{
  margin-bottom:14px;
  padding:12px 16px;
  background:#141922;
  border-radius:14px;
}

.weapon-title{
  margin-bottom:6px;
  font-weight:700;
  color:var(--accent);
}

.weapon-list{
  line-height:1.6;
  color:var(--muted);
}


@media (max-width:768px){
  .wrapper{grid-template-columns:1fr}
  .sidebar{display:flex;overflow-x:auto;gap:10px}
  .sidebar h3{display:none}
  .navcat{white-space:nowrap}
  .search input{width:100%}
}