/* ==========================================================================
   JACK WILDS: hero (#top, "Open late.") + Now showing (#now)
   Owner: hero builder. Scoped to .hero-* and .now-*.
   ========================================================================== */

/* ── HERO ─────────────────────────────────────────────────────────────────
   Stacking (inside .hero, which isolates): picture z0, canvas z1,
   .hero-vignette z2, reserved .moon-layer z3, copy + scroll cue z4.      */
.hero {
  --art-h: 100%;
  --art-pos: 100% 46%;
  --tb: 0px; /* the phone thumb bar: the hero fills the glass, the copy stays above the bar */
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  padding: calc(var(--nav-h) + var(--safe-t) + 20px) 0 calc(clamp(72px, 9svh, 112px) + var(--tb));
  background: var(--ink);
  color: var(--bone);
}
@media (max-width: 860px) {
  .hero { --tb: calc(var(--thumb-h) + var(--safe-b)); }
}

.hero-stage {
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.hero-art,
.hero-gl {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--art-h);
}
.hero-art { z-index: 0; }
.hero-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--art-pos);
  user-select: none;
  -webkit-user-drag: none;
}
.hero-gl {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s var(--ease-out);
}
.hero-gl.is-live { opacity: 1; }

/* the ink falls off towards the copy, the nav and the next section */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, .9) 0%, rgba(12, 10, 8, .72) min(30%, 440px), rgba(12, 10, 8, .28) min(50%, 760px), rgba(12, 10, 8, 0) min(64%, 980px)),
    linear-gradient(0deg, var(--ink) 0%, rgba(12, 10, 8, .6) 9%, rgba(12, 10, 8, 0) 26%),
    linear-gradient(180deg, rgba(12, 10, 8, .6) 0%, rgba(12, 10, 8, 0) calc(var(--nav-h) + 90px)),
    radial-gradient(130% 110% at 72% 42%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%);
}

/* another module shakes the set when the moon is hit */
.hero-stage.is-shaking { animation: heroStageShake .15s linear both; }
@keyframes heroStageShake {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4px, 2px); }
  40%  { transform: translate(3px, -3px); }
  60%  { transform: translate(-3px, -1px); }
  80%  { transform: translate(2px, 3px); }
  100% { transform: translate(0, 0); }
}

/* ── Copy ─────────────────────────────────────────────────────────────── */
.hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr; /* spare width goes after the tategaki, never between it and the word */
  justify-content: start;
  align-items: start;
  column-gap: clamp(12px, 1.5vw, 26px);
  width: fit-content;
  max-width: 100%;
  margin-left: max(var(--gutter), env(safe-area-inset-left));
  margin-right: var(--gutter);
}
.hero-kicker {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: clamp(16px, 2.2svh, 28px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
}

/* the wordmark: seal + JACK on one line, WILDS under it */
.hero-word {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "seal jack" "wilds wilds";
  justify-content: start;
  align-items: center;
  column-gap: .11em;
  font-size: clamp(60px, min(12.2vw, 20.5svh), 190px);
  line-height: .86;
  letter-spacing: -.02em;
  color: var(--bone);
  text-shadow: 0 .02em .12em rgba(0, 0, 0, .55);
  font-kerning: normal;
}
.hero-seal {
  grid-area: seal;
  width: .72em;
  height: .72em;
  margin-top: -.06em;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: rotate(-4deg);
  box-shadow: .035em .035em 0 rgba(0, 0, 0, .55);
}
.hero-word .hw { display: block; white-space: nowrap; }
.hero-word .hw:nth-of-type(1) { grid-area: jack; }
.hero-word .hw:nth-of-type(2) { grid-area: wilds; margin-top: .02em; }
.hero-l { display: inline-block; }
/* ink ring that pulses out when the seal lands */
.hero-word::before {
  content: '';
  grid-area: seal;
  justify-self: center;
  align-self: center;
  width: .72em;
  height: .72em;
  margin-top: -.06em;
  border: .03em solid var(--seal-hot);
  opacity: 0;
  pointer-events: none;
}

.hero-jp {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  margin-top: .3em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(13px, 1.25vw, 19px);
  line-height: 1;
  letter-spacing: .42em;
  color: var(--seal-hot);
  opacity: .92;
  text-shadow: 0 0 18px rgba(0, 0, 0, .8);
}

.hero-tag {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: clamp(14px, 2.4svh, 30px);
  font-size: clamp(30px, min(3.5vw, 6svh), 56px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(242, 177, 62, .18), 0 2px 16px rgba(0, 0, 0, .7);
}
.hero-sub {
  grid-column: 1 / -1;
  grid-row: 4;
  max-width: 36ch;
  margin-top: clamp(10px, 1.6svh, 18px);
  font-size: clamp(15px, 1.25vw, 18.5px);
  line-height: 1.6;
  color: var(--bone-2);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .9);
}
.hero-ctas {
  grid-column: 1 / -1;
  grid-row: 5;
  margin-top: clamp(20px, 3.4svh, 36px);
  gap: 14px;
}

/* The Arcade CTA: quiet ghost, gold edge, a glint that crosses it now and then */
.hero-arcade-cta {
  --b-bd: rgba(242, 177, 62, .55);
  --b-bg: rgba(12, 10, 8, .5);
  overflow: hidden;
}
.hero-arcade-cta .ic { color: var(--gold); }
.hero-arcade-cta:hover { --b-bd: var(--gold); }
.hero-soon {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: .78em;
  letter-spacing: .14em;
  color: var(--gold);
}
.hero-soon::before {
  content: '';
  width: 1px;
  height: 1.1em;
  background: rgba(242, 177, 62, .45);
}
.hero-arcade-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 214, 130, 0) 38%, rgba(255, 214, 130, .34) 48%, rgba(255, 240, 200, .5) 50%, rgba(255, 214, 130, .34) 52%, rgba(255, 214, 130, 0) 62%);
  transform: translateX(-110%);
  animation: heroGlint 7s 2.4s var(--ease-io) infinite;
}
@keyframes heroGlint {
  0%, 78% { transform: translateX(-110%); }
  94%, 100% { transform: translateX(110%); }
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(clamp(16px, 3svh, 30px) + var(--tb));
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 12px;
  translate: -50% 0;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--fog);
  transition: color .2s;
}
.hero-scroll span { padding-left: .34em; }
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(239, 230, 214, 0), var(--bone) 50%, rgba(239, 230, 214, 0)) 0 -34px / 1px 34px no-repeat, var(--line-2);
  animation: heroCue 2.4s var(--ease-io) infinite;
}
.hero-scroll .ic { display: none; }
.hero-scroll:hover { color: var(--bone); }
@keyframes heroCue {
  0% { background-position: 0 -34px, 0 0; }
  60%, 100% { background-position: 0 34px, 0 0; }
}

/* ── Arrival: pure CSS so it runs from first paint, with or without JS.
   hero.js swaps the word stamp for a letter-by-letter stamp when it
   arrives in time. Everything ends visible; reduced motion skips it. ── */
.hero-seal { animation: heroSeal .44s .06s var(--ease-out) both; }
.hero-word::before { animation: heroRing .7s .34s var(--ease-out) both; }
.hero-word { animation: heroShake .2s .34s linear both; }
.hero-word .hw { animation: heroStampIn .5s .38s var(--ease-out) both; }
.hero-word .hw:nth-of-type(2) { animation-delay: .52s; }
.hero-word.is-split .hw { animation: none; }
.hero-word.is-split .hero-l { animation: heroStampIn .44s var(--ease-out) both; animation-delay: calc(var(--t0, 0ms) + var(--i, 0) * 58ms); }
.hero-kicker { animation: heroFade .7s .1s var(--ease-out) both; }
.hero-jp { animation: heroDown .8s .78s var(--ease-out) both; }
.hero-tag { animation: heroUp .7s .88s var(--ease-out) both; }
.hero-sub { animation: heroUp .7s .96s var(--ease-out) both; }
.hero-ctas { animation: heroUp .58s .98s var(--ease-out) both; }
.hero-scroll { animation: heroFade .6s .95s var(--ease-out) both; }

@keyframes heroSeal {
  0%   { opacity: 0; transform: scale(2.4) rotate(-20deg); }
  55%  { opacity: 1; transform: scale(.93) rotate(-2deg); }
  76%  { transform: scale(1.04) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-4deg); }
}
@keyframes heroRing {
  0%   { opacity: .95; transform: rotate(-4deg) scale(.8); }
  100% { opacity: 0; transform: rotate(-4deg) scale(2.3); }
}
@keyframes heroShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(2px, -1px); }
  40% { transform: translate(-2px, 1px); }
  60% { transform: translate(1px, 2px); }
  80% { transform: translate(-1px, -2px); }
}
@keyframes heroStampIn {
  0%   { opacity: 0; transform: translateY(-.1em) scale(1.42); color: var(--seal-hot); }
  45%  { opacity: 1; color: var(--seal-hot); }
  58%  { transform: translateY(0) scale(.965); }
  78%  { transform: scale(1.012); }
  100% { opacity: 1; transform: none; color: var(--bone); }
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroDown { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-seal, .hero-word, .hero-word::before, .hero-word .hw, .hero-l, .hero-kicker, .hero-jp,
  .hero-tag, .hero-sub, .hero-ctas, .hero-scroll, .hero-scroll::after, .hero-arcade-cta::after,
  .hero-stage.is-shaking {
    animation: none !important;
  }
  .hero-word::before { opacity: 0; }
  .hero-arcade-cta::after { display: none; }
  .hero-gl { transition: none; }
}

/* ── Portrait: the set on top, the title card underneath ─────────────── */
@media (max-aspect-ratio: 6/5) {
  /* the copy is anchored to the foot of the glass and overlaps the art's darkest band;
     padding-top is only a floor, so the buttons can never be pushed under the fold */
  .hero {
    --art-h: min(92vw, 60svh);
    --art-pos: 100% 50%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-top: max(calc(var(--nav-h) + var(--safe-t) + 40px), calc(var(--art-h) * .5));
    padding-bottom: calc(clamp(40px, 6svh, 72px) + var(--tb));
  }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(12, 10, 8, .62) 0, rgba(12, 10, 8, 0) calc(var(--nav-h) + 70px)),
      linear-gradient(180deg, rgba(12, 10, 8, 0) calc(var(--art-h) * .56), rgba(12, 10, 8, .72) calc(var(--art-h) * .84), var(--ink) calc(var(--art-h) - 2px)),
      radial-gradient(120% 70% at 60% 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .4) 100%);
  }
  .hero-word { font-size: clamp(52px, min(13vw, 11.5svh), 140px); }
  .hero-tag { font-size: clamp(28px, 5vw, 48px); }
  .hero-sub { font-size: clamp(15px, 2.1vw, 18px); max-width: 40ch; }
  .hero-jp { font-size: clamp(12px, 1.7vw, 17px); }
  .hero-scroll { left: auto; right: var(--gutter); translate: none; }
}
/* phones in portrait: the square crop of the set (the <picture> switches at 700px) */
@media (max-width: 700px) and (max-aspect-ratio: 6/5) {
  .hero {
    --art-h: min(118vw, 70svh, calc(100svh - 296px));
    --art-pos: 69% 50%;
    padding-bottom: calc(18px + var(--tb));
  }
  .hero-copy { width: auto; margin-left: max(16px, env(safe-area-inset-left)); margin-right: max(16px, env(safe-area-inset-right)); }
  .hero-kicker { font-size: 11px; letter-spacing: .22em; margin-bottom: 10px; }
  .hero-kicker::before { width: 16px; }
  .hero-word { font-size: clamp(44px, min(15vw, 10.4svh), 80px); }
  .hero-jp { justify-self: start; font-size: 11px; letter-spacing: .2em; margin-top: .2em; }
  .hero-tag { font-size: clamp(26px, 7.4vw, 32px); margin-top: 10px; }
  .hero-sub { max-width: 44ch; font-size: 14px; line-height: 1.5; margin-top: 6px; }
  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .hero-ctas .btn { min-height: 52px; padding: 9px 10px 8px; font-size: 13.5px; letter-spacing: .06em; white-space: normal; }
  .hero-arcade-cta {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: .6em;
    row-gap: 3px;
    text-align: left;
  }
  .hero-arcade-cta .ic { grid-row: span 2; }
  .hero-soon { font-size: 10px; letter-spacing: .16em; }
  .hero-soon::before { display: none; }
  .hero-scroll { display: none; }
}
/* short landscape screens (small laptops, tablets with the keyboard up): keep the buttons in view */
@media (max-height: 700px) and (min-aspect-ratio: 6/5) {
  .hero { padding-bottom: calc(40px + var(--tb)); }
}
@media (max-height: 620px) and (min-aspect-ratio: 6/5) {
  .hero-scroll { display: none; }
}
/* phones on their side: tighten the title card so it fits the glass */
@media (max-height: 500px) and (min-aspect-ratio: 6/5) {
  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + var(--safe-t) + 8px); padding-bottom: calc(20px + var(--tb)); }
  .hero-kicker { margin-bottom: 6px; font-size: 10.5px; }
  .hero-word { font-size: clamp(44px, 13.5svh, 72px); }
  .hero-jp { font-size: 11px; letter-spacing: .2em; }
  .hero-tag { font-size: clamp(22px, 6.6svh, 30px); margin-top: 6px; }
  .hero-sub { font-size: 13.5px; line-height: 1.42; margin-top: 4px; max-width: 54ch; }
  .hero-ctas { margin-top: 10px; gap: 10px; }
  .hero-ctas .btn { min-height: 44px; padding: 8px 16px 7px; font-size: 13px; }
}
/* the shortest glass (phones on their side with Safari's bars showing): the studio line
   is repeated in the studio section, so here it steps aside for the buttons */
@media (max-height: 420px) and (min-aspect-ratio: 6/5) {
  .hero-kicker { display: none; }
}

/* ── NOW SHOWING ─────────────────────────────────────────────────────── */
.now {
  position: relative;
  padding-bottom: clamp(24px, 4vw, 64px);
  background: var(--ink);
  overflow: clip;
}

/* the vermillion ticker, carried over from the old site */
.now-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: clamp(56px, 8vw, 112px);
  padding: 11px 0 10px;
  background: var(--seal);
  color: #fff4ea;
  border-block: 2px solid #1a1408;
  font-family: var(--f-pixel);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 40px -18px rgba(217, 72, 44, .55);
}
.now-track {
  display: flex;
  width: max-content;
  animation: nowTicker var(--tick-dur, 40s) linear infinite;
}
.now-ticker.is-paused .now-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .now-ticker:hover .now-track { animation-play-state: paused; }
}
.now-group { display: flex; flex: none; }
.now-tick { padding-inline: 1.15em; }
.now-tick b { font-weight: 400; color: #1a1408; background: #fff4ea; padding: 1px 5px 0; margin-right: .6em; letter-spacing: .12em; }
.now-sep { color: #1a1408; opacity: .6; }
@keyframes nowTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* big ghost glyphs behind the heading: cinema "now showing" */
.now-ghost {
  position: absolute;
  top: clamp(60px, 7vw, 110px);
  right: max(-2vw, -24px);
  z-index: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(120px, 20vw, 320px);
  line-height: 1;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 230, 214, .07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.now .wrap { position: relative; z-index: 1; }

.now-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: clamp(28px, 3.6vw, 48px);
}
.now-head > div:first-child, .now-head .now-titles { display: grid; gap: 14px; }
.now-head h2 { font-size: clamp(34px, 4.6vw, 64px); }
.now-head h2 em { font-style: normal; color: var(--seal-hot); }
.now-count {
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--fog);
  text-transform: uppercase;
}

/* row controls (touch layouts) */
.now-ctrl { display: none; align-items: center; gap: 6px; }
.now-ctrl .icon-btn {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-2);
  color: var(--bone);
  background: rgba(12, 10, 8, .4);
}
.now-ctrl .icon-btn:disabled { opacity: .35; cursor: default; }
.now-ctrl .icon-btn:not(:disabled):active { transform: translate(1px, 1px); }
.now-pos {
  min-width: 64px;
  text-align: center;
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--fog);
}
.now-pos b { font-weight: 400; color: var(--bone); }

/* the cards */
.now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}
.now-card {
  --acc: var(--seal);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, var(--ink-2), #0f0c09);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hard);
  transition: transform .5s var(--ease-out), border-color .35s, box-shadow .5s var(--ease-out);
}
.now-card::before {
  /* accent hairline along the top edge */
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  z-index: 3;
  width: 44px;
  height: 3px;
  background: var(--acc);
  transition: width .7s var(--ease-out);
}

.now-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #070605;
}
.now-img, .now-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.now-img {
  object-position: var(--focus, 50% 45%);
  transform: scale(1.001);
  transition: transform 1.6s var(--ease-out), filter .6s;
}
.now-vid {
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  background: transparent;
}
.now-art.is-playing .now-vid.has-frame { opacity: 1; }
.now-cat, .now-jp, .now-stamp, .now-prog { pointer-events: none; }
.now-art::after {
  /* cinema falloff at the bottom of the frame */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(8, 6, 5, .7) 0%, rgba(8, 6, 5, 0) 38%),
    linear-gradient(180deg, rgba(8, 6, 5, .45) 0%, rgba(8, 6, 5, 0) 26%);
}
.now-cat {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 4px 8px 3px;
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--bone);
  background: rgba(8, 6, 5, .78);
  border: 1px solid var(--line-2);
}
.now-jp {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .28em;
  color: rgba(239, 230, 214, .88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
  white-space: nowrap;
}
.now-stamp {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  font-size: 10.5px;
  padding: 7px 11px 5px;
  background: rgba(12, 10, 8, .72);
}
.now-stamp .jp-s { font-size: 16px; }
.now-card.will-stamp .now-stamp { opacity: 0; }
.now-card.is-stamped .now-stamp { animation: nowStamp .5s var(--ease-out) both; animation-delay: var(--sd, 0s); }
@keyframes nowStamp {
  0% { opacity: 0; transform: rotate(-16deg) scale(1.9); }
  60% { opacity: 1; transform: rotate(-6deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}
.now-prog {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: opacity .3s;
}
.now-art.is-playing .now-prog { opacity: .9; }

.now-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 26px) clamp(20px, 2vw, 26px);
}
.now-genre {
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fog);
}
.now-title {
  margin-top: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.02;
  letter-spacing: -.005em;
}
.now-title .now-subt {
  display: block;
  margin-top: 6px;
  font-size: .5em;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--bone-2);
}
.now-link { color: var(--bone); }
/* the title link covers the whole card; buttons sit above it */
.now-link::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 1;
}
.now-link:focus-visible { outline: none; }
.now-link:focus-visible::after,
.now-card.is-pad .now-link::after { outline: 2px solid var(--gold); outline-offset: 4px; }
.now-log {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--bone-2);
}
.now-rel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 16px;
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--seal-hot);
}
.now-rel time { color: var(--fog); }
.now-rel .now-dot { color: var(--fog-2); font-size: 9px; }
.now-ctas {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.now-ctas .btn { flex: 1 1 auto; }
.now-demo {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  justify-content: flex-start;
  margin-top: auto;
  padding: 16px 2px 0;
  min-height: 0;
  color: var(--bone-2);
}
.now-demo .ic { width: 15px; height: 15px; }
.now-demo:hover, .now-demo:focus-visible { color: var(--gold); }
.now-demo + .now-ctas { margin-top: 0; padding-top: 10px; }
/* fingers get full-size targets */
@media (pointer: coarse) {
  .now-ctas .btn { min-height: 44px; }
  .now-demo { min-height: 44px; padding-top: 8px; }
}

@media (hover: hover) and (pointer: fine) {
  .now-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: 10px 12px 0 rgba(0, 0, 0, .55), 0 30px 70px -30px color-mix(in srgb, var(--acc) 45%, transparent); }
  .now-card:hover::before { width: calc(100% + 2px); }
  .now-card:hover .now-img { transform: scale(1.045); }
  .now-card:hover .now-link { color: #fff; }
}
.now-card:focus-within::before { width: calc(100% + 2px); }

/* iPad and phones: a horizontal row that snaps, next card peeking */
@media (max-width: 1023px), (max-width: 1199px) and (pointer: coarse) {
  .now-ctrl { display: flex; }
  .now-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(300px, 41vw, 470px);
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: -8px calc(var(--gutter) * -1) 0;
    padding: 8px var(--gutter) 22px; /* room for the controller focus ring inside the clip */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .now-grid::-webkit-scrollbar { display: none; }
  .now-card { scroll-snap-align: start; box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
}
@media (max-width: 1023px) {
  .now-grid { grid-auto-columns: min(56vw, 440px); }
}
@media (max-width: 700px) {
  .now-grid { grid-auto-columns: 82vw; gap: 14px; }
  .now-head { align-items: flex-end; }
  .now-ghost { font-size: 34vw; top: 70px; right: -6vw; }
  .now-log { font-size: 15px; }
  .now-jp { font-size: 11px; letter-spacing: .18em; right: 10px; top: 10px; }
  .now-ctas .btn { font-size: 13px; padding-inline: 12px; }
  .now-ticker { font-size: 12px; padding: 10px 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .now-track { animation: none; }
  .now-card.is-stamped .now-stamp { animation: none; }
  .now-card.will-stamp .now-stamp { opacity: 1; }
  .now-card, .now-img { transition: none; }
}

/* on-Steam badge (bottom-left of the art; the stamp sits bottom-right) */
.now-steam {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 7px;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(23, 26, 33, .86); /* Steam's own navy-black */
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}
.now-steam .ic { width: 18px; height: 18px; }

.now-cat { display: none; }
