/* ============================================================
   RULES PAGE — ATLETIKA GAMES
   Card-based sections, replacing the old plain-utility-classes +
   inline-styles layout with something matching the rest of the app's
   current visual bar (results/admin panels, home cards).
   ============================================================ */

.rules-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.rules-hero {
  margin-bottom: 24px;
}

.rules-hero__title {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules-hero__sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.rules-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.rules-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px;
}

.rules-section__body {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.rules-section__body p {
  margin: 0 0 6px;
}

.rules-section__body p:last-child {
  margin-bottom: 0;
}

.rules-section__body ul {
  list-style: none;
  margin: 8px 0 0;
  padding-left: 0;
}

.rules-section__body li {
  margin-bottom: 4px;
}

.rules-section__body strong {
  color: #1e293b;
  font-weight: 700;
}

/* Position-points / record-bonus grids */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.rules-grid__cell {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}

.rules-grid__cell-value {
  font-size: 18px;
  font-weight: 800;
  color: #d4562a;
}

.rules-grid__cell-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.rules-grid__cell--bonus {
  background: none;
  padding: 0;
}

.rules-grid__cell-badge {
  font-size: 13px;
  font-weight: 700;
  color: #d4562a;
  background: rgba(212, 86, 42, 0.1);
  padding: 6px 4px;
  border-radius: 6px;
}

.rules-grid__cell-badge + .rules-grid__cell-label {
  margin-top: 4px;
}

/* Callout: important clarification, visually distinct from regular body copy */
.rules-callout {
  display: flex;
  gap: 10px;
  background: rgba(212, 86, 42, 0.06);
  border-left: 3px solid #d4562a;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
}

.rules-callout__icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.4;
}

.rules-callout strong {
  color: #1e293b;
}

/* Scoring example card */
.rules-example {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.rules-example p {
  margin: 0 0 4px;
  color: #475569;
}

.rules-example p:last-child {
  margin-bottom: 0;
  font-weight: 700;
  color: #d4562a;
}

.rules-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
  margin-top: 6px;
  text-align: center;
}

.rules-footer p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}
