/* Big League Stories — POSTER (13×19in, magazine-cover style).
   Shares the design language + fonts with the card: card.css must be loaded
   first (it declares the Anton / League Gothic / Allura @font-face rules).
   Same export rules as the card: raster-safe styles only (html2canvas), UI
   affordances hidden under an ancestor `.exporting`. */

.bls-poster {
  --navy: #0B1D33;
  --navy-deep: #081325;
  --navy-line: #21406a;
  --gold: #D4AF37;
  --gold-bright: #e7c860;
  --team: #C8102E;

  position: relative;
  width: 13in;
  height: 19in;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  /* On-screen edge definition — the navy sheet otherwise melts into the navy
     proof backdrop. Hairline gold ring + soft glow + drop shadow. Outer shadows
     fall outside the capture canvas, and the .exporting guard below makes the
     print file's cleanliness explicit, not incidental. */
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.55),
    0 0 140px 20px rgba(212, 175, 55, 0.22),
    0 40px 120px -20px rgba(0, 0, 0, 0.9);
}
.exporting .bls-poster { box-shadow: none !important; }

/* ── Photo field — full-bleed. The team-color glow sits UNDER the image, so a
   transparent cutout PNG (iPhone "Copy Subject") pops over it; a normal photo
   simply covers it. ─────────────────────────────────────────────────────── */
.po-photo {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}
/* Glow/dots/scrim are decorative overlays — they must never intercept taps
   meant for the photo zone underneath (tap-to-add-photo). */
.po-photo-glow, .po-photo-dots, .po-scrim { pointer-events: none; }
.po-photo-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 42%, var(--team), transparent 78%),
    linear-gradient(200deg, var(--navy) 0%, var(--navy-deep) 70%);
}
/* Halftone texture over the glow (hidden under a real full-frame photo). */
.po-photo-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}

/* Tap-to-add affordance on the empty photo zone — hidden once a photo is set
   and always hidden in the export. */
.po-photo-hint {
  position: absolute;
  left: 50%; top: 34%;
  transform: translate(-50%, -50%);
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.3in;
  color: rgba(255, 255, 255, 0.78);
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 0.6in;
  padding: 0.22in 0.5in;
  background: rgba(8, 19, 37, 0.35);
  white-space: nowrap;
}
.bls-poster.has-photo .po-photo-hint,
.exporting .po-photo-hint { display: none; }

/* Legibility scrims: light at the top (masthead), heavy at the bottom (name). */
.po-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 19, 37, 0.62), transparent 14%),
    linear-gradient(0deg, var(--navy-deep) 12%, rgba(8, 19, 37, 0.88) 26%, transparent 52%);
}

/* ── Masthead strip ────────────────────────────────────────────────────── */
.po-mast {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.22in;
  padding: 0.42in 0.55in 0;
}
.po-logo { height: 0.72in; display: block; }
.po-mast-text {
  font-family: 'Anton', sans-serif;
  font-size: 0.42in;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.po-mast-text b { color: var(--gold); font-weight: 400; }
.po-season {
  margin-left: auto;
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.26in;
  color: var(--gold);
  border: 2px solid rgba(212, 175, 55, 0.65);
  border-radius: 0.5in;
  padding: 0.1in 0.26in 0.08in;
}

/* ── Lower block: kicker → NAME IN LIGHTS → stat chips ─────────────────── */
.po-lower {
  position: absolute;
  left: 0.55in; right: 0.55in;
  bottom: 2.45in;            /* clears the foot band */
  text-align: left;
}
.po-kicker {
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.34in;
  color: var(--gold);
  margin-bottom: 0.12in;
}
.po-name {
  margin: 0 0 0.3in;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 1.85in;
  line-height: 0.84;
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 0 0.06in 0.35in rgba(0, 0, 0, 0.55);
}
.po-name .fn {
  display: block;
  color: var(--gold);
  text-shadow: 0 0 0.45in rgba(212, 175, 55, 0.45), 0 0.06in 0.35in rgba(0, 0, 0, 0.55);
}
.po-stats {
  display: flex;
  gap: 0.22in;
}
.po-chip {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.18in 0.08in 0.14in;
  background: rgba(8, 19, 37, 0.72);
  border: 2.5px solid rgba(212, 175, 55, 0.8);
  border-radius: 0.12in;
}
.po-chip b {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 0.62in;
  line-height: 0.95;
  color: var(--gold);
}
.po-chip span {
  display: block;
  margin-top: 0.06in;
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.2in;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Foot band: autograph · tagline · scan-to-hear QR ──────────────────── */
.po-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.1in;
  display: flex;
  align-items: center;
  gap: 0.5in;
  padding: 0 0.55in;
  background: var(--navy-deep);
  border-top: 4px solid var(--gold);
}
.po-sig { flex: 1 1 0; min-width: 0; }
.po-sig-zone { position: relative; height: 0.95in; }
.po-sig-ink {
  font-family: 'Allura', 'Snell Roundhand', cursive;
  font-size: 0.72in;
  line-height: 0.95in;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.po-sig-img {
  display: none;
  position: absolute;
  left: 0; bottom: 0;
  height: 0.95in;
  max-width: 100%;
}
.po-sig.signed .po-sig-img { display: block; }
.po-sig.signed .po-sig-ink { visibility: hidden; }
.po-sig-rule { border-bottom: 2px solid rgba(255, 255, 255, 0.55); }
.po-sig-label {
  margin-top: 0.08in;
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.18in;
  color: rgba(255, 255, 255, 0.6);
}
.po-tag {
  flex: 0 1 auto;
  text-align: center;
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.2in;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.po-tag b { color: var(--gold); font-weight: 400; }
.po-voice {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.22in;
}
.po-qr-box {
  width: 1.3in; height: 1.3in;
  padding: 0.08in;
  background: #fff;
  border-radius: 0.08in;
}
.po-qr-box img { width: 100%; height: 100%; display: block; }
.po-qr-cap {
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.22in;
  line-height: 1.35;
  color: #fff;
}
.po-qr-cap b { color: var(--gold); font-weight: 400; }

/* ── Roster strip (TEAM variant) — sits between chips and foot ─────────── */
.po-roster {
  display: none;
  margin-top: 0.26in;
  padding-top: 0.18in;
  border-top: 2px solid rgba(212, 175, 55, 0.55);
}
.bls-poster.is-team .po-roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.08in 0.3in; }
.po-roster .pr-item {
  display: flex;
  align-items: baseline;
  gap: 0.1in;
  font-size: 0.24in;
  line-height: 1.3;
}
.po-roster .pr-num {
  flex: 0 0 auto;
  min-width: 0.42in;
  text-align: right;
  font-family: 'Anton', sans-serif;
  color: var(--gold);
}
.po-roster .pr-name { color: rgba(255, 255, 255, 0.92); white-space: nowrap; overflow: hidden; }
