:root {
  color-scheme: dark;
  --page: #0d0907;
  --page-2: #17100c;
  --shell: 1280px;
  --panel: #241b14;
  --panel-top: #3a2716;
  --panel-deep: #17110d;
  --line: #674629;
  --line-strong: #9f6625;
  --text: #f4e4c7;
  --muted: #bda98b;
  --dim: #806f5b;
  --orange: #f6a21a;
  --orange-dark: #b85b16;
  --yellow: #ffd058;
  --green: #65d65b;
  --red: #d9472f;
  --blue: #46a5e8;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.46);
  --radius: 4px;
}

:root.light {
  color-scheme: light;
  --page: #ead9bd;
  --page-2: #d8bd90;
  --panel: #fff0d1;
  --panel-top: #c07020;
  --panel-deep: #f6dfb7;
  --line: #a26d30;
  --line-strong: #754919;
  --text: #25170f;
  --muted: #634d36;
  --dim: #826a4f;
  --shadow: 0 10px 24px rgba(84, 50, 17, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 18rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 0, #3b2111 0, var(--page) 36rem);
  color: var(--text);
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-top {
  background: #222222;
  border-bottom: 3px solid #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  width: min(var(--shell), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.wm-t {
  color: #ff8800;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     4px  4px 0 #000;
}

.wm-blog {
  color: #ffffff;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     4px  4px 0 #000;
}

.masthead-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #3a3a3a;
  border: 1px solid #4d4d4d;
  border-radius: 50px;
  padding: 0.3rem 0.75rem 0.3rem 1.1rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  transition: border-color 0.15s;
}

.masthead-search:focus-within {
  border-color: #666;
}

.masthead-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: #ccc;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.88rem;
  outline: none;
}

.masthead-search input::placeholder {
  color: #777;
}

.masthead-search button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.masthead-search button:hover {
  color: #ccc;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  background: #0d0d0d;
  border-top: 1px solid #2e2e2e;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.8rem 0.5rem;
  color: #5fa8d3;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  border: none;
  border-radius: 0;
  background: none;
  min-height: auto;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.donate-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.9rem;
  border: 2px solid #000;
  border-radius: 4px;
  background: linear-gradient(#ffb13b, #f07a12);
  color: #170b03;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  transition: transform 0.12s, filter 0.12s;
}

.donate-top-btn:hover,
.donate-top-btn:focus-visible,
.donate-top-btn.active {
  color: #000;
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.crew-bar {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55) 100%),
    #1c1008;
  border-top: 1px solid #0a0603;
  border-bottom: 2px solid #000;
}

.crew-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--shell), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.7rem 0;
}

.crew-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.crew-avatar {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #ff8800;
  flex-shrink: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #ff8800;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.crew-text {
  min-width: 0;
  line-height: 1.35;
}

.crew-text > strong {
  display: block;
  color: var(--orange);
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.crew-text p {
  margin: 0.1rem 0 0;
  color: #999;
  font-size: 0.8rem;
}

.crew-text p strong {
  color: #ddd;
  font-weight: 900;
}

.crew-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.crew-cta-hint {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.crew-btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  background: linear-gradient(180deg, #ff9e30 0%, #d95500 100%);
  color: #fff;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background 0.12s, box-shadow 0.12s;
}

.crew-btn:hover {
  background: linear-gradient(180deg, #ffb040 0%, #e86010 100%);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(38rem, 68vw, 58rem);
  overflow: hidden;
  border-top: 2px solid #111;
  border-bottom: 3px solid #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg,
      rgba(6, 4, 2, 0.96) 0%,
      rgba(6, 4, 2, 0.65) 22%,
      rgba(6, 4, 2, 0.08) 48%,
      transparent 68%
    );
}

.hero-copy {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--shell), calc(100% - 2rem));
  z-index: 1;
  padding: 0 0 2.8rem;
}

.hero-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  background: var(--orange);
  color: #1a0800;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-copy h1 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -1px;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     5px  5px 0 rgba(0, 0, 0, 0.6);
}

.hero-desc {
  margin: 0;
  color: #bbb;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  letter-spacing: 0.2px;
}

.page {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) 19rem;
  gap: 0.75rem;
  width: min(var(--shell), calc(100% - 1rem));
  margin: 0.85rem auto 1.4rem;
  align-items: start;
}

.main-column,
.left-rail,
.right-rail {
  display: grid;
  gap: 0.75rem;
}

.module,
.portal-panel {
  border: 1px solid #100905;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(246, 162, 26, 0.06);
  overflow: hidden;
}

.module {
  padding: 0.75rem;
}

.module h2,
.panel-title h2 {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module h2 {
  color: var(--yellow);
  font-size: 1.25rem;
  text-shadow: 1px 1px 0 #000;
}

.module p,
.media-card p,
.tile-copy p,
.latest-list p {
  color: var(--muted);
}

.join-box {
  background:
    linear-gradient(180deg, rgba(246, 162, 26, 0.2), transparent 7rem),
    var(--panel);
}

.cta {
  display: block;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid #301706;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffd35a, var(--orange) 52%, var(--orange-dark));
  color: #241006;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.feed-box ul,
.calendar-box ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0.7rem 0 0;
  list-style: none;
}

.feed-box a {
  display: block;
  color: #f4d197;
  font-weight: 800;
}

.panel-title,
.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 4px,
      rgba(0, 0, 0, 0.07) 4px,
      rgba(0, 0, 0, 0.07) 8px
    ),
    linear-gradient(180deg, #f09b28 0%, #c05718 50%, #8c3410 100%);
  border-bottom: 2px solid #1b0d06;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.module > .module-title {
  margin: -0.75rem -0.75rem 0.75rem;
}

.panel-title h2,
.module-title h2 {
  color: #fff0b2;
  font-size: 1.3rem;
  text-shadow: 2px 2px 0 #4b1a06;
}

.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.panel-links a,
.module-title a,
.filter {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: #ffe1a2;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.7rem;
}

.tile,
.media-card {
  border: 1px solid #100905;
  border-radius: var(--radius);
  background: var(--panel-deep);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.tile:hover,
.media-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tile.big {
  display: grid;
  grid-template-rows: auto 1fr;
}

.thumb,
.cover {
  min-height: 13rem;
  border-bottom: 1px solid #0b0705;
}

.tile.big .thumb {
  min-height: 22rem;
}

.terminal-thumb,
.cover-one {
  background:
    linear-gradient(135deg, rgba(101, 214, 91, 0.76), transparent 48%),
    repeating-linear-gradient(90deg, #101f14 0 1rem, #0a150e 1rem 2rem);
}

.api-thumb,
.cover-four {
  background:
    radial-gradient(circle at 72% 28%, rgba(70, 165, 232, 0.8), transparent 4.5rem),
    linear-gradient(135deg, #163245, #18100b);
}

.android-thumb,
.cover-three {
  background:
    radial-gradient(circle at 50% 40%, rgba(246, 162, 26, 0.7), transparent 5rem),
    linear-gradient(135deg, #21140c, #381818);
}

.cover-two {
  background:
    linear-gradient(135deg, rgba(217, 71, 47, 0.72), transparent 50%),
    repeating-linear-gradient(45deg, #111 0 1rem, #241913 1rem 2rem);
}

.tile-copy,
.media-card {
  padding: 0.7rem;
}

.tile-copy h3,
.media-card h3,
.latest-list h3,
.module article h3 {
  margin: 0.35rem 0 0;
  color: #fff2c8;
  font-family: Arial, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.tile.big h3 {
  font-size: 1.2rem;
}

.tile-copy strong,
.latest-list span:not(.rank) {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
}

.badge {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.7rem;
}

.cover {
  min-height: 14rem;
}

.art-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.7rem;
}

.art-cell {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 12rem;
  border: 1px solid #100905;
  border-radius: var(--radius);
  overflow: hidden;
  background: #09060400;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.art-cell:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cell-img {
  width: 100%;
  min-height: 9rem;
}

.cell-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  background: rgba(0, 0, 0, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cell-tag {
  color: #fff0b2;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 1rem;
  text-shadow: 1px 1px 0 #000;
  text-transform: uppercase;
}

.cell-count {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.a1 .cell-img { background: linear-gradient(150deg, #f6a21a 0%, #7d3200 55%, #150900 100%); }
.a2 .cell-img { background: linear-gradient(150deg, #46a5e8 0%, #0b3358 55%, #030b12 100%); }
.a3 .cell-img { background: linear-gradient(150deg, #65d65b 0%, #174d12 55%, #030e03 100%); }
.a4 .cell-img { background: linear-gradient(150deg, #d9472f 0%, #620f07 55%, #110403 100%); }
.a5 .cell-img { background: linear-gradient(150deg, #ffd058 0%, #7d4e00 55%, #150d00 100%); }
.a6 .cell-img { background: linear-gradient(150deg, #9e66ff 0%, #42148c 55%, #0b0418 100%); }

.search-line {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.7rem 0;
}

.search-line label {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.search-line input {
  min-height: 2.15rem;
  border: 1px solid #0d0805;
  border-radius: var(--radius);
  background: #120d0a;
  color: var(--text);
  padding: 0.45rem 0.6rem;
  outline: none;
}

:root.light .search-line input {
  background: #fff7df;
}

.filter {
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: #231208;
  color: var(--yellow);
}

.latest-list {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  margin: 0;
  list-style: none;
}

.post-card {
  display: grid;
  grid-template-columns: 2.5rem 7rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem;
  border: 1px solid #0d0805;
  border-radius: var(--radius);
  background: var(--panel-deep);
  align-items: stretch;
}

.post-card-thumb {
  display: block;
  border-radius: calc(var(--radius) - 2px);
  min-height: 5.5rem;
  background-color: var(--panel-deep);
  background-size: cover;
  background-position: center;
  border: 1px solid #1a1008;
  flex-shrink: 0;
}

.post-card-thumb--empty {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 5px,
      rgba(255,162,26,0.05) 5px, rgba(255,162,26,0.05) 10px
    ),
    #100d08;
}

.post-card:hover {
  border-color: var(--line-strong);
  background: #211812;
}

.post-card[hidden] {
  display: none;
}

.rank {
  color: var(--orange);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  text-align: center;
}

.latest-list h3 {
  margin-top: 0;
}

.latest-list p {
  margin: 0.25rem 0;
}

.empty-state {
  margin: 0 0.7rem 0.7rem;
  padding: 0.8rem;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.news-box article {
  padding: 0.7rem 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-box article:last-child {
  border-bottom: 0;
}

.calendar-box li {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: 0.5rem;
  color: var(--muted);
}

.calendar-box time {
  color: var(--orange);
  font-weight: 900;
}

.audio-box {
  display: grid;
  gap: 0.5rem;
}

.audio-box .module-title {
  margin-bottom: 0;
}

.audio-box button {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid #0d0805;
  border-radius: var(--radius);
  background: var(--panel-deep);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.audio-box button span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.profile-links a {
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  background: var(--panel-deep);
  color: var(--yellow);
  font-weight: 900;
}

/* ═══════════════════════════════════════
   PINNED POST — "Best of the Month" style
═══════════════════════════════════════ */
.pinned-card {
  position: relative;
  display: block;
  min-height: 24rem;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s;
}

.pinned-card:hover {
  filter: brightness(1.06);
}

.pinned-card .pinned-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.pinned-stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.28rem 0.75rem;
  background: var(--orange);
  color: #1a0600;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.pinned-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 3.5rem 1.5rem 1.5rem;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.97) 0%,
    rgba(0, 0, 0, 0.82) 40%,
    rgba(0, 0, 0, 0.3) 72%,
    transparent 100%
  );
}

.pinned-overlay .badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
}

.pinned-overlay h3 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  line-height: 0.93;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     4px  4px 0 rgba(0, 0, 0, 0.5);
}

.pinned-overlay p {
  margin: 0 0 0.9rem;
  color: #bbb;
  font-size: 0.85rem;
  max-width: 56rem;
  line-height: 1.5;
}

.pinned-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pinned-meta {
  color: var(--dim);
  font-size: 0.78rem;
}

.pinned-read {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ff9e30, #d95500);
  color: #fff;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.12s;
}

.pinned-read:hover {
  background: linear-gradient(180deg, #ffb040, #e86010);
}

/* ═══════════════════════════════════════
   MY STACK panel
═══════════════════════════════════════ */
.stack-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stack-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green  { background: var(--green);  box-shadow: 0 0 5px var(--green); }
.dot-blue   { background: var(--blue);   box-shadow: 0 0 5px var(--blue); }
.dot-orange { background: var(--orange); box-shadow: 0 0 5px var(--orange); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 5px var(--yellow); }
.dot-purple { background: #9e66ff;       box-shadow: 0 0 5px #9e66ff; }

/* ═══════════════════════════════════════
   BLOG STATS panel
═══════════════════════════════════════ */
.stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.stat-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.4rem;
  border: 1px solid #100905;
  border-radius: var(--radius);
  background: var(--panel-deep);
  text-align: center;
}

.stat-num {
  color: var(--orange);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.stat-list span:not(.stat-num) {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ═══════════════════════════════════════
   DONATE panel
═══════════════════════════════════════ */
.donate-box p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.1rem 0 0.8rem;
}

.donate-options {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.donate-btn {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: filter 0.12s;
}

.donate-btn:hover {
  filter: brightness(1.12);
}

.donate-coffee {
  background: linear-gradient(180deg, #ffd35a, var(--orange) 52%, var(--orange-dark));
  color: #1a0800;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.donate-momo {
  background: linear-gradient(180deg, #cc44aa, #8b1a6e);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.donate-thanks {
  color: var(--dim) !important;
  font-size: 0.75rem !important;
  text-align: center;
  margin: 0 !important;
}

/* ═══════════════════════════════════════
   HOT TAGS panel
═══════════════════════════════════════ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border: 1px solid #1d1208;
  border-radius: 50px;
  background: var(--panel-deep);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.tag-pill:hover {
  background: #2a1a0e;
  color: var(--yellow);
  border-color: var(--orange-dark);
}

.tag-hot {
  background: rgba(246, 162, 26, 0.12);
  color: var(--orange);
  border-color: var(--orange-dark);
}

.tag-hot:hover {
  background: rgba(246, 162, 26, 0.22);
}

/* ═══════════════════════════════════════
   FOOTER — Newgrounds style
═══════════════════════════════════════ */
.site-footer {
  position: relative;
  margin-top: 1rem;
  background-color: #13101a;
  background-image: url('assets/footer-bg.png');
  background-repeat: repeat;
  background-size: 140px;
  background-position: bottom center;
  border-top: 3px solid #000;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(16, 12, 24, 0.92) 0%,
    rgba(10, 8, 16, 0.96) 60%,
    rgba(4, 3, 8, 0.98) 100%
  );
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Top bar: FEATURED CONTENT + tabs */
.footer-top {
  border-bottom: 1px solid #1e1828;
}

.footer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1a1428;
}

.footer-featured-title {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaaaaa;
}

.footer-featured-title span {
  color: var(--orange);
}

.footer-tabs {
  display: flex;
  border: 1px solid #2a2035;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.footer-tabs a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  background: #1c1828;
  color: #bbb;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  border-right: 1px solid #2a2035;
  transition: background 0.12s, color 0.12s;
}

.footer-tabs a:last-child { border-right: none; }

.footer-tabs a:hover {
  background: #2a2438;
  color: #fff;
}

.ftab-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Featured items grid */
.footer-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #1a1428;
  border-top: none;
}

.footer-featured-item {
  padding: 0.55rem 0.85rem;
  border-right: 1px solid #1a1428;
  border-bottom: 1px solid #1a1428;
}

.footer-featured-item:nth-child(3n) { border-right: none; }
.footer-featured-item:nth-child(n+4) { border-bottom: none; }

.footer-featured-item a {
  display: block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
  transition: color 0.1s;
}

.footer-featured-item a:hover { color: var(--yellow); }

.footer-featured-item span {
  display: block;
  color: #666;
  font-size: 0.76rem;
  line-height: 1.35;
}

/* ── Nav columns */
.footer-nav {
  padding: 2rem 0 1.5rem;
}

.footer-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #1e1828;
  color: #fff;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: var(--orange);
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  transition: color 0.1s;
}

.footer-col a:hover { color: var(--yellow); }

/* ── Bottom bar */
.footer-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 1rem 1.5rem;
  border-top: 1px solid #1a1428;
}

.footer-copy {
  margin: 0 0 0.4rem;
  color: #555;
  font-size: 0.78rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-legal a {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-legal a:hover { color: var(--yellow); }
.footer-legal span { color: #333; }

@media (max-width: 1080px) {
  .footer-nav-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-featured-item:nth-child(3n) { border-right: 1px solid #1a1428; }
  .footer-featured-item:nth-child(2n) { border-right: none; }
  .footer-featured-item:nth-child(n+4) { border-bottom: 1px solid #1a1428; }
  .footer-featured-item:nth-child(n+5) { border-bottom: none; }

  .page {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }

  .left-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-column {
    grid-column: 1;
  }
}

@media (max-width: 860px) {
  .masthead {
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    padding: 0.7rem 0;
  }

  .masthead-search {
    max-width: 100%;
  }

  .primary-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .primary-nav a {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
  }

  .page {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-strip,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-strip .big {
    grid-column: 1 / -1;
  }

  .art-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-cell {
    min-height: 10rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .footer-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-tabs {
    flex-wrap: wrap;
    width: 100%;
  }

  .footer-nav-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .crew-bar-inner {
    gap: 1rem;
  }

  .crew-cta-hint {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .crew-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .crew-cta {
    align-items: flex-start;
    width: 100%;
  }

  .crew-btn {
    width: 100%;
    text-align: center;
  }

  .masthead {
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
  }
  .masthead-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .brand-wordmark {
    font-size: 2.4rem;
  }

  .hero-banner {
    min-height: clamp(26rem, 55vw, 38rem);
  }

  .hero-copy {
    padding-bottom: 1.8rem;
  }

  .left-rail,
  .right-rail,
  .feature-strip,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .art-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-line {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 2.5rem 5.5rem 1fr;
  }

  .post-card-thumb {
    min-height: 4.5rem;
  }
}

/* ── Back to top ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--panel-top);
  border: 2px solid var(--line-strong);
  color: var(--orange);
  font-size: 1rem;
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
  transform: translateY(-2px);
}



/* Topic post sections */
.topic-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.7rem;
}

.topic-post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid #100905;
  border-radius: var(--radius);
  background: var(--panel-deep);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.topic-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.topic-post-card--big {
  grid-column: span 2;
}

.topic-post-thumb {
  min-height: 12rem;
  background-color: #100d08;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #0b0705;
}

.topic-post-card--big .topic-post-thumb {
  min-height: 18rem;
}

.topic-post-thumb--empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(255,162,26,0.06) 6px, rgba(255,162,26,0.06) 12px),
    linear-gradient(135deg, #15100c, #26190f);
  color: var(--orange);
  font-family: 'Anton', Impact, sans-serif;
  text-transform: uppercase;
}

.topic-post-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem;
}

.topic-post-copy .badge {
  align-self: flex-start;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
}

.topic-post-copy h3 {
  margin: 0;
  color: #fff2c8;
  font-family: Arial, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.22;
}

.topic-post-card--big h3 {
  font-size: 1.18rem;
}

.topic-post-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.topic-post-copy strong {
  margin-top: auto;
  color: var(--orange);
  font-size: 0.74rem;
  line-height: 1.35;
}

.topic-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  color: var(--dim);
  background: var(--panel-deep);
  border: 1px dashed var(--line);
}

/* Category archive */
.archive-shell {
  width: min(var(--shell), calc(100% - 1rem));
  margin: 0.85rem auto 1.4rem;
}

.blog-discovery {
  margin-bottom: 0.85rem;
  overflow: hidden;
  border: 1px solid #060606;
  border-radius: var(--radius);
  background: rgba(13, 8, 9, 0.95);
  box-shadow: var(--shadow);
}

.blog-result-summary {
  grid-column: 1 / -1;
  margin: 0.05rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid #292426;
  color: #c7d2d8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.blog-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, auto);
  gap: 0.65rem 1rem;
  align-items: end;
  padding: 0.8rem 0.95rem 0.9rem;
}

.blog-filter-group,
.blog-sort-control {
  display: grid;
  gap: 0.42rem;
}

.blog-filter-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.blog-category-chip {
  --chip-color: var(--orange);
  appearance: none;
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid #3b3437;
  border-radius: 3px;
  background: linear-gradient(#20272c, #11161a);
  color: #d8d4d6;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.blog-category-chip i {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow: 0 0 0.55rem color-mix(in srgb, var(--chip-color) 55%, transparent);
}

.blog-category-chip:hover {
  border-color: var(--chip-color);
  color: #fff;
  transform: translateY(-1px);
}

.blog-category-chip:focus-visible,
.blog-sort-select-wrap select:focus-visible {
  outline: 2px solid var(--chip-color, var(--orange));
  outline-offset: 2px;
}

.blog-category-chip.active {
  border-color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 16%, #11161a);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--chip-color), 0 0 0.85rem color-mix(in srgb, var(--chip-color) 16%, transparent);
}

.chip-all { --chip-color: var(--yellow); }
.chip-tech { --chip-color: var(--green); }
.chip-finance { --chip-color: var(--blue); }
.chip-other { --chip-color: var(--orange); }

.blog-sort-control {
  min-width: 11rem;
}

.blog-sort-select-wrap {
  position: relative;
  display: block;
}

.blog-sort-select-wrap select {
  width: 100%;
  min-height: 2.25rem;
  appearance: none;
  border: 1px solid #010101;
  border-radius: 3px;
  background-color: #9aa8ae;
  background-image: linear-gradient(#d7e0e4, #9aa8ae);
  color: #0b0f11;
  color-scheme: light;
  cursor: pointer;
  padding: 0.45rem 2.1rem 0.45rem 0.72rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 0 rgba(0, 0, 0, 0.55);
}

.blog-sort-select-wrap select option {
  background: #edf2f5;
  color: #0b0f11;
  font-weight: 700;
}

.blog-sort-select-wrap i {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

.blog-sort-select-wrap select:hover {
  border-color: var(--orange);
}

:root.light .blog-discovery {
  border-color: var(--line);
  background: var(--panel);
}

:root.light .blog-result-summary {
  border-top-color: var(--line);
  color: #20292e;
}

:root.light .blog-category-chip,
:root.light .blog-sort-select-wrap select {
  border-color: var(--line);
  color: #11161a;
}

:root.light .blog-sort-select-wrap select {
  background-color: #d7e0e4;
  background-image: linear-gradient(#f7f9fa, #d7e0e4);
}

:root.light .blog-sort-select-wrap select option {
  background: #fff;
  color: #11161a;
}

:root.light .blog-category-chip.active {
  background: color-mix(in srgb, var(--chip-color) 18%, #edf2f5);
  color: #11161a;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list .topic-post-card {
  height: 100%;
}

.archive-list .topic-post-thumb {
  min-height: 11rem;
}

.archive-empty {
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

.archive-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .topic-post-grid,
  .archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-post-card--big {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .topic-post-grid,
  .archive-list {
    grid-template-columns: 1fr;
  }

  .blog-filter-bar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .blog-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-category-chip {
    justify-content: center;
  }

  .blog-sort-control {
    min-width: 0;
  }
}

/* === Game-inspired cool palette overrides === */
:root {
  color-scheme: dark;
  --page: #030303;
  --page-2: #0d0809;
  --panel: #242021;
  --panel-top: #303a40;
  --panel-deep: #171314;
  --line: #3b3437;
  --line-strong: #56636b;
  --text: #f4f4f4;
  --muted: #a7a0a5;
  --dim: #7e777d;
  --orange: #ff9f23;
  --orange-dark: #e87916;
  --yellow: #ffd35d;
  --green: #53f52c;
  --red: #e81918;
  --blue: #64c7ff;
  --purple: #9a40ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

:root.light {
  color-scheme: light;
  --page: #d9e1e6;
  --page-2: #c7d1d7;
  --panel: #f2f5f7;
  --panel-top: #8fa0a7;
  --panel-deep: #e7edf1;
  --line: #9aa8ae;
  --line-strong: #56636b;
  --text: #11161a;
  --muted: #303a40;
  --dim: #66757c;
  --orange: #e87916;
  --orange-dark: #c75e10;
  --yellow: #ff9f23;
  --green: #2ea84b;
  --red: #c92d2d;
  --blue: #1678a8;
  --purple: #7448b8;
  --shadow: 0 12px 28px rgba(48, 58, 64, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

body {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.18) 18%, rgba(0, 0, 0, 0.1) 82%, rgba(0, 0, 0, 0.9) 100%),
    radial-gradient(circle at 20% 30%, rgba(232, 25, 24, 0.16), transparent 20rem),
    radial-gradient(circle at 83% 30%, rgba(83, 245, 44, 0.13), transparent 18rem),
    radial-gradient(circle at 86% 72%, rgba(154, 64, 255, 0.12), transparent 18rem),
    #030303;
}

:root.light body {
  background:
    linear-gradient(90deg, rgba(48, 58, 64, 0.28), transparent 22%, transparent 78%, rgba(48, 58, 64, 0.28)),
    linear-gradient(180deg, #e8eef2 0%, #d9e1e6 100%);
}

.site-top {
  background: linear-gradient(180deg, #151a1e 0%, #050303 100%);
  border-bottom-color: #000;
}

.masthead,
.module,
.portal-panel {
  border-color: #060606;
  background: rgba(13, 8, 9, 0.94);
  box-shadow: var(--shadow);
}

:root.light .masthead,
:root.light .module,
:root.light .portal-panel {
  background: var(--panel);
  border-color: var(--line);
}

.brand-wordmark {
  letter-spacing: 0;
}

.wm-t {
  color: var(--orange);
}

.wm-blog {
  color: #f4f4f4;
}

:root.light .wm-blog {
  color: #11161a;
}

.masthead-search,
.search-line input {
  border-color: #010101;
  background: #111318;
  color: var(--text);
}

:root.light .masthead-search,
:root.light .search-line input {
  background: #f9fbfc;
  border-color: var(--line);
}

.masthead-search input {
  color: var(--text);
}

.masthead-search input::placeholder {
  color: var(--dim);
}

.masthead-search button,
.donate-top-btn,
.cta,
.donate-btn,
.pinned-read,
#back-to-top {
  border-color: #050505;
  background: linear-gradient(#ffb145, #e87916);
  color: #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.primary-nav {
  background: #11161a;
  border-top-color: #2e363b;
}

:root.light .primary-nav {
  background: #cbd5da;
  border-top-color: #a9b6bd;
}

.primary-nav a {
  color: var(--orange);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  color: #fff;
  background: #20272c;
}

:root.light .primary-nav a:hover,
:root.light .primary-nav a:focus-visible,
:root.light .primary-nav a.active {
  color: #11161a;
  background: #b8c8ce;
}

.hero-banner {
  border-color: #060606;
  background: #111318;
}

.hero-banner::after {
  background:
    linear-gradient(0deg, rgba(3, 3, 3, 0.96) 0%, rgba(3, 3, 3, 0.68) 30%, rgba(3, 3, 3, 0.15) 62%, transparent 80%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.72) 0%, transparent 58%);
}

.pinned-stamp {
  border: 1px solid #010101;
  background: linear-gradient(#b8c8ce, #8fa0a7);
  color: #030303;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.48);
}

.module h2 {
  color: #d5e5ec;
}

:root.light .module h2 {
  color: #11161a;
}

.panel-title,
.module-title {
  background: linear-gradient(#56636b 0%, #303a40 46%, #171b1f 100%);
  border-bottom-color: #000;
}

:root.light .panel-title,
:root.light .module-title {
  background: linear-gradient(#aebdc4 0%, #8fa0a7 48%, #66757c 100%);
  border-bottom-color: #56636b;
}

.panel-title h2,
.module-title h2 {
  color: #fff;
  text-shadow: 1px 2px 0 #000;
}

.panel-links a,
.module-title a,
.filter,
.profile-links a {
  border-color: #050505;
  background: linear-gradient(#20272c, #11161a);
  color: var(--orange);
}

:root.light .panel-links a,
:root.light .module-title a,
:root.light .filter,
:root.light .profile-links a {
  background: #edf2f5;
  border-color: var(--line);
  color: #1678a8;
}

.join-box {
  background:
    linear-gradient(180deg, rgba(100, 199, 255, 0.12), transparent 7rem),
    var(--panel);
}

.topic-post-card,
.tile,
.media-card,
.post-card,
.stat-list li,
.audio-box button,
.tag-pill,
.archive-empty,
.topic-empty {
  border-color: #3b3437;
  background: #171314;
}

:root.light .topic-post-card,
:root.light .tile,
:root.light .media-card,
:root.light .post-card,
:root.light .stat-list li,
:root.light .audio-box button,
:root.light .tag-pill,
:root.light .archive-empty,
:root.light .topic-empty {
  background: var(--panel-deep);
  border-color: var(--line);
}

.topic-post-card:hover,
.tile:hover,
.media-card:hover,
.post-card:hover {
  border-color: #56636b;
  background: #2e292a;
}

.tile-copy h3,
.media-card h3,
.latest-list h3,
.module article h3,
.topic-post-copy h3 {
  color: #fff;
}

.tile-copy strong,
.latest-list span:not(.rank),
.topic-post-copy strong,
.feed-box a,
.calendar-box time,
.stat-num {
  color: var(--blue);
}

.feed-box a:hover,
.tag-pill:hover,
.footer-col a:hover,
.footer-featured-item a:hover {
  color: var(--green);
}

.tag-hot {
  border-color: var(--blue);
  background: rgba(100, 199, 255, 0.11);
  color: var(--blue);
}

.topic-post-thumb--empty,
.post-card-thumb--empty,
.related-card-no-img,
.cover-one,
.cover-two,
.cover-three,
.cover-four,
.terminal-thumb,
.api-thumb,
.android-thumb {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #151a22, #25292f);
  color: #98a8ae;
}

.a1 .cell-img { background: linear-gradient(150deg, #64c7ff 0%, #15384b 55%, #05080b 100%); }
.a2 .cell-img { background: linear-gradient(150deg, #53f52c 0%, #174d12 55%, #030e03 100%); }
.a3 .cell-img { background: linear-gradient(150deg, #9a40ff 0%, #42148c 55%, #0b0418 100%); }
.a4 .cell-img { background: linear-gradient(150deg, #e81918 0%, #5a0808 55%, #100202 100%); }
.a5 .cell-img { background: linear-gradient(150deg, #ffd35d 0%, #805d13 55%, #121006 100%); }
.a6 .cell-img { background: linear-gradient(150deg, #b8c8ce 0%, #303a40 55%, #06080a 100%); }

.pinned-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.82) 40%, rgba(0, 0, 0, 0.3) 72%, transparent 100%);
}

.site-footer {
  background-color: #09090d;
}

.site-footer::before {
  background: linear-gradient(180deg, rgba(9, 9, 13, 0.93) 0%, rgba(5, 5, 8, 0.98) 100%);
}

.footer-featured-title span,
.footer-featured-item a,
.footer-col a,
.footer-legal a {
  color: var(--orange);
}

.footer-tabs,
.footer-featured-grid,
.footer-featured-item,
.footer-col h3,
.footer-bottom {
  border-color: #2a2f38;
}

.footer-tabs a {
  background: #151a22;
  border-right-color: #2a2f38;
}

.footer-tabs a:hover {
  background: #25292f;
}
/* === End game-inspired cool palette overrides === */

/* === Preserve original header and image labels === */
.site-top {
  background: #222222;
  border-bottom: 3px solid #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.site-top .masthead {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-wordmark {
  letter-spacing: -1px;
}

.wm-t {
  color: #ff8800;
}

.wm-blog {
  color: #ffffff;
}

.masthead-search {
  background: #3a3a3a;
  border: 1px solid #4d4d4d;
  border-radius: 50px;
  box-shadow: none;
}

.masthead-search:focus-within {
  border-color: #666;
}

.masthead-search input {
  color: #ccc;
}

.masthead-search input::placeholder {
  color: #777;
}

.masthead-search button {
  display: inline-block;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #999;
}

.masthead-search button:hover {
  color: #ccc;
}

.site-top .donate-top-btn {
  border: 2px solid #000;
  border-radius: 4px;
  background: linear-gradient(#ffb13b, #f07a12);
  color: #170b03;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.site-top .donate-top-btn:hover,
.site-top .donate-top-btn:focus-visible,
.site-top .donate-top-btn.active {
  color: #000;
}

.primary-nav {
  background: #0d0d0d;
  border-top: 1px solid #2e2e2e;
}

.primary-nav a {
  color: #5fa8d3;
  background: none;
  text-transform: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-banner {
  border-top: 2px solid #111;
  border-bottom: 3px solid #000;
  background: transparent;
}

.hero-banner::after {
  background:
    linear-gradient(0deg,
      rgba(6, 4, 2, 0.96) 0%,
      rgba(6, 4, 2, 0.65) 22%,
      rgba(6, 4, 2, 0.08) 48%,
      transparent 68%
    );
}

.hero-label {
  border: 0 !important;
  background: #f6a21a !important;
  color: #1a0800 !important;
  box-shadow: none;
}

.cell-meta {
  background: rgba(0, 0, 0, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cell-tag {
  color: #fff0b2;
  text-shadow: 1px 1px 0 #000;
}

.cell-count {
  color: #f6a21a;
}

.a1 .cell-img { background: linear-gradient(150deg, #f6a21a 0%, #7d3200 55%, #150900 100%); }
.a2 .cell-img { background: linear-gradient(150deg, #46a5e8 0%, #0b3358 55%, #030b12 100%); }
.a3 .cell-img { background: linear-gradient(150deg, #65d65b 0%, #174d12 55%, #030e03 100%); }
.a4 .cell-img { background: linear-gradient(150deg, #d9472f 0%, #620f07 55%, #110403 100%); }
.a5 .cell-img { background: linear-gradient(150deg, #ffd058 0%, #7d4e00 55%, #150d00 100%); }
.a6 .cell-img { background: linear-gradient(150deg, #9e66ff 0%, #42148c 55%, #0b0418 100%); }
/* === End preserve original header and image labels === */

/* Shared notification for navigation features that are not ready yet. */
.feature-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 10000;
  display: grid;
  width: min(31rem, calc(100% - 1.25rem));
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #050505;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  background: linear-gradient(105deg, #242b30, #111518 74%);
  color: #f4f4f4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -1rem);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.feature-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.feature-toast-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid #050505;
  border-radius: 4px;
  background: linear-gradient(#ffb145, #e87916);
  color: #111;
  font-size: 0.65rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.feature-toast-copy {
  min-width: 0;
}

.feature-toast-copy strong {
  display: block;
  margin-bottom: 0.16rem;
  color: #fff;
  font-size: 0.83rem;
  line-height: 1.2;
}

.feature-toast-copy span {
  display: block;
  color: #b9c3c8;
  font-size: 0.72rem;
  line-height: 1.4;
}

.feature-toast-close {
  appearance: none;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid #3b4348;
  border-radius: 3px;
  background: #171c1f;
  color: #d7e0e4;
  cursor: pointer;
  font: 800 1rem/1 Arial, sans-serif;
}

.feature-toast-close:hover,
.feature-toast-close:focus-visible {
  border-color: var(--orange);
  color: #fff;
  outline: none;
}

:root.light .feature-toast {
  border-color: var(--line);
  border-left-color: var(--orange);
  background: linear-gradient(105deg, #f7f9fa, #dce4e8);
  color: #11161a;
}

:root.light .feature-toast-copy strong,
:root.light .feature-toast-copy span {
  color: #11161a;
}

:root.light .feature-toast-close {
  border-color: var(--line);
  background: #edf2f5;
  color: #11161a;
}

@media (max-width: 620px) {
  .feature-toast {
    top: 0.65rem;
    gap: 0.55rem;
    padding: 0.62rem;
  }

  .feature-toast-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* === MSN-style post feed cards === */
.archive-page {
  background: #202020;
}

.archive-page .archive-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 10px auto 32px;
}

.archive-page .blog-discovery {
  margin: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.archive-page .blog-filter-bar {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.archive-page .blog-filter-group {
  display: block;
  min-width: 0;
  flex: 1;
}

.archive-page .blog-filter-label,
.archive-page .blog-result-summary {
  display: none;
}

.archive-page .blog-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.archive-page .blog-category-chip {
  min-height: 36px;
  gap: 0;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #f4f4f4;
  font-family: Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.archive-page .blog-category-chip i {
  display: none;
}

.archive-page .blog-category-chip.active,
.archive-page .blog-category-chip:hover,
.archive-page .blog-category-chip:focus-visible {
  border-color: #4a4a4a;
  background: #343434;
  color: #68a9ff;
  box-shadow: none;
  outline: none;
}

.archive-page .blog-sort-control {
  display: block;
  min-width: 150px;
}

.archive-page .blog-sort-select-wrap select {
  min-height: 36px;
  padding: 0 38px 0 14px;
  border: 1px solid #6b6b6b;
  border-radius: 18px;
  background: #262626;
  color: #f4f4f4;
  font-family: Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.archive-page .blog-sort-select-wrap select option {
  background: #2f2f2f;
  color: #fff;
}

.archive-page .archive-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-page .archive-item {
  min-width: 0;
}

.archive-page .archive-item--hero,
.archive-page .archive-item--wide {
  grid-column: span 2;
}

.archive-page .topic-post-card {
  position: relative;
  display: flex;
  height: 304px;
  min-height: 304px;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #303030;
  color: #fff;
  box-shadow: none;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.archive-page .topic-post-card:hover,
.archive-page .topic-post-card:focus-visible {
  border-color: transparent;
  background: #383838;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
  outline: none;
}

.archive-page .topic-post-thumb {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 1.9 / 1;
  overflow: hidden;
  border: 0;
  background: #282828;
}

.archive-page .topic-post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.archive-page .topic-post-card:hover .topic-post-image {
  transform: scale(1.025);
}

.archive-page .topic-post-thumb--empty {
  display: grid;
  place-items: center;
  background: #383838;
  color: #ededed;
}

.archive-page .topic-post-thumb--empty > span:first-child {
  font-family: Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.archive-page .topic-post-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 11px 16px 14px;
}

.archive-page .msn-card-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
  color: #f4f4f4;
  font-family: Arial, Verdana, sans-serif;
  font-size: 12.5px;
  line-height: 1.35;
}

.archive-page .msn-card-category {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.archive-page .msn-card-category i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 4px;
}

.archive-page .msn-card-dot {
  color: #bdbdbd;
}

.archive-page .topic-post-copy h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-family: Arial, Verdana, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.archive-page .topic-post-copy p,
.archive-page .msn-card-footer,
.archive-page .msn-reaction {
  display: none;
}

.archive-page .msn-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  transform: translate(-50%, -50%);
}

.archive-page .msn-card-play svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
  transform: translateX(1px);
}

.archive-page .archive-item--hero .topic-post-thumb {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.archive-page .archive-item--hero .topic-post-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(28, 28, 28, 0.96) 0%, rgba(28, 28, 28, 0.58) 42%, rgba(28, 28, 28, 0.04) 76%);
}

.archive-page .archive-item--hero .topic-post-copy {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  padding: 18px 20px 16px;
}

.archive-page .archive-item--hero .msn-card-meta {
  font-size: 13px;
}

.archive-page .archive-item--hero .topic-post-copy h3 {
  max-width: 32ch;
  font-size: 26px;
  line-height: 1.24;
  -webkit-line-clamp: 3;
}

.archive-page .archive-item--wide .topic-post-card {
  display: flex;
}

.archive-page .archive-item--wide .topic-post-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.archive-page .archive-item--wide .topic-post-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(28, 28, 28, 0.96) 0%, rgba(28, 28, 28, 0.58) 42%, rgba(28, 28, 28, 0.04) 76%);
}

.archive-page .archive-item--wide .topic-post-copy {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  min-width: 0;
  padding: 18px 20px 16px;
}

.archive-page .archive-item--wide .msn-card-meta {
  font-size: 13px;
}

.archive-page .archive-item--wide .topic-post-copy h3 {
  max-width: 32ch;
  font-size: 26px;
  line-height: 1.24;
  -webkit-line-clamp: 3;
}

.archive-page .archive-empty {
  grid-column: 1 / -1;
  border: 1px solid #444;
  border-radius: 8px;
  background: #303030;
  color: #f2f2f2;
}

.archive-page .archive-more {
  margin-top: 18px;
  text-align: center;
}

.archive-page .archive-more .cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 20px;
  background: #3478d4;
  color: #fff;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .archive-page .archive-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .archive-page .archive-shell {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .archive-page .archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-page .archive-item--hero,
  .archive-page .archive-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .archive-page .blog-filter-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .archive-page .blog-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-page .blog-category-chip {
    justify-content: center;
  }

  .archive-page .blog-sort-control {
    min-width: 0;
  }

  .archive-page .archive-list {
    grid-template-columns: 1fr;
  }

  .archive-page .archive-item--hero,
  .archive-page .archive-item--wide {
    grid-column: auto;
  }

  .archive-page .topic-post-card {
    height: auto;
    min-height: 292px;
  }

  .archive-page .archive-item--hero .topic-post-card {
    height: 300px;
    min-height: 300px;
  }

  .archive-page .archive-item--wide .topic-post-card {
    display: flex;
  }

  .archive-page .archive-item--wide .topic-post-thumb {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 1.9 / 1;
  }

  .archive-page .archive-item--wide .topic-post-thumb::after {
    display: none;
  }

  .archive-page .archive-item--wide .topic-post-copy {
    position: relative;
    z-index: auto;
    justify-content: flex-start;
    padding: 11px 16px 14px;
  }

  .archive-page .topic-post-copy h3,
  .archive-page .archive-item--hero .topic-post-copy h3,
  .archive-page .archive-item--wide .topic-post-copy h3 {
    font-size: 20px;
  }
}
/* === End MSN-style post feed cards === */

/* === Compact archive hero === */
.archive-page .hero-banner {
  height: clamp(460px, 40vw, 600px);
  min-height: 0;
}

.archive-page .hero-banner img {
  object-fit: cover;
  object-position: center 81%;
}

.archive-page .hero-copy {
  width: min(1240px, calc(100% - 24px));
  padding-bottom: 34px;
}

.archive-page .hero-copy h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.95;
}

@media (max-width: 620px) {
  .archive-page .hero-banner {
    height: 380px;
  }

  .archive-page .hero-copy {
    width: calc(100% - 24px);
    padding-bottom: 22px;
  }

  .archive-page .hero-copy h1 {
    font-size: 38px;
    line-height: 1;
  }

  .archive-page .hero-desc {
    font-size: 14px;
  }
}
/* === End compact archive hero === */