/* ==========================================================================
   S9 GAME — PAGE-SPECIFIC OVERRIDES
   Each page keeps its own visual signature while sharing the core system.
   ========================================================================== */

/* ==========================================================================
   HOME — screenshot showcase, trust rail, download preview
   ========================================================================== */

/* Trust rail directly beneath the hero */
.trust-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.20);
}
.trust-rail__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.94), rgba(11, 17, 32, 0.96));
  transition: background var(--dur-base) var(--ease-out);
}
.trust-rail__item:hover { background: linear-gradient(180deg, rgba(34, 48, 74, 0.9), rgba(14, 21, 36, 0.96)); }
.trust-rail__icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.26);
}
.trust-rail__title { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--ink-050); line-height: 1.3; }
.trust-rail__sub { font-size: 0.735rem; color: var(--ink-400); margin-top: 3px; }

/* Home "how it works" alternating rows */
.flow { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.flow__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid rgba(101, 121, 155, 0.18);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.flow__row:hover {
  transform: translateX(6px);
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: var(--shadow-md), 0 0 40px rgba(212, 175, 55, 0.10);
}
.flow__index {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.flow__title { font-size: var(--fs-h3); margin-bottom: 10px; }
.flow__text { color: var(--ink-200); font-size: var(--fs-sm); line-height: 1.8; }
.flow__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }

/* Payments rail */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.pay-card {
  padding: 20px 18px;
  border-radius: var(--r-md);
  text-align: center;
  background: rgba(18, 26, 44, 0.7);
  border: 1px solid rgba(101, 121, 155, 0.2);
  transition: all var(--dur-base) var(--ease-out);
}
.pay-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-md), 0 0 32px rgba(212, 175, 55, 0.10);
}
.pay-card__name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--ink-050); }
.pay-card__meta { font-size: 0.73rem; color: var(--ink-400); margin-top: 5px; }
.pay-card__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--r-pill);
}

/* ==========================================================================
   ABOUT — timeline & values
   ========================================================================== */
.timeline { position: relative; display: grid; gap: clamp(20px, 2.4vw, 30px); padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.5) 12%, rgba(212, 175, 55, 0.5) 88%, transparent);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px; top: 6px;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.10), 0 0 18px rgba(212, 175, 55, 0.30);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.timeline__title { font-size: var(--fs-h4); margin: 7px 0 8px; }
.timeline__text { font-size: var(--fs-sm); color: var(--ink-200); line-height: 1.8; }

/* Value cards with large ghost numerals */
.value-card { position: relative; overflow: hidden; }
.value-card__ghost {
  position: absolute;
  right: 12px; top: -8px;
  font-family: var(--font-display);
  font-size: 5.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(212, 175, 55, 0.07);
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   DOWNLOAD — install wizard & mockup
   ========================================================================== */
.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 62px);
  align-items: center;
}
.dl-panel {
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 58%),
    linear-gradient(155deg, rgba(34, 48, 74, 0.66), rgba(11, 17, 32, 0.94));
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: var(--shadow-lg);
}
.dl-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1px;
  margin-top: var(--sp-6);
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.20);
}
.dl-meta__cell {
  padding: 15px 12px;
  text-align: center;
  background: rgba(11, 17, 32, 0.92);
}
.dl-meta__label {
  font-size: 0.655rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.dl-meta__value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--gold-300);
}

/* Vertical numbered install wizard */
.wizard { position: relative; display: grid; gap: clamp(16px, 2vw, 24px); }
.wizard__step {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: var(--sp-5);
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid rgba(101, 121, 155, 0.18);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.wizard__step:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.36);
  box-shadow: var(--shadow-md), 0 0 40px rgba(212, 175, 55, 0.10);
}
.wizard__badge {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #16110A;
  background: var(--grad-gold);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.28);
}
.wizard__title { font-size: var(--fs-h4); margin-bottom: 9px; }
.wizard__text { font-size: var(--fs-sm); color: var(--ink-200); line-height: 1.8; }
.wizard__tip {
  margin-top: var(--sp-4);
  padding: 12px 15px;
  border-radius: var(--r-xs);
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.20);
  font-size: 0.815rem;
  color: var(--ink-200);
  line-height: 1.7;
}
.wizard__tip b { color: var(--gold-300); }

/* ==========================================================================
   GAMES — catalogue toolbar & result meta
   ========================================================================== */
.games-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.games-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
}
.games-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: var(--fs-sm);
  color: var(--ink-050);
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid rgba(101, 121, 155, 0.3);
  border-radius: var(--r-pill);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.games-search input::placeholder { color: var(--ink-400); }
.games-search input:focus {
  outline: none;
  background: rgba(11, 17, 32, 0.92);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.13);
}
.games-search svg {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}
.games-count { font-size: var(--fs-xs); color: var(--ink-400); }
.games-count b { color: var(--gold-400); font-weight: 800; }
.games-empty {
  display: none;
  padding: clamp(36px, 5vw, 62px);
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(101, 121, 155, 0.34);
  color: var(--ink-300);
}
.games-empty.is-visible { display: block; }
.game-card.is-hidden { display: none; }

/* ==========================================================================
   CONTACT — info cards & map-less location block
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
}
.contact-card {
  display: flex;
  gap: var(--sp-4);
  padding: clamp(20px, 2.2vw, 26px);
  border-radius: var(--r-md);
  background: rgba(18, 26, 44, 0.66);
  border: 1px solid rgba(101, 121, 155, 0.2);
  transition: all var(--dur-base) var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.36);
  box-shadow: var(--shadow-md);
}
.contact-card__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.26);
}
.contact-card__title { font-family: var(--font-display); font-size: 0.94rem; font-weight: 700; color: var(--ink-050); }
.contact-card__text { font-size: 0.83rem; color: var(--ink-300); margin-top: 5px; line-height: 1.7; }
.contact-card__link { display: inline-block; margin-top: 9px; font-size: 0.83rem; font-weight: 700; color: var(--gold-400); }
.contact-card__link:hover { color: var(--gold-300); }

/* ==========================================================================
   LEGAL — privacy & terms
   ========================================================================== */
.legal-body { font-size: var(--fs-sm); line-height: 1.86; color: var(--ink-200); }
.legal-body h2 {
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  font-size: var(--fs-h3);
  scroll-margin-top: calc(var(--header-h) + 26px);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.7em; margin-bottom: 0.45em; font-size: 1.02rem; color: var(--gold-300); }
.legal-body p + p { margin-top: 1em; }
.legal-body ul, .legal-body ol { margin-top: 0.9em; padding-left: 1.35em; }
.legal-body li { margin-top: 0.5em; }
.legal-body li::marker { color: var(--gold-500); }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
  border-radius: var(--r-md);
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(101, 121, 155, 0.2);
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.legal-meta b { display: block; color: var(--gold-400); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }

/* ==========================================================================
   RESPONSIVE PAGE OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  .dl-hero { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .flow__row { grid-template-columns: 1fr; gap: var(--sp-3); }
  .wizard__step { grid-template-columns: 1fr; gap: var(--sp-4); }
  .timeline { padding-left: 28px; }
  .timeline__item::before { left: -28px; width: 19px; height: 19px; }
  .games-toolbar { flex-direction: column; align-items: stretch; }
  .games-search { max-width: none; }
}
