/* GUFIXTOR v4: catalogue/sidebar and import usability corrections */
[data-theme="light"] {
  --accent: #4d7c0f;
  --accent-2: #65a30d;
  --accent-soft: rgba(77, 124, 15, .14);
}
[data-theme="light"] .genre-item:hover { background: #e7eddc; color: var(--accent); }
[data-theme="light"] .genre-item.on { background: #e1ebd2; color: var(--accent); }
.genre-list [data-genre-extra] { opacity: 0; transform: translateY(-3px); }
.genre-list [data-genre-extra]:not([hidden]) { opacity: 1; transform: none; transition: opacity .16s ease, transform .16s ease; }
.genre-expand { width: calc(100% - 12px); margin: 6px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-3); color: var(--accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.genre-expand:hover { border-color: var(--accent); background: var(--accent-soft); }
/* Smart desktop sidebar. It scrolls naturally from its first block; only after
   its last block reaches the lower viewport area does it stay in view. */
@media (min-width: 861px) {
  .public-layout-right > .right-rail,
  .game-public-layout > .game-right-rail {
    position: static;
    align-self: start;
    min-height: 0;
    margin-bottom: 0;
  }
  .public-layout-right, .game-public-layout { position: relative; }
}
@media (min-width: 1101px) {
  /* Keep an expanded game sidebar out of the grid track calculation: otherwise
     its extra genres can artificially stretch the hero row above Description. */
  .game-public-layout > .game-right-rail {
    position: absolute;
    top: 0;
    right: 0;
    width: 275px;
  }
}
@media (min-width: 861px) {
  .right-rail.sidebar-fixed { position: fixed !important; top: auto !important; bottom: 10vh; z-index: 40; margin: 0; }
  .right-rail.sidebar-ended { position: absolute !important; top: auto !important; bottom: 10vh; z-index: 1; margin: 0; }
}
.logo-symbol { width: 32px; height: 32px; display: block; flex: none; }
/* Compact, high-contrast carousel controls. */
.carousel-arrow, .rail-carousel-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-color: color-mix(in srgb, var(--border) 72%, var(--accent));
  background: color-mix(in srgb, var(--card) 92%, #000);
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}
.carousel-arrow:hover, .rail-carousel-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.logo, .footer-grid .footer-logo, .footer-grid .footer-logo .logo-word { font-size: 22px !important; }
/* Restore the flat controls used by the rest of the interface (not round). */
.carousel-arrow, .rail-carousel-arrow {
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  padding: 0 0 2px;
}
.carousel-arrow { width: 34px; height: 45px; }
.rail-carousel-arrow { width: 27px; height: 39px; }
.carousel-arrow:hover, .rail-carousel-arrow:hover { background: var(--card-hover); border-color: var(--accent); color: var(--accent); }
.logo-symbol > rect:first-of-type { stroke: none !important; }
@media (min-width: 1101px) {
  /* Match the game rail's visual inset to the public home rail. */
  .game-public-layout > .game-right-rail { right: 24px; }
}
/* The brand symbol uses its own fixed palette and must never inherit the
   generic icon stroke rules or either UI theme. */
.logo-symbol, .logo-symbol * { stroke: none !important; }
.logo-symbol { fill: none !important; color: initial !important; }
.logo-symbol rect:first-of-type { fill: #151a20 !important; }
.logo-symbol rect:nth-of-type(2) { fill: #76b316 !important; }
.logo-symbol path { fill: #151a20 !important; }
