html.help-page,
html.help-page body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.help-app {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.help-header .logo h1 {
  font-size: clamp(0.95rem, 3vw, 1.2rem);
}

.help-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-secondary {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.help-hero {
  text-align: center;
  margin-bottom: 40px;
}

.help-hero h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.help-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.help-section {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.help-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.help-section p,
.help-section li {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.help-section p + p {
  margin-top: 10px;
}

.help-section ul,
.help-section ol {
  padding-left: 20px;
}

.help-section li + li {
  margin-top: 8px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.control-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.control-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.control-card p {
  font-size: 0.95rem;
  margin: 0;
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.key-row span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.brick-grid,
.powerup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.brick-card,
.powerup-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.brick-swatch {
  width: 100%;
  height: 28px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 0 12px currentColor;
}

.brick-card strong,
.powerup-card strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.brick-card span,
.powerup-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.powerup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--bg-deep);
}

.tips-list li::marker {
  color: var(--accent-gold);
}

.help-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.help-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.help-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .help-app { padding: 16px 14px 36px; }
  .help-section { padding: 18px 16px; }
  .help-header { justify-content: center; }
}
