/* Shared palette, independent of the existing editorial layout. */
:root {
  color-scheme: dark;
  --ui-bg: #111315;
  --ui-surface: #191c20;
  --ui-raised: #23272c;
  --ui-text: #eef0f2;
  --ui-muted: #a7afb9;
  --ui-line: #30363d;
  --ui-accent: #86bfff;
  --ui-on-accent: #10243b;
  --ui-success: #79deb0;
}
:root[data-or-theme="light"] {
  color-scheme: light;
  --ui-bg: #f5f6f8;
  --ui-surface: #ffffff;
  --ui-raised: #e9edf2;
  --ui-text: #191e25;
  --ui-muted: #586474;
  --ui-line: #d9dfe6;
  --ui-accent: #245fbd;
  --ui-on-accent: #ffffff;
  --ui-success: #16734d;
}
body.or-refresh.or-editorial {
  --or-bg: var(--ui-bg);
  --or-bg-2: var(--ui-surface);
  --or-panel: var(--ui-surface);
  --or-panel-2: var(--ui-raised);
  --or-line: var(--ui-line);
  --or-text: var(--ui-text);
  --or-muted: var(--ui-muted);
  --or-soft: var(--ui-muted);
  --or-purple: var(--ui-accent);
  --or-purple-2: var(--ui-accent);
  --or-primary: var(--ui-accent);
  --or-primary-hover: var(--ui-accent);
  --or-green: var(--ui-success);
  background: var(--ui-bg);
  color: var(--ui-text);
  color-scheme: inherit;
}
.or-editorial :is(a, button, input, select, textarea):focus-visible { outline-color: var(--ui-accent); }
.or-editorial a:hover { text-decoration: none; }
.or-editorial :is(.or-header, .or-footer) { background: var(--ui-bg); border-color: var(--ui-line); }
.or-editorial .or-header__inner { gap: 20px; }
.or-editorial .or-logo__mark { background: var(--ui-accent); color: var(--ui-on-accent); transform: none; }
.or-editorial .or-header .or-logo__mark--image { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.or-editorial .or-header .or-logo__mark--image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.or-editorial .or-logo__text, .or-editorial .or-logo__text :is(span, b) { color: var(--ui-text); }
.or-editorial .or-nav > a { color: var(--ui-muted); }
.or-editorial .or-nav > a:is(:hover, .is-active, [aria-current="page"]) { color: var(--ui-text); }
.or-editorial .or-nav > a::after { background: var(--ui-accent); }
.or-editorial .or-nav > a:not(.is-active):not([aria-current="page"])::after { opacity: 0; }
.or-editorial .or-search { background: var(--ui-surface); border-color: var(--ui-line); }
.or-editorial .or-search:focus-within { border-color: var(--ui-accent); box-shadow: none; }
.or-editorial .or-search :is(input, button) { color: var(--ui-text); }
.or-editorial input::placeholder { color: var(--ui-muted); opacity: 1; }
.or-editorial .or-search-results { background: var(--ui-surface); border-color: var(--ui-line); }
.or-editorial .or-auth__login { color: var(--ui-text); }
.or-editorial :is(.or-btn, .or-panel__btn), .or-editorial .or-auth > .or-btn { background: var(--ui-accent); color: var(--ui-on-accent); }
.or-editorial :is(.or-btn, .or-panel__btn):hover { background: var(--ui-accent); filter: brightness(1.08); }
.or-editorial .or-ghost { background: var(--ui-surface); border-color: var(--ui-line); color: var(--ui-text); }
.or-editorial .or-theme-toggle {
  display: inline-grid; place-items: center; flex: 0 0 40px;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--ui-muted); box-shadow: none; cursor: pointer;
}
.or-editorial .or-theme-toggle:hover { background: var(--ui-raised); color: var(--ui-text); }
.or-editorial .or-theme-toggle span {
  display: block; width: 19px; height: 19px; background: currentColor;
  mask: url("../images/appearance-sun.svg") center / contain no-repeat;
}
[data-or-theme="light"] .or-theme-toggle span { mask-image: url("../images/appearance-moon.svg"); }
.or-editorial .or-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.or-editorial .or-discover { padding-top: 24px; }
.or-editorial .or-discover-bottom { border-color: var(--ui-line); }
.or-editorial .or-shortcuts a { color: var(--ui-text); }
.or-editorial .or-shortcuts :is(span, a:hover) { color: var(--ui-accent); }
.or-editorial .or-discover-counts span { color: var(--ui-muted); }
.or-editorial .or-discover-counts b { color: var(--ui-text); }
.or-editorial .or-featured-games > .or-game::before {
  background: linear-gradient(90deg, #0b0d10db, #0b0d1044 53%, #0b0d1000 78%), linear-gradient(0deg, #0b0d10a6, transparent 55%);
}
.or-editorial .or-featured-games > .or-game::after { background: #f6f7f9; color: #191e25; border-color: transparent; }
.or-editorial .or-featured-games > .or-game > span { color: #eef0f2; }
.or-editorial .or-section__head h2, .or-editorial .or-home-mini-panel .or-section__head h2 { color: var(--ui-text); font-size: 27px; }
.or-editorial .or-section__head > a { color: var(--ui-accent); }
.or-editorial .or-games .or-game > b { color: var(--ui-text); }
.or-editorial .or-games .or-game > small { color: var(--ui-muted); font-size: 12px; line-height: 1.6; }
.or-editorial .or-games .or-game > span { background: #111315eb; color: #eef0f2; }
.or-editorial .or-games .or-game:hover { transform: none; }
.or-editorial .or-games .or-game > img { transition: filter .18s; }
.or-editorial .or-games .or-game:hover > img { filter: brightness(1.08); }
.or-editorial .or-games .or-game > b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; padding-top: 12px; height: 56px; min-height: 56px; font-size: 14px; line-height: 20px;
}
.or-editorial .or-games .or-game:is(:hover, :focus-visible) > b { color: var(--ui-accent); }
.or-editorial .or-games .or-game > .or-game-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 8px; padding: 12px 0 0; border-top: 1px solid var(--ui-line);
}
/* Legacy rank badges target every span inside a game, not just the rank. */
.or-editorial .or-game .or-game-stats span {
  position: static; inset: auto; z-index: auto; width: auto; height: auto; min-width: 0;
  padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  transform: none; opacity: 1; text-shadow: none;
}
.or-editorial .or-game-stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; gap: 4px; text-align: left; }
.or-editorial .or-game-stat-value { display: flex; align-items: center; justify-content: flex-start; gap: 6px; white-space: nowrap; }
.or-editorial .or-game-stat-value strong { font-size: 13px; line-height: 20px; font-weight: 650; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.or-editorial .or-game-stat-value i { display: block; flex: 0 0 14px; width: 14px; height: 14px; background: var(--ui-muted); mask: url("../images/appearance-users.svg") center / contain no-repeat; }
.or-editorial .or-game-stat--rating i { background: var(--ui-success); mask-image: url("../images/appearance-thumbs-up.svg"); }
.or-editorial .or-game .or-game-stats .or-game-stat-label { display: block; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--ui-muted); }
.or-editorial .or-game-stat-empty { grid-column: 1 / -1; font-size: 12px; color: var(--ui-muted); }
.or-editorial .or-featured-games > .or-game > .or-game-stats { display: flex; gap: 28px; }
.or-editorial .or-featured-games .or-game-stat { flex-direction: row; align-items: center; gap: 8px; }
.or-editorial .or-featured-games .or-game-stat-value strong { color: #fff; }
.or-editorial .or-featured-games .or-game .or-game-stats .or-game-stat-label { color: #d7dce3; }
.or-editorial .or-featured-games .or-game-stat--online i { background: #d7dce3; }
/* Keep featured content in flow so long game names cannot collide with stats. */
.or-editorial .or-featured-games > .or-game:first-child {
  display: grid; grid-template-columns: minmax(0, 640px); grid-template-rows: auto auto auto auto;
  align-content: center; justify-items: start; gap: 18px; height: auto; min-height: 350px; padding: 40px;
}
.or-editorial .or-featured-games > .or-game > img { position: absolute; inset: 0; object-position: center 43%; }
.or-editorial .or-featured-games > .or-game::before {
  background: linear-gradient(90deg, #0b0d10ed, #0b0d108a 48%, #0b0d1010 85%), linear-gradient(0deg, #0b0d1066, transparent);
}
.or-editorial .or-featured-games > .or-game > :is(span, b, small),
.or-editorial .or-featured-games > .or-game::after { position: relative; inset: auto; max-width: 100%; margin: 0; }
.or-editorial .or-featured-games > .or-game > b {
  display: block; font-size: 48px; line-height: 1.12; overflow-wrap: anywhere; -webkit-line-clamp: unset;
}
.or-editorial .or-featured-games > .or-game > .or-game-stats { flex-wrap: wrap; gap: 16px 28px; }
.or-editorial .or-featured-games .or-game-stat { flex-direction: column; align-items: flex-start; gap: 4px; }
.or-editorial .or-featured-games .or-game-stat-value strong { font-size: 18px; line-height: 24px; }
.or-editorial .or-featured-games > .or-game::after {
  display: flex; align-items: center; min-height: 44px; padding: 10px 18px; margin-top: 4px;
}
.or-editorial .or-featured-games > .or-game:focus-visible { outline-offset: 4px; }
.or-editorial .or-home-triple > .or-home-mini-panel:first-child .or-article-list {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 36px; align-items: start;
}
.or-editorial .or-home-triple > .or-home-mini-panel:first-child .or-article-list li { min-width: 0; }
.or-editorial .or-home-mini-panel .or-article-list li:first-child { grid-row: span 2; }
.or-editorial .or-home-mini-panel .or-article-list li:first-child > a > img { aspect-ratio: 16 / 8; }
.or-editorial .or-home-mini-panel .or-article-list li:first-child strong { font-size: 26px; line-height: 1.3; }
.or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) { padding-bottom: 24px; }
.or-editorial .or-home-mini-panel .or-article-list li:nth-child(n+3) { padding-top: 24px; border-top: 1px solid var(--ui-line); }
.or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) > a {
  display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 20px; align-items: start;
}
.or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) > a > img { aspect-ratio: 4 / 3; }
.or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) > a > span { min-width: 0; padding: 0; }
.or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) strong { font-size: 18px; line-height: 1.45; -webkit-line-clamp: 3; }
.or-editorial .or-home-mini-panel .or-article-list li b { font-size: 12px; }
@media (max-width: 800px) {
  .or-editorial .or-home-triple > .or-home-mini-panel:first-child .or-article-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .or-editorial .or-home-mini-panel .or-article-list li:first-child { grid-row: auto; }
  .or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) { padding: 24px 0 0; border-top: 1px solid var(--ui-line); }
  .or-editorial .or-home-mini-panel .or-article-list li:first-child strong { font-size: 23px; }
}
@media (max-width: 600px) {
  .or-editorial .or-featured-games > .or-game:first-child { min-height: 360px; padding: 28px 20px; gap: 16px; align-content: end; }
  .or-editorial .or-featured-games > .or-game > b { font-size: 36px; }
  .or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) > a { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .or-editorial .or-home-mini-panel .or-article-list li:not(:first-child) strong { font-size: 16px; }
}
.or-editorial .or-grid-main { border-color: var(--ui-line); }
/* Extend only the painted background, not the scrollable layout width. */
.or-editorial .or-grid-main::before {
  inset: 0; background: var(--ui-surface);
  box-shadow: 0 0 0 100vmax var(--ui-surface); clip-path: inset(0 -100vmax);
}
.or-editorial .or-home-codes .or-code-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 1fr;
}
.or-editorial .or-home-codes .or-home-code-row,
.or-editorial .or-home-codes .or-home-code-row:is(:hover, :focus-within) {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 44px; grid-template-rows: 32px auto;
  align-items: center; gap: 12px 10px; min-width: 0; min-height: 132px; height: auto; margin: 0; padding: 14px;
  border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-bg); box-shadow: none; transform: none;
}
.or-editorial .or-home-codes .or-home-code-row:is(:hover, :focus-within) { border-color: var(--ui-accent); }
.or-editorial .or-home-codes .or-home-code-icon { grid-column: 1; grid-row: 1; display: block; width: 32px; height: 32px; }
.or-editorial .or-home-codes .or-home-code-icon .or-game-avatar {
  display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover;
  border: 1px solid var(--ui-line); border-radius: 6px; background: var(--ui-raised); box-shadow: none;
}
.or-editorial .or-home-codes .or-home-code-main { display: contents; }
.or-editorial .or-home-codes .or-home-code-game {
  grid-column: 2; grid-row: 1; color: var(--ui-muted); font-size: 12px; line-height: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal;
}
.or-editorial .or-home-codes .or-home-code-game:hover { color: var(--ui-accent); }
.or-editorial .or-home-codes .or-home-code-chip {
  max-width: 100%; color: var(--ui-text); font-size: 16px; line-height: 1.4;
  white-space: normal; overflow: visible; overflow-wrap: anywhere;
}
.or-editorial .or-home-codes .or-home-code-meta {
  grid-column: 1 / 3; grid-row: 2; align-self: start; margin-top: 0;
  align-items: flex-start; flex-direction: column; gap: 4px;
}
.or-editorial .or-home-codes .or-home-code-meta small { color: var(--ui-muted); font-size: 13px; line-height: 1.5; white-space: normal; overflow: visible; }
.or-editorial .or-home-codes .or-home-code-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  grid-column: 3; grid-row: 1 / 3; align-self: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 0;
  background: var(--ui-surface); color: var(--ui-accent); border-color: var(--ui-line);
  box-shadow: none; transform: none; filter: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.or-editorial .or-home-codes .or-home-code-copy::before {
  content: ""; display: block; flex: 0 0 16px; width: 16px; height: 16px;
  background: currentColor; mask: url("../images/refresh-copy.svg") center / contain no-repeat;
}
.or-editorial .or-home-codes .or-home-code-copy:is(:hover, :focus-visible, :active, .is-copied) {
  background: var(--ui-raised); border-color: var(--ui-accent); box-shadow: none; transform: none; filter: none;
}
.or-editorial .or-home-codes .or-home-code-copy.is-copied { color: var(--ui-success); border-color: var(--ui-success); }
.or-editorial .or-home-codes .or-home-code-copy.is-copied::before { mask-image: url("../images/appearance-check.svg"); }
.or-editorial .or-home-update-card > span > b { color: var(--ui-accent); }
.or-editorial .or-home-update-card strong { color: var(--ui-text); }
.or-editorial .or-home-update-card :is(small, em) { color: var(--ui-muted); }
.or-editorial .or-home-updates .or-update-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.or-editorial .or-home-updates .or-home-update-card > .or-home-update-cover { aspect-ratio: 16 / 8; }
.or-editorial .or-home-updates .or-home-update-card > span { gap: 10px; }
.or-editorial .or-home-updates .or-home-update-card em { padding-top: 4px; font-size: 12px; }
.or-editorial .or-home-updates .or-home-update-card:not(:first-child) {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 18px;
  padding-top: 24px; border-top: 1px solid var(--ui-line);
}
.or-editorial .or-home-updates .or-home-update-card:not(:first-child) > .or-home-update-cover { aspect-ratio: 4 / 3; }
.or-editorial .or-home-updates .or-home-update-card:not(:first-child) > span { padding: 0; gap: 8px; }
.or-editorial .or-home-updates .or-home-update-card:not(:first-child) strong { font-size: 17px; }
.or-editorial .or-home-updates .or-home-update-card:not(:first-child) small { display: none; }
.or-editorial .or-home-mini-panel li strong { color: var(--ui-text); }
.or-editorial .or-home-mini-panel li b, .or-editorial .or-home-mini-panel .or-article-list li b { color: var(--ui-accent); }
.or-editorial .or-home-mini-panel li small { color: var(--ui-muted); font-size: 12px; }
.or-editorial .or-home-triple { border-top: 0; padding-top: 0; }
.or-editorial .or-section__head > a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 0; border-radius: 0; font-size: 13px; }
.or-editorial .or-home-mini-panel .or-section__head > a { font-size: 13px; }
.or-editorial :is(.or-section__head > a, .or-shortcuts a, .or-footer nav a):hover { color: var(--ui-text); text-decoration: none; }
.or-editorial :is(.or-section__head > a, .or-shortcuts a, .or-footer nav a),
.or-editorial :is(.or-section__head > a, .or-shortcuts a, .or-footer nav a):is(:hover, :focus-visible, :active) {
  background: none; box-shadow: none; transform: none; filter: none;
}
.or-editorial :is(.or-home-mini-panel li > a, .or-home-update-card):is(:hover, :focus-visible) strong { color: var(--ui-accent); }
.or-editorial :is(.or-home-mini-panel li > a, .or-home-update-card, .or-benefits a):is(:hover, :focus-visible) { background: none; box-shadow: none; transform: none; }
.or-editorial .or-benefits a { color: var(--ui-muted); }
.or-editorial .or-benefits i { display: none; }
.or-editorial .or-footer :is(p, nav a) { color: var(--ui-muted); }
.or-editorial .or-social a { background: var(--ui-surface); color: var(--ui-text); border-color: var(--ui-line); }
.or-editorial .or-social a:hover { background: var(--ui-raised); color: var(--ui-accent); border-color: var(--ui-accent); box-shadow: none; transform: none; }
.or-editorial .or-home-script-list small em.is-working { color: var(--ui-success); }
.or-editorial .or-home-script-list small em.is-working::before { background: var(--ui-success); }
.or-editorial .or-search-result { color: var(--ui-text); }
.or-editorial .or-search-result:is(:hover, .is-active) { background: var(--ui-raised); }
.or-editorial :is(.or-search-result-title, .or-search-empty strong) { color: var(--ui-text); }
.or-editorial :is(.or-search-result-subtitle, .or-search-group-title, .or-search-empty span) { color: var(--ui-muted); }
.or-editorial .or-search-result-badge { background: var(--ui-raised); color: var(--ui-accent); border-color: var(--ui-line); }
.or-editorial .or-catalog-hero h1 { color: var(--ui-text); }
.or-editorial .or-catalog-hero p { color: var(--ui-muted); }
.or-editorial .or-catalog-hero > span { background: var(--ui-surface); border-color: var(--ui-line); color: var(--ui-accent); }
.or-editorial :is(.or-videos-toolbar, .or-updates-toolbar, .or-articles-toolbar, .or-scripts-toolbar, .or-codes-toolbar, .or-games-toolbar) { background: var(--ui-surface); border-color: var(--ui-line); }
.or-editorial :is(.or-videos-search, .or-updates-search, .or-articles-search, .or-scripts-search, .or-codes-search, .or-games-search) input { background: var(--ui-bg); border-color: var(--ui-line); color: var(--ui-text); }
.or-editorial :is(.or-videos-filters, .or-updates-filters, .or-articles-filters, .or-scripts-filters, .or-codes-filters, .or-games-filters) button { background: var(--ui-raised); color: var(--ui-text); border-color: var(--ui-line); }
.or-editorial :is(.or-videos-filters, .or-updates-filters, .or-articles-filters, .or-scripts-filters, .or-codes-filters, .or-games-filters) button.is-active { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-on-accent); }
.or-editorial :is(.or-video-card, .or-update-feed-card, .or-article-card, .or-script-card, .or-catalog-card, .or-code-card) { background: var(--ui-surface); border-color: var(--ui-line); }
.or-editorial :is(.or-video-card, .or-update-feed-card, .or-article-card, .or-script-card, .or-catalog-card):hover { border-color: var(--ui-accent); }
.or-editorial :is(.or-video-card-title, .or-update-feed-title, .or-article-card-title, .or-code-card .or-code-value) { color: var(--ui-text); }
.or-editorial :is(.or-video-card-excerpt, .or-update-feed-excerpt, .or-article-card-excerpt) { color: var(--ui-muted); }
.or-editorial :is(.or-video-card-footer, .or-article-card-footer) { border-color: var(--ui-line); }
.or-editorial .or-code-card .or-code-copy { background: var(--ui-raised); border-color: var(--ui-line); color: var(--ui-accent); }

/* Catalog content follows the same edges and palette as its heading. */
.or-editorial .or-main:has(.or-catalog) { padding-top: 24px; }
.or-editorial :is(.or-articles-grid, .or-video-catalog-grid, .or-scripts-catalog-grid) { padding: 0; gap: 24px; }
.or-editorial :is(.or-article-card-body, .or-video-card-body) { padding: 20px; }
.or-editorial .or-article-card-image { border-radius: 6px; }
.or-editorial :is(.or-article-card-game em, .or-script-status:not(.is-working):not(.is-outdated)) { background: var(--ui-raised); color: var(--ui-muted); border-color: var(--ui-line); border-radius: 5px; }
.or-editorial :is(.or-article-card-game a, .or-video-card-game, .or-script-card-game, .or-script-card-link, .or-article-card-footer a, .or-video-card-footer a) { color: var(--ui-accent); font-weight: 650; }
.or-editorial :is(.or-article-card-game a, .or-video-card-game, .or-article-card-title, .or-video-card-title, .or-article-card-footer a, .or-video-card-footer a):hover { color: var(--ui-accent); text-decoration: none; }
.or-editorial :is(.or-video-card-meta, .or-video-card-footer, .or-script-card-meta) { color: var(--ui-muted); }
.or-editorial .or-video-card-meta span + span::before { background: var(--ui-muted); }
.or-editorial .or-video-card-footer { margin-top: auto; padding-top: 16px; }
.or-editorial .or-video-card-excerpt { margin-bottom: 16px; }
.or-editorial .or-video-card:hover .or-video-card-preview i { background: #111315e6; }
.or-editorial :is(.or-videos-sort, .or-scripts-status-filter) { background: var(--ui-raised); border-color: var(--ui-line); border-radius: 6px; }
.or-editorial :is(.or-videos-sort, .or-scripts-status-filter) span { color: var(--ui-muted); }
.or-editorial :is(.or-videos-sort, .or-scripts-status-filter) select { color: var(--ui-text); }
.or-editorial :is(.or-videos-sort, .or-scripts-status-filter) option { background: var(--ui-surface); color: var(--ui-text); }
.or-editorial :is(.or-article-card-footer, .or-video-card-footer) a { display: inline-flex; align-items: center; min-height: 40px; }
.or-editorial .or-script-catalog-card { background: var(--ui-surface); border-color: var(--ui-line); border-radius: 8px; box-shadow: none; }
.or-editorial .or-script-catalog-card:hover { background: var(--ui-surface); border-color: var(--ui-accent); }
.or-editorial .or-script-catalog-preview { border-radius: 6px; }
.or-editorial .or-script-catalog-title { font-size: 23px; font-weight: 700; color: var(--ui-text); }
.or-editorial :is(.or-script-catalog-title, .or-script-catalog-game):hover { color: var(--ui-accent); }
.or-editorial :is(.or-script-catalog-excerpt, .or-update-feed-date, .or-code-reward, .or-code-meta small) { color: var(--ui-muted); }
.or-editorial .or-script-catalog-meta span { background: var(--ui-raised); border-color: var(--ui-line); color: var(--ui-muted); border-radius: 5px; font-weight: 500; }
.or-editorial .or-script-catalog-meta .is-working, .or-editorial .or-code-status { color: var(--ui-success); }
.or-editorial .or-script-catalog-meta .is-working i, .or-editorial .or-code-status i { background: var(--ui-success); box-shadow: none; }
.or-editorial .or-script-catalog-action { background: var(--ui-raised); border-color: var(--ui-line); color: var(--ui-accent); border-radius: 6px; box-shadow: none; }
.or-editorial .or-script-catalog-action:hover { background: var(--ui-raised); border-color: var(--ui-accent); color: var(--ui-text); }
.or-editorial .or-updates-order { background: var(--ui-raised); border-color: var(--ui-line); border-radius: 6px; }
.or-editorial .or-updates-order span { color: var(--ui-muted); }
.or-editorial .or-updates-order select { color: var(--ui-text); }
.or-editorial .or-updates-order option { background: var(--ui-surface); color: var(--ui-text); }
.or-editorial :is(.or-updates-feed > h2, .or-codes-game-title b) { color: var(--ui-text); }
.or-editorial :is(.or-update-feed-action, .or-codes-game-link) { color: var(--ui-accent); }
.or-editorial :is(.or-update-feed-action, .or-codes-game-link):hover { color: var(--ui-text); }
.or-editorial .or-codes-game-header { border-color: var(--ui-line); }
.or-editorial .or-codes-game-title small { color: var(--ui-success); }
.or-editorial :is(.or-codes-no-results, .or-articles-no-results, .or-videos-no-results, .or-scripts-no-results, .or-updates-no-results) { color: var(--ui-text); }
.or-editorial :is(.or-codes-no-results, .or-articles-no-results, .or-videos-no-results, .or-scripts-no-results, .or-updates-no-results) small { color: var(--ui-muted); }
@media (min-width: 1024px) {
  .or-editorial .or-header__inner { display: flex; align-items: center; }
  .or-editorial .or-menu-btn { display: none; }
  .or-editorial .or-nav {
    display: flex; flex-direction: row; align-items: center; flex-shrink: 0;
    position: static; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  }
  .or-editorial .or-nav > a,
  .or-editorial .or-nav > a:is(:hover, :focus-visible, .is-active, [aria-current="page"]) {
    background: none; border-radius: 0; box-shadow: none; transform: none;
  }
  .or-editorial .or-nav > a::after { left: 0; right: 0; bottom: 15px; height: 2px; border-radius: 0; }
}
@media (min-width: 1024px) and (max-width: 1250px) {
  .or-editorial .or-header__inner { gap: 12px; }
  .or-editorial .or-nav { gap: 12px; }
  .or-editorial .or-games .or-game-stat-value strong { font-size: 12px; }
}
@media (max-width: 1023px) {
  .or-editorial .or-header__inner {
    grid-template-columns: minmax(0, 1fr) 40px 42px auto;
    grid-template-areas: "logo theme menu auth" "search search search search";
    gap: 8px 6px;
  }
  .or-editorial .or-theme-toggle { grid-area: theme; }
  .or-editorial .or-header .or-logo { gap: 7px; }
  .or-editorial .or-header .or-logo__text { font-size: 17px; }
  .or-editorial .or-menu-btn { border-color: var(--ui-line); }
  .or-editorial .or-menu-btn span { background: var(--ui-text); }
  .or-editorial .or-auth__login { padding-inline: 12px; background: var(--ui-surface); border-color: var(--ui-line); }
  .or-editorial .or-nav { background: var(--ui-surface); border-color: var(--ui-line); }
  .or-editorial .or-nav > a { background: var(--ui-raised); color: var(--ui-text); }
  .or-editorial .or-grid-main { grid-template-columns: 1fr; }
  .or-editorial .or-nav > a:is(:hover, :focus-visible, [aria-current="page"]) { background: var(--ui-raised); color: var(--ui-accent); }
}
@media (max-width: 600px) {
  .or-editorial .or-discover { padding-top: 16px; }
  .or-editorial .or-section__head h2, .or-editorial .or-home-mini-panel .or-section__head h2 { font-size: 23px; }
  .or-editorial .or-section__head { align-items: center; }
  .or-editorial .or-section__head > a, .or-editorial .or-home-mini-panel .or-section__head > a { font-size: 12px; }
  .or-editorial .or-home-codes .or-code-list { grid-template-columns: 1fr; }
  .or-editorial :is(.or-article-card-body, .or-video-card-body) { padding: 16px; }
  .or-editorial .or-featured-games > .or-game::before { background: linear-gradient(0deg, #0b0d10f2, #0b0d1044 62%, #0b0d1044); }
}
