/* ==========================================================================
   B9 Game — Page-specific overrides
   About · Download · Games · Legal · Contact
   ========================================================================== */

/* ------------------------------ ABOUT ----------------------------------- */
/* Vertical milestone timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 26px;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--emerald-300), var(--emerald-100) 65%, transparent);
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--emerald-500);
  box-shadow: 0 0 0 5px var(--emerald-50);
}
.tl-item__year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
  background: var(--emerald-50);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin-bottom: 10px;
}
.tl-item h4 { margin-bottom: 6px; font-size: var(--fs-h6); }
.tl-item p { font-size: var(--fs-sm); color: var(--ink-400); margin: 0; }

/* Value pillars with big numerals */
.pillar {
  position: relative;
  padding-top: 8px;
}
.pillar__index {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, var(--emerald-300), var(--emerald-100));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  display: block;
}

/* Trust / licence style badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-badge {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.trust-badge:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.trust-badge__ring {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  color: var(--emerald-700);
  background: var(--emerald-50);
  border: 2px dashed var(--emerald-200);
}
.trust-badge b { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink-900); }
.trust-badge span { font-size: var(--fs-xs); color: var(--ink-300); line-height: 1.5; }

/* ------------------------------ DOWNLOAD -------------------------------- */
.dl-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(38px, 5vw, 74px) clamp(46px, 6vw, 90px);
  background:
    radial-gradient(66% 60% at 20% 6%, rgba(16, 185, 129, 0.16) 0%, transparent 62%),
    radial-gradient(52% 60% at 92% 88%, rgba(217, 175, 75, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F2FAF5 60%, #FAFAF8 100%);
}
.dl-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 4vw, 60px);
  align-items: center;
}
@media (min-width: 1024px) {
  .dl-hero__grid { grid-template-columns: 1fr 0.92fr; }
  .dl-hero__grid .mockup { order: 2; }
}

/* Store-style download buttons */
.store-btns { display: grid; gap: 12px; }
@media (min-width: 520px) { .store-btns { grid-template-columns: repeat(2, 1fr); } }
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-fast) linear;
}
.store-btn:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--emerald-200); }
.store-btn__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  flex: none;
}
.store-btn small { display: block; font-size: 0.7rem; color: var(--ink-300); font-weight: 600; line-height: 1.3; }
.store-btn b { display: block; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink-900); }
.store-btn--primary {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--sh-brand);
}
.store-btn--primary .store-btn__icon { background: rgba(255, 255, 255, 0.2); color: #fff; }
.store-btn--primary small { color: rgba(255, 255, 255, 0.8); }
.store-btn--primary b { color: #fff; }

/* Install steps as connected rail */
.install-steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 768px) { .install-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .install-steps { grid-template-columns: repeat(4, 1fr); } }
.install-step {
  position: relative;
  padding: 30px 22px 24px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.install-step:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.install-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--emerald-50);
  letter-spacing: -0.04em;
}
.install-step__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 15px;
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--sh-brand);
}
.install-step h4 { font-size: var(--fs-h6); margin-bottom: 6px; }
.install-step p { font-size: var(--fs-sm); color: var(--ink-400); margin: 0; }

/* Requirement / spec cards */
.req-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .req-grid { grid-template-columns: repeat(2, 1fr); } }

/* Version highlight strip */
.version-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  font-size: var(--fs-xs);
  color: var(--emerald-800);
  font-weight: 600;
}
.version-strip span { display: inline-flex; align-items: center; gap: 7px; }
.version-strip b { color: var(--emerald-900); font-family: var(--font-display); }

/* ------------------------------ GAMES ----------------------------------- */
.games-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: var(--sp-7);
}
@media (min-width: 900px) {
  .games-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.search-field {
  position: relative;
  max-width: 420px;
  width: 100%;
}
.search-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-300);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: var(--fs-sm);
  color: var(--ink-900);
  box-shadow: var(--sh-xs);
  transition: border-color var(--t-fast) linear, box-shadow var(--t-med) var(--ease-out);
}
.search-field input::placeholder { color: var(--ink-300); }
.search-field input:focus {
  outline: none;
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 4px var(--emerald-50);
}
.games-count {
  font-size: var(--fs-sm);
  color: var(--ink-400);
  font-weight: 600;
  white-space: nowrap;
}
.games-count b { color: var(--emerald-700); font-family: var(--font-display); }

.game-card.is-hidden { display: none; }

.empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px dashed var(--line);
  color: var(--ink-400);
}
.empty-state.is-shown { display: block; }
.empty-state h3 { font-size: var(--fs-h5); margin-bottom: 8px; }

.load-more-wrap { display: flex; justify-content: center; margin-top: var(--sp-8); }

/* Provider logos strip */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .provider-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .provider-grid { grid-template-columns: repeat(6, 1fr); } }
.provider {
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-fast) linear;
}
.provider:hover { transform: translateY(-4px); border-color: var(--emerald-200); }
.provider b { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink-900); }
.provider span { font-size: 0.7rem; color: var(--ink-300); }

/* ------------------------------ LEGAL ----------------------------------- */
.legal-layout {
  display: grid;
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
}
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 268px 1fr; }
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
}
.toc h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-300);
  margin-bottom: 14px;
}
.toc ul { list-style: none; display: grid; gap: 3px; }
.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-400);
  line-height: 1.45;
  transition: background var(--t-fast) linear, color var(--t-fast) linear;
}
.toc a:hover { background: var(--emerald-50); color: var(--emerald-800); }
@media (max-width: 1023px) { .toc { position: static; } }

.legal-body {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 52px);
  box-shadow: var(--sh-sm);
}
.legal-body > section { scroll-margin-top: calc(var(--nav-h) + 26px); }
.legal-body > section + section {
  margin-top: var(--sp-9);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line-soft);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line-soft);
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  margin: var(--sp-6) 0;
}
.callout__icon { color: var(--emerald-700); flex: none; margin-top: 2px; }
.callout p { font-size: var(--fs-sm); color: var(--emerald-900); margin: 0; line-height: 1.7; }
.callout--gold { background: var(--gold-50); border-color: var(--gold-100); }
.callout--gold .callout__icon { color: var(--gold-600); }
.callout--gold p { color: #4A3608; }

/* ------------------------------ CONTACT --------------------------------- */
.contact-layout {
  display: grid;
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1.08fr 0.92fr; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 42px);
  box-shadow: var(--sh-md);
}
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: grid; gap: 7px; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: var(--fs-sm);
  color: var(--ink-900);
  transition: border-color var(--t-fast) linear, box-shadow var(--t-med) var(--ease-out), background var(--t-fast) linear;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-300); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 4px var(--emerald-50);
}
.field small { font-size: 0.72rem; color: var(--ink-300); }

.check-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--ink-400);
  line-height: 1.65;
}
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--emerald-600); }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-900);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-status.is-shown { display: block; animation: fade-up-in 380ms var(--ease-out) both; }

.contact-side { display: grid; gap: 18px; }
.contact-tile {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.contact-tile__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  flex: none;
}
.contact-tile h4 { margin-bottom: 4px; font-size: var(--fs-h6); }
.contact-tile p { font-size: var(--fs-sm); color: var(--ink-400); margin: 0 0 8px; }

.hours-list { list-style: none; display: grid; gap: 10px; font-size: var(--fs-sm); }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-400);
}
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list b { color: var(--ink-900); font-weight: 700; }
