:root {
  --bg:          #11100c;
  --surface:     #1a1812;
  --surface-2:   #221f18;
  --border:      #2b261d;
  --text:        #ece7dc;
  --text-dim:    #ada491;   /* bumped from #8f8778 for WCAG AA */
  --text-mute:   #8a8372;   /* bumped from #6b665a for WCAG AA */
  --accent:      #e2ac2b;   /* official brand gold from SVG */
  --accent-hi:   #e8b84d;   /* toned down from #f9c26b */
  --official:    #e2ac2b;
  --press:       #9bb5d4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }

header { margin-bottom: 18px; }
h1.brand {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
h1.brand .wordmark { height: 38px; width: auto; display: block; }
h1.brand .sub {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
  padding-top: 6px;
}
.attribution {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.3px;
}
.meta { color: var(--text-dim); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.meta a { color: var(--accent); text-decoration: none; }
.meta a:hover { color: var(--accent-hi); text-decoration: underline; }

.rundown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.rundown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.rundown-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}
.rundown-meta {
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rundown-text {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.patch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #ff8a5c;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.patch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.patch-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff8a5c;
  display: block;
  margin-bottom: 2px;
}
.patch-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.patch-title a {
  color: var(--text);
  text-decoration: none;
}
.patch-title a:hover { color: var(--accent-hi); }
.patch-meta {
  font-size: 11px;
  color: var(--text-mute);
  white-space: nowrap;
  padding-top: 2px;
}
.patch-bullets {
  margin: 10px 0 8px;
  padding: 0 0 0 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.patch-bullets li {
  margin-bottom: 3px;
}
.patch-bullets li::marker {
  color: #ff8a5c;
}
.patch-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 2px;
}
.patch-link:hover { color: var(--accent-hi); }

.search {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  align-items: center;
}
.search input[type="search"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s;
}
.search input[type="search"]:focus {
  border-color: var(--accent);
}
.search input[type="search"]::placeholder {
  color: var(--text-mute);
}
.search .clear {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.search .clear:hover {
  background: rgba(226, 172, 43, 0.08);
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}
/* When the rail is absent (any section except All), stream takes full width. */
.layout:not(:has(.rail)) { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .rail { position: static; }
}

.section-head, .widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-head h2, .widget-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.widget-official .widget-head h2 { color: var(--official); }
.widget-press    .widget-head h2 { color: var(--press);    }

.freshness {
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stream .day { margin-bottom: 18px; }
.day-head {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin: 0 0 4px;
  padding: 0 0 3px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.day-head .count { color: var(--text-mute); font-size: 10px; font-weight: 500; }

.items { list-style: none; margin: 0; padding: 0; }
.items li {
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
}
.items li:last-child { border-bottom: none; }

/* Video rows: thumbnail on the left, text on the right. */
.items li.has-thumb {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  align-items: start;
}
.items li .thumb {
  display: block;
  position: relative;
  width: 148px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
  text-decoration: none;
}
.items li .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.items li .thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.items li .thumb:hover img { transform: scale(1.03); }
.items li .thumb:hover::after { opacity: 1; }
@media (max-width: 600px) {
  .items li.has-thumb {
    grid-template-columns: 1fr;
  }
  .items li .thumb { width: 100%; }
}

.row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  flex-wrap: wrap;
}
.badge, .chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  line-height: 1.4;
}
.badge-steam     { background: #1b2838; color: #8cc9f4; }
.badge-reddit    { background: #2d1a14; color: #ff9560; }
.badge-x,
.badge-twitter   { background: #ffffff; color: #000000; }
.badge-discord   { background: #1e1f3a; color: #a3b4ff; }
.badge-youtube   { background: #2a1414; color: #ff7a7a; }
.badge-gamespress{ background: #1b382c; color: #86efac; }
.badge-press     { background: #1f2d3d; color: #a9c0da; }
.badge-other     { background: var(--surface-2); color: var(--text-dim); }

.chip-post    { background: rgba(255, 255, 255, 0.07); color: var(--text-dim); }
.chip-reply   { background: rgba(226, 172, 43, 0.15); color: #f4c15a; }
.chip-comment { background: rgba(140, 201, 244, 0.15); color: #a9d8f5; }
.chip-video   { background: rgba(255, 110, 110, 0.15); color: #ffa0a0; }

.author { color: var(--text-dim); }
.time   { color: var(--text-mute); margin-left: auto; font-variant-numeric: tabular-nums; }

/* HEADLINE PROMINENCE */
.title {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}
.title:hover { color: var(--accent-hi); }

.widget .title { font-size: 14px; }

.snippet {
  margin: 3px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.4;
}

.parent-quote {
  margin: 4px 0 6px;
  padding: 2px 0 2px 10px;
  border-left: 3px solid var(--border);
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.4;
  font-style: italic;
  max-height: 3.2em;
  overflow: hidden;
}

.primary-nav {
  display: flex;
  gap: 2px;
  margin: 4px 0 18px;
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav a {
  padding: 10px 18px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 120ms, border-color 120ms;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 600px) {
  .primary-nav a { padding: 10px 12px; font-size: 13px; }
}

.view-toggle, .source-tabs {
  display: flex; gap: 6px; margin: 8px 0 12px;
  font-size: 12px; flex-wrap: wrap;
}
.view-toggle a, .source-tabs a {
  color: var(--text-mute);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.view-toggle a:hover, .source-tabs a:hover { color: var(--text-dim); }
.view-toggle a.active, .source-tabs a.active { color: var(--text); border-color: var(--accent); background: var(--surface-2); }

.empty { color: var(--text-mute); font-style: italic; font-size: 12px; margin: 2px 0 0; }

/* Resources tab */
.resources-intro {
  color: var(--text-dim); font-size: 13px; margin: 0 0 18px;
}
.resource-group { margin-bottom: 22px; }
.resource-cat {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px; font-weight: 700;
}
.resources-list { list-style: none; padding: 0; margin: 0; }
.resource-item { margin-bottom: 8px; }
.resource-item a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms, background 120ms;
}
.resource-item a:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.resource-title { font-weight: 600; font-size: 14px; }
.resource-desc { color: var(--text-dim); font-size: 12px; }

/* Site footer */
.site-footer {
  margin-top: 40px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.site-footer p { margin: 2px 0; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.mobile-strip { display: none; }

@media (max-width: 900px) {
  .mobile-strip {
    display: block;
    margin: 10px 0 14px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
  }
  .mobile-strip-patch {
    display: flex; flex-direction: column; gap: 2px;
    color: var(--text); text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .mobile-strip-patch .eyebrow {
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent);
  }
  .mobile-strip-patch .title { font-weight: 600; font-size: 14px; line-height: 1.3; }
  .mobile-strip-patch .meta { font-size: 11px; color: var(--text-mute); }

  .mobile-strip-items { list-style: none; padding: 0; margin: 0; }
  .mobile-strip-items li { margin: 0 0 6px; }
  .mobile-strip-items li:last-child { margin-bottom: 0; }
  .mobile-strip-items a {
    display: flex; align-items: center; gap: 8px;
    color: var(--text); text-decoration: none; font-size: 13px;
  }
  .mobile-strip-items .t {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .mobile-strip-items .time { color: var(--text-mute); font-size: 11px; white-space: nowrap; }
}

/* Rail flows with the page; Official stays pinned so it's always available
   while the Press widget and Discord card below scroll into reach. */
.rail { display: flex; flex-direction: column; gap: 14px; position: static; }
.widget-official { position: sticky; top: 24px; align-self: flex-start; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.widget .count { color: var(--text-mute); font-size: 10px; font-weight: 500; }
.widget .items li { padding: 7px 0; }

.community {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
}
.community .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.community .community-headline {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.community .community-body {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}
.community .community-cta {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: #11100c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 3px;
}
.community .community-cta:hover { background: var(--accent-hi); }
.community .community-disclosure {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-mute);
  line-height: 1.4;
}
