/* ==========================================================================
   P77 Game — home.css
   Homepage-only layout: split hero, Reserve band, OG showcase, screenshot
   slider, the "toast" stepper, long-form guide, voices, community band.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.6rem, 1.8rem + 4vw, 5.6rem) clamp(3rem, 2rem + 4vw, 6rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.6rem, 2rem + 3vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  position: relative;
  color: var(--color-accent-text);
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.11em;
  border-radius: 3px;
  background: var(--gradient-foil);
  opacity: 0.75;
}

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

.hero__bonus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin-bottom: var(--space-md);
}

.hero__bonus-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

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

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__trust li { margin: 0; }

/* Stage + device */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(1.4rem, 1rem + 2vw, 2.4rem);
}

.hero__mockup { --mockup-w: 268px; }

/* --------------------------------------------------------------------------
   Reserve band — the single obsidian contrast beat
   -------------------------------------------------------------------------- */
.reserve__inner {
  display: grid;
  gap: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  align-items: center;
}

.reserve__plaque {
  position: relative;
  padding: clamp(1.8rem, 1.4rem + 2vw, 3rem) clamp(1.4rem, 1rem + 2vw, 2.6rem);
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    linear-gradient(160deg, rgb(var(--rgb-ivory) / 0.07), rgb(var(--rgb-ivory) / 0.02));
  box-shadow:
    inset 0 0 0 1px rgba(201, 160, 92, 0.55),
    0 40px 80px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.reserve__plaque::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--radius-lg) - 6px);
  box-shadow: inset 0 0 0 1px rgba(201, 160, 92, 0.22);
  pointer-events: none;
}

.reserve__plaque .eyebrow { justify-content: center; }

.reserve__title {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D9C7A6 !important;
  margin-bottom: 0.4rem;
}

.reserve__amount {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  line-height: 1;
  color: var(--color-gold-bright) !important;
  text-shadow:
    0 0 34px rgba(232, 205, 146, 0.5),
    0 0 90px rgba(232, 205, 146, 0.22);
  animation: reserve-shimmer 5.5s ease-in-out infinite alternate;
}

@keyframes reserve-shimmer {
  from { text-shadow: 0 0 26px rgba(232, 205, 146, 0.38), 0 0 70px rgba(232, 205, 146, 0.16); }
  to { text-shadow: 0 0 44px rgba(232, 205, 146, 0.62), 0 0 120px rgba(232, 205, 146, 0.3); }
}

.reserve__sub {
  max-width: 46ch;
  margin: 0 auto var(--space-md);
  font-size: 0.96rem;
}

.reserve__notes-title { margin-bottom: var(--space-md); }
.reserve__terms { margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   Trust row
   -------------------------------------------------------------------------- */
.trust .card__text { font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   OG banner showcase
   -------------------------------------------------------------------------- */
.og-band__inner {
  display: grid;
  gap: clamp(2rem, 1.6rem + 2.4vw, 3.4rem);
  align-items: center;
}

.og-band__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-obsidian-contrast-bg);
  box-shadow:
    0 0 0 1px var(--color-gold-foil),
    0 0 0 8px rgb(255 253 248 / 0.9),
    0 34px 70px -30px rgba(26, 19, 13, 0.5);
  transform: translateZ(0);
}

.og-band__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease-terrace);
}

.og-band__frame:hover .og-band__img { transform: scale(1.03); }

.og-band__foil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, rgba(255, 248, 232, 0.24) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: og-sheen 9s ease-in-out 2s infinite;
}

@keyframes og-sheen {
  0% { transform: translateX(-120%); }
  30%, 100% { transform: translateX(120%); }
}

.og-band__points {
  display: grid;
  gap: 0.7rem;
  margin: var(--space-md) 0;
  padding: 0;
  list-style: none;
}

.og-band__points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  font-size: 0.96rem;
  color: var(--color-text-secondary);
}

.og-band__points svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--color-success);
}

.og-band__disclaimer {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-top: var(--space-md);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.og-band__disclaimer svg { width: 17px; height: 17px; margin-top: 3px; color: var(--color-warning); }

/* --------------------------------------------------------------------------
   Featured games
   -------------------------------------------------------------------------- */
.featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.featured__head .btn svg { width: 15px; height: 15px; }

.featured__intro {
  max-width: 70ch;
  margin-bottom: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  font-size: var(--fs-lead);
}


/* --------------------------------------------------------------------------
   Screenshot slider
   -------------------------------------------------------------------------- */
.shots__carousel { --shots-gap: clamp(0.8rem, 0.5rem + 1vw, 1.4rem); }

.shots__viewport { border-radius: var(--radius-lg); padding: 0.4rem 0 0.6rem; }

.shots__track { gap: var(--shots-gap); align-items: flex-start; }

.shots__slide { width: 62%; }

.shots__figure { margin: 0; }

.shots__device {
  position: relative;
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(155deg, #2A2119 0%, #100B07 46%, #221A12 100%);
  box-shadow:
    0 0 0 1px rgba(201, 160, 92, 0.5),
    0 24px 46px -24px rgba(26, 19, 13, 0.55);
  transition: transform var(--dur-med) var(--ease-terrace), box-shadow var(--dur-med) var(--ease-terrace);
}

.shots__slide.is-in-view .shots__device { transform: translateY(-4px); }

.shots__device:hover {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px var(--color-gold-bright),
    0 32px 60px -26px rgba(26, 19, 13, 0.65);
}

.shots__notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 54px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: #0A0705;
  box-shadow: inset 0 0 0 1px rgba(201, 160, 92, 0.2);
}

.shots__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 2233;
  object-fit: cover;
  border-radius: 20px;
  background: #0A0705;
}

.shots__caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-align: center;
}

.shots__actions { margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   "The toast" stepper
   -------------------------------------------------------------------------- */
.toast__steps {
  position: relative;
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toast;
}

.toast__step {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-rim-hair), var(--shadow-card);
  text-align: center;
  transition: transform var(--dur-med) var(--ease-terrace), box-shadow var(--dur-med) var(--ease-terrace);
}

.toast__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--color-gold-foil), var(--shadow-card-lift);
}

.toast__node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--color-surface-raised);
  box-shadow:
    0 0 0 1px var(--color-gold-foil),
    0 0 0 7px var(--color-gold-tint),
    var(--shadow-card);
  color: var(--color-accent-text);
}

.toast__node svg { width: 26px; height: 26px; }

.toast__num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--color-gold-text);
  margin-bottom: 0.35rem;
}

.toast__step-title { margin-bottom: 0.5rem; font-size: 1.22rem; }
.toast__step-text { font-size: 0.94rem; margin: 0; }

.toast__foot {
  margin-top: var(--space-lg);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--color-gold-tint);
  box-shadow: inset 0 0 0 1px rgba(201, 160, 92, 0.4);
  text-align: center;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Why grid
   -------------------------------------------------------------------------- */
.why__card .card__text { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Long-form guide
   -------------------------------------------------------------------------- */
.longform__grid {
  display: grid;
  gap: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  align-items: start;
}

.longform__body { display: grid; gap: var(--space-md); }

.longform__body h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-gold-foil);
}

.longform__aside { display: grid; gap: var(--space-sm); }
.longform__spec { box-shadow: none; }
.longform__spec table { font-size: 0.88rem; }
.longform__spec th, .longform__spec td { padding: 0.65rem 0.85rem; }
.longform__note p { font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Voices carousel
   -------------------------------------------------------------------------- */
.voices__carousel { --voices-gap: clamp(0.9rem, 0.6rem + 1vw, 1.5rem); }
.voices__track { gap: var(--voices-gap); align-items: stretch; }
.voices__slide { width: 86%; display: flex; }

.voices__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 2.4rem 1.5rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-rim-hair), var(--shadow-card);
  transition: box-shadow var(--dur-med) var(--ease-terrace);
}

.voices__slide.is-active .voices__card { box-shadow: 0 0 0 1px var(--color-gold-foil), var(--shadow-card); }

.voices__mark {
  position: absolute;
  top: 0.4rem;
  left: 1.2rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--color-gold-deep);
}

.voices__quote { margin: 0 0 auto; }
.voices__quote p { font-size: 0.98rem; line-height: 1.72; color: var(--color-text-secondary); }

.voices__by {
  margin-top: var(--space-md);
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border-hair);
}

.voices__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-text-strong);
}

.voices__meta {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Community band
   -------------------------------------------------------------------------- */
.community__grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1vw, 1.6rem);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.2rem);
}

.community__tile {
  position: relative;
  display: block;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-rim-hair), var(--shadow-card);
  color: inherit;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-terrace), box-shadow var(--dur-med) var(--ease-terrace);
}

.community__tile:hover {
  transform: translateY(-5px);
  color: inherit;
  box-shadow: 0 0 0 1px var(--color-gold-foil), var(--shadow-card-lift);
}

.community__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-sm);
  border-radius: 50%;
  background: var(--gradient-telegram);
  color: #FFFFFF;
  box-shadow: 0 12px 26px -12px rgba(16, 80, 110, 0.9);
}

.community__icon svg { width: 26px; height: 26px; }

.community__title { margin-bottom: 0.5rem; }
.community__text { font-size: 0.95rem; margin-bottom: var(--space-sm); }

.community__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.community__link svg { width: 15px; height: 15px; transition: transform var(--dur-med) var(--ease-terrace); }
.community__tile:hover .community__link svg { transform: translateX(4px); }

.cta-banner__title { margin-bottom: 0.6rem; }
.cta-banner__text { max-width: 60ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero__mockup { --mockup-w: 300px; }

  .reserve__inner { grid-template-columns: minmax(0, 1fr); }

  .og-band__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

  .shots__slide { width: calc((100% - 2 * var(--shots-gap)) / 3); }

  .toast__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .voices__slide { width: calc((100% - var(--voices-gap)) / 2); }

  .community__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .longform__grid { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(3rem, 2rem + 3vw, 5rem);
  }

  .hero__mockup { --mockup-w: 328px; }

  .reserve__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 4rem; }

  .shots__slide { width: calc((100% - 3 * var(--shots-gap)) / 4); }

  .toast__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* The thin gold line linking the four circular nodes */
  .toast__steps::before {
    content: "";
    position: absolute;
    top: 92px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-foil) 12%, var(--color-gold-foil) 88%, transparent);
    z-index: 0;
  }

  .toast__step { z-index: 1; }

  .voices__slide { width: calc((100% - 2 * var(--voices-gap)) / 3); }

  .longform__grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 3.4rem; }
  .longform__aside { position: sticky; top: calc(var(--nav-h) + 28px); }

  .og-band__inner { gap: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reserve__amount,
  .og-band__foil { animation: none !important; }
  .og-band__foil { display: none; }
}

.shots__note {
  max-width: 780px;
  margin: var(--space-lg) auto 0;
}

/* Mobile: give the hero call-to-action stack a single clean column. */
@media (max-width: 767px) {
  .hero__actions .btn,
  .hero__tg .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Phone-view hero order: mockup appears above the welcome-package badge.
   .hero__copy is flattened so its children become direct siblings of
   .hero__stage inside the same grid, letting `order` place the mockup
   between the lead paragraph and the bonus badge without touching markup.
   At 1200px+ this block is inactive and the normal two-column desktop
   layout (source order, hero__copy as a real grid item) takes over.
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .hero__copy { display: contents; }

  .hero__copy > .eyebrow { order: 1; }
  .hero__copy > .hero__title { order: 2; }
  .hero__copy > .hero__lead { order: 3; }
  .hero__stage { order: 4; margin-bottom: var(--space-sm); }
  .hero__copy > .hero__bonus { order: 5; }
  .hero__copy > .hero__actions { order: 6; }
  .hero__copy > .hero__tg { order: 7; }
  .hero__copy > .hero__trust { order: 8; }
}
