/* ==========================================================
   Shared Instructions Modal — unified across all games.
   Used by: RageTris, RageSnake, RagePong.
   ========================================================== */

#instructions-modal .modal-card { max-width: 1200px; }
#instructions-modal .modal-title {
  font-size: 52px;
  margin-bottom: 28px;
}
.instructions-content {
  font-size: 30px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.instructions-section { margin-bottom: 32px; }
.instructions-heading {
  font-size: 34px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}
.instructions-text { margin: 0; }

/* --- Controls grid (P1 / P2 columns) --- */
.instructions-grid {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
}
@media (max-width: 500px) {
  .instructions-grid { flex-direction: column; gap: 24px; }
}
.instructions-col { flex: 1; }
.instructions-keys {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 28px;
  color: rgba(255,255,255,0.6);
}

/* --- Key badge chips --- */
.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-family: 'Gemunu Libre', monospace;
}
.key-badge.key-p1 {
  background: color-mix(in srgb, var(--key-p1-color, #1e3a8a) 30%, transparent);
  border-color: color-mix(in srgb, var(--key-p1-color, #1e3a8a) 55%, transparent);
  color: color-mix(in srgb, var(--key-p1-color, #1e3a8a) 70%, #fff);
}
.key-badge.key-p2 {
  background: color-mix(in srgb, var(--key-p2-color, #ef4444) 30%, transparent);
  border-color: color-mix(in srgb, var(--key-p2-color, #ef4444) 55%, transparent);
  color: color-mix(in srgb, var(--key-p2-color, #ef4444) 70%, #fff);
}

/* --- Bullet lists --- */
.instructions-list {
  margin: 0;
  padding-left: 40px;
  font-size: 28px;
}
.instructions-list li { margin-bottom: 8px; }
.instructions-list strong { color: rgba(255,255,255,0.9); }

/* --- Control scheme label (Classic / Pilot) --- */
.instructions-scheme-label {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 700;
}

/* --- "Don't show again" checkbox row --- */
.instructions-dont-show {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 12px;
  justify-content: center;
}
.instructions-dont-show label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 20px;
  color: rgba(255,255,255,0.5);
}
.instructions-dont-show input[type="checkbox"] {
  accent-color: #60a5fa;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* --- Version / copyright footer --- */
.instructions-footer {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  letter-spacing: .04em;
}
.instructions-footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.instructions-copyright {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  letter-spacing: .04em;
}
.instructions-copyright a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
