/* SocialReferee landing — Theme: PITCH & BRASS
   Palette + type stack mirror the URC predictor's "Pitch & Brass" theme:
   dark peat earth, worn leather panels, brass-gold accents, oxblood. */

:root {
  --bg:        #11150c;
  --bg-deep:   #07120b;
  --pitch:     #12351f;
  --panel:     #211a12;
  --panel-2:   #2b2418;
  --border:    #6a552d;
  --line:      #f1e6c8;
  --text:      #f7eddb;
  --muted:     #b9aa89;
  --muted-2:   #8d7f64;
  --accent:    #d2aa48;       /* brass */
  --accent-2:  #8b2f21;       /* oxblood */
  --leather:   #a8542c;
  --line-rgb:    241, 230, 200;
  --accent-rgb:  210, 170, 72;
  --oxblood-rgb: 139, 47, 33;

  --font-body:    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Roboto Slab", Rockwell, "Rockwell Extra Bold", Georgia, ui-serif, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
}
body {
  background:
    radial-gradient(circle at 12% -10%, rgba(var(--oxblood-rgb), .23), transparent 34rem),
    radial-gradient(circle at 86% 4%, rgba(var(--accent-rgb), .14), transparent 28rem),
    linear-gradient(140deg, var(--bg-deep) 0%, #101c10 48%, #24180f 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-color: rgba(var(--accent-rgb), .35); }
a:hover { text-decoration-color: var(--accent); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  position: relative;
}

/* Top-right floating toolbar — auth + theme toggle */
.topbar-controls {
  position: fixed;
  top: 14px; right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}
.theme-toggle {
  background: rgba(33, 26, 18, .85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: rgba(33, 26, 18, .95); }

/* Auth pill (signed in) + Sign-in link (signed out) */
.auth-controls { display: flex; align-items: center; }
.auth-controls .auth-signin {
  display: inline-flex; align-items: center;
  background: rgba(33, 26, 18, .85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.auth-controls .auth-signin:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg-deep);
}
.auth-controls .auth-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(33, 26, 18, .85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  height: 36px;
}
.auth-controls .auth-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--leather));
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 12px;
  overflow: hidden;
}
.auth-controls .auth-avatar img,
.auth-controls img.auth-avatar {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.auth-controls .auth-name {
  font-size: 12px; font-weight: 700;
  font-family: var(--font-body);
  max-width: 100px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.auth-controls .auth-signout {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 14px; padding: 2px 6px;
  border-radius: 999px;
  transition: color .12s, background .12s;
}
.auth-controls .auth-signout:hover { color: var(--accent-2); background: rgba(139, 47, 33, .15); }

/* Hero & brand — SVG paints the mark, CSS just sizes the image. */
.hero { margin-bottom: 36px; }
.brand { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.logo {
  width: 64px;
  height: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
img.logo { background: transparent; }
.brand-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
}
.tagline {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}

.lede {
  font-size: 17px;
  color: var(--text);
  max-width: 56ch;
  margin: 0 0 16px;
}
.status {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.status strong { color: var(--text); font-family: var(--font-display); }

/* CTA card — wood-panel meets scoreboard */
.cta-card { margin: 0 0 48px; }
.cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .10), rgba(var(--oxblood-rgb), .14)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(var(--line-rgb), .04), 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .12s ease, border-color .15s, box-shadow .15s;
}
.cta::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--leather), var(--accent-2));
  border-radius: 8px 0 0 8px;
}
.cta:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--line-rgb), .06), 0 12px 32px rgba(0, 0, 0, .42);
}
.cta-emoji { font-size: 32px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.cta-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.cta-sub { font-size: 13px; color: var(--muted); line-height: 1.55; }
.cta-arrow {
  font-size: 22px;
  color: var(--accent);
  font-family: var(--font-display);
  transition: transform .15s;
}
.cta:hover .cta-arrow { transform: translateX(4px); }

/* Planned-features list */
.planned h2 {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted-2);
  font-weight: 700;
  margin: 0 0 16px;
  position: relative;
  padding-left: 28px;
}
.planned h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.planned ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.planned li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: border-left-color .15s, transform .12s;
}
.planned li:hover { border-left-color: var(--leather); transform: translateX(2px); }
.planned li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.planned li span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* Footer */
footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer .contact { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
footer .meta {
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 540px) {
  main { padding: 50px 18px 32px; }
  .brand-text h1 { font-size: 24px; }
  .lede { font-size: 15px; }
  .cta { flex-wrap: wrap; padding: 16px; }
  .cta-emoji { font-size: 28px; }
  .cta-title { font-size: 15px; }
  .cta-sub { font-size: 12px; }
  .theme-toggle { top: 12px; right: 12px; font-size: 11px; padding: 6px 10px; }
}

/* ───────── Feature-page styles (chat / watch / fantasy / rules / strategy) ───── */

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  transition: opacity .15s;
}
.brand-link:hover { opacity: .85; }

.feature-hero { margin-bottom: 40px; }
.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.back-link:hover { border-bottom-color: var(--accent); }

.feature-section { margin-bottom: 40px; }
.feature-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  letter-spacing: -0.2px;
}

.feature-section .feature-list,
.feature-section .feature-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.feature-section .feature-steps { counter-reset: step; }
.feature-section .feature-list li,
.feature-section .feature-steps li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  position: relative;
}
.feature-section .feature-steps li {
  counter-increment: step;
  padding-left: 50px;
}
.feature-section .feature-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 14px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}
.feature-section li strong {
  display: inline;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
}

/* Knowledge-base cards (rules.html / strategy.html) */
.kb-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--leather);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.kb-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: -0.2px;
  border: none;
  padding: 0;
}
.kb-card p, .kb-card ul, .kb-card ol {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 8px 0;
}
.kb-card ul, .kb-card ol { padding-left: 22px; }
.kb-card li { margin-bottom: 4px; }
.kb-card strong { color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.kb-card em { color: var(--accent); font-style: italic; }

/* Mock chat preview (chat.html) */
.mock-chat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
}
.mock-chat-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.mock-chat-fixture { color: var(--accent); }
.mock-chat-line {
  display: flex; gap: 10px;
  padding: 4px 0;
  line-height: 1.55;
}
.mock-chat-line b {
  color: var(--muted);
  flex-shrink: 0;
  min-width: 90px;
  font-weight: 700;
  font-size: 12px;
}
.mock-chat-line.mine b { color: var(--accent); }
.mock-chat-line.system { font-style: italic; color: var(--muted); font-size: 12px; }
.mock-chat-line.system span { color: var(--muted-2); }
.mock-chat-input {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--muted-2);
  font-style: italic;
}

/* Fantasy scoring table */
.scoring-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.scoring-table th {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}
.scoring-table th:last-child { text-align: right; }
.scoring-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.scoring-table td:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

/* Planned-list link variant on landing */
.planned ul li {
  padding: 0;        /* link will provide padding */
}
.planned-link {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background .15s;
}
.planned-link::after {
  content: "→";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-display);
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.planned ul li:hover .planned-link::after { opacity: 1; transform: translateY(-50%) translateX(4px); }
.planned-link strong { color: var(--text); }
.planned-link span { color: var(--muted); }
