/* ══════════════════════════════════════════════════════════════
   PICK N PULL — brand layer (loaded last)
   Implements pick_n_pull_brand_design_template.txt v1.0
   Midnight #0B0B0F · Electric Purple #7C3AED · Vivid Violet #A855F7
   Orbitron display · Inter body
   ══════════════════════════════════════════════════════════════ */

:root{
  /* surfaces */
  --bg:#0B0B0F; --bg2:#0E0E13; --panel:#111116; --panel2:#15151C;
  --line:#22222B; --line-soft:rgba(255,255,255,.07);
  /* type */
  --paper:#F8FAFC; --muted:#9CA3AF; --dim:#8A93A3;
  /* meaning */
  --blue:#7C3AED; --blue2:#6D28D9; --blue-soft:rgba(124,58,237,.16);
  --gold:#A855F7; --gold2:#C084FC; --gold-soft:rgba(168,85,247,.16);
  --acid:#10B981; --warn:#F59E0B; --danger:#EF4444;
  /* geometry */
  --r:16px; --r-lg:24px; --r-sm:8px; --max:1240px;
  /* elevation */
  --sh-1:0 8px 24px rgba(0,0,0,.5);
  --sh-2:0 24px 64px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.06);
  --sh-hover:0 12px 32px rgba(124,58,237,.24);
  --sh-gold:0 0 48px rgba(168,85,247,.32);
  /* type stacks */
  --font-display:'Orbitron','Geist',system-ui,sans-serif;
  --font-body:'Inter','Geist',system-ui,-apple-system,sans-serif;
}

/* ── typography ─────────────────────────────────────────────── */
body,input,button,select,textarea,table,.btn,.ghost,.tab,.pack,.card-tile,.live-item{
  font-family:var(--font-body)
}
h1,h2,.page-h1,.hero h1,.brand-word,.cine-meta h2{
  font-family:var(--font-display);
  letter-spacing:.01em;
  font-weight:800;
  text-transform:uppercase
}
h3,.h3,.pack-name,.cine-meta h2 small{font-family:var(--font-body);font-weight:700;letter-spacing:-.01em}
.hero h1{font-size:clamp(34px,4.8vw,62px);line-height:1.02;letter-spacing:.005em}
.hero h1 em{font-style:normal;color:var(--gold)}
.page-h1{font-size:clamp(26px,3vw,38px);line-height:1.08;letter-spacing:.005em}
h2{letter-spacing:.01em}
.eyebrow{letter-spacing:.18em}

/* ── the wordmark ───────────────────────────────────────────── */
.brand{gap:10px}
.brand-word{
  font-family:var(--font-display);font-weight:800;font-size:14px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--paper);line-height:1
}
.brand-word b{color:var(--gold);font-weight:800}
.brand-mark{
  width:26px;height:26px;border-radius:8px;display:inline-grid;place-items:center;
  background:linear-gradient(135deg,#7C3AED,#A855F7);
  box-shadow:0 4px 14px rgba(124,58,237,.45)
}
.brand-mark i{display:none}
.brand-mark svg{width:16px;height:16px;display:block}
.foot .brand.small .brand-word{font-size:12px}

/* ── buttons: purple gradient primary, purple-bordered secondary ── */
.btn{
  background:linear-gradient(135deg,#7C3AED,#A855F7);
  border:0;color:#fff;border-radius:var(--r-sm);
  box-shadow:0 10px 26px rgba(124,58,237,.30);
  transition:transform .18s var(--ease),box-shadow .25s var(--ease),filter .2s
}
.btn:hover{filter:brightness(1.08);box-shadow:0 14px 34px rgba(124,58,237,.42)}
.btn:active{filter:brightness(.96)}
.ghost{border-color:rgba(168,85,247,.42);color:var(--paper);border-radius:var(--r-sm);background:transparent}
.ghost:hover{background:rgba(168,85,247,.10);border-color:rgba(168,85,247,.7)}
.btn.lg,.hero-buy{border-radius:14px}

/* ── surfaces ───────────────────────────────────────────────── */
.pack,.card-tile,.rail-item,.live-item,.niche-card,.slab,.vault-item{
  background:var(--panel);border:1px solid var(--line-soft);border-radius:var(--r)
}
.pack:hover,.card-tile:hover{border-color:rgba(168,85,247,.35)}

/* thin rip rule under section heads */
.section-head h2{position:relative;padding-bottom:12px}
.section-head h2::after{
  content:"";position:absolute;left:0;bottom:0;width:56px;height:2px;
  background:linear-gradient(90deg,#7C3AED,#A855F7);
  transform:skewX(-24deg);transform-origin:0 50%
}

/* ── hero: purple light instead of gold ─────────────────────── */
.hero-v2{
  background:
    radial-gradient(120% 90% at 78% 16%, rgba(124,58,237,.22), transparent 58%),
    radial-gradient(90% 80% at 60% 92%, rgba(168,85,247,.12), transparent 62%),
    linear-gradient(180deg,#0B0B0F 0%,#0C0A14 55%,#08080C 100%)
}
.hero-v2 .hp-glow{display:none}
.hero-v2 .hp-live{background:rgba(11,11,15,.7);border-color:rgba(168,85,247,.35)}
.hero-v2 .hp-price{background:linear-gradient(180deg,#C084FC,#7C3AED);color:#fff}
.hero-v2 .hp-caption b{color:#E9D5FF}
.hero-v2 .hp-slab{box-shadow:0 30px 60px rgba(0,0,0,.85),0 2px 0 rgba(255,255,255,.16) inset,0 0 0 1px rgba(168,85,247,.28),0 0 44px rgba(124,58,237,.28)}

/* ── tab bar / app shell in brand colours ───────────────────── */
.tab-rip .rip-disc{background:linear-gradient(180deg,#A855F7,#7C3AED);box-shadow:0 12px 30px rgba(124,58,237,.5),0 0 0 4px rgba(11,11,15,.92),0 0 0 5px rgba(168,85,247,.4)}
.tab-rip .rip-disc svg{stroke:#fff}
.tabbar.tabbar-5 .tab-rip .rip-label{color:#DDD6FE!important}
.tabbar.tabbar-5 .tab.is-on svg{stroke:#C084FC;filter:drop-shadow(0 0 8px rgba(168,85,247,.7))}
.tabbar.tabbar-5 .tab.is-on{color:#fff}

/* ── hold-to-rip in purple ──────────────────────────────────── */
.hold-btn{border-color:rgba(168,85,247,.35)}
.hold-btn .hold-fill{background:linear-gradient(90deg,rgba(124,58,237,.55),rgba(168,85,247,.3));box-shadow:0 0 26px rgba(124,58,237,.35) inset}
.hold-btn.is-holding{border-color:rgba(168,85,247,.75)}

/* ── tier colours (unchanged semantics, brand-tinted base) ──── */
.hero-ladder .lad{color:rgba(248,250,252,.6);border-color:rgba(255,255,255,.12)}

/* ── badges / status ────────────────────────────────────────── */
.demo-pill{border-color:rgba(168,85,247,.4);background:rgba(124,58,237,.14);color:#DDD6FE}
.demo-pill i{background:#A855F7;box-shadow:0 0 0 3px rgba(168,85,247,.16)}
.live-dot{background:#10B981}

/* ── the "casino" gold slips: prices read as brand violet ───── */
.price,.price-big,.value-lock strong,.cine-val,.hero-stats div:nth-child(2) strong{
  color:var(--paper)
}
.price-big,.cine-val{background:none}
.pill,.tag,.badge{border-radius:999px}

/* ── focus states ───────────────────────────────────────────── */
:focus-visible{outline:2px solid #A855F7;outline-offset:2px}

@media (max-width:760px){
  .brand-word{font-size:11.5px;letter-spacing:.1em}
  .brand-mark{width:22px;height:22px;border-radius:7px}
  .brand-mark svg{width:14px;height:14px}
  .hero h1{font-size:clamp(28px,8vw,38px)}
}


/* ── app-readiness: tap targets & caption floors ────────────── */
.foot-grid a{display:flex;align-items:center;min-height:40px;padding:4px 0}
.demo-pill{height:32px;padding:0 12px;font-size:10.5px}
.brand{min-height:36px}
.nav-links a{display:inline-flex;align-items:center;min-height:40px}
@media (max-width:760px){
  .eyebrow,.demo-pill,.hero-ladder .lad,.tier-chip span,.tab span,
  .hp-caption,.pull-toast span,.pack-top,.pack-fomo,.mini-stats span,
  .odds .mono,.foot .muted,small{font-size:11px}
  .foot-grid a{min-height:44px}
}

/* ── type floor: nothing below 11px, captions 12px where they carry meaning ── */
.k,.niche-card-count,.tag,.units,.fomo-prize,.fomo-odds,
.muted.xsmall,.xsmall,.pack-meta,.pack-fomo,.odds .mono,
.cine-fine,.hp-caption,.hero-mini span,.disclosure-note{font-size:11px}
.niche-card-count,.fomo-prize,.fomo-odds{font-size:11.5px}

/* ── second pass: kill the remaining sub-11px labels ───────── */
.pack-meta .k{font-size:11px;letter-spacing:.1em}
.hero-stats span,.hero-v2 .hero-stats span{font-size:11px}
.grid-4 .tile-meta span,.live-meta span,.rail-meta span{font-size:11px}
.muted.small,.muted.xsmall{font-size:11.5px}
@media (max-width:760px){
  .chip{min-height:40px;display:inline-flex;align-items:center;padding:8px 14px}
  .demo-pill{height:36px;padding:0 13px}
  .hero-stats span,.hero-v2 .hero-stats span{font-size:10.5px}
}

/* ── mobile type floor, container-scoped so headings keep their size ── */
@media (max-width:760px){
  .hero-ladder span,.hero-stats span,.ticker span,.pack-meta span,
  .mini-stats span,.trust-row b,.hp-caption,.rip-label,small{font-size:11px}
  .hero-ladder .lad{font-size:10.5px}
}

/* ── page action bars: the next step is always visible ─────── */
.page-cta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0 8px}
.page-cta .btn,.page-cta .ghost{height:48px;padding:0 20px;border-radius:12px;font-size:14.5px}
@media (max-width:760px){
  .page-cta{position:sticky;top:calc(52px + env(safe-area-inset-top));z-index:30;
    margin:12px -16px 10px;padding:8px 16px;background:rgba(11,11,15,.92);
    backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.07)}
  .page-cta .btn{flex:1}
  .page-cta .ghost{flex:0 0 auto}
}


/* ── supplied wordmark + app icon ───────────────────────────── */
.brand-logo{display:block;height:38px;width:auto;max-width:230px;object-fit:contain;
  filter:drop-shadow(0 6px 18px rgba(124,58,237,.28))}
.nav .brand{display:flex;align-items:center;padding:2px 0}
.foot .brand.small .brand-logo{height:26px;max-width:170px}
.brand-word,.brand-mark{display:none!important}
@media (max-width:760px){
  .brand-logo{height:30px;max-width:170px}
  .nav .brand{padding:0}
  .foot .brand.small .brand-logo{height:22px;max-width:140px}
}

/* ── packs: one header row, chips scroll, card lands early ─── */
.shop-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:4px 0 10px}
.shop-head .page-h1{margin:0}
.shop-live{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#9CA3AF;white-space:nowrap}
.shop-note{margin:8px 0 14px;font-size:11.5px;color:#8A93A3}

/* ── category switcher: full button visuals on desktop too ──
   Previously .niche had ONLY mobile media-query styles, so on desktop the
   tabs rendered as a plain unstyled text list. These are the base styles;
   the mobile query below only overrides layout (flex/scroll), not the looks. */
.niches{display:flex;flex-wrap:wrap;gap:20px;padding:8px 0 14px}
.niche{
  position:relative;isolation:isolate;overflow:hidden;
  display:inline-flex;align-items:center;gap:14px;
  min-height:78px;min-width:0;flex:1 1 220px;max-width:300px;
  padding:14px 18px 14px 14px;
  border:1px solid var(--line,#22222B);border-radius:14px;
  background:var(--panel,#111116);color:var(--paper,#F8FAFC);
  text-decoration:none;cursor:pointer;
  transition:border-color .18s ease,transform .16s ease,box-shadow .18s ease,background .18s ease;
}
.niche::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:var(--cat-art,none);background-size:cover;background-position:center;
  opacity:.16;filter:saturate(.85);transition:opacity .18s ease;
}
.niche::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(10,10,15,.82) 0%,rgba(10,10,15,.28) 100%);
}
.niche:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent,var(--gold,#A855F7)) 55%,var(--line,#22222B));box-shadow:0 10px 26px -14px rgba(0,0,0,.8)}
.niche:hover::before{opacity:.26}
.niche:focus-visible{outline:2px solid var(--accent,var(--gold,#A855F7));outline-offset:2px}
.niche.is-on{
  border-color:var(--accent,var(--gold,#A855F7));
  background:linear-gradient(180deg,color-mix(in srgb,var(--accent,var(--gold,#A855F7)) 16%,var(--panel,#111116)),var(--panel,#111116));
  box-shadow:0 0 0 1px var(--accent,var(--gold,#A855F7)),0 12px 30px -16px color-mix(in srgb,var(--accent,var(--gold,#A855F7)) 55%,transparent);
}
.niche.is-on::before{opacity:.32}
.niche.is-on::after{background:linear-gradient(90deg,rgba(10,10,15,.72) 0%,rgba(10,10,15,.18) 100%)}
.niche.is-off{opacity:.5;cursor:default}
.niche.is-off:hover{transform:none;box-shadow:none}
.niche-thumb{
  position:relative;z-index:1;flex:0 0 56px;width:56px;height:56px;
  border-radius:13px;object-fit:cover;border:1px solid rgba(255,255,255,.14);
  background:var(--bg2,#0E0E13);
}
.niche-text{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.niche-name{font-size:14px;font-weight:700;letter-spacing:-.01em;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.niche-count{font-size:11px;color:var(--dim,#8A93A3);font-variant-numeric:tabular-nums;line-height:1.15}
.niche.is-on .niche-count{color:color-mix(in srgb,var(--accent,var(--gold,#A855F7)) 70%,var(--paper,#F8FAFC))}
@media (max-width:760px){
  .shop-head{margin:0 0 8px}
  .shop-head .page-h1{font-size:26px}
  .shop-note{margin:6px 0 12px}
  .niches{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;margin:0 -16px;
    padding-left:16px;padding-right:16px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .niches::-webkit-scrollbar{display:none}
  .niche{flex:0 0 auto;min-height:0;display:flex;align-items:center;padding:9px 14px 9px 9px;border-radius:14px}
  /* uniform tap targets: a 225px "Magic" tile next to a 142px "Sports" tile
     reads as broken. Fixed width + ellipsis keeps the row even and scannable. */
  .niches .niche{width:184px;flex:0 0 184px;gap:12px;padding:11px 16px 11px 11px}
  .niche-count{display:block}
  .section.tight{padding-top:10px}
}

@media (max-width:760px){
  .niches{flex-wrap:nowrap!important;white-space:nowrap}
  .niche{white-space:nowrap}
}


/* docked buy bar — pinned to the viewport, above the tab bar */
.pack-buy.is-docked{
  position:fixed!important;left:10px;right:10px;margin:0;
  bottom:calc(72px + env(safe-area-inset-bottom))!important;
  z-index:60;padding:9px;border-radius:16px;
  background:rgba(10,13,20,.96);border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(16px);box-shadow:0 18px 44px rgba(0,0,0,.65);
  display:flex;align-items:center;gap:10px
}
.pack-buy.is-docked .price-big{font-size:22px;margin:0;flex:0 0 auto}
.pack-buy.is-docked .btn{flex:1;height:48px;margin:0}
.pack-buy.is-docked .muted{display:none}

/* the theatre is fullscreen — nothing from the page may float over it */
html.cine-open .pack-buy,
html.cine-open .mob-cta,
html.cine-open .tabbar,
html.cine-open .demo-pill,
html.cine-open .pull-toast,
html.cine-open .toast{display:none!important}

/* ── button typography: one baseline, icons never shift the label ───────── */
.btn,.ghost,.pack-open,.hold-btn,.tab,.chip{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:anywhere;min-width:0
}
/* short chrome buttons should never wrap; long ones in cards may */
.nav .btn,.nav .ghost,.tab,.chip,.pack-open{white-space:nowrap}
.btn svg,.ghost svg,.pack-open svg{width:16px;height:16px;flex:0 0 auto;display:block}
.btn.full,.ghost.full{display:flex;width:100%}
/* buttons that sit next to a price keep their label optically centred */
.pack-buy .btn,.page-cta .btn{min-height:48px}

/* fixed bars use inset:10px, which reserves 20px of scroll width on narrow screens */
html,body{max-width:100%;overflow-x:hidden}


/* ── solid filled tab icons (gpt-image-2, masked so they tint with the theme) ── */
.tab .tab-ico{
  display:block;width:22px;height:22px;background:currentColor;
  -webkit-mask:var(--ico) center/contain no-repeat;
  mask:var(--ico) center/contain no-repeat;
  transition:background .18s ease,transform .18s ease;
}
.tabbar.tabbar-5 .tab{color:#8B8B9A}
.tabbar.tabbar-5 .tab.is-on{color:#C084FC;background:rgba(168,85,247,.13)!important}
.tabbar.tabbar-5 .tab.is-on .tab-ico{transform:translateY(-1px);filter:drop-shadow(0 0 8px rgba(168,85,247,.8))}
.tabbar.tabbar-5 .tab.is-on > span:not(.tab-ico){color:#EDE9FE;font-weight:700}
.tab-rip .rip-disc .tab-ico{width:24px;height:24px;background:#fff}
.tab-rip .rip-label{color:#DDD6FE}
@media (max-width:860px){
  .tabbar-5 .tab .tab-ico{width:22px;height:22px}
  .tabbar-5 .tab-rip .rip-disc .tab-ico{width:25px;height:25px}
}

/* ── home niche grid: 3 across, artwork-led cards ── */
.niche-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
@media(max-width:1000px){.niche-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.niche-grid{grid-template-columns:1fr}}
/* category mark on niche cards — tinted to the niche accent */
.niche-card .niche-mark{
  display:block;width:48px;height:48px;margin:0 0 12px;
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.45));
}
@media (max-width:760px){ .niche-card .niche-mark{width:38px;height:38px;margin-bottom:10px} }

/* ── full-bleed category artwork on the niche buttons ──
   Must live here: theme.css loads after pack.css and its `background` shorthand
   was resetting background-image to none. brand.css is the last sheet. */
.niche-card{
  background-image:var(--cat-art,none)!important;
  background-size:cover!important;background-position:center!important;
  isolation:isolate;min-height:230px;padding:16px;
  display:flex;flex-direction:column;justify-content:flex-end;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.niche-card:hover{transform:translateY(-4px);border-color:var(--accent,var(--gold));
  box-shadow:0 18px 40px -20px rgba(0,0,0,.9)}
.niche-card h3{margin:0 0 4px;font-size:18px;color:var(--paper)}
.niche-card-cta{margin-top:8px;font-size:12px;font-weight:700;color:var(--accent,var(--gold))}
.niche-card::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,9,12,.15) 0%,rgba(8,9,12,.78) 58%,rgba(8,9,12,.96) 100%)
}
.niche-card .niche-mark{position:relative;filter:drop-shadow(0 4px 14px rgba(0,0,0,.7))}

/* ── printed badge on the CSS-rendered pack face ─────────── */
.pack3d .pack-badge{
  position: absolute; left: 50%; top: 45%;
  width: clamp(30px, 40cqw, 132px); height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(168,85,247,.18));
  pointer-events: none;
}
.pack3d .word{ display: none; }

/* badge printed on the pack-art card face — sits in the foil above the
   pack name, clear of the peek card so it never covers artwork */
.pack-art .pack-badge{
  position:absolute; left:18px; bottom:112px; width:22%; height:auto;
  z-index:3; pointer-events:none; opacity:.9;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,.55));
}

/* ── text centering pass: stat cells + KPI tiles ───────────────── */
.pack-meta>div{align-items:center;text-align:center}
.pack-meta .k{text-align:center}
.pack-meta span:last-child{text-align:center}
.kpis>div{align-items:center;text-align:center}
.kpis>div>span,.kpis>div>strong{text-align:center;width:100%;display:block}
.kpis strong{text-align:center}
/* centre the glyph inside the Rip disc, not just the label under it */
.tab-rip .rip-disc .tab-ico{margin:0 auto}
.tabbar-5 .tab-rip .rip-disc{display:grid;place-items:center}

/* ══ REVEAL FILM: FRAMED, NOT FULLSCREEN ═══════════════════════
   The opening film used to fill the whole viewport (inset:0 / 100%).
   Operator wants to see some of the page around it, so the film is now a
   framed player sitting on the dark stage. The card box maths in place()
   reads the video's own rect, so insetting the element keeps the flip card
   locked to the film's card automatically. */
.open-stage video#openFilm,
.open-stage video{
  position:absolute!important;
  left:50%!important; top:50%!important;
  right:auto!important; bottom:auto!important;
  width:min(92vw,460px)!important;
  height:auto!important;
  max-height:88dvh!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#05060a!important;
  border-radius:18px!important;
  box-shadow:0 30px 80px rgba(0,0,0,.72)!important;
  transform:translate(-50%,-50%)!important;
}
/* keep the poster still framed to the same box so the hand-off has no jump */
.open-stage .open-still{
  width:min(92vw,460px)!important;
  max-height:88dvh!important;
  border-radius:18px!important;
  box-shadow:0 30px 80px rgba(0,0,0,.72)!important;
}

/* Give the reveal stage a visible backdrop so the framed film reads as a
   framed player instead of a full-bleed black screen. */
.open-stage{
  background:
    radial-gradient(120% 80% at 50% 38%, rgba(124,58,237,.16) 0%, rgba(11,11,15,.0) 62%),
    radial-gradient(90% 60% at 50% 100%, rgba(255,211,122,.07) 0%, rgba(11,11,15,0) 70%),
    #0B0B0F !important;
}
.open-stage video{
  border:1px solid rgba(255,255,255,.09)!important;
  outline:1px solid rgba(0,0,0,.55)!important;
}

/* Final backdrop override: a visibly lighter purple-charcoal stage so the
   framed film is clearly separated from the page behind it. */
.open-stage{
  background:
    radial-gradient(140% 70% at 50% 30%, rgba(124,58,237,.28) 0%, rgba(124,58,237,.06) 45%, rgba(20,18,28,0) 78%),
    linear-gradient(180deg,#171325 0%,#14111f 45%,#0f0d17 100%) !important;
}
.open-stage video{
  border:1px solid rgba(168,132,255,.35)!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.6), 0 26px 70px rgba(0,0,0,.75), 0 0 48px rgba(124,58,237,.28)!important;
}

/* ── POSTER MUST OCCUPY THE SAME BOX AS THE FILM ──────────────────────────
   The poster still was a static grid child while the film was absolutely
   centred, so on desktop the tall 9:16 poster sat at the top-left while the
   film band floated in the middle — two packs on screen at once. Pin the
   poster to the identical absolute box and fade it as soon as the film plays. */
.open-stage .open-still{
  position:absolute!important;
  left:50%!important; top:50%!important;
  right:auto!important; bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  object-fit:contain!important;
  background:#05060a!important;
}
/* casino2.css already declares this, but brand.css loads later and its
   .open-still block above outranks it — restate it here so the hand-off works. */
.open-stage.film .open-still{opacity:0!important}

/* ── PACK FLOATS ON THE STAGE: no black plate ─────────────────────────────
   The film carries its own pure-black background. Screen blending treats
   black as "show what's behind", so the pack sits directly on the purple
   stage with no black rectangle, no border and no drop shadow. */
.open-stage video#openFilm,
.open-stage video{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  mix-blend-mode:screen!important;
}
.open-stage .open-still{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  mix-blend-mode:screen!important;
}

/* ── SMALLER PLAYER: operator says the film and the flip card are too big ──
   The card is placed from the video's own rect (place()), so shrinking the
   element shrinks the flip card by exactly the same amount and the hand-off
   stays pixel-locked. Only the width changes — max-height never binds at this
   size, so object-fit:contain never letterboxes and the maths stays exact. */
.open-stage video#openFilm,
.open-stage video{
  width:min(74vw,320px)!important;
}
.open-stage .open-still{
  width:min(74vw,320px)!important;
}

/* ══ FINAL: NO BLEND MODE — the stage itself carries the film's black ══════
   mix-blend-mode:screen on a <video> is NOT reliable cross-browser. On iOS
   Safari the video layer composites against the page's white backdrop instead
   of the stage, so the pack's dark areas blow out to white and the element's
   own edge reads as a hard rectangular cut across the card — "the div looks
   terrible, just cuts it". Screen blending is therefore removed entirely.

   Instead the stage is painted pure black and the film's own black background
   is opaque over it: black-on-black means the video rectangle is invisible
   with no blend maths at all. The purple life is drawn as two glows pinned to
   the top and bottom edges of the stage, BEHIND the film (z-index 0), so they
   only ever appear in the bands above and below the pack — never over it. */
.open-stage{
  background:#000 !important;
  overflow:hidden!important;
}
.open-stage::before,
.open-stage::after{
  content:""; position:absolute; left:-10%; right:-10%;
  pointer-events:none; z-index:0;
}
.open-stage::before{
  top:-14%; height:46%;
  background:radial-gradient(62% 100% at 50% 0%,
    rgba(124,58,237,.34) 0%, rgba(124,58,237,.12) 44%, rgba(0,0,0,0) 78%);
}
.open-stage::after{
  bottom:-14%; height:46%;
  background:radial-gradient(62% 100% at 50% 100%,
    rgba(255,211,122,.14) 0%, rgba(124,58,237,.20) 38%, rgba(0,0,0,0) 78%);
}
/* the film and its poster sit above the glows, carrying their own black */
.open-stage video#openFilm,
.open-stage video,
.open-stage .open-still{
  mix-blend-mode:normal!important;
  background:#000!important;
  z-index:1!important;
}

/* ── POSTER MUST BE THE FILM'S BOX, NOT 88dvh ─────────────────────────────
   casino2.css pins .open-still to height:100%!important, which with a 9:16
   source and object-fit:cover cropped the pack's sides and made the poster
   230px taller than the film. Give it the film's exact aspect-locked box so
   the hand-off is identical and nothing is ever cropped. */
.open-stage .open-still{
  width:min(74vw,320px,49.5dvh)!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
}
/* the film: same aspect-locked width so height can never exceed 88dvh and
   object-fit can never have to crop or letterbox */
.open-stage video#openFilm,
.open-stage video{
  width:min(74vw,320px,49.5dvh)!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
}

/* ══ VISIBLE FRAME around the opening film ═════════════════════════════════
   The film plate is 720x1280 with the pack inset: 32px dead black each side
   and ~180px above and below. On a page it read as a cropped image, not as a
   deliberate viewport. Two changes fix that:
     1. the media box is locked to the pack's own aspect (0.70), so
        object-fit:cover crops the dead top/bottom black instead of leaving
        it as empty bars;
     2. the box gets a real 1px frame + soft drop shadow, so the remaining
        side margin reads as a display matte instead of a cut.
   place() in server.js already computes its scale as
   max(rect.width/720, rect.height/1280) — that IS the cover scale — so the
   pixel-exact card hand-off still lands correctly after this change. */
.open-stage video#openFilm,
.open-stage .open-still{
  width:min(74vw,320px)!important;
  aspect-ratio:70/100!important;
  height:auto!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  background:#000!important;
  border:1px solid rgba(255,255,255,.20)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.55),
             0 28px 74px -20px rgba(0,0,0,.80)!important;
}
