/* ReviewPulse home. Signature moment: the headline rises out of its mask. One moving picture: the wall of Steam art.
   Everything else arrives once, in reading order, and stays still. Tokens from app.css. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
.sheet:has(.home2) { padding-top: 0; }
.home2 { max-width: 1240px; }

/* ---------- hero ---------- */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: calc(100vh - 60px); padding: 40px 0 48px; }
.h2-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.home2 h1.split { margin: 0; font: 600 clamp(40px, 4.5vw, 70px)/1 var(--display); letter-spacing: -0.02em; }
.split .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split .ln > span { display: block; transform: translateY(105%); animation: rise 1000ms var(--ease-expo) forwards; }
.split .ln:nth-child(2) > span { animation-delay: 110ms; }
@keyframes rise { to { transform: none; } }
.lede { margin: 0; font-size: 18px; line-height: 28px; color: var(--muted); max-width: 560px; }
.hero-search { max-width: 600px; }
.hero-search input { height: 58px; font-size: 17px; padding-left: 50px; border-width: 2px; }
.hero-search > svg { left: 20px; top: 20px; width: 19px; height: 19px; }
.picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.picks a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--active); color: var(--text); font-weight: 500; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.picks a:hover { background: var(--control); text-decoration: none; }
.picks a:active { transform: scale(0.97); }
.hstats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 4px; }
.hstats div { display: flex; flex-direction: column; gap: 2px; }
.hstats b { font: 600 34px/38px var(--display); font-variant-numeric: tabular-nums; color: var(--accent); }
.hstats span { font-size: 14px; color: var(--muted); }

/* the art side: a tilted wall of real Steam capsules that never stops drifting */
.h2-art { position: relative; height: min(640px, 78vh); min-width: 0; }
.wall { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--card); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 12px; opacity: 0; animation: wallIn 1200ms var(--ease-out) 200ms forwards; }
@keyframes wallIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.wall-col { overflow: hidden; contain: paint; }
/* GPU layer + a pace fast enough (~20px/s) that motion reads as gliding, not as one-pixel steps */
.wall-track { display: flex; flex-direction: column; gap: 12px; will-change: transform; backface-visibility: hidden; transform: translate3d(0, 0, 0); animation: drift 34s linear infinite; }
.wall-col.c1 .wall-track { animation-duration: 42s; animation-direction: reverse; }
.wall-col.c2 .wall-track { animation-duration: 38s; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-50% - 6px), 0); } }
.wall-cap { display: block; aspect-ratio: 460 / 215; border-radius: 12px; background: var(--raised) center / cover no-repeat; backface-visibility: hidden; cursor: pointer; transition: transform 220ms var(--ease-out), opacity 220ms ease, box-shadow 220ms ease; }
.wall::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); pointer-events: none; transition: opacity 220ms ease; }
/* hover: that column stops, the game is spotlit, the rest steps back */
.wall-col:hover .wall-track { animation-play-state: paused; }
.wall.peeking::after { opacity: 0; }
.wall.peeking .wall-cap { opacity: .45; }
.wall.peeking .wall-cap.hot { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 2px var(--accent); }

/* quick read of the hovered game */
.peek { position: absolute; left: 0; top: 0; z-index: 6; width: 300px; background: var(--card); color: var(--text); border: 1px solid var(--control); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity 160ms ease, transform 220ms var(--ease-out); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.peek.on { opacity: 1; transform: none; }
.pk-top b { display: block; font: 600 18px/22px var(--display); }
.pk-top span { font-size: 12px; color: var(--muted); }
.pk-score { display: flex; align-items: baseline; gap: 8px; }
.pk-score em { font: 600 26px/26px var(--display); font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; }
.pk-score span { font-size: 13px; color: var(--muted); }
.peek p { margin: 0; font-size: 13px; line-height: 19px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--raised); border-radius: 12px; padding: 10px 12px; }
.pk-row div { display: flex; flex-direction: column; min-width: 0; }
.pk-row b { font: 600 15px/20px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-row span { font-size: 11px; color: var(--muted); }
.pk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-tags span { font-size: 11px; height: 22px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--active); color: var(--muted); }
.pk-cta { font-size: 12px; font-weight: 600; color: var(--accent); }
.pk-load { display: flex; flex-direction: column; gap: 8px; }
.pk-load i { display: block; height: 12px; border-radius: 6px; background: var(--active); animation: pkPulse 1s ease-in-out infinite alternate; }
@keyframes pkPulse { from { opacity: .5; } to { opacity: 1; } }
@media (hover: none) { .peek { display: none; } }
:root[data-theme="light"] .wall::after { background: rgba(243, 243, 241, .12); }

/* live scorecard over the wall */
.scorecard { position: absolute; left: -24px; bottom: 28px; z-index: 4; width: min(262px, 78%); background: var(--card); color: var(--text); border: 1px solid var(--control); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(24px); animation: cardIn 900ms var(--ease-expo) 600ms forwards; transition: border-color 180ms ease; }
.scorecard:hover { text-decoration: none; border-color: var(--accent); }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.sc-top { display: flex; gap: 12px; align-items: center; }
.sc-cap { width: 52px; height: 24px; border-radius: 6px; background: var(--raised) center / cover no-repeat; flex: none; }
.sc-top b { display: block; font: 600 14px/18px var(--display); }
.sc-top > div { min-width: 0; }
.sc-top span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-main { display: flex; align-items: center; gap: 12px; }
.gauge { width: 60px; height: 60px; transform: rotate(-90deg); flex: none; }
.gauge circle { fill: none; stroke-width: 12; }
.g-bg { stroke: var(--active); }
.g-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1400ms var(--ease-expo); }
.g-val { display: flex; flex-wrap: wrap; align-items: baseline; }
.g-val b { font: 600 30px/30px var(--display); font-variant-numeric: tabular-nums; }
.g-val small { font: 600 15px/15px var(--display); color: var(--muted); margin-left: 2px; }
.g-val span { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-top: 3px; }
.sc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: var(--raised); border-radius: 12px; padding: 9px 11px; }
.sc-rows div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sc-rows span { font-size: 11px; color: var(--muted); }
.sc-rows b { font: 600 14px/18px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-cta { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: 12px; }
.sc-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease-out); }
.scorecard:hover .sc-cta svg { transform: translateX(4px); }

/* ---------- sections ---------- */
.hsec { margin-top: 72px; }
.hsec h2 { font: 600 clamp(26px, 3vw, 36px)/1.15 var(--display); margin: 0 0 20px; letter-spacing: -0.01em; }
.hsec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.hsec-h h2 { margin: 0; max-width: 640px; }
.hsec-h p { margin: 0; color: var(--muted); max-width: 380px; }
.capsules.big { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home2 .capsule { border: 0; border-radius: 18px; background: var(--card); transition: transform 240ms var(--ease-out); }
.home2 .capsule .img { transition: transform 600ms var(--ease-out); }
.home2 .capsule { overflow: hidden; }
.home2 .capsule:hover { transform: translateY(-4px); border: 0; }
.home2 .capsule:hover .img { transform: scale(1.06); }
.home2 .capsule .meta { position: relative; background: var(--card); }

.feat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.feat-l { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.feat-l h2 { margin: 0; }
.feat-l p { margin: 0; color: var(--muted); font-size: 16px; line-height: 25px; }
.feat-cta { margin-top: 8px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feat-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-radius: 16px; background: var(--card); transition: background-color 180ms ease; }
.feat-list li:hover { background: var(--raised); }
.feat-list div { display: flex; flex-direction: column; gap: 4px; }
.feat-list b { font: 600 18px/24px var(--display); }
.feat-list span { color: var(--muted); font-size: 14px; line-height: 21px; }
.feat-list em { font-style: normal; flex: none; font-size: 12px; font-weight: 600; height: 26px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--active); color: var(--muted); }
.feat-list em.pro { background: var(--accent); color: var(--on-accent); }

.band { margin-top: 80px; border-radius: 28px; background: var(--accent); color: var(--on-accent); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { margin: 0 0 8px; font: 600 clamp(28px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -0.01em; max-width: 680px; }
.band p { margin: 0; font-size: 17px; opacity: .85; }
.band-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.band-btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); font-weight: 600; }
.band-btn:hover { background: var(--on-accent); opacity: .9; }
.band-ghost { color: var(--on-accent); border-color: currentColor; }
.band-ghost:hover { background: rgba(0, 0, 0, .08); }

/* ---------- arrivals: once, in reading order ---------- */
.home2 .rv { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-expo) var(--d, 0ms); }
.hero2 .rv { transition-delay: 380ms; }
.hero2 .search.rv { transition-delay: 460ms; }
.hero2 .picks.rv { transition-delay: 540ms; }
.hero2 .hstats.rv { transition-delay: 620ms; }
.home2 .rv.in { opacity: 1; transform: none; }
.home2 .capsule.rv.in:hover { transform: translateY(-4px); }
/* after the first visit in a session, render finished */
.home2.calm .split .ln > span, .home2.calm .wall, .home2.calm .scorecard { animation: none; opacity: 1; transform: none; }
.home2.calm .rv { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .split .ln > span, .wall, .scorecard { animation: none !important; opacity: 1 !important; transform: none !important; }
  .wall-track { animation: none !important; }
  .home2 .rv { opacity: 1; transform: none; transition: none; }
  .g-fg { transition: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 36px; }
  .h2-art { height: 460px; }
  .scorecard { left: 16px; bottom: 16px; }
  .capsules.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .feat { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feat-l { position: static; }
  .capsules.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero2 { padding-top: 24px; }
  .lede { font-size: 16px; line-height: 25px; }
  .hstats { gap: 24px; }
  .hstats b { font-size: 28px; line-height: 32px; }
  .h2-art { height: 520px; }
  .scorecard { left: 12px; bottom: 12px; width: min(262px, calc(100% - 24px)); }
  .capsules.big { gap: 12px; }
  .band { padding: 28px 22px; border-radius: 22px; }
  .feat-list li { padding: 16px; }
}

/* the hero is the wall alone: hover any game for its quick read */
.scorecard { display: none; }
