/* ==========================================================================
   IN7 GAME — Single game guide page
   ========================================================================== */

.gd-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 1rem + 3vw, 3rem));
  padding-bottom: var(--section-y-tight);
  border-bottom: 1px solid var(--color-border-gold-soft);
}

.gd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 70% at 74% 26%, rgba(196, 18, 48, 0.28), transparent 66%),
    radial-gradient(48% 56% at 4% 8%, rgba(214, 169, 74, 0.15), transparent 62%);
  pointer-events: none;
}

.gd-hero__wheel {
  position: absolute;
  bottom: -58%;
  left: -18%;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg,
    rgba(196, 18, 48, 0.55) 0deg 9.73deg,
    rgba(6, 5, 7, 0.9) 9.73deg 19.46deg);
  mask: radial-gradient(circle, transparent 36%, #000 38%, #000 78%, transparent 80%);
  -webkit-mask: radial-gradient(circle, transparent 36%, #000 38%, #000 78%, transparent 80%);
  animation: wheelSpin 100s linear infinite;
}

.gd-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .gd-hero__grid { grid-template-columns: 300px minmax(0, 1fr); }
}

/* ---- art plate ---- */
.gd-art {
  position: relative;
  border-radius: var(--r-lg);
  padding: 6px;
  background: var(--grad-gold);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65), 0 0 46px rgba(214, 169, 74, 0.22);
  max-width: 300px;
  width: 58%;
  margin-inline: auto;
}

/* On a phone the art doesn't need to eat half the screen before you have
   read the game's name — keep it a supporting visual, not the headline. */
@media (max-width: 599px) {
  .gd-art { width: 40%; min-width: 148px; }
}

@media (min-width: 900px) {
  .gd-art { width: 100%; }
}

.gd-art__inner {
  position: relative;
  border-radius: calc(var(--r-lg) - 5px);
  overflow: hidden;
  background: #0D0B0F;
  aspect-ratio: 211 / 260;
}

.gd-art__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-art__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, 0.26) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: gdShine 5.5s var(--ease-in-out) infinite;
  pointer-events: none;
}

@keyframes gdShine {
  0%        { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}

.gd-art__ribbon {
  position: absolute;
  top: 14px;
  left: -6px;
  z-index: 3;
}

.gd-art__reflect {
  position: absolute;
  inset-inline: 12%;
  bottom: -14px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(214, 169, 74, 0.4), transparent 72%);
  filter: blur(8px);
}

/* ---- headline block ---- */
.gd-head { display: grid; gap: var(--sp-4); }

.gd-head__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.gd-head h1 { font-size: var(--fs-h1); }

.gd-head__tag {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--color-gold-bright);
  font-style: italic;
}

.gd-head__lede { color: var(--color-text-muted); font-size: var(--fs-body-lg); line-height: var(--lh-loose); max-width: 62ch; }

.gd-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-2); }

/* ---- spec strip ---- */
.gd-specs {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 132px), 1fr));
  margin-top: var(--sp-5);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--color-border-dark);
  border: 1px solid var(--color-border-gold-soft);
}

.gd-spec {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: rgba(11, 10, 12, 0.86);
}

.gd-spec dt {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.gd-spec dd {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--color-gold-bright);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Body layout
   -------------------------------------------------------------------------- */
.gd-body {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .gd-body { grid-template-columns: minmax(0, 1fr) 312px; }
}

.gd-main { display: grid; gap: var(--sp-8); }

.gd-block { display: grid; gap: var(--sp-4); }

.gd-block > h2 {
  font-size: var(--fs-h2);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border-gold-soft);
}

.gd-feats {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 254px), 1fr));
}

.gd-feat {
  display: flex;
  gap: 0.85rem;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(31, 27, 31, 0.6);
  border: 1px solid var(--color-border-dark);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  transition: all var(--dur-fast) var(--ease-out);
}

.gd-feat:hover { border-color: var(--color-border-gold); background: rgba(31, 27, 31, 0.9); }

.gd-feat::before {
  content: "";
  flex: none;
  width: 13px; height: 13px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--color-gold) 0deg 45deg, var(--color-crimson) 45deg 90deg);
  box-shadow: 0 0 8px rgba(214, 169, 74, 0.5);
}

/* how to play — numbered rail */
.gd-steps { display: grid; gap: var(--sp-4); counter-reset: gds; }

.gd-step {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) calc(var(--sp-8) + 0.5rem);
  border-radius: var(--r-md);
  background: rgba(11, 10, 12, 0.55);
  border: 1px solid var(--color-border-dark);
  counter-increment: gds;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}

.gd-step::before {
  content: counter(gds, decimal-leading-zero);
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-gold);
}

/* tips callout */
.gd-tips {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(196, 18, 48, 0.14), rgba(11, 10, 12, 0.85));
  border: 1px solid rgba(196, 18, 48, 0.3);
}

.gd-tips h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 800;
  color: var(--color-gold-bright);
  margin-bottom: var(--sp-4);
}

/* gallery — full-height phone crops on tablet/desktop, where there is room
   for them; short, wide crops in a tight 3-up strip on a phone, where a
   9:19 portrait image at two columns would run taller than the viewport. */
.gd-gallery {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(45%, 168px), 1fr));
}

.gd-gallery figure { display: grid; gap: 0.6rem; }

.gd-gallery img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border-gold-soft);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}

.gd-gallery img:hover { transform: translateY(-5px) scale(1.02); border-color: var(--color-gold); }

.gd-gallery figcaption {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
}

@media (max-width: 599px) {
  .gd-gallery { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .gd-gallery img { aspect-ratio: 3 / 4; }
  .gd-gallery figcaption { font-size: 0.66rem; line-height: 1.35; }
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.gd-aside { display: grid; gap: var(--sp-4); }

@media (min-width: 1000px) {
  .gd-aside { position: sticky; top: calc(var(--nav-h) + 22px); }
}

.gd-card {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--grad-surface);
  border: 1px solid var(--color-border-gold-soft);
  box-shadow: var(--shadow-card);
}

.gd-card h2,
.gd-card h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.gd-card__rows { display: grid; gap: 0.65rem; }

.gd-card__rows div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--color-border-dark);
}

.gd-card__rows dt { color: var(--color-text-dim); }
.gd-card__rows dd { color: var(--color-text-primary); font-weight: 700; text-align: right; }

.gd-card--cta {
  background: linear-gradient(160deg, rgba(196, 18, 48, 0.2), rgba(11, 10, 12, 0.92));
  border-color: var(--color-border-gold);
  text-align: center;
}

.gd-card--cta p { font-size: var(--fs-sm); color: var(--color-text-muted); }

.gd-card--cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Related strip
   -------------------------------------------------------------------------- */
.gd-related { position: relative; }

.gd-related__rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: clamp(0.7rem, 0.4rem + 0.9vw, 1.2rem);
}

@media (max-width: 560px) {
  .gd-related__rail { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.55rem; }
}

/* --------------------------------------------------------------------------
   Prev / next pager
   -------------------------------------------------------------------------- */
.gd-pager {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

@media (min-width: 700px) { .gd-pager { grid-template-columns: 1fr 1fr; } }

.gd-pager a {
  display: grid;
  gap: 0.25rem;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(31, 27, 31, 0.55);
  border: 1px solid var(--color-border-dark);
  transition: all var(--dur-fast) var(--ease-out);
}

.gd-pager a:hover { border-color: var(--color-border-gold); background: rgba(31, 27, 31, 0.9); }

.gd-pager small { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-dim); }
.gd-pager strong { font-size: var(--fs-body); color: var(--color-text-primary); }
.gd-pager a:hover strong { color: var(--color-gold-bright); }
.gd-pager .gd-pager__next { text-align: right; }
