.how-to-play-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 10px 20px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.how-to-play-btn:hover {
  background: var(--gold-dim);
  transform: scale(1.05);
}

.rules-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: 2px solid var(--gold);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.rules-panel.active {
  transform: translateX(0);
}

.rules-content {
  padding: 30px;
  color: var(--text-primary);
  font-family: 'Crimson Text', serif;
}

.rules-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.rules-close:hover {
  color: var(--text-primary);
}

.rules-content h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.rules-content h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin: 20px 0 10px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 5px;
}

.rules-content p {
  margin: 10px 0;
  line-height: 1.6;
}

.rules-content ul {
  list-style: none;
  padding-left: 0;
}

.rules-content li {
  margin: 8px 0;
  padding-left: 15px;
  position: relative;
}

.rules-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.rules-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.rules-overlay.active {
  opacity: 1;
  pointer-events: auto;
}