body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #121212;
  color: #eee;
}

/* Header */
.site-header {
  background: #1f1f1f;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li {
  margin-left: 1rem;
  position: relative;
}
.primary-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
}
.primary-nav li:hover .sub {
  display: block;
}
.sub {
  display: none;
  position: absolute;
  background: #222;
  list-style: none;
  padding: 0.5rem;
  top: 100%;
  left: 0;
}
.sub li {
  margin: 0;
}
.sub a {
  display: block;
  padding: 0.5rem 1rem;
}
/* ===== HEADER DROPDOWNS ===== */
.primary-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.has-sub {
  position: relative;
}
.has-sub > a::after {
  content: " ▼";
  font-size: 0.7rem;
}
.has-sub > .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 999;
}
.has-sub:hover > .sub {
  display: block;
  animation: dropdownFade 0.3s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sub a {
  display: block;
  padding: 0.7rem 1rem;
  color: #ddd;
}
.sub a:hover {
  background: #2a2a2a;
  color: #4ea3ff;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: url('../images/rule.avif') center/cover no-repeat;
  color: #fff;
}

/* Content */
.content {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}
h2 {
  font-family: 'Cinzel', serif;
  margin-top: 2rem;
  color: #f4d35e;
}
.rule-block {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #1e1e1e;
  border-radius: 8px;
}
.dice {
  color: #f4d35e;
  font-weight: bold;
}

/* Tables */
.rules-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #1b1b1b;
}
.rules-table th, .rules-table td {
  border: 1px solid #333;
  padding: 0.75rem;
  text-align: left;
}
.rules-table th {
  background: #2b2b2b;
  color: #f4d35e;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: #1f1f1f;
  margin-top: 2rem;
  color: #aaa;
}
.site-footer {
  background: #111;
  color: #ddd;
  padding: 2rem 1rem;
  font-family: 'Inter', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-foot {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.brand-foot span {
  color: #4ea3ff;
}

.site-footer h5 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #fff;
  font-weight: 600;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-links li {
  margin-bottom: 0.5rem;
}
.foot-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.foot-links a:hover {
  color: #4ea3ff;
}

/* Responsive */
@media (max-width: 768px) {
  .primary-nav ul {
    flex-direction: column;
    background: #1f1f1f;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
  }
  .primary-nav ul.show {
    display: flex;
  }
  .rule-block, .rules-table {
    font-size: 0.9rem;
  }
}
