:root {
  --bg: #111719;
  --shell: #171d1f;
  --panel: #20272a;
  --panel-2: #293136;
  --tile: #f4f0e6;
  --tile-soft: #fffaf0;
  --ink: #111315;
  --text: #f6f2e8;
  --muted: #bac5c0;
  --line: rgba(246, 242, 232, 0.16);
  --line-dark: rgba(17, 19, 21, 0.14);
  --blue: #1f6feb;
  --teal: #2bc4a9;
  --amber: #e1a83b;
  --red: #e0523e;
  --green: #65d37e;
  --violet: #9b7cff;
  --tetris-cyan: #2ff3e0;
  --tetris-yellow: #ffd43b;
  --tetris-magenta: #d946ef;
  --tetris-blue: #3772ff;
  --tetris-red: #ff5c4d;
  --tetris-green: #4ade80;
  --tetris-ink: #080b11;
  --tetris-grid: rgba(47, 243, 224, 0.08);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(135deg, rgba(47, 243, 224, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(255, 92, 77, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
}

.cube-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.cube-field-board {
  position: absolute;
  inset: 0;
}

.cube-field-piece {
  opacity: 0.2;
  position: absolute;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.cube-field-active-piece {
  z-index: 2;
}

.cube-field-cell,
.cube-field-locked-cell {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 0 0) 0 0 / 50% 50% no-repeat,
    var(--cube-color, var(--tetris-cyan));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 3px rgba(255, 255, 255, 0.18),
    inset 0 -4px rgba(0, 0, 0, 0.24),
    0 0 16px rgba(47, 243, 224, 0.2);
  height: var(--cube-size);
  position: absolute;
  width: var(--cube-size);
}

.cube-field-locked-cell {
  opacity: 0.24;
}

.cube-field.is-ending .cube-field-board {
  animation: tetris-board-reset 900ms ease both;
}

.cube-field.is-ending .cube-field-active-piece {
  opacity: 0;
}

@keyframes tetris-board-reset {
  0%,
  56% {
    filter: saturate(1);
    opacity: 1;
    transform: translateY(0);
  }

  72% {
    filter: saturate(1.55);
    opacity: 0.78;
    transform: translateY(8px);
  }

  100% {
    filter: saturate(0.4);
    opacity: 0;
    transform: translateY(28px);
  }
}

main,
.footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cube-field {
    display: none;
  }
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(43, 196, 169, 0.5);
  outline-offset: 3px;
}

.skip-link {
  background: var(--tile);
  border-radius: 0 0 8px 8px;
  color: var(--ink);
  font-weight: 950;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  text-decoration: none;
  top: -56px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.topbar {
  align-items: center;
  background: rgba(16, 18, 19, 0.94);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  padding: 12px clamp(16px, 4vw, 44px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  width: max-content;
}

.brand-mark {
  align-items: center;
  background: #030812;
  border: 1px solid rgba(47, 243, 224, 0.36);
  border-radius: 16px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.brand-mark img {
  border-radius: 14px;
  display: block;
  height: 82%;
  object-fit: contain;
  object-position: center center;
  width: 82%;
}

.nav {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  justify-self: center;
  max-width: 100%;
  min-width: 0;
  padding: 6px;
}

.nav-item {
  position: relative;
}

.nav a,
.button-primary,
.button-secondary,
button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.nav a {
  border: 1px solid transparent;
  color: var(--muted);
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  background: var(--tile);
  color: var(--ink);
}

.nav-menu {
  background: rgba(21, 25, 27, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  left: 0;
  min-width: 240px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 20;
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  padding: 6px 8px 2px;
  text-transform: uppercase;
}

.nav-menu a {
  justify-content: flex-start;
  min-height: 36px;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-self: end;
  min-width: 0;
}

.site-search {
  align-items: center;
  display: flex;
  gap: 0;
  max-width: 42px;
  min-width: 42px;
  overflow: hidden;
  position: relative;
  transition:
    max-width 180ms ease,
    width 180ms ease,
    gap 180ms ease;
  width: 42px;
}

.site-search:hover,
.site-search:focus-within {
  gap: 8px;
  max-width: 320px;
  width: 320px;
}

.account-icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 42px;
}

.account-icon-button:hover,
.account-icon-button.is-active {
  background: var(--tile);
  border-color: rgba(47, 243, 224, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 243, 224, 0.12);
  color: var(--tetris-cyan);
}

.account-icon-button svg {
  display: block;
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 22px;
}

.site-search input {
  background: rgba(255, 255, 255, 0.08);
  border: 0 solid transparent;
  border-radius: 8px;
  color: var(--text);
  flex: 0 1 0;
  font: inherit;
  font-weight: 750;
  min-height: 42px;
  min-width: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition:
    border-color 160ms ease,
    opacity 160ms ease,
    padding 180ms ease,
    width 180ms ease;
  width: 0;
}

.site-search:hover input,
.site-search:focus-within input {
  border-color: var(--line);
  border-width: 1px;
  flex: 1 1 auto;
  opacity: 1;
  padding: 10px 12px;
  pointer-events: auto;
  width: 100%;
}

.site-search input::placeholder {
  color: var(--muted);
}

.site-search button.search-icon-button {
  flex: 0 0 42px;
}

.search-icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  width: 42px;
}

.search-icon-button:hover {
  background: var(--tile);
  border-color: rgba(47, 243, 224, 0.45);
  color: var(--tetris-cyan);
}

.search-icon-button svg {
  display: block;
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 22px;
}

button {
  background: var(--tile);
  border: 1px solid var(--tile);
  color: var(--ink);
  cursor: pointer;
  width: 100%;
}

.button-primary {
  background: var(--tile);
  border: 1px solid var(--tile);
  color: var(--ink);
}

.button-secondary {
  background: rgba(43, 196, 169, 0.12);
  border: 1px solid rgba(43, 196, 169, 0.45);
  color: var(--text);
}

.button-primary:hover,
.button-secondary:hover,
button:hover {
  transform: translateY(-1px);
}

main {
  margin: 0 auto;
  max-width: 1680px;
  padding: 24px clamp(16px, 3vw, 42px) 72px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 82px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 18px;
  max-width: 980px;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h3 {
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.eyebrow,
.content-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.quick-panel,
.editorial-hero,
.live-shell,
.home-section,
.content-column,
.rail,
.table-shell,
.article-view,
.game-view,
.empty-state,
.page-title {
  background: rgba(29, 34, 38, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.quick-panel {
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.editorial-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  margin-bottom: 18px;
  padding: 18px;
}

.lead-story {
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.22), rgba(43, 196, 169, 0.08) 46%, rgba(224, 82, 62, 0.14)),
    #171d24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  display: grid;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  position: relative;
  text-decoration: none;
}

.lead-story h1 {
  align-self: end;
  font-size: clamp(42px, 6vw, 86px);
  margin-top: auto;
  max-width: 940px;
  position: relative;
  z-index: 2;
}

.lead-story p,
.lead-story .rank-badge,
.lead-story .card-action {
  position: relative;
  z-index: 2;
}

.lead-story p {
  color: #dbe4e1;
  font-size: 19px;
  max-width: 720px;
}

.lead-visual {
  bottom: -20px;
  color: rgba(255, 255, 255, 0.06);
  font-size: clamp(90px, 16vw, 190px);
  font-weight: 950;
  line-height: 0.8;
  position: absolute;
  right: -8px;
}

.hero-stack {
  display: grid;
  gap: 12px;
}

.live-shell {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
}

.live-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.live-head h1 {
  font-size: clamp(40px, 6vw, 78px);
  margin-bottom: 10px;
}

.live-head p:not(.eyebrow) {
  color: #d4dbd8;
  font-size: 18px;
  max-width: 820px;
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-filters a {
  align-items: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 13px;
  text-decoration: none;
}

.feed-filters a span {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
}

.feed-filters a:hover,
.feed-filters a.is-active {
  background: var(--tile);
  color: var(--ink);
}

.live-summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.live-summary strong {
  color: var(--tile);
}

.feed-list,
.game-list,
.category-list {
  display: grid;
  gap: 12px;
}

.feed-card,
.game-feed-card {
  background: var(--tile);
  border: 1px solid var(--tile);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  color: var(--ink);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.feed-card.type-news {
  border-left-color: var(--red);
}

.feed-card.type-guide {
  border-left-color: var(--blue);
}

.feed-card.type-fix {
  border-left-color: var(--amber);
}

.feed-card.type-collection {
  border-left-color: var(--violet);
}

.feed-card > a,
.game-feed-card {
  color: inherit;
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2.4vw, 22px);
  text-decoration: none;
}

.game-feed-card {
  align-items: start;
  gap: 14px 18px;
  grid-template-areas:
    "thumb badge"
    "thumb copy"
    "thumb text"
    "thumb stats"
    "thumb chips";
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 0;
  padding: 16px;
}

.game-feed-thumb {
  align-self: start;
  aspect-ratio: 16 / 9;
  background: #111315;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 10px;
  display: block;
  grid-area: thumb;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.game-feed-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
  width: 100%;
}

.game-feed-card > .rank-badge {
  grid-area: badge;
  justify-self: start;
}

.game-feed-copy {
  display: grid;
  gap: 6px;
  grid-area: copy;
  min-width: 0;
}

.game-feed-card > p {
  grid-area: text;
}

.game-feed-card > .game-stats {
  grid-area: stats;
}

.game-feed-card > .chips {
  grid-area: chips;
}

.feed-card > a {
  align-items: stretch;
  gap: 16px;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
}

.feed-thumb {
  align-self: start;
  background: #111315;
  border-radius: 10px;
  display: block;
  min-width: 0;
  min-height: 138px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.feed-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.feed-copy {
  align-content: start;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.feed-copy > *,
.game-feed-copy > *,
.game-feed-card > p,
.game-feed-card > .game-stats,
.game-feed-card > .chips {
  max-width: 100%;
  min-width: 0;
}

.feed-card h2,
.game-feed-card h2 {
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0;
}

.feed-copy h2,
.feed-copy p,
.feed-type,
.feed-meta,
.game-feed-copy h2,
.game-feed-card p,
.portal-card strong,
.portal-card p,
.category-tile strong,
.category-tile p,
.content-card h3,
.content-card p,
.collection-card h3,
.collection-card p,
.news-list-item strong,
.article-body,
.article-body * {
  overflow-wrap: anywhere;
  word-break: normal;
}

.game-feed-card h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
}

.feed-card p,
.game-feed-card p {
  color: #596265;
  font-size: 16px;
  margin-bottom: 0;
}

.feed-type {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-meta span {
  background: rgba(17, 19, 21, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #4f585d;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.load-more {
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  justify-self: center;
  max-width: 320px;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  width: 100%;
}

.feed-end {
  color: var(--muted);
  font-weight: 850;
  margin: 0;
  text-align: center;
}

.portal-home {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.portal-ticker {
  background: rgba(29, 34, 38, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.portal-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.22), transparent 36%),
    linear-gradient(315deg, rgba(224, 82, 62, 0.18), transparent 34%),
    rgba(29, 34, 38, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: minmax(0, 0.94fr) minmax(560px, 1.06fr);
  overflow: hidden;
  padding: clamp(18px, 2.3vw, 30px);
}

.portal-hero h1 {
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: 1;
  margin-bottom: 10px;
}

.portal-hero p:not(.eyebrow) {
  color: #d4dbd8;
  font-size: 17px;
  max-width: 720px;
}

.portal-hero-copy {
  display: grid;
  gap: 12px;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.portal-hero-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  transition: opacity 180ms ease;
}

.portal-hero-board.is-switching {
  opacity: 0.62;
}

.portal-hero-card {
  aspect-ratio: 16 / 10;
  background: #0f1213;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: block;
  min-height: clamp(92px, 6.4vw, 118px);
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.portal-hero-card img,
.portal-card-thumb img,
.portal-pill-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.portal-hero-card::after {
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.portal-hero-card span {
  display: grid;
  gap: 2px;
  inset: auto 12px 12px;
  max-width: calc(100% - 24px);
  min-width: 0;
  position: absolute;
  z-index: 1;
}

.portal-hero-card span > * {
  max-width: 100%;
  min-width: 0;
}

.portal-hero-card small,
.portal-pill-copy small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-hero-card strong {
  display: -webkit-box;
  font-size: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.08;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
}

.portal-hero-card:hover img,
.portal-card:hover .portal-card-thumb img,
.portal-pill-grid a:hover .portal-pill-thumb img,
.feed-card:hover .feed-thumb img,
.game-feed-card:hover .game-feed-thumb img {
  transform: scale(1.045);
}

.portal-ticker {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
}

.portal-ticker a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
  text-decoration: none;
}

.portal-ticker span,
.portal-card-meta {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-section {
  display: grid;
  gap: 16px;
}

.portal-section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.portal-section-head p:not(.eyebrow) {
  margin-bottom: 0;
}

.portal-section-head a {
  color: var(--amber);
  flex: 0 0 auto;
  font-weight: 950;
  text-decoration: none;
}

.portal-card-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.home-feed-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-card {
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 10px;
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.portal-card.type-news {
  border-top: 3px solid var(--red);
}

.portal-card.type-fix {
  border-top: 3px solid var(--amber);
}

.portal-card.type-collection {
  border-top: 3px solid var(--violet);
}

.portal-card.type-guide {
  border-top: 3px solid var(--blue);
}

.portal-card-thumb {
  aspect-ratio: 16 / 9;
  background: #0f1213;
  display: block;
  overflow: hidden;
  position: relative;
}

.portal-card-thumb::after,
.feed-thumb::after,
.game-feed-thumb::after,
.portal-pill-thumb::after {
  background: linear-gradient(135deg, rgba(47, 243, 224, 0.16), transparent 38%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 160ms ease;
}

.portal-card:hover .portal-card-thumb::after,
.feed-card:hover .feed-thumb::after,
.game-feed-card:hover .game-feed-thumb::after,
.portal-pill-grid a:hover .portal-pill-thumb::after {
  opacity: 1;
}

.portal-card-copy {
  align-content: start;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
}

.portal-card-copy > * {
  max-width: 100%;
  min-width: 0;
}

.portal-card strong {
  display: -webkit-box;
  font-size: 19px;
  line-height: 1.15;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-card p {
  color: #596265;
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.skeleton-card {
  background: rgba(244, 240, 230, 0.82);
  border: 1px solid rgba(244, 240, 230, 0.9);
  border-radius: 10px;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
  position: relative;
}

.skeleton-card-portal {
  grid-template-rows: auto 1fr;
}

.skeleton-card-feed {
  gap: 16px;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  padding: clamp(14px, 2.4vw, 22px);
}

.skeleton-card-feed .skeleton-media {
  align-self: start;
  border-radius: 10px;
  min-height: 138px;
}

.skeleton-card-feed .skeleton-copy {
  align-content: center;
  padding: 0;
}

.skeleton-media {
  aspect-ratio: 16 / 9;
  background: rgba(17, 19, 21, 0.14);
  display: block;
}

.skeleton-copy {
  align-content: start;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.skeleton-line {
  background: rgba(17, 19, 21, 0.14);
  display: block;
}

.skeleton-line {
  border-radius: 999px;
  height: 12px;
  width: 100%;
}

.skeleton-line.is-short {
  width: 42%;
}

.skeleton-line.is-title {
  height: 20px;
  width: 88%;
}

.skeleton-line.is-mid {
  width: 66%;
}

.tetris-stack {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, 18px);
  margin-top: 2px;
  max-width: 100%;
}

.tetris-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 3px rgba(255, 255, 255, 0.28),
    inset 0 -4px rgba(0, 0, 0, 0.24),
    0 0 16px rgba(47, 243, 224, 0.18);
  display: block;
  width: 18px;
}

.tetris-cell.is-cyan {
  background: var(--tetris-cyan);
}

.tetris-cell.is-yellow {
  background: var(--tetris-yellow);
}

.tetris-cell.is-magenta {
  background: var(--tetris-magenta);
}

.tetris-cell.is-green {
  background: var(--tetris-green);
}

.tetris-cell.is-blue {
  background: var(--tetris-blue);
}

.tetris-cell.is-red {
  background: var(--tetris-red);
}

.portal-hero,
.topbar,
.quick-panel,
.editorial-hero,
.live-shell,
.home-section,
.content-column,
.rail,
.table-shell,
.article-view,
.game-view,
.empty-state,
.page-title {
  border-radius: 6px;
}

.portal-hero {
  background:
    linear-gradient(var(--tetris-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--tetris-grid) 1px, transparent 1px),
    linear-gradient(135deg, rgba(55, 114, 255, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(255, 92, 77, 0.13), transparent 36%),
    rgba(15, 21, 24, 0.96);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  border-color: rgba(47, 243, 224, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.28);
  image-rendering: pixelated;
  position: relative;
}

.portal-hero::before {
  background:
    linear-gradient(90deg, var(--tetris-cyan) 0 14%, transparent 14% 18%, var(--tetris-yellow) 18% 31%, transparent 31% 35%, var(--tetris-magenta) 35% 48%, transparent 48% 52%, var(--tetris-green) 52% 66%, transparent 66% 70%, var(--tetris-red) 70% 84%, transparent 84% 88%, var(--tetris-blue) 88% 100%);
  content: "";
  height: 6px;
  inset: 0 0 auto;
  opacity: 0.95;
  position: absolute;
}

.portal-hero-copy,
.portal-hero-board {
  position: relative;
  z-index: 1;
}

.topbar {
  background:
    linear-gradient(90deg, rgba(47, 243, 224, 0.12), transparent 30%, rgba(217, 70, 239, 0.1)),
    rgba(29, 34, 38, 0.96);
  border-bottom: 2px solid rgba(47, 243, 224, 0.88);
}

.brand-mark {
  border-radius: 16px;
  box-shadow:
    0 0 0 3px rgba(47, 243, 224, 0.12),
    5px 0 0 var(--tetris-cyan),
    0 5px 0 var(--tetris-magenta),
    0 0 22px rgba(47, 243, 224, 0.22);
}

.nav,
.site-search input,
.nav-menu {
  border-radius: 4px;
}

.nav a,
.button-primary,
.button-secondary,
button,
.load-more {
  border-radius: 4px;
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.2);
}

.nav a:hover,
.nav a.is-active,
.button-primary {
  background: var(--tetris-yellow);
  color: var(--tetris-ink);
}

.button-secondary {
  background: rgba(47, 243, 224, 0.14);
  border-color: var(--tetris-cyan);
}

.portal-hero-board {
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(8, 11, 17, 0.42);
  background-size: 18px 18px;
  border: 1px solid rgba(47, 243, 224, 0.24);
  border-radius: 6px;
  min-width: 0;
  padding: 10px;
}

.portal-hero-card:hover,
.portal-card:hover,
.portal-pill-grid a:hover,
.feed-card:hover,
.game-feed-card:hover,
.category-tile:hover,
.content-card:hover,
.collection-card:hover {
  border-color: rgba(47, 243, 224, 0.48);
  box-shadow:
    inset 0 -3px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(47, 243, 224, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.portal-hero-card:focus-visible,
.portal-card:focus-visible,
.portal-pill-grid a:focus-visible,
.feed-card a:focus-visible,
.game-feed-card:focus-visible {
  outline: 3px solid rgba(47, 243, 224, 0.56);
  outline-offset: 3px;
}

.portal-hero-card,
.portal-card,
.portal-pill-grid a,
.portal-ticker a,
.feed-card,
.game-feed-card,
.category-tile,
.content-card,
.collection-card {
  border-radius: 8px;
  box-shadow:
    inset 0 -3px rgba(0, 0, 0, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.portal-card.type-news,
.feed-card.type-news {
  border-top-color: var(--tetris-red);
  border-left-color: var(--tetris-red);
}

.portal-card.type-guide,
.feed-card.type-guide {
  border-top-color: var(--tetris-blue);
  border-left-color: var(--tetris-blue);
}

.portal-card.type-fix,
.feed-card.type-fix {
  border-top-color: var(--tetris-yellow);
  border-left-color: var(--tetris-yellow);
}

.portal-card.type-collection,
.feed-card.type-collection {
  border-top-color: var(--tetris-magenta);
  border-left-color: var(--tetris-magenta);
}

.portal-pill-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.portal-pill-grid a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 78px;
  overflow: hidden;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.portal-pill-thumb {
  background: #0f1213;
  display: block;
  min-height: 78px;
  overflow: hidden;
  position: relative;
}

.portal-pill-copy {
  align-content: center;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.portal-pill-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.hero-stack-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.compact-card {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 14px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.compact-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.compact-card strong {
  line-height: 1.15;
}

.compact-card small {
  color: var(--muted);
  font-weight: 850;
}

.quick-panel::before {
  background:
    linear-gradient(90deg, var(--blue), var(--teal), var(--amber), var(--red));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.quick-panel-head {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: clamp(18px, 4vw, 28px);
}

.quick-panel-head h1 {
  font-size: clamp(36px, 6vw, 72px);
  margin-bottom: 10px;
}

.quick-panel-head p:not(.eyebrow) {
  color: #d4dbd8;
  font-size: 18px;
  max-width: 720px;
}

.metric {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  display: grid;
  min-height: 108px;
  padding: 14px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.metric span {
  color: #c8d0cd;
  font-size: 13px;
}

.metric strong {
  align-self: end;
  font-size: 38px;
  line-height: 1;
}

.metric:hover,
.content-card:hover,
.quick-link:hover,
.category-card:hover,
.collection-card:hover {
  transform: translateY(-2px);
}

.tone-blue {
  border-top: 4px solid var(--blue);
}

.tone-green {
  border-top: 4px solid var(--green);
}

.tone-amber {
  border-top: 4px solid var(--amber);
}

.tone-red {
  border-top: 4px solid var(--red);
}

.tone-violet {
  border-top: 4px solid var(--violet);
}

.auth-shell {
  display: grid;
  justify-items: center;
}

.auth-card,
.account-panel,
.article-community,
.admin-stat-grid {
  background:
    linear-gradient(var(--tetris-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--tetris-grid) 1px, transparent 1px),
    rgba(29, 34, 38, 0.94);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.auth-card {
  max-width: 620px;
  padding: clamp(22px, 4vw, 38px);
  width: min(100%, 620px);
}

.auth-card h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.comment-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  text-transform: uppercase;
}

.auth-form input,
.auth-form textarea,
.comment-form textarea,
.inline-code-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 46px;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}

.auth-form textarea,
.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-switch,
.telegram-login {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.auth-switch a,
.telegram-login a {
  color: var(--tetris-cyan);
  font-weight: 900;
}

.form-notice {
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 850;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.form-notice.is-info {
  background: rgba(47, 243, 224, 0.1);
  border-color: rgba(47, 243, 224, 0.28);
  color: var(--tetris-cyan);
}

.form-notice.is-error {
  background: rgba(255, 92, 77, 0.12);
  border-color: rgba(255, 92, 77, 0.38);
  color: #ffb4aa;
}

.account-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  min-width: 0;
}

.account-panel {
  max-width: 100%;
  min-width: 0;
  padding: 20px;
}

.account-panel-wide {
  grid-column: 1 / -1;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.profile-list div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding-bottom: 9px;
}

.profile-list dt {
  color: var(--muted);
  font-weight: 850;
}

.profile-list dd {
  font-weight: 950;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.verification-box {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.inline-code-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.inline-code-form button {
  width: auto;
}

.dev-code {
  background: rgba(255, 212, 59, 0.1);
  border: 1px solid rgba(255, 212, 59, 0.28);
  border-radius: 8px;
  color: var(--tetris-yellow);
  margin: 0;
  padding: 10px 12px;
}

.account-list,
.account-comments {
  display: grid;
  gap: 10px;
}

.account-list a,
.account-comments article {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  text-decoration: none;
}

.account-comments article span {
  color: var(--teal);
  display: block;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-comments p {
  margin: 6px 0 0;
}

.quick-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-link {
  align-items: center;
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.quick-link:nth-child(1) {
  border-bottom: 5px solid var(--red);
}

.quick-link:nth-child(2) {
  border-bottom: 5px solid var(--blue);
}

.quick-link:nth-child(3) {
  border-bottom: 5px solid var(--amber);
}

.quick-link:nth-child(4) {
  border-bottom: 5px solid var(--teal);
}

.quick-link:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.quick-link span {
  font-weight: 900;
}

.quick-link strong {
  font-size: 34px;
}

.photo-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.photo-card {
  align-content: end;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  display: grid;
  gap: 6px;
  min-height: 220px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.photo-card::after {
  background:
    linear-gradient(180deg, rgba(16, 18, 19, 0.08), rgba(16, 18, 19, 0.82)),
    linear-gradient(90deg, rgba(31, 111, 235, 0.2), rgba(43, 196, 169, 0.1));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.photo-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.01);
  transition: transform 200ms ease;
  width: 100%;
}

.photo-card span,
.photo-card strong,
.photo-card p {
  margin: 0;
  position: relative;
  z-index: 2;
}

.photo-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.photo-card strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.02;
}

.photo-card p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 360px;
}

.photo-card:hover {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.photo-card:hover img {
  transform: scale(1.06);
}

.home-section,
.content-column,
.rail,
.table-shell,
.article-view,
.game-view,
.empty-state,
.page-title {
  padding: 20px;
}

.home-section {
  margin-top: 18px;
}

.content-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  margin-top: 18px;
}

.category-detail-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.category-detail-layout.has-rail {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
}

.category-detail-layout.no-rail {
  grid-template-columns: minmax(0, 1fr);
}

.category-materials {
  min-width: 0;
}

.category-material-list .feed-card h2 {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.15;
}

.category-material-list .feed-thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.category-material-list .feed-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rail {
  display: grid;
  gap: 16px;
}

.rail-block + .rail-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.section-head a,
.back-link,
.table-link {
  color: var(--amber);
  font-weight: 900;
  text-decoration: none;
}

.section-head a:hover,
.back-link:hover,
.table-link:hover {
  text-decoration: underline;
}

.article-top-link {
  align-items: center;
  backdrop-filter: blur(16px);
  background:
    linear-gradient(135deg, rgba(255, 212, 59, 0.16), rgba(255, 212, 59, 0.05)),
    rgba(8, 11, 17, 0.9);
  border: 1px solid rgba(255, 212, 59, 0.42);
  border-radius: 999px;
  bottom: clamp(26px, 5vh, 56px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--tetris-yellow);
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  min-height: 44px;
  min-width: 118px;
  padding: 10px 18px;
  position: fixed;
  right: max(18px, calc((100vw - 980px) / 2 + 18px));
  text-transform: uppercase;
  z-index: 12;
}

.article-top-link::before {
  content: "↑";
  font-weight: 950;
  margin-right: 8px;
}

.article-top-link:hover {
  background:
    linear-gradient(135deg, rgba(255, 212, 59, 0.28), rgba(47, 243, 224, 0.12)),
    rgba(8, 11, 17, 0.94);
  border-color: rgba(255, 212, 59, 0.72);
  color: var(--tile);
  text-decoration: none;
}

.news-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 0.75fr);
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.wide,
.card-grid.games {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card,
.category-card,
.collection-card {
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  position: relative;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.content-card.type-news {
  border-bottom: 5px solid var(--red);
}

.content-card.type-guide {
  border-bottom: 5px solid var(--blue);
}

.content-card.type-fix {
  border-bottom: 5px solid var(--amber);
}

.content-card.type-collection,
.collection-card {
  border-bottom: 5px solid var(--violet);
}

.game-card {
  border-bottom: 5px solid var(--teal);
}

.category-card {
  border-bottom: 5px solid var(--violet);
}

.category-title {
  display: grid;
  gap: 14px;
}

.category-title p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 860px;
}

.category-title-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-title-stats span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  min-width: 140px;
  padding: 12px 14px;
}

.category-title-stats strong {
  color: var(--tile);
  display: block;
  font-size: 28px;
  line-height: 1;
}

.category-finder {
  background: rgba(29, 34, 38, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}

.category-finder label {
  display: grid;
  gap: 8px;
}

.category-finder label span,
.category-finder p {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  margin: 0;
  text-transform: uppercase;
}

.category-finder input {
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.category-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-filter-row button {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
}

.category-filter-row button span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  min-width: 24px;
  padding: 2px 7px;
  text-align: center;
}

.category-filter-row button:hover,
.category-filter-row button.is-active {
  background: var(--tile);
  border-color: var(--tile);
  color: var(--ink);
}

.category-index .category-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-tile {
  background:
    linear-gradient(135deg, rgba(43, 196, 169, 0.08), rgba(255, 191, 71, 0.06)),
    rgba(29, 34, 38, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 16px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.category-tile:hover {
  border-color: rgba(43, 196, 169, 0.75);
  transform: translateY(-2px);
}

.category-tile-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.category-tile-top small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-tile-top > span,
.category-tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-tile-top > span span,
.category-tile-tags span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 4px 8px;
}

.category-tile strong {
  font-size: 23px;
  line-height: 1.05;
}

.category-tile p,
.category-tile-recent {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.category-tile-recent {
  font-size: 13px;
}

.content-card:hover,
.category-card:hover,
.collection-card:hover,
.feed-card:hover,
.game-feed-card:hover {
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.3);
}

.category-list .category-card {
  min-height: 0;
}

.card-media {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.16), rgba(43, 196, 169, 0.1)),
    rgba(17, 19, 21, 0.08);
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 10px;
  color: rgba(17, 19, 21, 0.28);
  display: flex;
  font-size: 34px;
  font-weight: 950;
  height: 96px;
  justify-content: flex-end;
  line-height: 0.8;
  margin-bottom: 2px;
  overflow: hidden;
  padding: 10px;
}

.card-media.has-image {
  align-items: stretch;
  background: #111315;
  padding: 0;
}

.card-media.has-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.content-card.type-news .card-media {
  background: linear-gradient(135deg, rgba(224, 82, 62, 0.22), rgba(225, 168, 59, 0.12));
}

.content-card.type-guide .card-media {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.24), rgba(43, 196, 169, 0.12));
}

.content-card.type-fix .card-media {
  background: linear-gradient(135deg, rgba(225, 168, 59, 0.28), rgba(224, 82, 62, 0.1));
}

.content-card h3,
.collection-card h3,
.search-result h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.content-card p,
.collection-card p,
.search-result p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.content-card.is-featured {
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.22), transparent 44%),
    #171d24;
  border-color: rgba(31, 111, 235, 0.38);
  color: var(--text);
  grid-row: span 2;
}

.content-card.is-featured .card-media {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.18);
  height: 132px;
}

.content-card.is-featured p {
  color: #c7d1d6;
}

.rank-badge {
  align-self: start;
  background: var(--ink);
  border-radius: 999px;
  color: var(--tile);
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  justify-self: start;
  letter-spacing: 0;
  padding: 5px 8px;
}

.content-card.is-featured .rank-badge,
.news-list .rank-badge {
  background: var(--tile);
  color: var(--ink);
}

.content-kicker {
  color: #586167;
  margin-bottom: 0;
}

.content-card.is-featured .content-kicker {
  color: var(--teal);
}

.card-action {
  align-self: end;
  color: var(--blue);
  font-weight: 950;
}

.content-card.is-featured .card-action {
  color: var(--amber);
}

.chips {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips span,
.chips a,
.status,
.category-stats span {
  background: rgba(17, 19, 21, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #4f585d;
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
  text-decoration: none;
}

.content-card.is-featured .chips span,
.content-card.is-featured .chips a {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.news-list {
  background: #0f1214;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.news-list h3 {
  margin-bottom: 2px;
}

.news-list-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
  text-decoration: none;
}

.news-list-item:hover strong {
  color: var(--amber);
}

.news-list-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.category-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card {
  min-height: 280px;
}

.collection-card .card-media {
  background:
    linear-gradient(135deg, rgba(155, 124, 255, 0.24), rgba(31, 111, 235, 0.13)),
    rgba(17, 19, 21, 0.08);
}

.category-card {
  min-height: 205px;
}

.category-card p {
  color: #586167;
  font-size: 14px;
  margin-bottom: 0;
}

.category-stats {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-stats {
  color: #586167;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 900;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.status-active {
  background: rgba(101, 211, 126, 0.18);
  border-color: rgba(101, 211, 126, 0.46);
  color: #0f5c29;
}

.status-unverified {
  background: rgba(225, 168, 59, 0.22);
  border-color: rgba(225, 168, 59, 0.54);
  color: #684307;
}

.status-expired,
.status-invalid {
  background: rgba(224, 82, 62, 0.2);
  border-color: rgba(224, 82, 62, 0.46);
  color: #7a2118;
}

.queue-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.queue-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.queue-list strong {
  font-size: 22px;
  line-height: 1.1;
}

.queue-list span {
  color: var(--muted);
  text-align: right;
}

.queue-list a {
  color: var(--amber);
  font-weight: 950;
  text-decoration: none;
}

.queue-list a:hover {
  text-decoration: underline;
}

.page-title {
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 38px);
}

.page-title h1 {
  margin-bottom: 0;
}

.split-title {
  align-items: stretch;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.feed-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.feed-toolbar strong {
  color: var(--tile);
  white-space: nowrap;
}

.filter-tabs {
  align-items: center;
  background: rgba(29, 34, 38, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
}

.filter-tabs > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  margin-right: 6px;
  text-transform: uppercase;
}

.filter-tabs a {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}

.filter-tabs a:hover,
.filter-tabs a.is-active {
  background: var(--tile);
  border-color: var(--tile);
  color: var(--ink);
}

.news-feed {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
}

.news-feed-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-tabs strong {
  font-size: 12px;
}

.game-directory-section {
  margin-top: 18px;
}

.game-directory-section .section-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.directory-card.source-category {
  border-bottom-color: var(--blue);
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-panel {
  align-items: center;
  background: rgba(29, 34, 38, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
  padding: 14px;
}

.search-panel input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  min-width: 0;
  padding: 10px 12px;
}

.search-panel button {
  min-width: 128px;
}

.search-group {
  display: grid;
  gap: 12px;
}

.search-result {
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.search-result:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.search-result h3,
.search-result p {
  margin: 0;
}

.search-result p {
  color: #6c7476;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.pagination a {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--tile);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 12px;
  text-decoration: none;
}

.pagination a:hover,
.pagination a.is-active {
  background: var(--tile);
  border-color: var(--tile);
  color: var(--ink);
}

.table-shell {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--text);
}

code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--tile);
  padding: 4px 7px;
}

.action-stack {
  display: grid;
  gap: 10px;
}

.admin-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 14px;
}

.admin-stat-grid .metric {
  min-height: 116px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions button {
  font-size: 12px;
  min-height: 32px;
  padding: 6px 8px;
  width: auto;
}

.admin-login-form {
  margin: 18px 0;
}

.cookie-banner {
  align-items: center;
  background: #f7f7f4;
  border: 0;
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
  color: #111;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 12px 16px 12px 24px;
  position: fixed;
  transform: translateX(-50%);
  width: min(1380px, calc(100vw - 40px));
  z-index: 30;
}

.cookie-banner-icon {
  align-items: center;
  color: #111;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.cookie-banner-icon svg {
  display: block;
  fill: none;
  height: 42px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 42px;
}

.cookie-banner-icon circle {
  fill: currentColor;
  stroke: none;
}

.cookie-banner-text {
  color: #111;
  flex: 1 1 auto;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 550;
  line-height: 1.25;
  min-width: 0;
}

.cookie-banner-text a {
  color: #2f9ed8;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.cookie-banner button {
  background: #050505;
  border: 1px solid #050505;
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 900;
  min-height: 52px;
  min-width: 170px;
  padding: 10px 22px;
  width: auto;
}

@media (max-width: 720px) {
  .cookie-banner {
    align-items: center;
    bottom: 12px;
    border-radius: 28px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
    width: calc(100vw - 24px);
  }

  .cookie-banner button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.muted {
  color: var(--muted);
}

.article-view,
.game-view,
.empty-state {
  margin: 0 auto;
  max-width: 980px;
}

.article-view {
  scroll-margin-top: 96px;
}

.breadcrumbs {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.breadcrumbs span:last-child {
  color: var(--tile);
  font-weight: 850;
}

.breadcrumb-separator {
  color: rgba(246, 242, 232, 0.34);
}

.article-view header,
.game-hero {
  border-bottom: 1px solid var(--line);
  margin-top: 16px;
  padding-bottom: 24px;
}

.article-view header p {
  color: #d4dbd8;
  font-size: 19px;
}

.article-view h1,
.article-view header p,
.breadcrumbs a,
.breadcrumbs span,
.article-cover figcaption,
.article-toc a,
.article-related-card,
.article-related-card *,
.share-actions a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-view .chips span,
.article-view .chips a {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--muted);
}

.article-view .chips a:hover {
  border-color: rgba(47, 243, 224, 0.48);
  color: var(--tile);
}

.article-cover {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 24px 0 0;
  max-width: 860px;
  overflow: hidden;
}

.article-cover img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.article-cover figcaption {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  padding: 9px 12px;
}

.article-body {
  color: var(--text);
  font-size: 18px;
  max-width: 760px;
  padding-top: 24px;
}

.article-body h2 {
  color: var(--tetris-cyan);
  font-size: 30px;
  line-height: 1.1;
  margin: 30px 0 12px;
  scroll-margin-top: 112px;
  text-shadow: 0 0 18px rgba(47, 243, 224, 0.12);
}

.article-body h3 {
  color: var(--tetris-yellow);
  font-size: 23px;
  line-height: 1.15;
  margin: 24px 0 10px;
  scroll-margin-top: 112px;
}

.article-body p {
  color: var(--text);
}

.article-body a {
  color: var(--tetris-cyan);
  font-weight: 850;
}

.article-body blockquote {
  background: rgba(255, 255, 255, 0.055);
  border-left: 4px solid var(--tetris-cyan);
  margin: 20px 0;
  padding: 14px 16px;
}

.article-body blockquote p {
  margin: 0;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-left: 22px;
}

.privacy-policy {
  max-width: 1040px;
}

.privacy-policy .lead {
  color: #e8eee9;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  max-width: 900px;
}

.privacy-policy section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
  scroll-margin-top: 112px;
}

.privacy-policy h2 {
  color: var(--tetris-cyan);
  font-size: clamp(24px, 2.7vw, 34px);
  margin-bottom: 14px;
}

.privacy-policy p,
.privacy-policy li {
  color: #e0e6e1;
  font-size: 17px;
  line-height: 1.65;
}

.privacy-policy ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.privacy-policy a {
  color: var(--tetris-cyan);
  font-weight: 850;
}

.privacy-note {
  background: rgba(47, 243, 224, 0.08);
  border: 1px solid rgba(47, 243, 224, 0.22);
  border-left: 4px solid var(--tetris-cyan);
  border-radius: 10px;
  margin: 18px 0 0;
  max-width: 900px;
  padding: 14px 16px;
}

.privacy-nav {
  background: rgba(8, 11, 17, 0.54);
  border: 1px solid rgba(47, 243, 224, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
}

.privacy-nav strong {
  color: var(--tetris-cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.privacy-nav ol {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy-nav a {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(246, 242, 232, 0.12);
  border-radius: 8px;
  color: #e8fdf9;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 42px;
  padding: 9px 11px;
  text-decoration: none;
}

.privacy-nav a:hover {
  background: rgba(47, 243, 224, 0.11);
  border-color: rgba(47, 243, 224, 0.42);
}

.article-toc {
  background: rgba(8, 11, 17, 0.54);
  border: 1px solid rgba(47, 243, 224, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-width: 860px;
  padding: 14px;
}

.article-toc-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
}

.article-toc strong {
  background: rgba(47, 243, 224, 0.12);
  border: 1px solid rgba(47, 243, 224, 0.28);
  border-radius: 999px;
  color: var(--tetris-cyan);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 7px 9px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-toc-list {
  counter-reset: article-toc;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  min-width: 0;
}

.article-toc-list a {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(246, 242, 232, 0.12);
  border-radius: 10px;
  color: #e8fdf9;
  counter-increment: article-toc;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 7px;
  justify-content: flex-start;
  min-height: 42px;
  padding: 8px 10px 8px 8px;
  text-decoration: none;
}

.article-toc-list a::before {
  align-items: center;
  background: var(--tetris-cyan);
  border-radius: 6px;
  color: var(--tetris-ink);
  content: counter(article-toc);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.article-toc-list a:hover {
  background: rgba(47, 243, 224, 0.11);
  border-color: rgba(47, 243, 224, 0.42);
  color: var(--tile);
}

.article-toc-list .toc-level-3 {
  color: #ffeaa3;
}

.article-toc-list .toc-level-3::before {
  background: var(--tetris-yellow);
}

.article-engagement {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  max-width: 980px;
}

.article-community {
  display: grid;
  gap: 16px;
  padding: clamp(14px, 3vw, 20px);
}

.community-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.community-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.reaction-bar,
.community-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.reaction-bar {
  align-items: center;
}

.community-counters span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
  padding: 7px 10px;
}

.reaction-form {
  display: inline-flex;
  margin: 0;
  width: auto;
}

.reaction-pill {
  align-items: center;
  background: rgba(8, 11, 17, 0.76);
  border: 2px solid rgba(246, 242, 232, 0.16);
  border-radius: 7px;
  color: var(--muted);
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 42px;
  min-width: 74px;
  padding: 8px 12px;
  text-decoration: none;
  width: auto;
}

.reaction-pill strong {
  font-size: 20px;
  line-height: 1;
}

.reaction-like {
  color: #8ff2bd;
}

.reaction-like:hover,
.reaction-like.is-active {
  border-color: #8fc7ff;
  box-shadow:
    inset 0 0 0 2px rgba(143, 199, 255, 0.18),
    0 0 18px rgba(47, 243, 224, 0.18);
}

.reaction-share {
  color: #ff8d96;
}

.reaction-comments {
  color: #b8beca;
}

.reaction-symbol {
  display: inline-block;
  flex: 0 0 auto;
  height: 24px;
  position: relative;
  width: 24px;
}

.reaction-like-symbol {
  background: #79f2b0;
  clip-path: polygon(58% 0, 18% 50%, 44% 50%, 33% 100%, 84% 38%, 57% 38%, 72% 0);
}

.reaction-share-symbol::before {
  background: #ff8d96;
  content: "";
  height: 25px;
  left: 4px;
  position: absolute;
  top: 0;
  width: 5px;
}

.reaction-share-symbol::after {
  background: #ff8d96;
  clip-path: polygon(0 0, 100% 12%, 78% 48%, 100% 84%, 0 72%);
  content: "";
  height: 17px;
  left: 7px;
  position: absolute;
  top: 2px;
  width: 18px;
}

.reaction-comments-symbol::before,
.reaction-comments-symbol::after {
  background: #b8beca;
  border-radius: 50%;
  box-shadow: 8px 1px 0 #b8beca;
  content: "";
  height: 12px;
  position: absolute;
  width: 14px;
}

.reaction-comments-symbol::before {
  left: 1px;
  top: 4px;
}

.reaction-comments-symbol::after {
  background: #8c94a1;
  box-shadow: 8px 1px 0 #8c94a1;
  left: 6px;
  top: 9px;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-actions form {
  width: auto;
}

.community-actions button {
  min-width: 190px;
}

.community-actions button.is-liked {
  background: var(--tetris-cyan);
  border-color: var(--tetris-cyan);
}

.comment-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.comment-form button {
  justify-self: start;
  width: auto;
}

.comment-form p,
.comment-login p {
  margin: 0;
}

.comment-login {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-card {
  background: rgba(8, 11, 17, 0.52);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tetris-cyan);
  border-radius: 10px;
  padding: 14px;
}

.comment-card.is-pending {
  border-left-color: var(--tetris-yellow);
}

.comment-card header {
  align-items: center;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
}

.comment-card header span,
.comment-card header em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.comment-card header em {
  color: var(--tetris-yellow);
}

.comment-card p {
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}

.article-related {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(14px, 3vw, 20px);
}

.article-news-picks {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  padding: clamp(14px, 3vw, 20px);
}

.article-news-picks .news-feed-list {
  grid-template-columns: 1fr;
}

.article-news-picks .feed-card {
  box-shadow:
    inset 0 -4px rgba(0, 0, 0, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.article-news-picks .feed-card > a {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  padding: 16px;
}

.article-news-picks .feed-thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.article-news-picks .feed-card h2 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-news-picks .feed-card p {
  display: -webkit-box;
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article-related .section-head {
  margin-bottom: 14px;
}

.article-related-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-related-card {
  background: rgba(16, 18, 19, 0.72);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tetris-cyan);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 8px;
  padding: 14px;
  text-decoration: none;
}

.article-related-card small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.article-related-card strong {
  color: var(--tile);
  font-size: 18px;
  line-height: 1.15;
}

.article-related-card span {
  color: var(--muted);
  font-size: 14px;
}

.share-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
}

.share-actions span {
  color: var(--muted);
  font-weight: 850;
  margin-right: 4px;
}

.share-actions a {
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.game-hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr);
}

.empty-state {
  min-height: 260px;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 28px 16px;
}

.footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

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

@media (max-width: 1120px) {
  .content-layout,
  .category-detail-layout.has-rail,
  .game-hero,
  .news-grid,
  .news-feed,
  .editorial-hero,
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .card-grid.wide,
  .card-grid.games,
  .category-grid,
  .category-grid.wide,
  .collection-grid,
  .portal-card-list,
  .portal-ticker,
  .category-index .category-list,
  .admin-stat-grid,
  .portal-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-hero-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 940px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand,
  .header-actions,
  .nav {
    justify-self: stretch;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 12px;
    position: static;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand-mark {
    border-radius: 12px;
    height: 44px;
    width: 44px;
  }

  .brand-mark img {
    border-radius: 10px;
  }

  .header-actions {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-self: stretch;
  }

  .nav {
    flex-wrap: nowrap;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    justify-self: stretch;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 5px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .nav-menu {
    left: auto;
    max-width: calc(100vw - 32px);
    min-width: min(240px, calc(100vw - 32px));
    right: 0;
  }

  .site-search {
    align-items: stretch;
    display: grid;
    grid-template-columns: 0 38px;
    justify-self: end;
    max-width: 38px;
    min-width: 38px;
    width: 38px;
  }

  .site-search:hover,
  .site-search:focus-within {
    grid-template-columns: minmax(0, 1fr) 38px;
    max-width: 100%;
    width: 100%;
  }

  .site-search input,
  .search-icon-button {
    min-height: 38px;
  }

  .search-icon-button {
    flex-basis: 38px;
    height: 38px;
    min-width: 38px;
    width: 38px;
  }

  .account-icon-button {
    height: 38px;
    width: 38px;
  }

  .nav a {
    font-size: 14px;
    min-height: 34px;
    padding: 7px 10px;
  }

  main {
    padding: 12px 12px 48px;
  }

  h1 {
    font-size: 40px;
  }

  .article-view h1 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.05;
  }

  h2 {
    font-size: 26px;
  }

  .quick-panel {
    padding: 14px;
  }

  .quick-panel-head {
    padding: 18px;
  }

  .quick-panel-head h1 {
    font-size: 34px;
  }

  .quick-actions,
  .photo-strip,
  .feed-filters,
  .portal-ticker,
  .card-grid,
  .card-grid.wide,
  .card-grid.games,
  .collection-grid,
  .news-feed-list,
  .category-grid,
  .category-grid.wide,
  .search-panel,
  .account-grid,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .content-card.is-featured {
    grid-row: auto;
  }

  .split-title {
    display: grid;
  }

  .portal-section-head {
    align-items: flex-start;
    display: grid;
  }

  .portal-hero {
    gap: 14px;
    padding: 16px;
  }

  .portal-hero h1 {
    font-size: clamp(31px, 8vw, 42px);
    line-height: 0.98;
  }

  .portal-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .portal-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-hero-actions .button-primary,
  .portal-hero-actions .button-secondary {
    font-size: 14px;
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .portal-hero-card {
    min-height: 106px;
  }

  .portal-hero-card span {
    inset: auto 9px 9px;
    max-width: calc(100% - 18px);
  }

  .portal-hero-card strong {
    font-size: 15px;
    line-height: 1.05;
  }

  .portal-hero-card small {
    font-size: 10px;
  }

  .portal-pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-pill-grid a {
    grid-template-columns: 1fr;
    grid-template-rows: 76px 1fr;
    min-height: 136px;
  }

  .portal-pill-thumb {
    min-height: 76px;
  }

  .photo-card {
    min-height: 190px;
  }

  .feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-tabs {
    align-items: stretch;
    display: grid;
  }

  .feed-filters {
    display: grid;
  }

  .article-cover figcaption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .article-toc {
    padding: 12px;
  }

  .article-toc-head {
    justify-content: flex-start;
  }

  .article-toc-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .article-toc-list::-webkit-scrollbar {
    display: none;
  }

  .article-toc-list a {
    flex: 0 0 auto;
    max-width: min(260px, 76vw);
  }

  .article-body h2,
  .article-body h3 {
    scroll-margin-top: 22px;
  }

  .article-view {
    scroll-margin-top: 14px;
  }

  .article-top-link {
    bottom: 14px;
    font-size: 13px;
    min-height: 40px;
    min-width: 104px;
    padding: 8px 14px;
    right: 14px;
  }

  .share-actions {
    align-items: stretch;
  }

  .community-head,
  .comment-login {
    align-items: flex-start;
    display: grid;
  }

  .community-counters {
    justify-content: flex-start;
  }

  .share-actions span {
    flex-basis: 100%;
  }

  .share-actions a {
    flex: 1 1 auto;
    text-align: center;
  }

  .filter-tabs a {
    justify-content: space-between;
  }

  .category-index .category-list {
    grid-template-columns: 1fr;
  }

  .category-title-stats,
  .category-filter-row {
    display: grid;
  }

  .account-panel .section-head,
  .profile-list div,
  .inline-code-form {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-list dd {
    text-align: left;
  }

  .feed-card > a {
    gap: 12px;
    padding: 12px;
    grid-template-columns: minmax(104px, 32vw) minmax(0, 1fr);
  }

  .game-feed-card {
    grid-template-areas:
      "thumb badge"
      "thumb copy"
      "thumb text"
      "thumb stats"
      "thumb chips";
    grid-template-columns: minmax(128px, 34vw) minmax(0, 1fr);
    padding: 12px;
  }

  .game-feed-thumb {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .game-feed-card h2 {
    font-size: 22px;
  }

  .game-feed-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .feed-thumb {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .feed-card h2 {
    font-size: 19px;
    line-height: 1.08;
  }

  .feed-card p {
    display: -webkit-box;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .page-title {
    padding: 22px 18px;
  }
}

@media (max-width: 640px) {
  .article-news-picks .feed-card > a {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .portal-hero-board {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .portal-hero-card {
    aspect-ratio: 1.08;
    min-height: 98px;
  }
}

@media (max-width: 820px) {
  .feed-card > a {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
  }

  .game-feed-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .game-feed-card h2 {
    font-size: 19px;
  }

  .portal-card-list {
    grid-template-columns: 1fr;
  }

  .portal-card-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 128px;
  }

  .portal-card {
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 128px;
  }

  .portal-card-copy {
    padding: 12px;
  }

  .portal-card strong {
    font-size: 17px;
    -webkit-line-clamp: 3;
  }

  .portal-card p {
    display: none;
  }

  .portal-pill-grid {
    grid-template-columns: 1fr;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .feed-card > a {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .feed-meta {
    display: none;
  }

  .portal-pill-grid a {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 92px;
  }

  .portal-pill-thumb {
    min-height: 92px;
  }
}

/* Social editorial redesign: keep the existing DOM/data contracts and replace only the visual language. */
:root {
  --bg: #090d10;
  --shell: #0f1519;
  --panel: #141b20;
  --panel-2: #1a2228;
  --tile: #e7ece8;
  --tile-soft: #f3f5f0;
  --ink: #101417;
  --text: #f2f5f1;
  --muted: #aab6b0;
  --line: rgba(226, 235, 230, 0.11);
  --line-dark: rgba(12, 16, 18, 0.18);
  --blue: #8aa7ff;
  --teal: #60d7c9;
  --amber: #d6b66a;
  --red: #ee7f73;
  --green: #8ed7a1;
  --violet: #b9a7ff;
  --tetris-cyan: #67d9cd;
  --tetris-yellow: #d8bd67;
  --tetris-magenta: #a47bd8;
  --tetris-blue: #7e9bde;
  --tetris-red: #d9776e;
  --tetris-green: #73bf8e;
  --tetris-ink: #080c0f;
  --tetris-grid: rgba(103, 217, 205, 0.035);
  --social-surface: rgba(16, 23, 28, 0.94);
  --social-surface-2: rgba(20, 29, 35, 0.96);
  --social-card: rgba(18, 26, 31, 0.96);
  --social-card-hover: rgba(24, 35, 42, 0.98);
  --social-border: rgba(226, 235, 230, 0.12);
  --social-border-strong: rgba(96, 215, 201, 0.3);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(96, 215, 201, 0.08), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(126, 155, 222, 0.06), transparent 30%),
    linear-gradient(180deg, #0b1013 0%, #080b0d 56%, #0b0d0f 100%);
  color: var(--text);
}

.cube-field-piece {
  opacity: 0.09;
}

.cube-field-cell,
.cube-field-locked-cell {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    inset 0 -2px rgba(0, 0, 0, 0.2);
}

.cube-field-locked-cell {
  opacity: 0.13;
}

.topbar {
  backdrop-filter: blur(18px);
  background: rgba(11, 15, 18, 0.9);
  border-bottom: 1px solid rgba(226, 235, 230, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.brand-mark {
  background: rgba(7, 11, 13, 0.92);
  border-color: rgba(96, 215, 201, 0.28);
  border-radius: 12px;
  box-shadow: none;
}

.brand-mark img {
  border-radius: 10px;
}

.nav {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(226, 235, 230, 0.1);
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.nav a,
.button-primary,
.button-secondary,
button,
.load-more,
.account-icon-button,
.search-icon-button {
  border-radius: 8px;
  box-shadow: none;
}

.nav a {
  color: rgba(242, 245, 241, 0.72);
}

.nav a:hover,
.nav a.is-active {
  background: rgba(96, 215, 201, 0.13);
  border-color: rgba(96, 215, 201, 0.24);
  color: var(--text);
}

.button-primary,
button,
.load-more {
  background: var(--text);
  border-color: rgba(242, 245, 241, 0.82);
  color: var(--ink);
}

.button-secondary,
.account-icon-button,
.search-icon-button {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--social-border);
  color: var(--text);
}

.button-primary:hover,
.button-secondary:hover,
button:hover,
.load-more:hover,
.account-icon-button:hover,
.account-icon-button.is-active,
.search-icon-button:hover {
  background: rgba(96, 215, 201, 0.14);
  border-color: rgba(96, 215, 201, 0.36);
  color: var(--text);
  transform: translateY(-1px);
}

.site-search input {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 8px;
}

main {
  max-width: 1480px;
}

h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.eyebrow,
.content-kicker,
.feed-type,
.portal-card-meta,
.portal-hero-card small,
.portal-pill-copy small,
.compact-card span,
.photo-card span,
.account-comments article span {
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.quick-panel,
.editorial-hero,
.live-shell,
.home-section,
.content-column,
.rail,
.table-shell,
.article-view,
.game-view,
.empty-state,
.page-title,
.portal-ticker,
.auth-card,
.account-panel,
.article-community,
.admin-stat-grid {
  background: var(--social-surface);
  border-color: var(--social-border);
  box-shadow: var(--shadow);
}

.portal-home {
  gap: clamp(18px, 2.4vw, 28px);
}

.portal-hero {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(96, 215, 201, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(126, 155, 222, 0.06), transparent 38%),
    var(--social-surface);
  background-size: auto;
  border-color: var(--social-border);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.18fr);
  image-rendering: auto;
  min-height: 420px;
}

.portal-hero::before {
  background: linear-gradient(90deg, rgba(96, 215, 201, 0.68), rgba(126, 155, 222, 0.22), transparent);
  height: 1px;
  opacity: 1;
}

.portal-hero-copy {
  align-content: center;
  border-right: 1px solid rgba(226, 235, 230, 0.08);
  padding-right: clamp(8px, 2vw, 24px);
}

.portal-hero h1 {
  font-size: clamp(40px, 4.7vw, 72px);
  letter-spacing: 0;
  line-height: 0.98;
}

.portal-hero p:not(.eyebrow) {
  color: rgba(242, 245, 241, 0.76);
  font-size: 18px;
}

.portal-hero .tetris-stack {
  display: none;
}

.portal-hero-actions {
  margin-top: 8px;
}

.portal-hero-board {
  align-self: center;
  background: rgba(8, 12, 15, 0.5);
  background-size: auto;
  border-color: rgba(226, 235, 230, 0.08);
  border-radius: 8px;
  gap: 12px;
  padding: 12px;
}

.portal-hero-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(226, 235, 230, 0.1);
  border-radius: 8px;
}

.portal-hero-card::after {
  background:
    linear-gradient(180deg, transparent 14%, rgba(7, 10, 12, 0.86)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 62%);
}

.portal-hero-card strong {
  font-size: 16px;
}

.portal-ticker {
  gap: 12px;
}

.portal-ticker a,
.compact-card,
.category-tile,
.content-card,
.collection-card,
.article-related-card,
.news-list-item,
.account-list a,
.account-comments article {
  background: var(--social-card);
  border-color: var(--social-border);
  color: var(--text);
}

.portal-card,
.feed-card,
.game-feed-card {
  background: var(--social-card);
  border: 1px solid var(--social-border);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.portal-card.type-news,
.portal-card.type-fix,
.portal-card.type-collection,
.portal-card.type-guide {
  border-top: 1px solid var(--social-border);
}

.feed-card,
.feed-card.type-news,
.feed-card.type-guide,
.feed-card.type-fix,
.feed-card.type-collection {
  border-left: 1px solid var(--social-border);
}

.portal-card::before,
.feed-card::before,
.game-feed-card::before {
  background: linear-gradient(90deg, rgba(96, 215, 201, 0.56), transparent);
  content: "";
  display: block;
  height: 1px;
  opacity: 0.85;
}

.feed-card > a,
.game-feed-card {
  padding: clamp(12px, 2vw, 18px);
}

.feed-card > a {
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
}

.feed-thumb,
.game-feed-thumb,
.portal-card-thumb,
.portal-pill-thumb {
  background: #080d10;
  border: 1px solid rgba(226, 235, 230, 0.08);
  border-radius: 8px;
}

.portal-card-copy {
  padding: 14px 15px 16px;
}

.feed-card h2,
.game-feed-card h2,
.portal-card strong {
  color: var(--text);
}

.feed-card h2,
.game-feed-card h2 {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.1;
}

.portal-card strong {
  font-size: 18px;
}

.feed-card p,
.game-feed-card p,
.portal-card p,
.compact-card small,
.live-head p:not(.eyebrow),
.portal-hero p:not(.eyebrow) {
  color: rgba(242, 245, 241, 0.68);
}

.feed-meta span,
.rank-badge,
.chips span,
.game-stats span,
.category-title-stats span,
.article-tag-list a,
.article-toc-list a,
.reaction-pill,
.community-counters span {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(226, 235, 230, 0.11);
  color: rgba(242, 245, 241, 0.72);
}

.feed-filters,
.filter-tabs,
.category-filter-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-filters a,
.filter-tabs a,
.category-filter-row button {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(226, 235, 230, 0.1);
  color: rgba(242, 245, 241, 0.72);
}

.feed-filters a:hover,
.feed-filters a.is-active,
.filter-tabs a:hover,
.filter-tabs a.is-active,
.category-filter-row button:hover,
.category-filter-row button.is-active {
  background: rgba(96, 215, 201, 0.12);
  border-color: rgba(96, 215, 201, 0.28);
  color: var(--text);
}

.live-summary {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--social-border);
}

.live-summary strong {
  color: var(--text);
}

.page-title,
.live-shell,
.article-view,
.game-view {
  border-radius: 8px;
}

.live-head h1 {
  font-size: clamp(42px, 5vw, 64px);
}

.article-body h2 {
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
}

.article-body h2::before {
  background: rgba(96, 215, 201, 0.6);
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 12px;
  width: 44px;
}

.article-body h3 {
  color: rgba(242, 245, 241, 0.88);
}

.article-toc,
.article-related,
.article-news-picks,
.article-community,
.article-engagement {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(226, 235, 230, 0.1);
  border-radius: 8px;
}

.article-news-picks .feed-card > a {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.article-top-link {
  background: rgba(12, 17, 20, 0.92);
  border-color: rgba(96, 215, 201, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  color: var(--text);
}

.skeleton-card {
  background: rgba(18, 26, 31, 0.86);
  border-color: rgba(226, 235, 230, 0.1);
}

.skeleton-media,
.skeleton-line {
  background: rgba(226, 235, 230, 0.12);
}

.portal-hero-card:hover,
.portal-card:hover,
.portal-pill-grid a:hover,
.portal-ticker a:hover,
.feed-card:hover,
.game-feed-card:hover,
.category-tile:hover,
.content-card:hover,
.collection-card:hover,
.compact-card:hover {
  background: var(--social-card-hover);
  border-color: rgba(96, 215, 201, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.portal-hero-card:hover img,
.portal-card:hover .portal-card-thumb img,
.portal-pill-grid a:hover .portal-pill-thumb img,
.feed-card:hover .feed-thumb img,
.game-feed-card:hover .game-feed-thumb img {
  transform: scale(1.025);
}

@media (max-width: 940px) {
  .portal-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .portal-hero-copy {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    backdrop-filter: none;
    gap: 8px;
  }

  main {
    padding: 12px 10px 44px;
  }

  h1 {
    font-size: 38px;
  }

  .portal-hero {
    border-radius: 8px;
    gap: 12px;
    padding: 14px;
  }

  .portal-hero h1 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .portal-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .portal-hero-board {
    display: flex;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .portal-hero-board::-webkit-scrollbar {
    display: none;
  }

  .portal-hero-card {
    flex: 0 0 min(72vw, 260px);
    min-height: 118px;
  }

  .feed-filters,
  .filter-tabs,
  .category-filter-row {
    display: flex;
    flex-wrap: nowrap;
    margin-inline: -2px;
    overflow-x: auto;
    padding: 0 2px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .feed-filters::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar,
  .category-filter-row::-webkit-scrollbar {
    display: none;
  }

  .feed-filters a,
  .filter-tabs a,
  .category-filter-row button {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: nowrap;
  }

  .live-head {
    padding-bottom: 12px;
  }

  .live-head h1 {
    font-size: 40px;
  }

  .live-summary {
    padding: 10px 12px;
  }

  .article-toc,
  .article-related,
  .article-news-picks,
  .article-community {
    padding: 12px;
  }
}

@media (max-width: 820px) {
  .feed-card > a,
  .article-news-picks .feed-card > a {
    grid-template-columns: minmax(132px, 34vw) minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .portal-hero-board {
    gap: 8px;
    grid-template-columns: none;
    padding: 8px;
  }

  .portal-hero-card {
    aspect-ratio: 16 / 10;
    flex-basis: min(78vw, 238px);
    min-height: 116px;
  }

  .portal-card {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .feed-card > a,
  .article-news-picks .feed-card > a {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .feed-card h2 {
    font-size: 18px;
  }

  .portal-card strong {
    font-size: 16px;
  }
}
