/* 紧凑海报画廊：高度随视口变化，左右切换不改变整栏尺寸。 */
.games-section {
  --games-padding: clamp(12px, 2svh, 22px);
  --games-heading-height: clamp(52px, 7.6svh, 68px);
  --games-row-gap: clamp(10px, 1.8svh, 18px);
  --games-column-gap: clamp(20px, 6vw, 100px);
  --games-meta-height: 48px;
  --games-meta-gap: 12px;
  --games-footer-height: 24px;
  --games-poster-height: calc(100svh - var(--header) - var(--games-padding) * 2 - var(--games-heading-height) - var(--games-row-gap) * 2 - var(--games-meta-height) - var(--games-meta-gap) - var(--games-footer-height));
  height: calc(100svh - var(--header));
  padding-block: var(--games-padding);
}
.games-section > .wrap {
  width: min(1440px, calc(100% - 96px), calc(var(--games-poster-height) * 2 + var(--games-column-gap) * 2));
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--games-row-gap);
}
.games-section .section-heading { flex: 0 0 var(--games-heading-height); align-items: center; gap: 24px; margin: 0; }
.games-section .eyebrow { font-size: 10px; line-height: 12px; margin-bottom: 8px; }
.games-section .section-heading h2 { font-size: clamp(24px, 3.7svh, 36px); line-height: 1.25; }
.games-section .section-intro { font-size: 11px; line-height: 1.8; padding: 0; }
.games-carousel { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; }
.games-viewport { width: 100%; overflow: hidden; touch-action: pan-y pinch-zoom; cursor: grab; }
.games-viewport.is-dragging { cursor: grabbing; user-select: none; }
.games-section .games-grid { display: flex; gap: var(--games-column-gap); will-change: transform; }
.games-section .game-item { flex: 0 0 calc((100% - var(--games-column-gap) * 2) / 3); min-width: 0; }
.games-section .game-poster { aspect-ratio: 2 / 3; }
.games-section .game-meta { height: var(--games-meta-height); padding: 0; margin-top: var(--games-meta-gap); align-items: center; gap: 12px; }
.games-section .game-icon { width: 48px; height: 48px; }
.games-section .game-text { padding: 0; }
.games-section .game-text h3 { font-size: clamp(16px, 2.4svh, 20px); margin-bottom: 6px; line-height: 1.2; }
.games-section .game-text p { font-size: 11px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.games-section .game-card img { -webkit-user-drag: none; user-select: none; }
.games-arrow { position: absolute; z-index: 2; top: calc(50% - (var(--games-meta-height) + var(--games-meta-gap)) / 2); transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #22283210; border-radius: 50%; background: #fff; color: #4b525b; box-shadow: 0 3px 14px #22283212; transition: background .2s, color .2s, box-shadow .2s; }
.games-arrow--prev { left: -22px; }
.games-arrow--next { right: -22px; }
.games-arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.games-arrow:hover { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 20px #2228321c; }
.games-arrow:disabled { opacity: .4; }
.games-footer { flex: 0 0 var(--games-footer-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.games-section .placeholder-note { margin: 0; font-size: 10px; line-height: 16px; }
.games-paging { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.games-page-count { font: 10px Arial, sans-serif; letter-spacing: 1.5px; color: #92969c; white-space: nowrap; }
#games-current { color: var(--ink); font-weight: 700; }
.games-pagination { display: flex; gap: 5px; }
.games-pagination button { position: relative; width: 26px; height: 24px; padding: 0; border: 0; background: transparent; }
.games-pagination button::after { content: ""; position: absolute; left: 2px; right: 2px; top: 11px; height: 2px; background: #dcdfe2; transition: background .2s, height .2s; }
.games-pagination button[aria-current="true"]::after { background: #d5a827; height: 3px; }
.games-pagination button:hover::after { background: #9a8550; }
@media (min-width: 1600px) {
  .games-section > .wrap { width: min(1600px, calc(100% - 160px), calc(var(--games-poster-height) * 2 + var(--games-column-gap) * 2)); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .games-section > .wrap { width: min(calc(100% - 72px), calc(var(--games-poster-height) * 2 + var(--games-column-gap) * 2)); }
  .games-section .section-intro { display: none; }
  .games-section .game-icon { width: 36px; height: 36px; }
  .games-section .game-meta { gap: 8px; }
  .games-section .game-text h3 { font-size: 15px; }
  .games-section .game-text p { font-size: 10px; }
  .games-section .placeholder-note { font-size: 9px; }
  .games-arrow { width: 38px; height: 38px; }
  .games-arrow--prev { left: -19px; }
  .games-arrow--next { right: -19px; }
}
@media (max-width: 600px) {
  .games-section { --games-padding: 22px; --games-heading-height: 54px; --games-row-gap: 14px; --games-meta-height: 48px; --games-meta-gap: 14px; --games-footer-height: 24px; }
  .games-section > .wrap { width: min(calc(100% - 52px), calc(var(--games-poster-height) * 2 / 3)); }
  .games-section .section-heading { display: flex; align-items: flex-start; }
  .games-section .eyebrow { font-size: 8px; margin-bottom: 7px; }
  .games-section .section-heading h2 { font-size: clamp(19px, 5.2vw, 25px); white-space: nowrap; letter-spacing: -.7px; }
  .games-section .section-intro { display: none; }
  .games-section .game-item { flex-basis: 100%; }
  .games-section .game-meta { gap: 12px; }
  .games-section .game-text h3 { font-size: 18px; }
  .games-section .game-text p { font-size: 11px; }
  .games-section .placeholder-note { display: none; }
  .games-paging { margin-inline: auto; }
  .games-arrow { width: 38px; height: 38px; }
  .games-arrow--prev { left: -19px; }
  .games-arrow--next { right: -19px; }
}
@media (max-height: 440px) {
  .games-section { height: auto; min-height: calc(100svh - var(--header)); }
  .games-section > .wrap { width: min(860px, calc(100% - 80px)); height: auto; }
  .games-carousel { flex: none; }
}
@media (min-width: 601px) and (max-height: 600px) {
  .games-section .section-intro { display: none; }
}

