/* Edit these variables to fit your website. All rules are scoped to this component. */
.yp-console-marquee {
  --yp-card-width: 160px;
  --yp-card-height: 98px;
  --yp-card-gap: 16px;
  --yp-row-gap: 22px;
  --yp-loop-time: 36s;
  --yp-section-bg: #0b090c;
  --yp-card-bg: #f5f1f7;
  --yp-card-border: #d9ccdf;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  padding: 22px 0 32px;
  background: var(--yp-section-bg);
  color: #f5f1f7;
  isolation: isolate;
}
.yp-console-marquee *, .yp-console-marquee *::before, .yp-console-marquee *::after { box-sizing: border-box; }
.yp-console-marquee__window { width: calc(100% - 40px); max-width: 1280px; margin-inline: auto; overflow: hidden; }
.yp-console-marquee__rows { display: grid; gap: var(--yp-row-gap); }
.yp-console-marquee__row { min-width: 0; overflow: hidden; }
.yp-console-marquee__track { display: flex; width: max-content; animation: yp-console-travel var(--yp-loop-time) linear infinite; animation-delay: -3.4s; }
.yp-console-marquee__row--reverse .yp-console-marquee__track { animation-direction: reverse; animation-delay: -32.6s; }
.yp-console-marquee__group { display: flex; flex-shrink: 0; gap: var(--yp-card-gap); list-style: none; padding: 0 var(--yp-card-gap) 0 0; margin: 0; }
.yp-console-marquee__card {
  display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; flex: 0 0 var(--yp-card-width);
  width: var(--yp-card-width); height: var(--yp-card-height);
  padding: 13px; margin: 0; overflow: hidden;
  border: 1px solid var(--yp-card-border); border-radius: 11px; background: var(--yp-card-bg);
}
.yp-console-marquee__card img { display: block; width: 100%; height: 100%; max-width: 100%; min-width: 0; min-height: 0; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  .yp-console-marquee__rows:hover .yp-console-marquee__track { animation-play-state: paused; }
}
@keyframes yp-console-travel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 749px) {
  .yp-console-marquee { --yp-card-width: 128px; --yp-card-height: 78px; --yp-card-gap: 12px; --yp-row-gap: 16px; padding-top: 18px; }
  .yp-console-marquee__window { width: calc(100% - 32px); }
  .yp-console-marquee__card { padding: 11px; border-radius: 10px; }
}
/* Static, horizontally scrollable rows expose every logo when motion is reduced. */
@media (prefers-reduced-motion: reduce) {
  .yp-console-marquee__track { animation: none; transform: none; }
  .yp-console-marquee__row { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #817686 var(--yp-section-bg); }
  .yp-console-marquee__group[aria-hidden="true"] { display: none; }
}

/* Blend the logo rows into the homepage's existing games section. */
.pp-games .yp-console-marquee { --yp-section-bg: var(--pp-bg); padding: 0; background: transparent; }
.pp-games .yp-console-marquee__window { width: 100%; max-width: none; }
.pp-games .yp-console-marquee__row:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: -2px; }

/* Keep ArkOS closer to the system banners without changing other section spacing. */
.pp-games:has(.yp-console-marquee) { padding-bottom: clamp(56px, 7vw, 104px); }
@media (max-width: 640px) {
  .pp-games:has(.yp-console-marquee) { padding-bottom: 48px; }
}
