/* Dedicated game page layout — extends styles.css tokens */
.game-main {
  padding-top: 28px;
  padding-bottom: 84px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--paper-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.crumbs a:hover {
  color: var(--accent, var(--acid));
  border-color: currentColor;
}

.game-head {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.game-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, var(--acid));
}

.game-title {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}

.game-lead {
  max-width: 72ch;
  color: var(--paper-2);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

.player-shell {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink-3);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background: #050507;
}

.player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050507;
}

.player-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: #050507;
}

.player-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1);
}

.player-poster-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 460px;
}

.player-poster-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-2);
  background: rgba(10, 10, 11, 0.72);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.player-bar-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}

.player-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.game-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
  padding: 22px;
}

.detail-card h2 {
  font-size: 1rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin: 0 0 12px;
}

.detail-card p,
.detail-card li {
  color: var(--paper-2);
  line-height: 1.6;
}

.detail-card ul:not(.stack-list) {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  display: grid;
  gap: 8px;
}

.detail-card ul:not(.stack-list) li::marker {
  color: var(--accent, var(--acid));
}

.detail-card .stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.detail-card .stack-list li {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  color: var(--paper);
}

.related-sec {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.related-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: var(--accent, var(--acid));
  transform: translateY(-2px);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.related-card-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 6px;
}

.related-card-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  margin: 0;
}

.related-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--paper);
}

@media (max-width: 900px) {
  .game-details {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .player-stage {
    min-height: 240px;
  }
}
