/* DOOMED NEWS — simple, dark and independent editorial identity. */
:root {
  --news-bg: #111317;
  --news-top: #090a0d;
  --news-panel: #191c22;
  --news-panel-2: #20242b;
  --news-text: #f0ede7;
  --news-muted: #979ca6;
  --news-line: rgba(240, 237, 231, .13);
  --news-line-strong: rgba(240, 237, 231, .24);
  --news-accent: #df6255;
  --news-accent-soft: rgba(223, 98, 85, .12);
  --news-studio: #a99af0;
  --news-salvo: #dd8437;
  --news-march: #cf584f;
  --news-leak: #67a7aa;
  --bg: var(--news-bg);
  --surface: var(--news-panel);
  --surface-2: var(--news-panel-2);
  --text: var(--news-text);
  --muted: var(--news-muted);
  --gold: var(--news-accent);
  --gold-bright: #ef8478;
  --line: var(--news-line);
}

body.news-page {
  background:
    radial-gradient(circle at 50% -220px, rgba(223, 98, 85, .1), transparent 460px),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--news-bg);
  background-size: auto, 100% 38px, auto;
  color: var(--news-text);
}

.news-page .game-switcher a.active {
  border-color: rgba(223, 98, 85, .5);
  background: var(--news-accent-soft);
  color: #ffaca3;
}

.news-page .journal-nav {
  border-bottom: 1px solid var(--news-line);
  background: rgba(9, 10, 13, .97);
  color: var(--news-text);
  backdrop-filter: none;
}

.news-page .journal-nav-inner { min-height: 68px; }
.news-page .brand { color: var(--news-text); letter-spacing: .1em; }
.news-page .brand b { color: var(--news-accent); }
.news-page .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 1px solid var(--news-line-strong);
  border-radius: 4px;
  background: #eeeae3;
  box-shadow: none;
}
.news-page .lang {
  border: 1px solid var(--news-line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--news-text);
}
.news-page .lang:hover { border-color: var(--news-accent); color: #ffaca3; }

.edition-bar {
  border-bottom: 1px solid var(--news-line);
  background: #14161b;
}
.edition-bar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #777d87;
  font: 700 8px/1.3 'JetBrains Mono', monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.edition-bar-inner strong { color: #d0d3da; }

.news-page .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 86px) 0;
  border-bottom: 1px solid var(--news-line-strong);
  background: transparent;
}
.news-page .hero::before,
.news-page .hero::after { content: none; }

.news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(42px, 8vw, 108px);
  align-items: center;
}
.news-page .eyebrow {
  color: var(--news-accent);
  font: 700 9px/1.4 'JetBrains Mono', monospace;
  letter-spacing: .17em;
}
.news-page .hero h1 {
  max-width: 680px;
  margin-top: 19px;
  color: var(--news-text);
  font: 700 clamp(3.8rem, 7vw, 6.8rem)/.84 'Space Grotesk', sans-serif;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.news-page .hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--news-accent);
  font: 500 .52em/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.04em;
  text-transform: none;
}
.news-hero-side {
  padding-left: clamp(22px, 4vw, 42px);
  border-left: 1px solid var(--news-line-strong);
}
.news-hero-side::before {
  content: "THE INDEPENDENT DEVELOPMENT DESK";
  display: block;
  margin-bottom: 15px;
  color: #747a85;
  font: 700 8px/1.4 'JetBrains Mono', monospace;
  letter-spacing: .13em;
}
.news-page .hero p {
  max-width: 560px;
  margin-top: 0;
  color: #b3b5ba;
  font-size: clamp(.92rem, 1.25vw, 1.03rem);
  line-height: 1.75;
}

.identity-strip {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--news-line);
  background: rgba(255, 255, 255, .018);
}
.identity-strip a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
  color: #a8abb2;
  font: 700 8px/1.25 'JetBrains Mono', monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.identity-strip a:nth-child(even) { border-right: 0; }
.identity-strip a:nth-last-child(-n + 2) { border-bottom: 0; }
.identity-strip a:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.identity-studio::before,
.identity-salvo::before,
.identity-march::before,
.identity-leak::before { content: ""; width: 6px; height: 6px; margin-right: 9px; background: currentColor; }
.identity-studio { color: var(--news-studio) !important; }
.identity-salvo { color: var(--news-salvo) !important; }
.identity-march { color: var(--news-march) !important; }
.identity-leak { color: var(--news-leak) !important; }

.news-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--news-line);
  background: var(--news-top);
  color: var(--news-text);
}
.news-ticker-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font: 700 8px/1.3 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.news-ticker strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin-left: -15px;
  background: var(--news-accent);
  color: #fff;
}
.news-ticker i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #a7d79c; }
.news-ticker span { color: #858b95; }

.news-page .filters {
  top: 68px;
  padding: 11px 0;
  border-top: 0;
  border-bottom: 1px solid var(--news-line);
  background: rgba(17, 19, 23, .96);
  backdrop-filter: blur(10px);
}
.news-page .filter-list { gap: 6px; }
.news-page .filter {
  border: 1px solid var(--news-line);
  border-radius: 3px;
  background: var(--news-panel);
  color: #9297a0;
}
.news-page .filter:hover { border-color: var(--news-line-strong); color: var(--news-text); }
.news-page .filter.active {
  border-color: var(--news-accent);
  background: var(--news-accent);
  color: #fff;
}
.news-page .sort-control label { color: #7d828c; }
.news-page .sort-control select {
  border: 1px solid var(--news-line);
  border-radius: 3px;
  background: var(--news-panel);
  color: var(--news-text);
}
.news-page .sort-control select:hover { border-color: var(--news-accent); }

.news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 110px;
}
.news-page .news-card,
.news-page .news-card:first-child {
  --card-accent: var(--news-studio);
  --card-accent-rgb: 169, 154, 240;
  position: relative;
  grid-column: span 6;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: 1px solid var(--news-line);
  border-radius: 4px;
  background: var(--news-panel);
  color: var(--news-text);
  box-shadow: none;
  isolation: isolate;
}
.news-page .news-card:first-child { grid-column: 1 / -1; min-height: 0; }
.news-page .news-card--salvo { --card-accent: var(--news-salvo); --card-accent-rgb: 221, 132, 55; }
.news-page .news-card--march { --card-accent: var(--news-march); --card-accent-rgb: 207, 88, 79; }
.news-page .news-card--leak { --card-accent: var(--news-leak); --card-accent-rgb: 103, 167, 170; }
.news-page .news-card::before,
.news-page .news-card::after { content: none; }

.news-card-visual,
.news-card:first-child .news-card-visual {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--news-line);
  background-color: #171a1f;
  isolation: isolate;
}
.news-card-visual::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: 0;
  background-color: #171a1f;
  background-image: var(--news-image);
  background-position: var(--news-position, center);
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(18px) saturate(.72);
  opacity: .28;
  transform: scale(1.08);
}
.news-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--news-image);
  background-position: var(--news-position, center);
  background-repeat: no-repeat;
  background-size: contain;
}
.news-card-visual > span {
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: auto;
  z-index: 3;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(9, 10, 13, .74);
  color: var(--card-accent);
  font: 700 8px/1 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.news-page .news-card-body,
.news-page .news-card--march .news-card-body,
.news-page .news-card--leak .news-card-body {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 0 0 auto;
  padding: clamp(25px, 3.5vw, 42px);
  background: var(--news-panel);
}
.news-page .news-card:not(:first-child) .news-card-body { padding: 25px; }

.card-series {
  margin-bottom: 16px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--news-line);
  color: var(--card-accent);
  font: 700 8px/1.3 'JetBrains Mono', monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.card-series span:last-child { color: #707680; }
.news-page .tags { margin-bottom: 12px; }
.news-page .tag {
  padding: 5px 7px;
  border: 1px solid rgba(var(--card-accent-rgb), .4);
  border-radius: 2px;
  background: rgba(9, 10, 13, .35);
  color: var(--card-accent);
}
.news-page .tag-pinned {
  border-color: var(--news-accent) !important;
  background: var(--news-accent) !important;
  color: #fff !important;
}

.news-page .news-card h2,
.news-page .news-card:not(:first-child) h2,
.news-page .news-card.news-card--march h2,
.news-page .news-card--leak h2 {
  max-width: 800px;
  color: var(--news-text);
  font: 600 clamp(2.2rem, 4vw, 4.1rem)/.98 'Space Grotesk', sans-serif;
  letter-spacing: -.055em;
  text-transform: none;
  text-shadow: none;
}
.news-page .news-card:not(:first-child) h2 { font-size: clamp(1.7rem, 2.7vw, 2.6rem); }
.news-page .news-summary,
.news-page .news-card--march .news-summary {
  max-width: 760px;
  color: #b1b4bb;
}
.news-page .news-details { border-top-color: var(--news-line); }
.news-page .news-details summary { color: #f08a7e; }
.news-page .news-full,
.news-page .news-card--march .news-full {
  border: 1px solid var(--news-line);
  border-radius: 3px;
  background: rgba(9, 10, 13, .9);
  backdrop-filter: none;
}
.news-page .news-full p,
.news-page .news-card--march .news-full p { color: #afb2b8; }
.news-page .meta,
.news-page .news-card--march .meta { color: #777d86; }

.news-page .reaction,
.news-page .discord,
.news-page .news-card--march .reaction,
.news-page .news-card--march .discord {
  border: 1px solid var(--news-line-strong);
  border-radius: 3px;
  background: rgba(9, 10, 13, .65);
  color: #aeb1b8;
}
.news-page .reaction:hover,
.news-page .reaction.selected,
.news-page .news-card--march .reaction:hover,
.news-page .news-card--march .reaction.selected {
  border-color: var(--news-accent);
  background: var(--news-accent-soft);
  color: #ffaca3;
}
.news-page .discord,
.news-page .news-card--march .discord {
  border-color: var(--news-accent);
  background: var(--news-accent);
  color: #fff;
}
.news-page .discord:hover,
.news-page .news-card--march .discord:hover { border-color: #f07b70; background: #f07b70; color: #fff; }

.news-page .empty {
  grid-column: 1 / -1;
  border-color: var(--news-line-strong);
  background: var(--news-panel);
  color: var(--news-muted);
}

/* Comments stay neutral and readable inside the newsroom. */
.news-page .comments-slot,
.news-page .news-card--march .comments-slot { border-top-color: var(--news-line); }
.news-page .comments-toggle,
.news-page .news-card--march .comments-toggle {
  border-color: var(--news-line-strong);
  background: rgba(9, 10, 13, .72);
  color: var(--news-text);
}
.news-page .comments-toggle:hover,
.news-page .news-card--march .comments-toggle:hover { border-color: var(--news-accent); background: var(--news-accent-soft); color: #fff; }
.news-page .comments-toggle-icon,
.news-page .comments-toggle::after,
.news-page .comments-toggle-count { color: #ef8a80; }
.news-page .comments-panel,
.news-page .news-card--march .comments-panel { border-color: var(--news-line); background: #13151a; color: var(--news-text); }
.news-page .comments-account,
.news-page .comment-item { border-color: var(--news-line); background: var(--news-panel); }
.news-page .comments-account-copy strong,
.news-page .comment-form label > span,
.news-page .comment-header strong { color: var(--news-text); }
.news-page .comments-account-copy span,
.news-page .comment-form-note,
.news-page .comment-state,
.news-page .comments-user-name span,
.news-page .comment-body { color: var(--news-muted); }
.news-page .comment-form input,
.news-page .comment-form select,
.news-page .comment-form textarea {
  border-color: var(--news-line-strong);
  background: #0d0f12;
  color: var(--news-text);
}
.news-page .comment-form input:focus,
.news-page .comment-form select:focus,
.news-page .comment-form textarea:focus { border-color: var(--news-accent); box-shadow: 0 0 0 3px var(--news-accent-soft); }
.news-page .comment-submit { border-color: var(--news-accent); background: var(--news-accent); color: #fff; }
.news-page .comment-submit:hover { border-color: #f07b70; background: #f07b70; color: #fff; }

.news-page footer {
  border-top: 1px solid var(--news-line-strong);
  border-image: none;
  background: var(--news-top);
  color: #747a84;
}
.news-page footer a { color: #ef8a80; }

@media (max-width: 900px) {
  .news-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-hero-side { max-width: 700px; padding: 25px 0 0; border-top: 1px solid var(--news-line-strong); border-left: 0; }
  .news-page .news-card,
  .news-page .news-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .news-page .journal-nav-inner { min-height: 62px; }
  .news-page .filters { position: relative; top: auto; }
  .edition-bar-inner span:last-child { display: none; }
  .news-page .hero { padding: 46px 0 42px; }
  .news-page .hero h1 { font-size: clamp(3.3rem, 17vw, 5.2rem); }
  .news-page .news-grid { grid-template-columns: 1fr; gap: 15px; padding: 23px 0 78px; }
  .news-page .news-card,
  .news-page .news-card:first-child {
    grid-column: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .news-page .news-card:first-child { min-height: 0; }
  .news-page .news-card-body,
  .news-page .news-card:not(:first-child) .news-card-body { padding: 22px 18px; }
  .news-page .news-card h2,
  .news-page .news-card:not(:first-child) h2,
  .news-page .news-card.news-card--march h2,
  .news-page .news-card--leak h2 { font-size: clamp(1.9rem, 9.4vw, 2.8rem); }
  .news-ticker-inner { gap: 13px; overflow: hidden; }
  .news-ticker span { overflow: hidden; text-overflow: ellipsis; }
  .news-page .actions { gap: 7px; }
  .news-page .discord { width: 100%; margin-left: 0; }
}

@media (max-width: 420px) {
  .news-page .brand { font-size: .57rem; letter-spacing: .07em; }
  .news-page .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .identity-strip { grid-template-columns: 1fr; }
  .identity-strip a,
  .identity-strip a:nth-child(even),
  .identity-strip a:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--news-line); }
  .identity-strip a:last-child { border-bottom: 0; }
  .news-page .hero h1 { font-size: clamp(3rem, 16.8vw, 4.45rem); }
  .news-page .news-card,
  .news-page .news-card:first-child { min-height: 0; }
  .news-card-visual > span { left: 13px; top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .identity-strip a,
  .news-page .filter { transition: none; }
}
