/* Home shots — real gameplay screens in cartoon phone frames.
   Loaded by index.html only. PORTAL theme. Do not restyle .card / cinema. */

.portal-hero-copy {
  text-align: center;
  padding: 4px 4px 0;
}

.portal-hero-title {
  margin: 0 0 10px;
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(30px, 8.6vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--portal-ink, #f6f1ff);
  text-shadow: 3px 3px 0 rgba(10, 3, 18, 0.6);
  transform: rotate(-1deg);
}

.portal-hero-title em {
  font-style: italic;
  color: var(--portal-gold, #f0b84a);
}

.portal-hero-tag {
  margin: 0 auto 10px;
  max-width: 40ch;
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
  color: var(--portal-ink, #f6f1ff);
}

.portal-hero-sub {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--font-sans, "Hanken Grotesk", sans-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--portal-muted, #b7a8c9);
}

.portal-hero-legal {
  margin: -8px 0 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--portal-muted, #b7a8c9);
  opacity: 0.85;
}

.folio-what-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
}

/* Straight from the game */
.folio-shots {
  position: relative;
  width: 100%;
}

.folio-shots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 22% 30%, rgba(255, 46, 138, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 40% at 80% 70%, rgba(184, 255, 60, 0.08), transparent 60%);
  pointer-events: none;
}

.folio-shots h2 {
  margin: 0 0 6px;
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--portal-gold, #f0b84a);
}

.folio-shots-dek {
  margin: 0 0 20px;
  font-family: var(--font-sans, "Hanken Grotesk", sans-serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--portal-muted, #b7a8c9);
}

.folio-shots-note {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--portal-muted, #b7a8c9);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}

.shot-card {
  position: relative;
  display: block;
  text-decoration: none;
  transform: rotate(-1.6deg);
  transition: transform 0.18s ease;
}

.shot-card:nth-child(2) { transform: rotate(1.4deg); }
.shot-card:nth-child(3) { transform: rotate(1.2deg); }
.shot-card:nth-child(4) { transform: rotate(-1.4deg); }

.shot-card:hover,
.shot-card:focus-visible {
  transform: rotate(0deg) scale(1.04);
  z-index: 2;
}

.shot-card:focus-visible {
  outline: 3px solid var(--portal-gold, #f0b84a);
  outline-offset: 4px;
}

.shot-phone {
  position: relative;
  display: block;
  border-radius: 22px;
  border: 3px solid #0a0312;
  overflow: hidden;
  background: #0a0312;
  box-shadow:
    0 0 0 2px rgba(246, 241, 255, 0.16),
    7px 9px 0 rgba(0, 0, 0, 0.5);
}

.shot-claim .shot-phone { box-shadow: 0 0 0 2px rgba(255, 46, 138, 0.5), 7px 9px 0 rgba(0, 0, 0, 0.5); }
.shot-run .shot-phone   { box-shadow: 0 0 0 2px rgba(215, 221, 232, 0.4), 7px 9px 0 rgba(0, 0, 0, 0.5); }
.shot-hit .shot-phone   { box-shadow: 0 0 0 2px rgba(246, 241, 255, 0.65), 7px 9px 0 rgba(0, 0, 0, 0.5); }
.shot-score .shot-phone { box-shadow: 0 0 0 2px rgba(184, 255, 60, 0.45), 7px 9px 0 rgba(0, 0, 0, 0.5); }

.shot-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-step {
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #1a1204;
  background: linear-gradient(180deg, #ffe08a, var(--portal-gold, #f0b84a) 60%, #c4922a);
  color: #1a1204;
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.45);
  transform: rotate(-8deg);
}

.shot-caption {
  display: block;
  margin: 12px 2px 0;
  font-family: var(--font-sans, "Hanken Grotesk", sans-serif);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--portal-muted, #b7a8c9);
}

.shot-caption strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shot-claim .shot-caption strong { color: var(--portal-magenta, #ff2e8a); }
.shot-run .shot-caption strong   { color: var(--portal-chrome, #d7dde8); }
.shot-hit .shot-caption strong   { color: var(--portal-ink, #f6f1ff); }
.shot-score .shot-caption strong { color: var(--portal-slime, #b8ff3c); }

@media (prefers-reduced-motion: reduce) {
  .shot-card {
    transition: none;
  }
  .shot-card:hover,
  .shot-card:focus-visible {
    transform: none;
  }
}

/* Desktop — phones line up like an app-store strip */
@media (min-width: 960px) {
  html[data-theme="portal"] body.folio-home .folio-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    width: min(1120px, 100%);
    gap: 30px 26px;
    padding: 16px 24px 64px;
  }

  html[data-theme="portal"] body.folio-home .folio-door {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas:
      "copy art"
      "cta art"
      "legal art";
    align-content: center;
    column-gap: 40px;
    row-gap: 20px;
    width: 100%;
    max-width: none;
    padding: 12px 0 4px;
  }

  html[data-theme="portal"] body.folio-home .portal-hero-copy {
    grid-area: copy;
    align-self: end;
    text-align: left;
    padding: 0;
  }

  html[data-theme="portal"] body.folio-home .portal-hero-title {
    font-size: clamp(44px, 4.8vw, 62px);
  }

  html[data-theme="portal"] body.folio-home .portal-hero-tag {
    margin: 0 0 10px;
    font-size: 19px;
  }

  html[data-theme="portal"] body.folio-home .portal-hero-sub {
    margin: 0;
    font-size: 16px;
  }

  html[data-theme="portal"] body.folio-home .portal-hit {
    grid-area: art;
    align-self: center;
  }

  html[data-theme="portal"] body.folio-home a.portal-run {
    grid-area: cta;
    justify-self: start;
  }

  html[data-theme="portal"] body.folio-home .portal-hero-legal {
    grid-area: legal;
    align-self: start;
    margin: -6px 0 0;
    text-align: left;
  }

  html[data-theme="portal"] body.folio-home .folio-shots {
    grid-column: 1 / -1;
  }

  .shot-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 22px;
  }

  html[data-theme="portal"] body.folio-home .folio-what {
    grid-column: 1;
    width: 100%;
    margin: 0;
  }

  html[data-theme="portal"] body.folio-home .folio-board {
    grid-column: 2;
    width: 100%;
    margin: 0;
  }

  html[data-theme="portal"] body.folio-home .folio-moving {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
}
