/* ═══════════════════════════════════════════════════════════════
   GRANDFLEET™ — Games Page
   ═══════════════════════════════════════════════════════════════ */

/* Override container to be full-width on this page */
.container {
  max-width: none;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ─── HERO ────────────────────────────────────────────────────── */
.games-hero {
  position: relative;
  padding: 160px 0 0;
  background: var(--black);
  overflow: hidden;
}

.games-hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(212, 175, 55, 0.018) 3px,
    rgba(212, 175, 55, 0.018) 4px
  );
  pointer-events: none;
}

.games-hero-inner {
  text-align: center;
  padding-bottom: 80px;
  position: relative;
}

.games-hero-title {
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 11rem);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 0.9;
  margin: 16px 0 52px;
  text-shadow: 0 0 100px rgba(212, 175, 55, 0.12);
}

/* Stats row */
.games-hero-stats {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.gh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 44px;
  gap: 5px;
}

.gh-stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.06em;
}

.gh-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.gh-stat-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── TICKER ──────────────────────────────────────────────────── */
.games-ticker {
  border-top: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
  position: relative;
}

.games-ticker::before,
.games-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.games-ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.games-ticker::after  { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }

.games-ticker-track {
  display: inline-flex;
  gap: 28px;
  animation: gamesTickerScroll 28s linear infinite;
}

.games-ticker-track span {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.games-ticker-track .ticker-sep {
  color: #282c34;
  letter-spacing: 0;
}

@keyframes gamesTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
.games-section {
  padding: 100px 0;
  background: var(--surface2);
}

.games-section-alt {
  background: var(--surface);
}

.games-section-header {
  margin-bottom: 52px;
}

.games-section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-top: 8px;
}

/* ─── SECTION DIVIDER ─────────────────────────────────────────── */
.games-section-divider {
  padding: 0;
  background: var(--surface3);
}

.gsd-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gsd-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gsd-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  color: var(--gold-dim);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 20px 0;
}

/* ─── SPOTLIGHT CARD ──────────────────────────────────────────── */
.game-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.game-spotlight:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 0 80px rgba(212, 175, 55, 0.07);
}

.game-spotlight-cover {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-spotlight-cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-spotlight:hover .game-spotlight-cover img {
  transform: scale(1.04);
}

.spotlight-live-badge {
  position: absolute;
  top: 20px; left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 6px 14px;
  backdrop-filter: blur(6px);
  z-index: 1;
}

.spotlight-num {
  position: absolute;
  bottom: 16px; right: 20px;
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.game-spotlight-info {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface2);
  border-left: 1px solid var(--border);
}

.game-spotlight-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 4vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
  margin: 10px 0 22px;
}

.game-spotlight-info .game-desc {
  margin-bottom: 24px;
}

.game-spotlight-info .game-meta {
  margin-bottom: 32px;
}

/* Live dot (shared) */
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4caf50;
  display: inline-block;
  flex-shrink: 0;
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

/* ─── GAME CARDS V2 ───────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.game-card-v2 {
  border: 1px solid var(--border);
  background: var(--surface2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.game-card-v2:hover {
  border-color: var(--gold-dark);
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 175, 55, 0.06);
}

.card-v2-cover {
  position: relative;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-v2-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.game-card-v2:hover .card-v2-cover img {
  transform: scale(1.05);
}

.card-v2-cover .game-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212, 175, 55, 0.2);
}

/* Shine overlay on hover */
.card-v2-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.game-card-v2:hover .card-v2-shine { opacity: 1; }

/* Live badge on card */
.card-v2-live {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(76, 175, 80, 0.45);
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

/* Large ghost number in corner */
.card-v2-num {
  position: absolute;
  bottom: 8px; right: 14px;
  font-family: var(--font-head);
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.card-v2-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.card-v2-body .game-ctas {
  margin-top: auto;
  padding-top: 20px;
}

/* ─── PUBLISHED CAROUSEL ──────────────────────────────────────── */
.pub-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.pub-carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.pub-carousel-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.pub-carousel-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,149,12,0.07);
}

.pub-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-dot {
  width: 28px; height: 3px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  padding: 0;
}

.pub-dot.active {
  background: var(--gold);
  width: 48px;
}

/* Track wrapper clips overflow */
.pub-carousel-track-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pub-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide */
.pub-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 clamp(16px, 4vw, 60px);
}

.pub-slide-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  border: 1px solid var(--border);
  overflow: hidden;
}

.pub-slide-cover {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-slide-cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pub-slide-info {
  padding: 52px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface2);
  border-left: 1px solid var(--border);
}

.pub-slide-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
  margin: 10px 0 22px;
}

.pub-slide-info .game-desc  { margin-bottom: 24px; }
.pub-slide-info .game-meta  { margin-bottom: 32px; }

/* ─── FULLWIDTH GAMES GRID ────────────────────────────────────── */
.games-grid-fullwidth {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  padding: 0 clamp(16px, 4vw, 60px);
  margin-top: 32px;
  background: var(--border);
}

.games-grid-fullwidth .game-card-v2 {
  background: var(--surface2);
  border: none;
}

.games-grid-fullwidth .card-v2-cover {
  height: auto;
  aspect-ratio: 9 / 16;
}

/* ─── OTHER GAMES STRIP ───────────────────────────────────────── */
.games-section-alt {
  padding-top: 72px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border);
}

.othergames-strip {
  margin-top: 40px;
  padding: 0 clamp(16px, 4vw, 60px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.othergames-strip::-webkit-scrollbar {
  height: 4px;
}
.othergames-strip::-webkit-scrollbar-track { background: transparent; }
.othergames-strip::-webkit-scrollbar-thumb { background: var(--gold-dark); }

.othergames-track {
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
}

/* Portrait card */
.og-card {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface2);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.og-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px rgba(212,175,55,0.07);
}

.og-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  flex-shrink: 0;
}

.og-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.og-card:hover .og-card-cover img { transform: scale(1.05); }

.og-card-cover .game-cover-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(212,175,55,0.2);
}

.og-card-num {
  position: absolute;
  bottom: 8px; right: 10px;
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.og-card-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.og-card:hover .og-card-shine { opacity: 1; }

.og-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  flex: 1;
}

.og-card-genre {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.og-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 14px;
}

.og-card-cta { margin-top: auto; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pub-slide-inner { grid-template-columns: 280px 1fr; }
}

@media (max-width: 900px) {
  .game-spotlight {
    grid-template-columns: 1fr;
  }
  .game-spotlight-cover {
    min-height: 300px;
  }
  .game-spotlight-info {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 36px 32px;
  }
  .gh-stat { padding: 18px 28px; }
  .pub-slide-inner { grid-template-columns: 1fr; }
  .pub-slide-cover { min-height: 380px; }
  .pub-slide-info {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 36px 32px;
  }
  .games-grid-fullwidth {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .games-hero-stats { flex-direction: column; width: 100%; }
  .gh-stat-divider { width: 100%; height: 1px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-spotlight-title { font-size: 2.4rem; }
  .pub-slide-title { font-size: 2.4rem; }
  .pub-carousel-header { flex-direction: column; align-items: flex-start; }
  .og-card { flex: 0 0 160px; }
}

