/* Shared styles for the static guide pages under /rules/. */
:root {
  --bg: #0a0a0b;
  --surface: #18191b;
  --text: #e6e6e6;
  --text-dim: #a1a1aa;
  --text-muted: #6a6a72;
  --red: #ff2a2a;
  --red-dim: #801515;
  --yellow: #ffcc00;
  --blue: #00f3ff;
  --green: #00ff66;
  --border: #2a2a2a;
  --display-font: 'Black Ops One', cursive;
  --body-font: 'Chakra Petch', sans-serif;
  --mono-font: 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.7;
  min-height: 100vh;
}
.container { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* Header — slim, matches the in-app landing top bar pattern */
header {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 204, 0, 0.08);
  background: linear-gradient(180deg, rgba(10,10,11,0.95), rgba(10,10,11,0.7));
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.logo a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--display-font);
  text-decoration: none;
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.logo .accent {
  color: var(--red);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(255, 42, 42, 0.5);
}
.header-inner nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-family: var(--display-font);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(145deg, var(--red), var(--red-dim));
  border: 2px solid var(--red);
  border-radius: 4px;
  min-height: 44px;
  transition: transform 0.18s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.18s cubic-bezier(0.33, 1, 0.68, 1);
}
.header-inner nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 42, 42, 0.4);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--mono-font);
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--text-muted); }

/* Hero */
.hero { padding: 2rem 0 3rem; text-align: center; }
h1 {
  font-family: var(--display-font);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
}
h1 .accent { color: var(--red); display: block; font-size: 1.5rem; margin-top: 0.5rem; }
.lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* CTA */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--display-font);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(145deg, var(--red), var(--red-dim)); color: white; border-color: var(--red); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 42, 42, 0.4); }
.btn-ghost { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: black; }

/* TOC */
.toc {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin: 2rem 0 3rem;
}
.toc-title {
  font-family: var(--display-font);
  font-size: 0.85rem;
  color: var(--yellow);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.toc ol { padding-left: 1.5rem; }
.toc li { margin-bottom: 0.5rem; }
.toc a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.toc a:hover { color: var(--blue); }

/* Sections */
section { margin: 3rem 0; scroll-margin-top: 2rem; }
h2 {
  font-family: var(--display-font);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.75rem;
  color: var(--text);
}
h3 {
  font-family: var(--display-font);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--yellow);
  letter-spacing: 1px;
}
p { color: var(--text-dim); margin-bottom: 1rem; }
strong { color: var(--text); }

ul, ol { color: var(--text-dim); margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.5rem; }

/* Card table */
.card-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.card-table th, .card-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.card-table th {
  background: rgba(0,0,0,0.4);
  font-family: var(--display-font);
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: var(--yellow);
}
.card-table tbody tr:hover { background: rgba(0, 243, 255, 0.03); }
.card-table td:first-child { color: var(--text); font-weight: 600; min-width: 180px; }

/* Callouts */
.callout {
  background: rgba(255, 204, 0, 0.05);
  border-left: 4px solid var(--yellow);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-dim);
}
.callout strong { color: var(--yellow); }
/* Prose links. The original single-page guide had none, so unstyled <a> in
   body copy fell back to the UA's default blue. */
.callout a,
section p a,
.faq-item p a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.callout a:hover,
section p a:hover,
.faq-item p a:hover { color: var(--text); }
.callout.danger { background: rgba(255, 42, 42, 0.05); border-left-color: var(--red); }
.callout.danger strong { color: var(--red); }
.callout.success { background: rgba(0, 255, 100, 0.05); border-left-color: var(--green); }
.callout.success strong { color: var(--green); }

/* FAQ */
.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

/* Final CTA */
.final-cta {
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--red);
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0 2rem;
}
.final-cta h2 { border: none; padding: 0; margin-bottom: 0.75rem; }
.final-cta p { margin-bottom: 1.5rem; }

/* Footer */
footer {
  background: rgba(0,0,0,0.7);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  text-align: center;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3rem;
}
footer a { color: var(--text); font-weight: bold; text-decoration: none; }
footer a:hover { color: var(--yellow); }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h1 .accent { font-size: 1.1rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1rem; }
  .toc { padding: 1rem 1.25rem; }
  .card-table { font-size: 0.85rem; }
  .card-table th, .card-table td { padding: 0.6rem 0.5rem; }
  .card-table td:first-child { min-width: 110px; }
}
