/* ============================================================
   IC7 Game — Game detail page
   ============================================================ */

/* ---------- Detail hero ---------- */
.gd-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.gd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero-glow);
  pointer-events: none;
}

.gd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .gd-hero__inner { grid-template-columns: 0.9fr 1.1fr; }
}

/* Featured artwork */
.gd-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(225,6,0,0.4);
  box-shadow: var(--shadow-card-lg), var(--shadow-glow-red);
  aspect-ratio: 211 / 260; /* native game artwork ratio */
}
.gd-art img { width: 100%; height: 100%; object-fit: cover; }

.gd-art__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 45%, transparent 60%);
  background-size: 250% 250%;
  animation: bg-pan 5s var(--ease-in-out) infinite;
  pointer-events: none;
}

/* Info panel */
.gd-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}
.tag--cat {
  border-color: rgba(225,6,0,0.4);
  background: var(--color-accent-soft);
  color: var(--color-accent-hot);
}
.tag--hot {
  background: var(--grad-crimson);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 14px rgba(225,6,0,0.5);
}

.gd-info h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.gd-info__lead { font-size: 1.06rem; margin-bottom: var(--sp-5); }

/* Quick specs */
.gd-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
}
.gd-spec { text-align: center; }
.gd-spec__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.gd-spec__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 2px;
}
.gd-spec__value--gold { color: var(--color-gold); }

.gd-info__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Tabs ---------- */
.gd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.gd-tab {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--dur-med) var(--ease-out);
}
.gd-tab:hover { color: var(--color-text-primary); border-color: var(--color-accent); }
.gd-tab.is-active {
  background: var(--grad-crimson);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow-red);
}

.gd-panel { display: none; }
.gd-panel.is-active { display: block; animation: pop-in var(--dur-med) var(--ease-out); }

/* Content blocks inside panels */
.gd-content { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 860px) {
  .gd-content--2col { grid-template-columns: 1fr 1fr; }
}

.gd-block h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: 1.2rem;
}
.gd-block h3 svg { width: 22px; height: 22px; color: var(--color-accent-hot); flex-shrink: 0; }
.gd-block p { margin-bottom: var(--sp-3); font-size: 0.96rem; }

/* Ordered / bulleted rule lists */
.gd-list { display: grid; gap: var(--sp-3); counter-reset: gd; }
.gd-list li {
  position: relative;
  padding-left: 38px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}
.gd-list li::before {
  counter-increment: gd;
  content: counter(gd);
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 1px solid rgba(225,6,0,0.35);
  color: var(--color-accent-hot);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.gd-list--check li::before {
  counter-increment: none;
  content: "\2713";
  background: rgba(0,200,83,0.12);
  border-color: rgba(0,200,83,0.35);
  color: var(--color-success);
}

/* Tip cards */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.tip-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-crimson);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-3);
}
.tip-card h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: var(--sp-2);
  color: var(--color-text-primary);
}
.tip-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(10,10,12,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(225,6,0,0.35);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
  transform: translateY(110%);
  transition: transform var(--dur-med) var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta__info { min-width: 0; }
.sticky-cta__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta__bonus { font-size: var(--fs-xs); color: var(--color-gold); }

/* Only show the sticky bar on mobile/tablet */
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---------- Rating block (non-fabricated framing) ---------- */
.gd-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
}
.gd-rating__stars { display: flex; gap: 4px; color: var(--color-gold); }
.gd-rating__stars svg { width: 22px; height: 22px; }
.gd-rating__note { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--sp-2); }
.gd-rating h3 { margin-bottom: var(--sp-2); }
