*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Inter",sans-serif
}

body{
  background:#0b0b0f;
  color:#eaeaf0;
  line-height:1.65
}

/* Background */
.rules-bg{
  position:fixed;
  inset:0;
  background-size:cover;
  background-position:center;
  transition:opacity 2s;
  z-index:-2
}

.rules-overlay{
  position:fixed;
  inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.6),rgba(0,0,0,.9));
  z-index:-1
}

/* Header */
.header{
  position:fixed;
  top:0;
  width:100%;
  background:rgba(10,10,15,.85);
  border-bottom:1px solid #222;
  z-index:10
}

.header-inner{
  max-width:1100px;
  margin:auto;
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center
}

.logo{
  font-weight:800
}

.logo span{
  color:#c4162a
}

nav a{
  color:#eaeaf0;
  margin-left:15px;
  text-decoration:none;
  font-weight:600
}

nav a.active{
  color:#c4162a
}

/* Layout */
.rules-wrapper{
  padding:120px 20px;
  display:flex;
  justify-content:center
}

.rules-card{
  max-width:1000px;
  width:100%;
  background:rgba(15,15,25,.9);
  border-radius:18px;
  padding:40px
}

/* Topbar */
.topbar{
  display:flex;
  justify-content:center;
  margin-bottom:30px;
  padding-bottom:16px;
  border-bottom:1px solid #2a2a3a
}

.topbar-title{
  font-weight:700;
  letter-spacing:.5px;
  opacity:.85
}

/* Header content */
.rules-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid #333;
  padding-bottom:20px;
  margin-bottom:20px
}

.rules-head h1{
  font-size:42px;
  font-weight:800
}

.rules-head p{
  margin-top:10px;
  max-width:60ch
}

.updated{
  color:#c4162a;
  font-weight:600;
  margin-top:6px;
  display:block
}

/* TTS */
.tts-controls button{
  background:#1f1f2e;
  border:none;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  margin-left:6px;
  cursor:pointer
}

.tts-controls button:hover{
  background:#c4162a
}

/* Content */
.rules-content h2{
  margin-top:28px;
  margin-bottom:8px
}

.rules-content p{
  margin-bottom:10px
}

/* Highlight */
.highlight{
  background:rgba(196,22,42,.25);
  border-radius:4px;
  padding:2px 4px
}

.rules-end{
  margin-top:30px;
  font-style:italic;
  opacity:.9
}
