/* Shared ayuda walkthrough — Fantasy, Truco, future games. v20260906 */

:root {
  --fa-accent: #00b82e;
  --fa-svg-bg: #ffffff;
  --fa-svg-border: #e5e7eb;
  --fa-svg-text: #1a1a1a;
  --fa-svg-muted: #6b6b6b;
  --fa-svg-pitch: #0d5c2b;
  --fa-svg-accent: var(--fa-accent);
  --fa-svg-yellow: #c9a800;
  --fa-svg-hl: #fff8d6;
  --fa-svg-soft: #f8f9fa;
  --fa-svg-red: #b91c1c;
  --fa-page-bg: #EBF4FF;
}

body.dark-mode {
  --fa-svg-bg: #1e1e1e;
  --fa-svg-border: #3c4043;
  --fa-svg-text: #e8eaed;
  --fa-svg-muted: #a8a29e;
  --fa-svg-hl: #3d3420;
  --fa-svg-soft: #292a2d;
  --fa-page-bg: #12141a;
}

.fa-wrap--truco {
  --fa-accent: #0f7a2e;
  --fa-svg-accent: #0f7a2e;
}

html, body.fa-ayuda-page {
  background: var(--fa-page-bg);
  min-height: 100%;
}

.fa-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: #202124;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.dark-mode .fa-wrap { color: #e8eaed; }
body.dark-mode .fa-wrap p,
body.dark-mode .fa-wrap li { color: #a8a29e; }
body.dark-mode .fa-wrap th { background: #1e1e1e; color: #e8eaed; }
body.dark-mode .fa-wrap th,
body.dark-mode .fa-wrap td { border-color: #3c4043; }

.fa-wrap h1 { font-size: 28px; line-height: 1.2; font-weight: 800; margin: 0 0 12px; }
.fa-wrap h2 { font-size: 20px; line-height: 1.3; font-weight: 800; margin: 28px 0 10px; }
.fa-wrap p,
.fa-wrap li { color: #3c4043; font-size: 16px; }
.fa-wrap ul { margin: 0 0 12px; padding-left: 1.2rem; }
.fa-wrap ol.fa-ref-list { margin: 0 0 12px; padding-left: 1.2rem; }
.fa-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0 16px;
}
.fa-wrap th,
.fa-wrap td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}
.fa-wrap th { background: #f8f9fa; font-weight: 700; }

.fa-cta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 12px;
}
.fa-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}
.fa-cta a:hover { opacity: .9; color: #fff; }
.fa-cta a.fa-cta--accent {
  background: var(--fa-accent);
  color: #111;
}
.fa-cta a.fa-cta--accent:hover { color: #111; }

@media (min-width: 769px) {
  .fa-cta {
    flex-direction: row;
  }
  .fa-cta a {
    width: auto;
    flex: 1 1 auto;
  }
}

.fa-more { font-size: 16px; margin-top: 18px; }
.fa-more a { color: #b91c1c; font-weight: 600; }

.fa-walkthrough { margin: 20px 0 32px; }
.fa-walkthrough h2 { margin: 0 0 16px; }
.fa-step {
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}
.fa-step h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.fa-step svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 8px 0 10px;
}
.fa-step p { margin: 0; font-size: 15px; color: #3c4043; }
.fa-step-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--fa-accent);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
  text-align: center;
}
.fa-step-cta:hover { opacity: .92; color: #111; }

.fa-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0 20px;
}
.fa-ref-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b6b6b;
  margin: 0 0 16px;
}

.fa-step svg .fa-svg-card { fill: var(--fa-svg-bg); stroke: var(--fa-svg-border); }
.fa-step svg .fa-svg-card-active { fill: var(--fa-svg-bg); stroke: var(--fa-svg-accent); }
.fa-step svg .fa-svg-soft { fill: var(--fa-svg-soft); }
.fa-step svg .fa-svg-text { fill: var(--fa-svg-text); }
.fa-step svg .fa-svg-muted { fill: var(--fa-svg-muted); }
.fa-step svg .fa-svg-pitch { fill: var(--fa-svg-pitch); }
.fa-step svg .fa-svg-accent { fill: var(--fa-svg-accent); stroke: var(--fa-svg-accent); }
.fa-step svg .fa-svg-yellow { fill: var(--fa-svg-yellow); }
.fa-step svg .fa-svg-red { fill: var(--fa-svg-red); }
.fa-step svg .fa-svg-hl { fill: var(--fa-svg-hl); }
.fa-step svg .fa-svg-stroke { stroke: var(--fa-svg-border); }
.fa-step svg .fa-svg-stroke-text { stroke: var(--fa-svg-text); }
.fa-step svg .fa-svg-card-border { fill: var(--fa-svg-bg); stroke: var(--fa-svg-red); }

body.dark-mode .fa-step { background: #1e1e1e; border-color: #3c4043; }
body.dark-mode .fa-step h3 { color: #e8eaed; }
body.dark-mode .fa-step p { color: #a8a29e; }
body.dark-mode .fa-divider { border-top-color: #3c4043; }
body.dark-mode .fa-ref-heading { color: #a8a29e; }

@media (max-width: 768px) {
  .fa-wrap { padding: 20px 14px 40px; font-size: 16px; }
  .fa-wrap h1 { font-size: 24px; }
  .fa-wrap h2 { font-size: 18px; }
  .fa-wrap p,
  .fa-wrap li,
  .fa-more,
  .fa-cta a { font-size: 16px; }
  .fa-wrap table { font-size: 15px; }
  .fa-step { padding: 14px; }
  .fa-step h3 { font-size: 16px; }
  .fa-step p { font-size: 14px; }
}
