/* Shared styles for game guide text. Colours are the tokens from index.html. */
.guide, .guide-nav, .guide-foot {
  --void: #06040f;
  --rose: #f74a8a;
  --gold: #f5c542;
  --line: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.82);
  --text-dim: rgba(255,255,255,0.62);
}
.guide-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #06040f; color: rgba(255,255,255,0.82); font-family: 'Quicksand', sans-serif; -webkit-font-smoothing: antialiased; }
.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 2.5rem; border-bottom: 1px solid var(--line); }
.guide-logo { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; }
.guide-logo .ep { color: #9a97a3; }
.guide-logo .rest { color: #ff4d99; }
.guide-back, .guide-foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-dim); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.guide-back:hover, .guide-foot-links a:hover { color: #fff; }
.guide { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 4rem 2rem 5rem; text-align: left; overflow-wrap: break-word; }
.guide-label { margin-bottom: 1rem; font-family: 'Space Mono', monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: var(--gold); }
.guide h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: #fff; }
.guide h2 { margin: 2.5rem 0 1rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.3px; color: rgba(255,255,255,0.95); }
.guide p, .guide li { margin: 0 0 1rem; font-size: 1rem; font-weight: 400; line-height: 1.75; color: var(--text); }
.guide ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.guide a:not(.guide-play) { color: var(--rose); text-decoration: underline; }
.guide-lede { font-size: 1.15rem; }
.guide-play { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 2rem; border-radius: 60px; background: var(--rose); color: var(--void); font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.guide-play:hover { background: var(--gold); }
.guide a:focus-visible, .guide-nav a:focus-visible, .guide-foot a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.guide-controls { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; font-size: 0.95rem; }
.guide-controls caption { padding-bottom: 0.5rem; text-align: left; font-size: 0.85rem; color: var(--text-dim); }
.guide-controls th, .guide-controls td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text); font-weight: 400; line-height: 1.5; }
.guide-controls thead th { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; }
.guide-controls tbody th { width: 45%; font-family: 'Space Mono', monospace; font-size: 0.85rem; color: #fff; }
.guide-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.5rem 2.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-dim); }
.guide-foot-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
@media (max-width: 768px) {
  .guide-nav, .guide-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
  .guide { padding: 2.5rem 1.25rem 3.5rem; }
}
