phase-cover, .cover-frame, .cover-frame::before, .cover-frame video {
  position: absolute;
  inset: 0;
  display: block;
}
phase-cover {
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--cover-color);
}
.cover-frame::before {
  content: '';
  background: var(--cover-poster) center / cover;
}
.cover-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.cover-frame video.ready { opacity: 1; }
.gh-lead, .gh-side .gh-case, .gh-side .gh-mine { background-image: none; }
.gh-lead .cover-frame, .gh-side .cover-frame {
  left: auto;
  width: min(100%, 66cqw);
  height: 100%;
  aspect-ratio: 1;
  mask-image: linear-gradient(90deg, transparent, black 16% 100%);
}
.gh-lead phase-cover, .gh-side phase-cover { container-type: size; }
.gh-lead .cover-frame, .gh-side .cover-frame { width: min(100cqw, 112cqh); }
.gh-lead phase-cover::after, .gh-side phase-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(85deg, #17102283, transparent 67%);
}
.lobby-games a::before { content: none; }
.lobby-games a::after, .gh-card > div, #game-related a::before {
  background: linear-gradient(0deg, #100c1b94, #140e2017 22%, transparent 41%);
}
.lobby-games a::after { inset: 0; }
.lobby-games a, #lobby-more .gh-card, #games-grid .gh-card { aspect-ratio: 1.15; }
.lobby-games a, .gh-card { border: 0; border-radius: 14px; }
.lobby-games strong, .gh-card strong, #game-related strong {
  color: #fff; text-shadow: 0 1px 4px #21182d64;
  font-family: Barlow, Inter, sans-serif; font-style: normal; letter-spacing: -.027em;
}
.lobby-games a, .gh-card > div { padding: clamp(10px, 1.4vw, 19px); }
#game-related .cover-frame { inset: 0 0 0 auto; width: 72%; mask-image: linear-gradient(90deg, transparent, black 22%); }
@media (max-width:650px) {
  #lobby-more { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lobby-games a, #lobby-more .gh-card, #games-grid .gh-card { aspect-ratio: .82; border-radius: 12px; }
  .lobby-games a, .gh-card > div { padding: 9px; }
  .lobby-games strong, .gh-card strong { font-size: clamp(14px,3.9vw,20px); line-height: 1.06; }
  .gh-side .cover-frame { width: min(100cqw, 100cqh); }
}
@media (prefers-reduced-motion: reduce) { .cover-frame video { visibility: hidden; } }
