/* ==========================================================================
   3RR Game — pages/home.css
   Rooftop hero, bonus billboard, OG banner sign, screenshot coverflow,
   the ascent stepper, bonus spotlight, lobby grid and community pair.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — the rooftop terrace
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(4.5rem, 10vw, 7rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 4;
  display: grid;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  align-items: center;
  /* Phone view reads: headline -> app mockup -> welcome bonus and CTAs. */
  grid-template-areas:
    "intro"
    "stage"
    "cta";
}

.hero__intro { grid-area: intro; }
.hero__stage { grid-area: stage; }
.hero__cta { grid-area: cta; }

.hero__title {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 56ch;
  margin-bottom: var(--space-md);
}

/* Bonus strip */
.hero__bonus {
  display: inline-grid;
  gap: 0.15rem;
  margin-bottom: var(--space-md);
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 196, 81, 0.36);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 196, 81, 0.14) 0%, rgba(11, 23, 48, 0.9) 62%);
  box-shadow: 0 0 34px rgba(255, 196, 81, 0.18), inset 0 0 26px rgba(255, 196, 81, 0.06);
}

.hero__bonus-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.hero__bonus-figure {
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-gold);
  text-shadow: 0 0 26px rgba(255, 196, 81, 0.45);
}

.hero__bonus-meta {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.hero__actions { margin-bottom: var(--space-md); }

.hero__chips { gap: 0.45rem; list-style: none; margin: 0; padding: 0; }

/* Stage */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
}

@media (min-width: 1200px) {
  /* Desktop returns to two columns: copy stacked on the left, the mockup
     holding the full height of the right-hand column. */
  .hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-areas:
      "intro stage"
      "cta   stage";
    align-content: center;
    column-gap: clamp(2rem, 4vw, 4rem);
    row-gap: var(--space-md);
  }

  .hero__intro,
  .hero__cta { padding-right: 1rem; }

  .hero__intro { align-self: end; }
  .hero__cta { align-self: start; }
}

/* --------------------------------------------------------------------------
   Bonus billboard under the hero
   -------------------------------------------------------------------------- */
.bonus-board__panel {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-color: rgba(255, 196, 81, 0.26);
}

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

.bonus-board__glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 160%;
  background: radial-gradient(50% 40% at 30% 40%, rgba(255, 196, 81, 0.16) 0%, rgba(255, 196, 81, 0) 70%);
  pointer-events: none;
}

.bonus-board__grid {
  position: relative;
  display: grid;
  gap: var(--space-lg);
}

.bonus-board__kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.bonus-board__figure {
  margin: 0 0 var(--space-sm);
  font-size: clamp(3.2rem, 15vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  color: var(--color-gold);
  text-shadow: 0 0 46px rgba(255, 196, 81, 0.4);
}

.bonus-board__sub {
  max-width: 52ch;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.bonus-board__list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bonus-board__list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 15, 0.4);
}

.bonus-board__list svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
  fill: var(--color-gold);
}

.bonus-board__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--color-text-primary);
}

.bonus-board__list span {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.bonus-board__actions { margin-top: var(--space-md); }

@media (min-width: 1200px) {
  .bonus-board__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

/* --------------------------------------------------------------------------
   Trust sign row
   -------------------------------------------------------------------------- */
.signs {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signs__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 48, 0.6);
  box-shadow: inset 0 0 26px rgba(36, 235, 255, 0.04);
}

.signs__item svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  fill: var(--color-cyan-neon);
}

.signs__item span {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.signs__item strong {
  display: block;
  margin-bottom: 0.12rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--color-text-primary);
}

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

/* --------------------------------------------------------------------------
   OG banner billboard
   -------------------------------------------------------------------------- */
.ogboard__frame {
  position: relative;
  padding: clamp(0.55rem, 1.6vw, 0.9rem);
  border: 1px solid rgba(36, 235, 255, 0.28);
  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 46px rgba(36, 235, 255, 0.14);
}

.ogboard__link {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}

.ogboard__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-slow) var(--ease-out);
}

.ogboard__link:hover .ogboard__img { transform: scale(1.015); }

.ogboard__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 38%, rgba(190, 235, 255, 0.14) 48%, rgba(255, 255, 255, 0) 58%);
  background-size: 240% 100%;
  animation: ogboard-shine 9s var(--ease-in-out) 2s infinite;
}

@keyframes ogboard-shine {
  0%, 70% { background-position: 130% 0; }
  100% { background-position: -50% 0; }
}

/* Spotlights aimed at the sign from the rooftop below. */
.ogboard__spot {
  position: absolute;
  bottom: -12px;
  width: 42%;
  height: 130%;
  z-index: -1;
  background: linear-gradient(to top, rgba(36, 235, 255, 0.2), rgba(36, 235, 255, 0));
  filter: blur(16px);
  pointer-events: none;
}

.ogboard__spot--l { left: -6%; clip-path: polygon(0 100%, 22% 100%, 100% 0, 60% 0); }
.ogboard__spot--r { right: -6%; clip-path: polygon(78% 100%, 100% 100%, 40% 0, 0 0); }

/* Mount legs holding the sign above the street. */
.ogboard__legs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 22px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 17%, rgba(36, 235, 255, 0.32) 17%, rgba(36, 235, 255, 0.32) 18%, transparent 18%),
    linear-gradient(90deg, transparent 82%, rgba(36, 235, 255, 0.32) 82%, rgba(36, 235, 255, 0.32) 83%, transparent 83%);
}

.ogboard__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   Featured strip intro
   -------------------------------------------------------------------------- */
.strip__intro {
  max-width: 62ch;
  margin: 0 0 var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Screenshot coverflow
   -------------------------------------------------------------------------- */
.shots { position: relative; }

.shots__stage {
  position: relative;
  height: clamp(400px, 92vw, 560px);
  perspective: 1400px;
  /* Neighbouring frames slide past the edges; clip them there so the
     coverflow never widens the page. */
  overflow: hidden;
}

.shots__pad {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(78%, 520px);
  aspect-ratio: 4 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 235, 255, 0.4) 0%, rgba(36, 235, 255, 0.1) 46%, rgba(36, 235, 255, 0) 76%);
  filter: blur(3px);
  pointer-events: none;
}

.shots__track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.shots__slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(168px, 44vw, 220px);
  cursor: pointer;
  transform:
    translateX(calc(-50% + var(--offset) * clamp(96px, 26vw, 168px)))
    translateZ(calc(var(--abs) * -120px))
    rotateY(calc(var(--offset) * -13deg))
    scale(calc(1 - var(--abs) * 0.11));
  opacity: calc(1 - var(--abs) * 0.34);
  z-index: calc(10 - var(--abs));
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out);
  will-change: transform, opacity;
}

.shots__slide.is-hidden { opacity: 0; pointer-events: none; }
.shots__slide.is-active { cursor: default; }

.shots__frame {
  position: relative;
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(150deg, #2A3A5C 0%, #0D1A33 26%, #060B18 52%, #16233F 78%, #33456B 100%);
  box-shadow: 0 0 0 1px rgba(154, 246, 255, 0.14), 0 22px 44px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.shots__slide.is-active .shots__frame {
  box-shadow:
    0 0 0 1px rgba(154, 246, 255, 0.3),
    0 26px 54px rgba(0, 0, 0, 0.65),
    0 0 52px rgba(36, 235, 255, 0.3);
}

.shots__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #04060E;
}

.shots__img {
  width: 100%;
  height: auto;
  aspect-ratio: 620 / 1307;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  background: #05070F;
}

.shots__caption {
  margin-top: 0.85rem;
  text-align: center;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.shots__slide.is-active .shots__caption { opacity: 1; }

.shots__caption-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  color: var(--color-cyan-soft);
}

.shots__caption-text {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.shots__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.shots__dots { display: flex; gap: 0.45rem; }

.shots__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(147, 166, 204, 0.32);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), width var(--dur-mid) var(--ease-out);
}

.shots__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--color-cyan-neon);
  box-shadow: 0 0 12px var(--color-cyan-neon);
}

@media (min-width: 768px) {
  .shots__stage { height: 600px; }
  .shots__slide { width: 232px; }
}

@media (min-width: 1200px) {
  .shots__stage { height: 640px; }
  .shots__slide { width: 250px; }
}

/* --------------------------------------------------------------------------
   The ascent — steps climbing the page
   -------------------------------------------------------------------------- */
.ascent {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-md);
  margin: 0;
  padding: 0 0 0 3rem;
  list-style: none;
}

/* Rising light-trail spine. */
.ascent::before {
  content: '';
  position: absolute;
  left: 1.32rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(36, 235, 255, 0.06) 0%, rgba(36, 235, 255, 0.5) 45%, rgba(255, 196, 81, 0.75) 100%);
}

.ascent::after {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 18px var(--color-gold);
  animation: ascent-climb 6s var(--ease-in-out) infinite;
}

@keyframes ascent-climb {
  0% { top: 100%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: -6px; opacity: 0; }
}

.ascent__step { position: relative; }

.ascent__marker {
  position: absolute;
  left: -3rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(36, 235, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(70% 70% at 50% 30%, rgba(36, 235, 255, 0.22), rgba(5, 7, 15, 0.95));
  box-shadow: 0 0 20px rgba(36, 235, 255, 0.24);
}

.ascent__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-cyan-soft);
}

.ascent__body { padding: 1.15rem 1.25rem; }

.ascent__title {
  margin-bottom: 0.4rem;
  font-size: var(--fs-h4);
}

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

@media (min-width: 768px) {
  .ascent { padding-left: 4rem; }
  .ascent::before { left: 1.82rem; }
  .ascent::after { left: 1.55rem; }
  .ascent__marker { left: -4rem; width: 3.1rem; height: 3.1rem; }
  .ascent__body { padding: 1.4rem 1.6rem; }
}

/* --------------------------------------------------------------------------
   Bonus spotlight
   -------------------------------------------------------------------------- */
.spotlight { position: relative; overflow: hidden; }

.spotlight__panel {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.spotlight__title { margin-bottom: var(--space-md); font-size: var(--fs-h2); }

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

.spotlight__aside {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
  padding: var(--space-md);
  border: 1px solid rgba(255, 196, 81, 0.28);
  border-radius: var(--radius-md);
  background: rgba(5, 7, 15, 0.55);
}

.spotlight__badge { text-align: center; }

.spotlight__badge-label,
.spotlight__badge-meta {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.spotlight__badge-figure {
  display: block;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-gold);
  text-shadow: 0 0 30px rgba(255, 196, 81, 0.45);
}

.spotlight__checks {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.spotlight__checks li {
  position: relative;
  padding-left: 1.5rem;
}

.spotlight__checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg);
}

@media (min-width: 1200px) {
  .spotlight__grid { grid-template-columns: 1.35fr 0.65fr; }
}

/* --------------------------------------------------------------------------
   Lobby breakdown
   -------------------------------------------------------------------------- */
.lobbies { display: grid; gap: var(--space-sm); }

.lobby {
  position: relative;
  padding: var(--space-md);
  border: 1px solid var(--color-line);
  border-left: 3px solid rgba(36, 235, 255, 0.55);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(17, 33, 63, 0.8), rgba(7, 14, 32, 0.86));
  transition: border-left-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

.lobby:hover {
  transform: translateX(4px);
  border-left-color: var(--color-gold);
}

.lobby__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.lobby__title { margin: 0; font-size: var(--fs-h4); }

.lobby__count {
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(36, 235, 255, 0.3);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan-soft);
}

.lobby__text {
  margin: 0 0 0.7rem;
  font-size: var(--fs-sm);
  line-height: 1.72;
}

.lobby__link {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

@media (min-width: 768px) {
  .lobbies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
}

@media (min-width: 1200px) {
  .lobbies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lobbies > :first-child { grid-column: span 2; }
}

/* --------------------------------------------------------------------------
   Community pair
   -------------------------------------------------------------------------- */
.community__pair {
  display: grid;
  gap: var(--space-sm);
  max-width: 62rem;
  margin-inline: auto;
}

.community__pair .tg-btn--sign { width: 100%; }

.community__note {
  max-width: 56ch;
  margin: var(--space-lg) auto 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .community__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ascent::after,
  .ogboard__shine { display: none; }

  .shots__slide { transition: none; }
}
