/* ============================================================
   help.css — How to Play page styles
   ============================================================ */

/* ── Page layout ──────────────────────────────────────────── */
.help-page {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: var(--sp-16);
}

/* ── Quick-start steps ────────────────────────────────────── */
.help-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

@media (max-width: 640px) {
  .help-steps { grid-template-columns: 1fr; }
}

.help-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color 0.2s;
}

.help-step:hover { border-color: rgba(245, 166, 35, 0.3); }

.help-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.help-step-body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.help-step-body p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Sections ─────────────────────────────────────────────── */
.help-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.help-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.help-subsection {
  margin-top: var(--sp-5);
}

.help-subsection + .help-subsection {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.help-subsection-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

/* ── Prediction type cards ────────────────────────────────── */
.predict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 700px) {
  .predict-grid { grid-template-columns: 1fr; }
}

.predict-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
}

.predict-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-2);
  display: block;
}

.predict-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.predict-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.predict-card-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-left: var(--sp-4);
  position: relative;
}

.predict-card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

/* ── Points table ─────────────────────────────────────────── */
.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.help-table thead th {
  text-align: left;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.help-table thead th:last-child,
.help-table tbody td:last-child {
  text-align: right;
}

.help-table tbody tr {
  border-bottom: 1px solid rgba(30, 39, 64, 0.6);
  transition: background 0.15s;
}

.help-table tbody tr:last-child { border-bottom: none; }
.help-table tbody tr:hover { background: var(--bg-surface-hover); }

.help-table tbody td {
  padding: var(--sp-3);
  color: var(--text-secondary);
  vertical-align: middle;
}

.help-table .td-label {
  color: var(--text-primary);
  font-weight: 500;
}

.help-table .td-pts {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  white-space: nowrap;
}

.help-table .td-bonus {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green);
  white-space: nowrap;
}

.help-table .td-sub {
  font-size: 0.75rem;
  color: var(--text-disabled);
}

/* Divider row inside table (group label) */
.help-table .table-group-row td {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-disabled);
  background: rgba(10, 14, 26, 0.5);
}

/* ── Multiplier table ─────────────────────────────────────── */
.multi-pill {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.multi-pill.m100 { background: var(--multi-100); }
.multi-pill.m70  { background: var(--multi-70);  }
.multi-pill.m50  { background: var(--multi-50);  }
.multi-pill.m35  { background: var(--multi-35);  }
.multi-pill.m25  { background: var(--multi-25);  }
.multi-pill.m15  { background: var(--multi-15);  }

/* ── Tip cards ────────────────────────────────────────────── */
.help-tips {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.help-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}

.help-tip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.help-tip-body strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.help-tip-body p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Highlighted formula box ──────────────────────────────── */
.help-formula {
  background: var(--bg-page);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-4) 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.help-formula strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ── Navigation shortcut buttons ─────────────────────────── */
.help-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
