/* ============================================================
   Top Dog — Shared Site Shell Stylesheet
   Used by all marketing/help/legal pages (NOT the game /v3/).
   Dark theme, game gold accent #f2c94c.
   Auth pages (login/register) should reuse this file + the
   .site-header / .site-footer markup injected by /assets/shell.js.
   ============================================================ */

:root {
  --gold: #f2c94c;
  --gold-soft: rgba(242, 201, 76, 0.15);
  --gold-border: rgba(242, 201, 76, 0.4);
  --bg: #050812;
  --bg-2: #0a0f1f;
  --bg-3: #11182e;
  --ink: #d8e0ff;
  --ink-dim: #8b95b8;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1080px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: #fff; font-weight: 700; }
h1 { font-size: 2.1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-top: 2.2rem; }
h3 { font-size: 1.15rem; margin-top: 1.6rem; }
p, li { color: var(--ink); }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
}
kbd {
  display: inline-block;
  padding: 1px 7px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { flex: 1 0 auto; padding: 48px 0 72px; }
main .wrap { max-width: 860px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 24px;
  height: 62px; max-width: var(--max); margin: 0 auto; padding: 0 20px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .paw { font-size: 1.35rem; }
.brand span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
  color: var(--ink-dim); padding: 7px 12px; border-radius: 7px;
  font-size: 0.93rem; font-weight: 600; text-decoration: none;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); text-decoration: none; }
.site-nav a.active { color: var(--gold); }
.site-auth { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  font-weight: 700; font-size: 0.93rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-border); color: #fff; }
.btn-gold {
  background: var(--gold); color: #1a1405;
  box-shadow: 0 4px 18px rgba(242,201,76,0.25);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(242,201,76,0.35); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* mobile menu toggle */
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 36px 0;
  font-size: 0.9rem;
}
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink-dim); }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 0.82rem; }

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative; text-align: center; padding: 90px 20px 80px;
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(242,201,76,0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 14px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .tagline { font-size: 1.2rem; color: var(--ink-dim); max-width: 620px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .meta-bits { margin-top: 26px; color: var(--ink-dim); font-size: 0.9rem; }
.hero .meta-bits b { color: var(--gold); }

/* ---------- Sections / cards ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { text-align: center; margin: 0 0 8px; font-size: 1.9rem; }
.section .lead { text-align: center; color: var(--ink-dim); max-width: 640px; margin: 0 auto 40px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--gold-border); transform: translateY(-2px); }
.card .ico { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }

.shot {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
}

.cta-banner { text-align: center; padding: 70px 20px; }
.cta-banner h2 { margin: 0 0 10px; }
.cta-banner p { color: var(--ink-dim); margin: 0 0 26px; }

/* ---------- Content/doc pages ---------- */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.doc-side {
  position: sticky; top: 86px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.doc-side h4 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); }
.doc-side ul { list-style: none; margin: 0 0 10px; padding: 0; }
.doc-side li { margin: 2px 0; }
.doc-side a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink-dim); font-size: 0.92rem; }
.doc-side a:hover { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.doc-side a.active { background: var(--gold-soft); color: var(--gold); }
.doc-body { min-width: 0; }
.doc-body > :first-child { margin-top: 0; }
.crumbs { color: var(--ink-dim); font-size: 0.85rem; margin-bottom: 18px; }
.crumbs a { color: var(--ink-dim); }

table.tbl { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.callout { background: var(--bg-3); border-left: 3px solid var(--gold); border-radius: 6px; padding: 14px 18px; margin: 20px 0; }
.callout p { margin: 0; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px; margin: 12px 0; background: var(--bg-2); }
details summary { cursor: pointer; font-weight: 600; color: #fff; padding: 12px 0; }
details[open] summary { color: var(--gold); }
details p { margin: 0 0 14px; }

@media (max-width: 820px) {
  .doc { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .nav-toggle { display: block; order: 3; }
  .site-nav, .site-auth { display: none; }
  .site-header.open .site-nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 62px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; }
  .site-header.open .site-nav a { width: 100%; }
  .site-header.open .site-auth { display: flex; position: absolute; top: 62px; right: 12px; }
}
.site-ad-native{margin:2rem auto;max-width:960px;padding:0 18px;text-align:center}
