/* Game rails */
.rail { margin-top: 26px; }
.rail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rail-head h3 { margin: 0; }
.rail-nav { margin-left: auto; display: flex; gap: 8px; }
.rail-btn {
  width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--brand); cursor: pointer;
  transition: background-color .15s linear, color .15s linear;
}
.rail-btn[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) and (min-width: 1024px) { .rail-btn:not([disabled]):hover { background: var(--surface-2); } }
.rail .splide__track { overflow: hidden; }
.rail .splide__list { list-style: none; margin: 0; padding: 0; }
.rail .splide__slide { height: auto; }

.game {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  color: var(--ink); text-decoration: none;
  transition: box-shadow .18s linear, border-color .18s linear;
  transform-style: preserve-3d;
}
.game-art { display: block; aspect-ratio: 1; background: var(--surface-2); }
.game-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.game-name { display: block; padding: 10px 10px 2px; font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.game-meta { display: block; padding: 0 10px 10px; margin-top: auto; font-size: 12px; color: var(--muted); }
@media (hover: hover) and (min-width: 1024px) {
  .game:hover { border-color: var(--brand); box-shadow: 0 16px 30px -18px rgba(4, 47, 74, .7); }
}
.game-all { background: linear-gradient(160deg, var(--brand) 0%, var(--deep) 100%); border-color: transparent; color: #fff; }
.game-all-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 150px; padding: 14px; text-align: center; font-weight: 800; font-size: 14px; }
.game-all .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .18); }

/* Game banner */
.banner { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 34px 28px; color: #fff; background: var(--deep); }
.banner-bg { position: absolute; inset: 0; z-index: -1; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(1.15); transform: scale(1.18); }
.banner-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 47, 74, .86) 0%, rgba(4, 47, 74, .94) 100%); }
.banner-in { text-align: center; }
.banner-over { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.banner h2 { color: #fff; justify-content: center; margin-bottom: 22px; }
.banner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.banner-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; text-align: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; color: #fff;
  transition: background-color .18s linear, border-color .18s linear;
}
.banner-card img { width: 100%; max-width: 190px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.banner-card strong { font-size: 15px; line-height: 1.25; }
.banner-card > span:not(.pill) { margin-bottom: 4px; }
.banner-card > span { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.banner-card .pill { margin-top: auto; padding: 7px 18px; border-radius: 999px; background: var(--gold); color: #1d2b14; font-weight: 800; font-size: 14px; }
@media (hover: hover) and (min-width: 1024px) {
  .banner-card:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold); }
}
@media (max-width: 700px) {
  .banner { padding: 26px 16px; }
  .banner-row { grid-template-columns: 1fr; gap: 12px; }
  .banner-card {
    display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-rows: auto auto;
    align-items: center; column-gap: 12px; row-gap: 2px; text-align: left; padding: 12px;
  }
  .banner-card img { grid-row: 1 / 3; width: 76px; max-width: 76px; border-radius: 12px; }
  .banner-card strong { grid-column: 2; align-self: end; }
  .banner-card > span:not(.pill) { grid-column: 2; align-self: start; margin-bottom: 0; }
  .banner-card .pill { grid-column: 3; grid-row: 1 / 3; margin-top: 0; }
}
@media (max-width: 430px) {
  .banner-card { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 4px; }
  .banner-card img { grid-row: 1 / 4; width: 64px; max-width: 64px; }
  .banner-card strong { grid-column: 2; align-self: center; }
  .banner-card > span:not(.pill) { grid-column: 2; }
  .banner-card .pill { grid-column: 2; grid-row: 3; justify-self: start; padding: 6px 16px; }
  .banner .btn { width: 100%; }
}

/* Studios */
.studios { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.studios a {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  transition: border-color .18s linear, box-shadow .18s linear;
}
.studio-logo { flex: none; width: 120px; display: flex; align-items: center; }
.studio-logo img { max-width: 120px; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.studios li:nth-child(2) .studio-logo img { max-height: 26px; }
.studios li:nth-child(4) .studio-logo img { max-height: 38px; }
.studio-text { flex: 1 1 auto; min-width: 0; }
.studio-text strong { display: block; font-size: 1rem; }
.studio-text span { display: block; font-size: 14px; color: var(--muted); }
.studio-go { flex: none; color: var(--brand); }
@media (hover: hover) and (min-width: 1024px) {
  .studios a:hover { border-color: var(--brand); box-shadow: 0 14px 28px -20px rgba(4, 47, 74, .8); }
}
@media (max-width: 560px) {
  .studios a { flex-wrap: wrap; gap: 10px 14px; padding: 14px 16px; }
  .studio-logo { width: 100px; }
  .studio-logo img { max-width: 100px; max-height: 32px; }
  .studio-text { flex-basis: 100%; order: 3; }
  .studio-go { margin-left: auto; }
}

/* Without JS the rail stays a scrollable row */
.splide:not(.is-active) .splide__list { display: flex; gap: 12px; overflow-x: auto; }
.splide:not(.is-active) .splide__slide { flex: 0 0 180px; }
