/* Game details share the Home navigation, palette, typography and buttons. */
.page-game-detail { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.page-game-detail .site-header { --header-opacity: .96; }
.page-game-detail .navigation-links [aria-current] { color: white; }
.game-detail-page { flex: 1; padding-block: 42px 76px; }
.game-detail-shell { --state-color: #4ce49b; min-width: 0; }
.game-detail-unavailable { --state-color: #ec768c; }
.game-detail-upcoming { --state-color: #e5bd21; }
.game-detail-back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; font-weight: 550; transition: color .2s; }
.game-detail-back:hover { color: var(--blue-light); }
.game-detail-heading { margin-block: 25px 34px; }
.game-detail-heading h1 { margin: 0 0 14px; font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -.05em; overflow-wrap: break-word; }
.game-detail-heading .game-byline { font-size: .875rem; color: var(--muted); }
.game-detail-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); gap: 32px; align-items: center; }
.game-detail-banner { position: relative; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #101114; }
.game-detail-banner > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .36s ease; }
.game-detail-banner > img.is-changing { opacity: 0; }
.game-detail-banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(5 5 6 / 16%) 62%, rgb(5 5 6 / 88%) 100%); pointer-events: none; }
.game-detail-status { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 100px; color: #f5f6f8; background: rgb(9 13 14 / 86%); font-size: .8125rem; font-weight: 600; }
.game-detail-status i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--state-color); box-shadow: 0 0 0 4px rgb(255 255 255 / 7%); }
.game-detail-banner-controls { position: absolute; right: 16px; bottom: 16px; left: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.game-detail-banner-controls > button { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; background: rgb(5 5 6 / 65%); color: white; font-size: 1.15rem; transition: background .2s, border-color .2s; }
.game-detail-banner-controls > button:hover { background: var(--blue); border-color: var(--blue); }
.game-detail-banner-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.game-detail-banner-dots button { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; background: transparent; }
.game-detail-banner-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 100px; background: rgb(255 255 255 / 55%); transition: width .2s, background .2s; }
.game-detail-banner-dots button.active::before { width: 17px; background: var(--blue); }
.game-detail-banner-dots button:hover::before { background: white; }
.game-detail-banner-controls button:focus-visible { outline-offset: 2px; }
.game-detail-overview { min-width: 0; }
.game-detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game-detail-stat { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 13px; background: #101114; }
.game-detail-stat:first-child { grid-column: 1 / -1; }
.game-detail-stat-icon { flex: none; width: 20px; height: 20px; color: #929baa; }
.game-detail-stat-icon svg { width: 100%; height: 100%; }
.game-detail-stat:first-child .game-detail-stat-icon { color: var(--state-color); }
.game-detail-stat div { min-width: 0; }
.game-detail-stat small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.game-detail-stat strong { display: block; color: var(--white); font-size: clamp(1.125rem, 1.55vw, 1.5rem); font-weight: 750; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.game-detail-stat:first-child strong { font-size: 1.875rem; }
.game-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.game-detail-action { min-width: 0; padding-inline: 15px; gap: 12px; text-align: center; }
.game-detail-action.is-disabled { color: #979daa; border-color: #292c35; background: #101114; cursor: not-allowed; }
@media (max-width: 1100px) {
  .game-detail-hero { grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr); gap: 24px; }
  .game-detail-stat { padding: 12px; gap: 10px; }
  .game-detail-action { padding-inline: 12px; gap: 8px; }
}
@media (max-width: 900px) {
  .game-detail-hero { grid-template-columns: 1fr; gap: 28px; }
  .game-detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-detail-stat:first-child { grid-column: auto; grid-row: span 2; }
  .game-detail-actions { display: flex; flex-wrap: wrap; margin-top: 20px; }
  .game-detail-action { min-width: 180px; padding-inline: 22px; }
}
@media (max-width: 560px) {
  .game-detail-page { padding-block: 30px 48px; }
  .game-detail-heading { margin-block: 22px 26px; }
  .game-detail-heading h1 { font-size: clamp(2rem, 8.2vw, 2.8rem); }
  .game-detail-banner { border-radius: 14px; }
  .game-detail-status { top: 12px; left: 12px; padding: 6px 10px; font-size: .75rem; }
  .game-detail-banner-controls { inset: auto 10px 10px; gap: 6px; }
  .game-detail-banner-controls > button { width: 34px; height: 34px; }
  .game-detail-banner-dots button { width: 20px; height: 24px; }
  .game-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-detail-stat:first-child { grid-column: 1 / -1; grid-row: auto; }
  .game-detail-stat { padding: 14px; }
  .game-detail-actions { display: grid; grid-template-columns: 1fr; }
  .game-detail-action { width: 100%; min-width: 0; }
}
@media (max-width: 360px) {
  .game-detail-stat { gap: 8px; padding: 12px; }
  .game-detail-stat-icon { width: 17px; height: 17px; }
}
