.gx--g4 { background: radial-gradient(90% 60% at 80% -10%, #15151a 0%, #050506 62%); }
.g4-wrap { max-width: 1480px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) clamp(14px, 3.4vw, 48px) clamp(28px, 5vh, 48px); }
.g4-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; margin-bottom: clamp(16px, 3vh, 30px); padding-right: 64px; }
.g4-title { font-size: clamp(2rem, 5vw, 3.8rem); }
.g4-sub { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #b4b4bb; }
.g4-sub b { color: var(--live); font-weight: 500; }

.g4-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
.g4-tile {
  position: relative; display: block; overflow: hidden; border-radius: 20px; isolation: isolate;
  aspect-ratio: 4 / 5; background: #0b0b0d;
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity .6s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i) * 60ms + 100ms), 0s;
}
.is-open .g4-tile { opacity: 1; transform: none; }
.g4-tile.is-hero { grid-column: 1 / -1; aspect-ratio: 4 / 3.2; }
.g4-tile:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.g4-art, .g4-shade { position: absolute; inset: 0; z-index: -1; }
.g4-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g4-shade { background: linear-gradient(0deg, rgba(5,5,6,.95) 0%, rgba(5,5,6,.55) 42%, rgba(5,5,6,0) 70%), linear-gradient(180deg, rgba(5,5,6,.45), rgba(5,5,6,0) 30%); }
.g4-tile::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; border: 1px solid rgba(255,255,255,.14); pointer-events: none; transition: border-color .4s; }
.g4-tile:hover::after, .g4-tile:focus-visible::after { border-color: rgba(255,255,255,.6); }

.g4-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.g4-icon { width: 40px; height: 40px; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.g4-pill { padding: 7px 10px; border-radius: 999px; background: rgba(8,8,10,.72); border: 1px solid rgba(255,255,255,.14); font-size: 11px; }
.g4-bot { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 14px; }
.g4-name { font-size: clamp(.95rem, 4.2vw, 1.2rem); text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.g4-more { display: grid; gap: 10px; justify-items: start; }
.g4-more .gx-stats { gap: 4px 14px; }
.g4-more .gx-stat dt { font-size: 9px; }
.g4-more .gx-stat dd { font-size: 12px; }
.g4-more .gx-play { padding: .75em 1.1em; font-size: 10px; }
.is-hero .g4-icon { width: 52px; height: 52px; }
.is-hero .g4-name { font-size: clamp(1.5rem, 7vw, 2rem); }
.is-hero .g4-bot { padding: 18px; }
.is-hero .g4-more { gap: 14px; }

@media (min-width: 700px) {
  .g4-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 31vh, 340px); gap: 14px; }
  .g4-tile, .g4-tile.is-hero, .g4-tile:last-child:nth-child(even) { aspect-ratio: auto; grid-column: auto; }
  .g4-tile.is-hero { grid-column: span 2; grid-row: span 2; }
  .g4-grid[data-r="0"] .is-hero { grid-column: span 4; }
  .g4-grid[data-r="1"] .g4-tile:nth-child(2) { grid-column: span 2; grid-row: span 2; }
  .g4-grid[data-r="2"] .g4-tile:not(.is-hero) { grid-column: span 2; }
  .g4-grid[data-r="3"] .g4-tile:nth-child(2) { grid-column: span 2; }

  /* tiles reveal stats + play on hover, lift on hover */
  .g4-tile:not(.is-hero) .g4-bot { transform: translate3d(0, var(--moreh, 96px), 0); transition: transform .5s var(--ease); }
  .g4-tile:not(.is-hero) .g4-more { opacity: 0; transition: opacity .35s ease; }
  .g4-tile:not(.is-hero):hover .g4-bot, .g4-tile:not(.is-hero):focus-visible .g4-bot { transform: none; }
  .g4-tile:not(.is-hero):hover .g4-more, .g4-tile:not(.is-hero):focus-visible .g4-more { opacity: 1; }
  .g4-tile:not(.is-hero) .g4-shade { transition: opacity .4s; }
  .g4-tile:hover { transform: translate3d(0, -6px, 0); transition-delay: 0s, 0s; }
  .g4-tile:hover .g4-img, .g4-tile:focus-visible .g4-img { transform: scale(1.06); }
  .g4-tile:hover { z-index: 3; }
  .g4-icon { width: 44px; height: 44px; }
  .g4-pill { font-size: 12px; padding: 8px 12px; }
  .g4-top { top: 14px; left: 14px; right: 14px; }
  .g4-bot { padding: 16px; }
  .g4-name { font-size: clamp(.95rem, 1.5vw, 1.35rem); }
  .is-hero .g4-name { font-size: clamp(1.7rem, 3.6vw, 3.2rem); max-width: 14ch; }
  .is-hero .g4-bot { padding: clamp(18px, 2vw, 30px); }
  .is-hero .g4-more .gx-stat dd { font-size: 16px; }
  .is-hero .g4-more .gx-stat dt { font-size: 10px; }
  .is-hero .g4-more .gx-play { padding: 1em 1.7em; font-size: 12px; }
  .is-hero .g4-icon { width: 64px; height: 64px; }
}
@media (hover: none) and (min-width: 700px) {
  .g4-tile:not(.is-hero) .g4-bot { transform: none; }
  .g4-tile:not(.is-hero) .g4-more { opacity: 1; }
  .g4-tile:hover { transform: none; }
}
/* phone tiles: no hover, so the details stay visible but compact */
@media (max-width: 699px) {
  .g4-tile:not(.is-hero) .g4-more .gx-play { display: none; }
  .g4-tile:not(.is-hero) .g4-more .gx-stat:nth-child(n+3) { display: none; }
  .g4-tile:not(.is-hero) .g4-bot { padding: 11px; gap: 8px; }
  .g4-tile:not(.is-hero) .g4-icon { width: 34px; height: 34px; }
  .g4-tile:not(.is-hero) .g4-pill { padding: 5px 8px; font-size: 10px; }
  .g4-tile:not(.is-hero) .g4-top { top: 10px; left: 10px; right: 10px; }
  .g4-tile:last-child:nth-child(even) .gx-play { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .g4-tile { opacity: 1; transform: none; } .g4-tile:hover { transform: none; } }
