/*
 * Extras for the How to play page, layered on top of legal.css (which carries
 * the shared document look: colours, headings, spacing, print styles).
 */

/* A physical key, as printed in the controls table. */
.kbd {
  display: inline-block;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 2px;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
}

.controls {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.controls th {
  text-align: left;
  padding: 8px 12px 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}

.controls td {
  padding: 9px 12px 9px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.controls td:first-child {
  width: 130px;
  white-space: nowrap;
}

/* Numbers pulled straight from the game's own configuration. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.stat {
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.stat b {
  display: block;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--accent);
  line-height: 1.2;
}

.stat span {
  font-size: 12.5px;
  color: var(--muted);
}

/* Set-off paragraph for the one thing people get wrong in each section. */
.tip {
  margin: 0 0 20px;
  padding: 12px 16px;
  background: rgba(77, 225, 193, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
}

.tip b {
  color: var(--accent);
}

.play-cta {
  display: inline-block;
  margin: 8px 0 32px;
  padding: 12px 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4de1c1, #35b8d8);
  color: #06202a;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border: none;
}

.play-cta:hover {
  filter: brightness(1.08);
  border: none;
}

@media (max-width: 560px) {
  .controls td:first-child {
    width: 96px;
  }

  .controls td {
    font-size: 14px;
  }
}
