/* ==========================================================================
   3RR Game — pages/games-details.css
   Billboard hero, magazine read with a sticky progress-dot rail, and the
   sticky sidebar CTA card.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Billboard hero
   -------------------------------------------------------------------------- */
.gd-hero {
  position: relative;
  padding-block: clamp(1.75rem, 5vw, 3rem) clamp(3rem, 7vw, 4.5rem);
  overflow: hidden;
}

/* Enormous, heavily blurred copy of the art as the sign's light spill. */
.gd-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gd-hero__blur {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(64px) saturate(150%);
  opacity: 0.34;
}

.gd-hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.82) 0%, rgba(5, 7, 15, 0.7) 45%, rgba(5, 7, 15, 0.94) 100%);
}

.gd-hero__inner { position: relative; z-index: 4; }

.gd-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 2.75rem);
  align-items: center;
}

/* The framed sign holding the artwork. */
.gd-sign {
  position: relative;
  justify-self: center;
  width: min(240px, 62vw);
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(36, 235, 255, 0.32);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(17, 33, 63, 0.95), rgba(5, 7, 15, 0.95));
  box-shadow: var(--shadow-card), 0 0 48px rgba(36, 235, 255, 0.2);
}

.gd-sign__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 211 / 260;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.gd-sign__glow {
  position: absolute;
  inset: auto 12% -14px 12%;
  height: 26px;
  border-radius: 50%;
  background: rgba(36, 235, 255, 0.45);
  filter: blur(14px);
  pointer-events: none;
}

/* Brackets bolting the sign to the wall. */
.gd-sign__mount {
  position: absolute;
  top: 40%;
  width: 18px;
  height: 3px;
  background: linear-gradient(90deg, rgba(36, 235, 255, 0.6), rgba(36, 235, 255, 0.05));
  pointer-events: none;
}

.gd-sign__mount--l { left: -18px; }
.gd-sign__mount--r { right: -18px; transform: scaleX(-1); }

.gd-hero__title {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h1);
}

.gd-hero__tag {
  max-width: 54ch;
  margin-bottom: var(--space-sm);
}

.gd-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.gd-hero__note {
  max-width: 60ch;
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .gd-hero__grid { grid-template-columns: auto 1fr; }
  .gd-sign { justify-self: start; width: 220px; }
}

@media (min-width: 1200px) {
  .gd-sign { width: 260px; }
}

/* --------------------------------------------------------------------------
   Magazine body layout
   -------------------------------------------------------------------------- */
.gd-body { padding-block: var(--section-y); }

.gd-body__grid {
  display: grid;
  gap: var(--space-lg);
}

.gd-read { max-width: 74ch; }

.gd-section {
  padding-block: var(--space-lg) 0;
  scroll-margin-top: calc(var(--nav-h) + var(--skyline-strip-h) + 1.5rem);
}

.gd-section:first-child { padding-top: 0; }

.gd-section + .gd-section {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.gd-section__kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan-neon);
}

.gd-section h2 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-h2);
}

/* Steps */
.gd-steps {
  counter-reset: gdstep;
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.gd-steps li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(11, 23, 48, 0.55);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.gd-steps li::before {
  counter-increment: gdstep;
  content: counter(gdstep, decimal-leading-zero);
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-cyan-neon);
}

/* Callouts */
.gd-callout {
  display: flex;
  gap: 0.8rem;
  margin: var(--space-md) 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(36, 235, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(36, 235, 255, 0.06);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.gd-callout > svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  fill: var(--color-cyan-neon);
}

.gd-callout p { margin: 0; }

.gd-callout--gold {
  border-color: rgba(255, 196, 81, 0.32);
  background: rgba(255, 196, 81, 0.07);
}

.gd-callout--gold > svg { fill: var(--color-gold); }

/* Features */
.gd-features {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.gd-feature {
  padding: var(--space-sm);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 48, 0.6);
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

.gd-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 235, 255, 0.32);
}

.gd-feature__icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(36, 235, 255, 0.28);
  border-radius: 10px;
  background: rgba(36, 235, 255, 0.08);
}

.gd-feature__icon svg { width: 1.15rem; height: 1.15rem; fill: var(--color-cyan-neon); }

.gd-feature h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.gd-feature p {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .gd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Reviews */
.gd-reviews {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.review {
  padding: var(--space-sm);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 48, 0.6);
}

.review__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-sapphire-tower), var(--color-cyan-neon));
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #04121C;
}

.review__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.review__stars {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.review__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .gd-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Progress rail
   -------------------------------------------------------------------------- */
.rail { display: none; }

.rail__list {
  position: sticky;
  top: calc(var(--nav-h) + var(--skyline-strip-h) + 2rem);
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.2rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--dur-mid) var(--ease-out);
}

.rail__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(147, 166, 204, 0.42);
  border-radius: 50%;
  background: transparent;
  transition:
    background-color var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
}

/* The line connecting the dots. */
.rail__item + .rail__item .rail__link::before {
  content: '';
  position: absolute;
  left: 4px;
  top: -0.45rem;
  width: 1px;
  height: 0.9rem;
  background: rgba(147, 166, 204, 0.24);
}

.rail__link:hover { color: var(--color-text-secondary); }

.rail__link.is-current { color: var(--color-cyan-soft); }

.rail__link.is-current .rail__dot {
  transform: scale(1.25);
  border-color: var(--color-cyan-neon);
  background: var(--color-cyan-neon);
  box-shadow: 0 0 12px var(--color-cyan-neon);
}

/* --------------------------------------------------------------------------
   Sticky CTA card
   -------------------------------------------------------------------------- */
.gd-aside { display: none; }

.gd-card {
  position: sticky;
  top: calc(var(--nav-h) + var(--skyline-strip-h) + 2rem);
  padding: var(--space-md);
  border: 1px solid rgba(255, 196, 81, 0.26);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(17, 33, 63, 0.94), rgba(5, 7, 15, 0.96));
  box-shadow: var(--shadow-card), 0 0 40px rgba(255, 196, 81, 0.1);
  text-align: center;
}

.gd-card .billboard__mount { border-color: rgba(255, 196, 81, 0.42); }
.gd-card .billboard__mount::after {
  background: var(--color-gold);
  box-shadow: 0 0 7px var(--color-gold);
}

.gd-card__art {
  width: 92px;
  height: auto;
  aspect-ratio: 211 / 260;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.gd-card__title {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.gd-card__cat {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cyan-soft);
}

.gd-card__bonus {
  margin-bottom: var(--space-sm);
  padding: 0.7rem 0.5rem;
  border: 1px solid rgba(255, 196, 81, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 196, 81, 0.07);
}

.gd-card__bonus-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.gd-card__bonus-figure {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-gold);
  text-shadow: 0 0 24px rgba(255, 196, 81, 0.4);
}

.gd-card__micro {
  margin: var(--space-sm) 0 0;
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

@media (min-width: 1200px) {
  .gd-body__grid {
    grid-template-columns: 168px minmax(0, 1fr) 268px;
    gap: var(--space-lg);
    /* Left at the default stretch: the rail and aside columns must be as tall
       as the article, or their sticky children have no room to travel. */
  }

  .rail { display: block; }
  .gd-aside { display: block; }
  .gd-read { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rail__dot,
  .gd-feature { transition: none; }
}

/* Keep the hero copy legible over the canvas skyline. */
.gd-hero .skyline { opacity: 0.5; }

.gd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.2) 0%, rgba(5, 7, 15, 0.68) 100%);
}

.gd-hero__note { color: var(--color-text-secondary); }
