/* S1 homepage visual R12 — isolated candidate, not published.
   Linked last, after s1-home-visual-r11.css (and the copied R10 /
   R9 / streamers CSS). Those earlier files are not rewritten.
   Desktop first screen only: shorter live preview card, top-aligned
   with left copy, official primary CTA only on the card.
   Featured platforms: faint square frame + soft square halo
   (not a circular glow). Mobile first-screen rules from R11 are
   left unchanged. */

/* ---------- Featured platforms: square frame + square halo ----------
   All widths. On mobile this block sits below the locked first screen.
   Official logos stay slightly rounded squares (about 12–16px radius,
   not 28px / pill / circle). Halo uses even-sided spread so it follows
   the square, not a circular bloom. */
.s1-top3-card {
  border-radius: 16px;
  background: linear-gradient(180deg, #241c22, #151218);
}

.s1-top3-card.is-kiss {
  border: 1px solid rgba(224, 105, 143, 0.58);
  box-shadow:
    0 0 0 1px rgba(224, 105, 143, 0.22),
    0 0 0 5px rgba(224, 105, 143, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.s1-top3-card.is-livego {
  border: 1px solid rgba(232, 186, 70, 0.58);
  box-shadow:
    0 0 0 1px rgba(232, 186, 70, 0.20),
    0 0 0 5px rgba(232, 186, 70, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.s1-top3-card.is-yoyo {
  border: 1px solid rgba(96, 160, 230, 0.55);
  box-shadow:
    0 0 0 1px rgba(96, 160, 230, 0.20),
    0 0 0 5px rgba(96, 160, 230, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.s1-top3-logo {
  width: 88px;
  height: 88px;
  margin: 0 0 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3a2430 0%, #160e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.s1-top3-card.is-kiss .s1-top3-logo {
  border-color: rgba(224, 105, 143, 0.7);
  box-shadow:
    0 0 0 1px rgba(224, 105, 143, 0.4),
    0 0 0 5px rgba(224, 105, 143, 0.16);
}

.s1-top3-card.is-livego .s1-top3-logo {
  border-color: rgba(232, 186, 70, 0.7);
  box-shadow:
    0 0 0 1px rgba(232, 186, 70, 0.38),
    0 0 0 5px rgba(232, 186, 70, 0.16);
}

.s1-top3-card.is-yoyo .s1-top3-logo {
  border-color: rgba(96, 160, 230, 0.7);
  box-shadow:
    0 0 0 1px rgba(96, 160, 230, 0.38),
    0 0 0 5px rgba(96, 160, 230, 0.16);
}

.s1-top3-logo img {
  width: 64px;
  height: 64px;
}

/* ---------- Desktop first screen (≥761px) ----------
   Do not add max-width: 760px first-screen overrides here.
   Mobile first-screen CSS from R11 stays as-is. */
@media (min-width: 761px) {
  main > section.rh.first {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 12px 24px;
    align-items: start;
    padding-top: 8px;
    padding-bottom: 4px;
  }
  main > section.rh.first .lead {
    max-width: none;
    min-width: 0;
  }
  main > section.rh.first .lead .kicker {
    margin-top: 0;
    margin-bottom: 6px;
  }
  main > section.rh.first .lead h1 {
    margin-bottom: 8px;
  }
  main > section.rh.first .lead .sub {
    margin-bottom: 6px;
  }
  main > section.rh.first .trust {
    margin: 8px 0 6px;
  }
  main > section.rh.first .age {
    margin-bottom: 0;
  }
  .s1-hero-actions {
    margin-top: 12px;
  }
  /* Official “Start 1-on-1 Now” stays on the live preview card only.
     Leave “Browse Featured Streamers (18+)” on the left. */
  main > section.rh.first .s1-hero-primary {
    display: none;
  }

  .s1-hero-live-frame {
    box-shadow:
      0 0 0 1px rgba(240, 180, 90, 0.25),
      0 10px 28px rgba(80, 20, 40, 0.32);
  }
  .s1-hero-live-inner {
    padding: 6px 6px 8px;
  }
  .s1-hero-live-video {
    max-height: min(26vh, 210px);
    aspect-ratio: 3 / 4;
  }
  .s1-hero-live-label {
    margin: 6px 0 0;
  }
  .s1-hero-live-name {
    margin: 2px 0 6px;
    font-size: 1.05rem;
  }
  /* Keep Start + Details on one row so the card stays shorter. */
  .s1-hero-live-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .s1-hero-live-cta {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
  }
  .s1-hero-live-details {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
  }

  /* Compact Featured platforms so a 1280×800 first screen can show
     the heading plus three complete official cards, including CTAs. */
  #s1-featured-top3 {
    padding-top: 2px;
    padding-bottom: 6px;
  }
  #s1-featured-top3 h2 {
    margin: 0 0 2px;
  }
  .s1-top3-sub {
    margin: 0 0 6px;
  }
  .s1-top3-grid {
    gap: 12px;
  }
  .s1-top3-card {
    padding: 8px 10px 8px;
  }
  .s1-top3-head {
    margin: 0 0 4px;
  }
  .s1-top3-logo {
    width: 56px;
    height: 56px;
    margin: 0 0 4px;
    border-radius: 12px;
  }
  .s1-top3-logo img {
    width: 40px;
    height: 40px;
  }
  .s1-top3-name {
    margin: 0 0 2px;
    font-size: 1.08rem;
  }
  .s1-top3-tag {
    margin: 0 0 2px;
    padding: 3px 8px;
  }
  /* Taglines already carry the same idea; hide the extra sell line
     on desktop only so the three cards fit above the fold. */
  .s1-top3-sell {
    display: none;
  }
  .s1-top3-devices {
    margin: 0 0 6px;
  }
  .s1-top3-cta {
    min-height: 40px;
    padding: 8px 14px;
  }
  .s1-top3-details {
    margin-top: 4px;
  }
}

/* ---------- More platforms heading on mobile ----------
   Override the R9 1×1 clip on h2#t3h without editing frozen R9 CSS.
   This heading is not on the first screen. */
@media (max-width: 760px) {
  html.s1-mobile-ui-ready #products > #t3h {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0 0 10px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    border: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
  }
}
