/* ============================================================
   Before You Pop — ENTRY EXPERIENCE styles
   Screensaver · shared BYP logo · CHECK A MATCH / GAME PLAY cards ·
   universal two-person match · GPS scan · category-energy result.
   True black · white · neon pink / electric blue / violet / lime ·
   gold reserved for Gold / special moments.
   ============================================================ */

:root{
  --bg:#000;
  --white:#fff;
  --dim:rgba(255,255,255,.7);
  --dim2:rgba(255,255,255,.45);
  --pink:#ff2ec4;            /* ELECTRIC PINK — primary emphasis / CTA / selected */
  --blue:#00e5ff;            /* ELECTRIC BLUE — strong secondary accent / borders / glow */
  --violet:#a855ff;          /* PURPLE — section identity / depth / accent */
  --purple:#a855ff;          /* PURPLE — alias */
  --softpink:#ff8fd8;        /* PINK — softer accent */
  --softblue:#7ce9ff;        /* BLUE — supporting section/navigation colour */
  --lightblue:#7ce9ff;       /* BLUE — legacy alias */
  --bridge:#a855ff;          /* PURPLE — legacy alias */
  --grad-brand:linear-gradient(135deg,var(--pink) 0%,var(--purple) 50%,var(--blue) 100%);
  --grad-brand-soft:linear-gradient(135deg,var(--pink),var(--blue));
  --lime:#00e5ff;            /* lime retired — folded into ELECTRIC BLUE */
  --gold:#ff2ec4;            /* gold retired — folded into ELECTRIC PINK */
  --gpx:#ff2ec4;             /* emphasis/success token -> ELECTRIC PINK */

  /* ============================================================
     FINAL APPROVED PALETTE — BLACK · WHITE · BLUE · ELECTRIC BLUE ·
     PINK · ELECTRIC PINK · PURPLE.  NO NAVY ANYWHERE.
     ------------------------------------------------------------
     The previous depth layer used a NAVY surface scale (--ink-1..#000000 …
     --ink-4 #000000, --darkblue #000000, --darkblue-deep #000000). Navy is now
     forbidden, so every surface token resolves to BLACK or to a translucent
     WHITE/BLUE/PURPLE wash on black. Depth is carried by:
       • black itself,
       • low-opacity white/blue/purple overlays (never a navy fill),
       • coloured rims and glows.
     This keeps the Main Home page look (dark, cinematic, pink/blue lit) while
     removing every navy token that produced it.
     ============================================================ */
  /* Back-compat aliases: any legacy reference to the retired navy tokens now
     resolves to BLACK or an approved tint, so nothing can render navy again. */
  --darkblue:#000;
  --darkblue-deep:#000;
  --ink-0:#000;
  --ink-1:#000;
  --ink-2:#000;
  --ink-3:rgba(255,255,255,.07);   /* raised surface = black + white wash */
  --ink-4:rgba(0,229,255,.10);     /* hover/selected = black + electric-blue wash */

  /* Rims + glows use ONLY the approved accents (no navy rim).
     TUNED BACK: the first energy pass dialled these to .70+, which pulled the
     Main Home page away from the approved look. These sit at a moderate level —
     clearly no longer flat (.05-.14), but restrained enough that the approved
     Home composition and background are unchanged. */
  --rim:rgba(0,229,255,.26);
  --rim-strong:rgba(0,229,255,.46);
  --rim-pink:rgba(255,46,196,.46);
  --rim-blue:rgba(0,229,255,.44);
  --rim-purple:rgba(168,85,255,.44);
  --rim-soft:rgba(255,255,255,.13);
  --highlight:inset 0 1px 0 rgba(255,255,255,.10);

  /* Surfaces carry a modest coloured cast instead of a near-invisible wash. */
  --grad-surface:linear-gradient(165deg,rgba(255,255,255,.085),rgba(255,255,255,.018) 55%,rgba(0,229,255,.03));
  --grad-surface-2:linear-gradient(180deg,rgba(255,255,255,.065),rgba(0,0,0,0));
  --grad-pink:linear-gradient(150deg,rgba(255,46,196,.30),rgba(168,85,255,.12) 46%,rgba(0,0,0,0) 78%);
  --grad-blue:linear-gradient(150deg,rgba(0,229,255,.29),rgba(124,233,255,.12) 46%,rgba(0,0,0,0) 78%);
  --grad-purple:linear-gradient(150deg,rgba(168,85,255,.29),rgba(0,229,255,.12) 50%,rgba(0,0,0,0) 80%);
  --grad-ice:linear-gradient(150deg,rgba(124,233,255,.22),rgba(0,229,255,.08) 50%,rgba(0,0,0,0) 80%);
  --shadow-card:0 1px 0 rgba(255,255,255,.08) inset,0 18px 44px rgba(0,0,0,.74);
  --shadow-lift:0 1px 0 rgba(255,255,255,.11) inset,0 26px 62px rgba(0,0,0,.84);
  --shadow-glow-pink:0 0 20px rgba(255,46,196,.34);
  --shadow-glow-blue:0 0 20px rgba(0,229,255,.32);
  --ring-pink:0 0 0 1px var(--rim-pink),0 14px 40px rgba(255,46,196,.20);
  --ring-blue:0 0 0 1px var(--rim-blue),0 14px 40px rgba(0,229,255,.18);
  --ring-purple:0 0 0 1px var(--rim-purple),0 14px 40px rgba(168,85,255,.18);
  --ring-ice:0 0 0 1px rgba(124,233,255,.36),0 14px 40px rgba(124,233,255,.14);

  /* Text glow for headings/CTAs — a light presence, not a bloom. */
  --text-glow-pink:0 0 12px rgba(255,46,196,.32);
  --text-glow-blue:0 0 12px rgba(0,229,255,.30);
  --text-glow-white:0 0 10px rgba(255,255,255,.22);

  /* The pink<->blue sweep used by primary actions, section rules and headers. */
  --rule-brand:linear-gradient(90deg,var(--pink),var(--bridge) 48%,var(--blue));
  /* Richer variant for hero/CTA bars (the flat 2-stop rule is what looked dull). */
  --rule-brand-vivid:linear-gradient(90deg,var(--softpink),var(--pink) 18%,var(--bridge) 50%,var(--blue) 82%,var(--softblue));
}


*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--white);font-family:'Space Grotesk',system-ui,sans-serif;overflow-x:hidden}

button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input{font-family:inherit}

.hidden{display:none!important}
.center-txt{text-align:center}

/* ---------- shared BYP logo (ONE source, used everywhere) ---------- */
.byp-logo{
  display:inline-flex;align-items:center;gap:12px;font-family:'Archivo',sans-serif;font-weight:900;
  font-size:22px;letter-spacing:.02em;color:var(--white);line-height:1;
  user-select:none;
}
.byp-logo .mark{
  width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--pink),var(--violet));
  display:grid;place-items:center;font-size:18px;color:#000;box-shadow:0 0 18px rgba(255,46,196,.55);
}
/* TRANSPARENCY (live bug — "transparent logos show with a background"):
   BYPBranding.apply() turns `.mark` into an <img> but keeps the class, so the
   uploaded artwork inherited the gradient plate + radius + box-shadow above and
   rendered inside a coloured rounded rectangle. The image form must carry NO
   fill, NO radius and NO box-shadow — the uploaded PNG's own alpha is the shape.
   (`box-shadow` in particular draws around the element box, i.e. a rectangle,
   which is exactly the artifact being reported.) */
.byp-logo .mark.mark-img,
.byp-logo img.mark,
.byp-logo .mark-img{
  background:none;border:none;border-radius:0;box-shadow:none;
  height:44px;width:44px;object-fit:contain;display:inline-block;flex:none;
}
.byp-logo .sub{font-size:9px;letter-spacing:.4em;color:var(--dim2);font-family:'Space Grotesk';font-weight:600}
.byp-logo.is-image{align-items:center}

/* ---------- screensaver (cinematic animated BYP story) ---------- */
.saver{position:fixed;inset:0;z-index:9999;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}
.saver .saver-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* Static screensaver image — contain-fit, whole image visible, never cropped/stretched. */
.saver .saver-static{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;display:block;margin:auto}
.saver .saver-static.contain{object-fit:contain}
/* Screensaver rotation — a set of approved images each contain-fit, one active
   at a time, crossfading in order. First image = opener, stays first. */
.saver .saver-rotation{position:absolute;inset:0;width:100%;height:100%}
.saver .saver-rot{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;display:block;margin:auto;opacity:0;transition:opacity .8s ease}
.saver .saver-rot.contain{object-fit:contain}
.saver .saver-rot.active{opacity:1}
.saver .saver-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:clamp(14px,3vw,28px);pointer-events:none}
.saver .saver-logo{display:inline-flex;align-items:center;gap:12px;margin-top:6vh;font-family:'Archivo',sans-serif;font-weight:900;font-size:22px;letter-spacing:.02em;line-height:1;color:#fff}
.saver .saver-logo .mark{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,var(--pink),var(--violet));display:grid;place-items:center;font-size:20px;color:#000;box-shadow:0 0 22px rgba(255,46,196,.65)}
/* The IMAGE form of the mark must not inherit the gradient plate above — see the
   .byp-logo note. A transparent uploaded logo renders as its own shape only. */
.saver .saver-logo .mark.mark-img,
.saver .saver-logo img.mark,
.saver .saver-logo .mark-img{background:none;border:none;border-radius:0;box-shadow:none}
.saver .saver-logo .sub{font-size:9px;letter-spacing:.42em;color:var(--dim2);font-family:'Space Grotesk';font-weight:600}
.saver .saver-logo-img{height:52px;max-width:min(80vw,420px);object-fit:contain;display:inline-block;filter:drop-shadow(0 0 12px rgba(255,46,196,.5))}
.saver .saver-logo-img.contain{object-fit:contain}
.saver .tap-tag{color:var(--dim2);font-size:11px;letter-spacing:.3em;text-transform:uppercase;animation:softPulse 2.2s ease-in-out infinite;text-shadow:0 0 14px rgba(0,229,255,.35)}
@keyframes softPulse{0%,100%{opacity:.6}50%{opacity:1}}

/* ---------- entry screen ---------- */
/* The page sits on TRUE black, but a deep BLUE-LIT field behind the content
   gives the black actual DEPTH instead of reading as a flat dark grey box.
   COLOUR NOTE: the two base radials used to be a NAVY depth pair, which is the
   exact family the approved palette retired — and navy next to pink reads as
   muddy grey-purple, which is what made the whole site look flat and muted.
   They are now ELECTRIC BLUE and PURPLE at low alpha over black: the black keeps
   its depth, but the light sitting on it is on-palette, so the pink accents
   finally have something to pop against. */
.entry{position:relative;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 24px 40px;text-align:center}
body{background:
  radial-gradient(1100px 620px at 18% -8%,rgba(0,229,255,.16),rgba(0,0,0,0) 62%),
  radial-gradient(900px 520px at 88% 108%,rgba(124,233,255,.13),rgba(0,0,0,0) 66%),
  radial-gradient(760px 460px at 12% 96%,rgba(255,46,196,.10),rgba(0,0,0,0) 68%),
  radial-gradient(620px 360px at 50% 50%,rgba(168,85,255,.10),rgba(0,0,0,0) 70%),
  var(--bg)}
.entry::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;
  background-image:linear-gradient(rgba(124,233,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(124,233,255,.045) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(closest-side at 50% 42%,#000 12%,transparent 78%);
  mask-image:radial-gradient(closest-side at 50% 42%,#000 12%,transparent 78%);opacity:.7}
.entry > *{position:relative;z-index:1}

/* ---------- hero: approved full logo (ONE image, contain-fit, responsive) ---------- */
/* The logo src is swapped to the Admin logo when set (BYPBranding.logoImageUrl())
   and otherwise falls back to the bundled approved asset — NEVER to a retyped
   text mark, so the hero always shows the real artwork.

   TRANSPARENCY (live bug — "transparent logos show with a background"):
   the logo img and its wrapper must never carry a fill of their own. `background`
   is declared as `transparent` below rather than left implicit, so a future rule
   (or an inline style) cannot quietly reintroduce an opaque plate behind the
   artwork — the transparent PNG has to sit ON the page, not in a box. */
.hero-logo-wrap{width:min(86vw,640px);margin:0 auto 8px;display:flex;align-items:center;justify-content:center;position:relative;background:transparent;border:none}
.hero-logo{width:100%;height:auto;max-height:clamp(120px,30vw,300px);object-fit:contain;object-position:center;display:block;position:relative;z-index:1;background:transparent;border:none;
  /* drop-shadow follows the ALPHA silhouette, so a transparent logo gets a glow
     hugging its actual shape. It must never be replaced with a box-shadow, which
     would draw a rectangle around the image bounds. */
  filter:drop-shadow(0 0 34px rgba(255,46,196,.30)) drop-shadow(0 0 60px rgba(0,229,255,.16))}

/* HERO AMBIENT LIGHT FIELD — soft coloured light on the black page.
   ------------------------------------------------------------
   The previous treatment placed a large luminous OVAL/ellipse behind the logo
   (a radial-gradient on a border-radius:50% box). Because the gradient did not
   reach zero before the element's edge, the shape's boundary was visible: a
   giant geometric circle dominating the hero and competing with the logo and
   the two cards.

   This is now an EDGELESS ambient field instead of an object:
     * NO border-radius — nothing to draw a circle, oval or rectangle edge.
     * Each gradient reaches FULLY transparent well before the element's bounds
       (the last stop is rgba(...,0) at 60-70%), so there is no hard boundary
       anywhere — the light simply dissolves into the black page.
     * Purely an overlay on the page background: no panel, no plate, no halo
       shape, nothing the eye can trace.
   The logo stays completely transparent and remains the focal point. */
.hero-aura{position:absolute;left:50%;top:50%;width:min(190vw,1500px);height:min(120vw,900px);
  transform:translate(-50%,-50%);pointer-events:none;z-index:0;background:transparent;border:none;border-radius:0}
/* LEFT: very soft diffused PINK / ELECTRIC PINK light. */
.hero-aura::before{content:'';position:absolute;inset:0;border-radius:0;pointer-events:none;
  background:radial-gradient(58% 62% at 20% 50%,rgba(255,46,196,.20),rgba(255,143,216,.09) 40%,rgba(255,46,196,0) 68%);
  animation:heroAuraPink 11s ease-in-out infinite}
/* RIGHT: very soft diffused BLUE / ELECTRIC BLUE light. */
.hero-aura::after{content:'';position:absolute;inset:0;border-radius:0;pointer-events:none;
  background:radial-gradient(58% 62% at 80% 50%,rgba(0,229,255,.18),rgba(124,233,255,.08) 40%,rgba(0,229,255,0) 68%);
  animation:heroAuraBlue 13s ease-in-out infinite}
/* CENTRE BRIDGE: a subtle PURPLE blend where the two lights meet. */
.hero-aura .bridge{position:absolute;left:50%;top:50%;width:min(74vw,560px);height:min(60vw,440px);
  transform:translate(-50%,-50%);pointer-events:none;border-radius:0;
  background:radial-gradient(closest-side,rgba(168,85,255,.13),rgba(168,85,255,0) 72%)}
/* A barely-there breath so the light feels alive; never enough to read as motion. */
@keyframes heroAuraPink{0%,100%{opacity:.92;transform:translateX(0) scale(1)}50%{opacity:1;transform:translateX(-1%) scale(1.03)}}
@keyframes heroAuraBlue{0%,100%{opacity:.90;transform:translateX(0) scale(1)}50%{opacity:1;transform:translateX(1%) scale(1.04)}}
@media(prefers-reduced-motion:reduce){.hero-aura::before,.hero-aura::after{animation:none}}
/* Phones: keep the same field, just slightly tighter. */
@media(max-width:560px){.hero-aura{width:min(230vw,1100px);height:min(150vw,760px)}}

/* ---------- one restrained depth detail (optional) ----------
   A single faint horizontal pink→purple→blue light line under the hero copy.
   This is the ONLY extra detail: no particles, no second device, so the hero
   stays calm and the logo + tagline + two cards remain the primary elements. */
.hero-lightline{width:min(74vw,460px);height:2px;margin:16px auto 4px;border-radius:2px;
  background:linear-gradient(90deg,rgba(255,46,196,0),var(--pink) 22%,var(--purple) 50%,var(--blue) 78%,rgba(0,229,255,0));
  opacity:.55}
@media(prefers-reduced-motion:reduce){.hero-lightline{opacity:.45}}

/* Hero tagline/brandline sit in the lit field — give the type a faint halo so it
   does not get lost against the brighter backdrop. */
.hero-brandline .bl-2{text-shadow:0 0 18px rgba(255,46,196,.34)}
.hero-tagline .hero-99{text-shadow:0 0 16px rgba(255,46,196,.32)}

/* ---------- 99% tagline ---------- */
.hero-tagline{color:rgba(255,255,255,.85);font-size:clamp(14px,3.4vw,18px);font-weight:700;letter-spacing:.01em;margin:6px auto 4px;max-width:620px}
.hero-tagline .hero-99{color:var(--pink);font-weight:900}

/* ---------- exact brand line ---------- */
.hero-brandline{font-family:'Archivo',sans-serif;font-weight:800;font-size:clamp(15px,3.8vw,20px);letter-spacing:.01em;margin:6px auto 30px;max-width:640px}
.hero-brandline .bl-2{color:var(--pink)}

/* ---------- opening cards (CHECK A MATCH pink / GAME PLAY electric blue) ---------- */
.main-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;width:100%;max-width:860px}
.main-card{position:relative;border-radius:22px;padding:26px 20px;text-align:center;background:var(--grad-surface-2);border:1px solid var(--rim);overflow:hidden;transition:transform .25s,box-shadow .25s,border-color .25s;min-height:230px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;box-shadow:var(--shadow-card),var(--highlight)}
.main-card h2{font-family:'Archivo';font-weight:900;font-size:22px;letter-spacing:.02em;color:#fff}
.main-card p{color:rgba(255,255,255,.6);font-size:13.5px;max-width:250px;line-height:1.45}
.main-card .cta{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-size:12px;letter-spacing:.16em;font-weight:800;text-transform:uppercase}
.main-card .art{font-size:56px;margin-bottom:8px;width:74px;height:74px;display:grid;place-items:center;line-height:1}
.main-card .art .card-icon{width:72px;height:72px;display:block;filter:drop-shadow(0 0 10px rgba(255,255,255,.18));animation:icy 3.5s ease-in-out infinite}
@keyframes icy{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
/* Sheen sweep — a slow diagonal light passes across each card, so the surface
   is never a static flat fill. Opacity is low and it sits under the content. */
.main-card .sheen{position:absolute;top:-60%;left:-30%;width:60%;height:220%;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.10) 45%,rgba(255,255,255,0));
  transform:rotate(18deg);animation:sheenSweep 6.5s ease-in-out infinite}
@keyframes sheenSweep{0%{left:-45%;opacity:0}18%{opacity:.9}55%{left:105%;opacity:0}100%{left:105%;opacity:0}}
@media(prefers-reduced-motion:reduce){.main-card .sheen{display:none}}
/* The CTA is the card's own colour even at rest — it used to be near-invisible
   until hover, which is a large part of why the cards read as flat. */
.main-card .cta .cta-arrow{transition:transform .25s}
.main-card:hover .cta .cta-arrow{transform:translateX(5px)}

/* CHECK A MATCH — pink outline/glow/CTA + subtle pink bottom glow */
.main-card.pink{border-color:var(--rim-pink);background-image:var(--grad-pink),var(--grad-surface-2);box-shadow:var(--shadow-card),var(--highlight),0 0 44px rgba(255,46,196,.14)}
.main-card.pink .art{filter:drop-shadow(0 0 16px rgba(255,46,196,.5))}
.main-card.pink .cta{color:var(--pink);text-shadow:0 0 14px rgba(255,46,196,.42)}
.main-card.pink:hover{transform:translateY(-6px);border-color:var(--pink);box-shadow:var(--ring-pink),0 26px 54px rgba(255,46,196,.22),0 0 60px rgba(255,46,196,.20)}
.main-card.pink::after{content:'';position:absolute;left:14%;right:14%;bottom:-26px;height:52px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,46,196,.55),transparent);filter:blur(8px);pointer-events:none}
/* Top accent rule — the pink of the pair, drawn as the card's own edge light.
   Wider and brighter than a 3px hairline, with a bloom underneath, so the card
   has a real lit edge rather than a faint line. */
.main-card.pink::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--rule-brand-vivid);pointer-events:none;box-shadow:0 0 18px rgba(255,46,196,.68),0 0 34px rgba(0,229,255,.30)}
.main-card.pink:hover .art{animation:glowPulsePink 1s ease-in-out infinite}
@keyframes glowPulsePink{0%,100%{filter:drop-shadow(0 0 12px rgba(255,46,196,.4))}50%{filter:drop-shadow(0 0 28px rgba(255,46,196,.9))}}

/* GAME PLAY — electric cool-blue outline/glow/CTA + subtle blue bottom glow */
.main-card.blue{border-color:var(--rim-blue);background-image:var(--grad-blue),var(--grad-surface-2);box-shadow:var(--shadow-card),var(--highlight),0 0 44px rgba(0,229,255,.12)}
.main-card.blue .art{filter:drop-shadow(0 0 16px rgba(0,229,255,.5))}
.main-card.blue .cta{color:var(--blue);text-shadow:0 0 14px rgba(0,229,255,.40)}
.main-card.blue:hover{transform:translateY(-6px);border-color:var(--blue);box-shadow:var(--ring-blue),0 26px 54px rgba(0,229,255,.20),0 0 60px rgba(0,229,255,.18)}
.main-card.blue::after{content:'';position:absolute;left:14%;right:14%;bottom:-26px;height:52px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,229,255,.5),transparent);filter:blur(8px);pointer-events:none}
.main-card.blue::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--softblue),var(--blue) 26%,var(--bridge) 62%,var(--pink));pointer-events:none;box-shadow:0 0 18px rgba(0,229,255,.6),0 0 34px rgba(168,85,255,.32)}
.main-card.blue:hover .art{animation:glowPulseBlue 1s ease-in-out infinite}
@keyframes glowPulseBlue{0%,100%{filter:drop-shadow(0 0 12px rgba(0,229,255,.4))}50%{filter:drop-shadow(0 0 28px rgba(0,229,255,.9))}}

.entry .legacy{position:absolute;bottom:14px;right:18px;color:var(--dim2);font-size:11px;letter-spacing:.1em}
.entry .legacy a{color:var(--dim2);text-decoration:underline}

/* ---------- help control ---------- */
.help-float{position:fixed;bottom:18px;left:18px;z-index:500;width:40px;height:40px;border-radius:50%;background:var(--surf-1);border:1px solid var(--line);color:#fff;font-size:20px;font-weight:700;animation:softPulse 3s ease-in-out infinite}
.help-chip{max-width:340px;background:var(--surf-1);border:1px solid var(--line);border-radius:14px;padding:14px 16px;font-size:13.5px;color:var(--dim);text-align:left;margin:14px auto}
.help-chip b{color:#fff}

/* ---------- universal two-person match ---------- */
.match{max-width:760px;margin:0 auto;padding:22px}
.match .back{color:var(--dim2);font-size:13px;letter-spacing:.1em;margin-bottom:14px;text-align:left}
.match .back button{color:var(--gpx);font-weight:700}
.match h1{font-family:'Archivo';font-weight:900;font-size:clamp(22px,5vw,32px);text-align:center;margin-bottom:6px}
.match .sub{text-align:center;color:var(--dim);font-size:14px;margin-bottom:22px}

.slots{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
.slot-card{background:var(--surf-1);border:1px solid var(--line);border-radius:18px;padding:16px;text-align:center;transition:border-color .3s,box-shadow .3s}
.slot-card.filled{box-shadow:0 0 22px rgba(0,229,255,.25);border-color:var(--gpx)}
.slot-card .si{font-size:54px;margin-bottom:8px;display:block;transition:transform .3s,filter .3s}
.slot-card.filled .si{transform:scale(1.08);filter:drop-shadow(0 0 16px rgba(0,229,255,.7))}
.slot-card .lbl{font-size:11px;letter-spacing:.3em;color:var(--dim2);text-transform:uppercase;margin-bottom:6px}
.slot-card .who{font-size:16px;font-weight:700;min-height:22px}
.slot-card .code{font-family:'Consolas',monospace;font-size:12px;color:var(--gpx);min-height:16px;margin-top:4px}
.slot-card .me{font-size:9px;letter-spacing:.24em;color:var(--pink);text-transform:uppercase;margin-top:2px}
.slot-card .pickme{display:inline-block;margin-top:8px;font-size:10px;letter-spacing:.14em;color:var(--pink);border:1px solid rgba(255,46,196,.5);border-radius:20px;padding:4px 14px;text-transform:uppercase}
.slot-card .birthday{margin-top:8px}
.slot-card .birthday input{width:100%;background:var(--surf-1);border:1px solid var(--line);border-radius:10px;color:#fff;padding:9px 10px;font-size:14px;text-align:center}
.slot-card .birthday input::placeholder{color:var(--dim2);font-size:11px}
.route-col{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--dim2)}
.route-col .route-path{width:3px;height:56px;background:repeating-linear-gradient(var(--gpx) 0 8px,transparent 8px 14px);border-radius:2px;opacity:.6}
.route-col .hearts{letter-spacing:.1em;font-size:15px}

/* ---------- check actions ---------- */
.submit-zone{text-align:center;margin:22px 0 6px}
.check-btn{font-family:'Archivo';font-weight:900;font-size:16px;letter-spacing:.12em;text-transform:uppercase;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45);background:linear-gradient(135deg,var(--gpx),#00e5ff);padding:15px 40px;border-radius:14px;box-shadow:0 0 26px rgba(0,229,255,.5);transition:transform .2s,box-shadow .2s}
.check-btn:disabled{opacity:.35;cursor:not-allowed;box-shadow:none;transform:none}
.check-btn:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 0 40px rgba(0,229,255,.7)}

/* ---------- GPS scan ---------- */
.scan{text-align:center}
.scan .scanhead{display:flex;align-items:center;justify-content:center;gap:26px;margin:30px 0}
.scan .scanhead .havatar{font-size:52px;display:block}
.scan .scanhead .hline{width:120px;height:2px;position:relative;overflow:visible}
.scan .scanhead .hline i{position:absolute;left:0;top:50%;width:22px;height:22px;border-radius:50%}
.scan .scantext{font-family:'Archivo';font-weight:900;font-size:18px;letter-spacing:.14em;color:var(--gpx);text-transform:uppercase;min-height:26px}
.scan .cats{display:flex;justify-content:center;gap:14px;margin-top:16px;flex-wrap:wrap}
.scan .cat{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 16px;border-radius:14px;border:1px solid rgba(124,233,255,.16);background:var(--surf-1);font-size:26px;opacity:.3;transition:opacity .3s,transform .3s,box-shadow .3s,border-color .3s}
.scan .cat.on{opacity:1;transform:scale(1.08);border-color:rgba(0,229,255,.6);box-shadow:0 0 26px rgba(0,229,255,.42),inset 0 0 18px rgba(0,229,255,.10)}

/* ---------- result ---------- */
.result{max-width:720px;margin:0 auto;padding:26px}
/* The result screen sits in the same lit field as the hero, so the score has a
   real background to glow against rather than a flat black panel. */
.result::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:radial-gradient(680px 460px at 50% 34%,rgba(255,46,196,.13),rgba(0,0,0,0) 68%),
             radial-gradient(760px 520px at 50% 88%,rgba(0,229,255,.11),rgba(0,0,0,0) 70%)}
.result .pair{display:flex;align-items:center;justify-content:center;gap:22px;margin-bottom:8px}
.result .pair .p{text-align:center;flex:1;max-width:200px}
.result .pair .p .a{font-size:56px;display:block;margin-bottom:4px}
.result .pair .p .n{font-weight:700}
.result .pair .p .c{font-size:11px;color:var(--dim2);font-family:Consolas,monospace}
.result .pair .vs{color:var(--dim2);font-weight:900;letter-spacing:.1em}
.result .result-score{text-align:center;font-family:'Archivo';font-weight:900;font-size:clamp(24px,6vw,40px);letter-spacing:.02em;margin:18px 0 4px;text-shadow:0 0 28px rgba(255,46,196,.34)}
.result .scorecode{text-align:center;font-family:Consolas,monospace;font-size:16px;color:var(--gpx);letter-spacing:.14em;margin-bottom:6px;text-shadow:0 0 16px rgba(255,46,196,.4)}
.result .archetype{text-align:center;font-size:15px;color:#fff;font-weight:700;margin-bottom:6px}
.result .tier{text-align:center;font-size:14px;color:var(--dim)}
.result .ring{width:130px;height:130px;border-radius:50%;margin:14px auto;background:conic-gradient(var(--pink),var(--blue),var(--violet),var(--lime),var(--pink));padding:6px;animation:spinRing 6s linear infinite}
.result .ring .inner{width:100%;height:100%;border-radius:50%;background:#000;display:grid;place-items:center;font-size:20px}
@keyframes spinRing{to{transform:rotate(360deg)}}
.result .statb{display:flex;gap:14px;margin:16px auto;max-width:520px;flex-wrap:wrap;justify-content:center}
.result .sb{flex:1;min-width:110px;background:var(--surf-1);border:1px solid var(--line);border-radius:14px;padding:12px;text-align:center}
.result .sb .icon{font-size:26px}
.result .sb .name{font-size:9px;letter-spacing:.22em;color:var(--dim2);text-transform:uppercase}
.result .sb .val{font-family:'Archivo';font-weight:900;font-size:22px}
.result .sb .meter{height:5px;border-radius:3px;background:rgba(255,255,255,.10);box-shadow:inset 0 1px 2px rgba(0,0,0,.8);margin-top:6px;overflow:hidden}
.result .sb .meter i{display:block;height:100%;border-radius:3px}
.result .actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.result .actions button{font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:#000;border-radius:10px;padding:11px 18px}
.btn-pink{background:linear-gradient(135deg,var(--pink),var(--bridge));box-shadow:0 6px 20px rgba(255,46,196,.34)}.btn-blue{background:linear-gradient(135deg,var(--blue),var(--softblue));box-shadow:0 6px 20px rgba(0,229,255,.32)}.btn-violet{background:linear-gradient(135deg,var(--violet),var(--pink));box-shadow:0 6px 20px rgba(168,85,255,.32)}.btn-lime{background:linear-gradient(135deg,var(--softblue),var(--blue));box-shadow:0 6px 20px rgba(0,229,255,.30)}.btn-gold{background:linear-gradient(135deg,var(--pink),var(--violet));box-shadow:0 6px 20px rgba(255,46,196,.34)}.result .detail{display:none;margin-top:14px}
.result.show-detail .detail{display:block;background:var(--surf-1);border:1px solid var(--line);border-radius:14px;padding:14px;font-size:13px;color:var(--dim);text-align:left}
.result.show-detail .detail b{color:#fff}
.result .nag{padding:10px;color:var(--red)}
.result.gold .result-score{color:var(--gold);text-shadow:0 0 24px rgba(255,46,196,.7)}
.result.gold .scorecode{color:var(--gold)}
.gold-badge{text-align:center;font-weight:900;color:var(--gold);letter-spacing:.3em;font-size:13px;margin-top:8px}

/* ---------- balloons (gold + multicolor) ---------- */
.balloon{position:fixed;bottom:-120px;z-index:600;width:34px;height:42px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:var(--col);opacity:.9;animation:floatUp var(--dur) ease-in infinite;animation-delay:var(--delay);pointer-events:none}
.balloon::before{content:'';position:absolute;top:-7px;left:50%;transform:translateX(-50%);width:14px;height:8px;background:#000;border-radius:50%}
.balloon::after{content:'';position:absolute;bottom:-14px;left:50%;transform:translateX(-50%);width:1px;height:14px;background:rgba(255,255,255,.4)}
@keyframes floatUp{0%{transform:translate(0,0)}30%{transform:translate(var(--sway),-30vh) rotate(var(--rot))}100%{transform:translate(calc(var(--sway) * -1.4),-120vh) rotate(20deg)}}

.confetti{position:fixed;top:-20px;z-index:601;width:9px;height:14px;background:var(--col);animation:confFall var(--dur) linear infinite;pointer-events:none}
@keyframes confFall{to{transform:translateY(110vh) rotate(360deg)}}

/* ---------- live game / host ---------- */
.live{max-width:820px;margin:0 auto;padding:22px;min-height:100vh}
.live .back{color:var(--dim2);font-size:13px;letter-spacing:.1em;margin-bottom:14px;text-align:left}
.live .back button{color:var(--gpx);font-weight:700}
.live h1{font-family:'Archivo';font-weight:900;font-size:clamp(22px,5vw,32px);margin-bottom:16px}
.live-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.live-panel{background:var(--surf-1);border:1px solid var(--line);border-radius:16px;padding:16px}
.lp-title{font-size:10px;letter-spacing:.28em;color:var(--dim2);text-transform:uppercase;margin-bottom:10px}
.game-code{font-family:Consolas,monospace;font-size:20px;letter-spacing:.2em;color:var(--gpx)}
.game-code.big{font-size:34px;text-shadow:0 0 18px rgba(0,229,255,.5)}
.game-code.dim{color:var(--dim2)}
.lp-actions,.live-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.live-btn{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#000;border-radius:10px;padding:10px 14px}
.live-btn.btn-gold{background:var(--gold)}
.activity-name{font-family:'Archivo';font-weight:900;font-size:20px;color:#fff;min-height:26px}
.players-count{font-family:'Archivo';font-weight:900;font-size:34px;color:var(--blue)}
.venue-panel{border-color:rgba(124,233,255,.20);background:linear-gradient(160deg,#000000,#070707)}
.venue-mini{font-family:'Archivo';font-weight:900;font-size:16px;letter-spacing:.06em;padding:16px;border-radius:12px;border:1px solid rgba(124,233,255,.14);min-height:66px;display:flex;align-items:center;justify-content:center;text-align:center}
.venue-mini-row{color:#fff}
.venue-mini-row.gold{color:var(--gold);text-shadow:0 0 16px rgba(255,46,196,.6)}
.venue-mini-row.dim{color:var(--dim2)}
.you-play{padding:14px;background:var(--surf-1);border:1px solid rgba(124,233,255,.17);border-radius:12px;color:var(--dim);font-size:14px;margin-top:14px;text-align:center}
.game-code-box{margin:10px auto 0;max-width:300px}
.game-code-box input{width:100%;background:var(--surf-1);border:1px solid var(--line);border-radius:12px;color:var(--gpx);font-size:26px;letter-spacing:.3em;text-align:center;padding:14px 10px;font-family:Consolas,monospace}
.code-hint{color:var(--dim2);font-size:12.5px}
.code-hint b{color:#fff}

@media(max-width:560px){ .live-grid{grid-template-columns:1fr} }

/* ---------- game-play completion components ---------- */
.live{max-width:960px;margin:0 auto;padding:20px}
.host-kicker{font-size:10px;letter-spacing:.26em;color:var(--dim2);text-transform:uppercase;margin-left:10px}
.host-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin-top:6px}
.live-panel{background:var(--surf-1);border:1px solid var(--line);border-radius:16px;padding:16px}
.host-status .game-code-row{display:flex;align-items:center;gap:10px;font-size:30px}
.qr{display:flex;flex-direction:column;align-items:center;margin-top:8px}
.qr-box{background:#000;border:1px solid var(--line);border-radius:12px;padding:8px}
.qr-box svg{display:block}
.qr-box.dim{color:var(--dim2)}
.players-grid{display:flex;gap:10px;margin-bottom:10px}
.pc-box{flex:1;background:var(--surf-1);border:1px solid rgba(124,233,255,.17);border-radius:12px;padding:10px;text-align:center}
.pc-count{font-family:'Archivo';font-weight:900;font-size:26px}
.pc-lbl{font-size:8px;letter-spacing:.2em;color:var(--dim2)}
.player-list{max-height:160px;overflow:auto;display:flex;flex-direction:column;gap:4px}
.prow{display:flex;align-items:center;gap:8px;background:var(--surf-1);border:1px solid rgba(124,233,255,.16);border-radius:8px;padding:6px 9px;font-size:13px;animation:fadeUp .25s ease}
.prow .pdot{width:8px;height:8px;border-radius:50%;background:var(--gpx);box-shadow:0 0 8px var(--gpx);animation:softPulse 1.6s infinite}
.prow .pop{margin-left:auto;color:var(--gpx);font-size:11px}
.host-activity .activity-name{font-size:18px}
.host-venue .venue-mini{min-height:120px;justify-content:center;font-size:18px;text-align:center}
.pulse-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gpx);margin-left:8px;animation:softPulse 1.1s infinite}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

/* step widget (layered next-action card) */
.step-widget{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:min(92vw,420px);z-index:700;background:#111;border:1px solid #00e5ff;border-left:4px solid var(--gpx);border-radius:14px;box-shadow:0 8px 30px rgba(0,229,255,.18);animation:swIn .3s cubic-bezier(.2,.9,.3,1.2)}
@keyframes swIn{from{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%,0)}}
.step-widget .sw-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid rgba(124,233,255,.16)}
.step-widget .sw-dot{width:8px;height:8px;border-radius:50%;background:var(--gpx);animation:softPulse 1.4s infinite}
.step-widget .sw-title{font-weight:800;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--gpx);flex:1}
.step-widget .sw-x{color:var(--dim2);font-weight:700;font-size:15px}
.step-widget .sw-body{font-size:14px;color:#fff;line-height:1.4;padding:12px 14px}
.step-widget .sw-body b{color:var(--gpx)}
.step-widget .sw-done{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid rgba(124,233,255,.14)}
.step-widget .sw-check{color:var(--lime);font-weight:900;font-size:16px}
.step-widget.sw-fade{opacity:0;transition:opacity .2s}
.help-banner{position:fixed;top:64px;left:50%;transform:translateX(-50%);width:min(92vw,420px);z-index:699;background:#000;border:1px solid var(--line);border-top:3px solid var(--pink);border-radius:14px;padding:12px 14px;font-size:13.5px;color:var(--dim);line-height:1.4;box-shadow:0 10px 30px rgba(0,0,0,.7)}
.help-banner b{color:#fff}

/* player/watch */
.pg{padding-top:6px}
.you-id{background:var(--surf-1);border:1px solid rgba(124,233,255,.17);border-radius:12px;padding:10px 14px;font-size:14px;color:var(--dim);text-align:center;margin:12px auto;max-width:420px}
.you-id b{color:#fff}
.big-count{font-family:'Archivo';font-weight:900;font-size:64px;text-align:center;color:var(--gpx);text-shadow:0 0 24px rgba(0,229,255,.5);margin:10px 0;animation:softPulse 1s infinite}
.end-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:14px}
.youre-in{font-family:'Archivo';font-weight:900;font-size:28px;color:var(--gpx);letter-spacing:.04em;animation:popIn .5s cubic-bezier(.2,.9,.3,1.4)}
@keyframes popIn{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
.transition-flash{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle,rgba(0,229,255,.25),transparent 60%);z-index:699;animation:flashOut .7s ease forwards}
@keyframes flashOut{from{opacity:1}to{opacity:0}}

/* hover pulse on the primary next control is handled by .live-btn being the target;
   add a gentle pulse to the currently-active activity button */
.live-btn{padding:9px 11px;font-size:10.5px}

@media(max-width:560px){ .host-grid{grid-template-columns:1fr} .big-count{font-size:42px} }

/* ---------- responsive ---------- */
@media(max-width:560px){
  .main-cards{grid-template-columns:1fr}
  .main-card{min-height:190px}
  .slots{grid-template-columns:1fr;gap:10px}
  .route-col{flex-direction:row}
  .route-col .route-path{width:60px;height:3px;background:repeating-linear-gradient(90deg,var(--gpx) 0 8px,transparent 8px 14px)}
  .scan .scanhead .hline{width:64px}
}

/* ---------- shared member image (real photo or the balloon placeholder) ----------
   The ONE member-image fallback across BYP. Real photos render contain/crop
   cleanly (never stretched, never raw text); the balloon + ? placeholder is used
   whenever no photo exists. Applied across ME/profile, ME chip, Person 1/2, room
   cards, posts, Event/Universal Room and history. */
.byp-photo{display:inline-block;border-radius:50%;overflow:hidden;object-fit:cover;object-position:center;flex:none}
.byp-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.byp-photo.happy{display:inline-grid;place-items:center;line-height:1;background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,0));border:1px solid rgba(124,233,255,.20);border-radius:50%}

/* ---------- THE ONE MISSING-PHOTO PLACEHOLDER (balloon + ?) ----------
   Replaces the retired happy-face emoji everywhere. BLACK background/context
   (the site base — deliberately NOT a navy disc), ELECTRIC BLUE balloon, WHITE ?,
   subtle ELECTRIC PINK glow. `.is-tiny` is the small-avatar variant: the glow is
   dropped for readability. */
.byp-photo.byp-photo-missing{
  display:inline-grid;place-items:center;overflow:hidden;flex:none;line-height:0;
  border-radius:50%;background:#000;
  border:1px solid rgba(0,229,255,.34);
  box-shadow:0 0 10px rgba(255,46,196,.28),inset 0 1px 0 rgba(255,255,255,.07);
}
.byp-photo.byp-photo-missing .byp-missing-img{width:100%;height:100%;display:block;object-fit:contain}
/* Very small avatars: keep it legible — no outer glow, firmer rim. */
.byp-photo.byp-photo-missing.is-tiny{border-color:rgba(0,229,255,.5);box-shadow:none}
/* The legacy `.happy` alias also renders the SAME artwork, so older markup can
   never fall back to a bare emoji or a generic silhouette. */
.byp-photo.happy .byp-missing-img{width:100%;height:100%;display:block;object-fit:contain}

/* ---------- branded in-app BYP modal (replaces browser alert/confirm) ---------- */
.byp-modal-overlay{position:fixed;inset:0;z-index:950;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:20px}
.byp-modal{width:min(92vw,400px);background:var(--surf-1);border:1px solid var(--pink);border-top:3px solid var(--pink);border-radius:18px;padding:22px 20px;box-shadow:0 20px 60px rgba(0,0,0,.8);color:#fff;font-family:'Space Grotesk',system-ui,sans-serif}
.byp-modal-title{font-family:'Archivo',sans-serif;font-weight:900;font-size:20px;letter-spacing:.01em;color:#fff;margin-bottom:10px}
.byp-modal-msg{color:var(--dim);font-size:14px;line-height:1.5;margin-bottom:20px}
.byp-modal .byp-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.byp-modal-btn{font-family:inherit;font-size:13px;font-weight:800;letter-spacing:.08em;border-radius:12px;padding:13px 18px;cursor:pointer;text-transform:uppercase}
.byp-modal-btn.ghost{background:transparent;color:var(--dim);border:1px solid var(--line)}
.byp-modal-btn.primary{background:linear-gradient(135deg,var(--pink),var(--bridge));color:#fff;border:1px solid var(--pink);text-shadow:0 1px 2px rgba(0,0,0,.45)}
.byp-modal-btn.danger{background:linear-gradient(135deg,var(--pink),var(--bridge));color:#fff;border:1px solid var(--pink);text-shadow:0 1px 2px rgba(0,0,0,.45)}
.byp-modal-btn:hover{box-shadow:0 0 16px rgba(255,46,196,.4)}
.byp-modal-btn:focus-visible{outline:2px solid var(--gpx);outline-offset:2px}

/* ME profile card */
.checkflow .byp-me-card{background:var(--surf-1);border:1px solid var(--line);border-radius:18px;padding:22px 16px;margin-bottom:12px}
.checkflow .byp-me-card .byp-me-name{font-family:'Archivo';font-weight:900;font-size:20px;margin-top:8px;color:#fff}
.checkflow .byp-me-card .byp-me-code{font-family:Consolas,monospace;color:var(--gpx);letter-spacing:.16em;font-size:15px;margin-top:4px}
.checkflow .byp-me-card .byp-me-code-row{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:4px;flex-wrap:wrap}
.checkflow .byp-me-card .byp-me-code-row .byp-me-code{margin-top:0}
.checkflow .byp-me-card .byp-copy-code{padding:4px 10px;font-size:11px;letter-spacing:.08em}

/* ME private information block — visually distinct from the public profile so
   members can see at a glance that these values are not public. */
.checkflow .byp-private-card{border-color:var(--line)}
.checkflow .byp-private-card > label{color:var(--gpx)}
.checkflow .byp-private-rows{display:grid;gap:6px}
.checkflow .byp-private-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:7px 10px;background:var(--ink-2);border:1px solid rgba(124,233,255,.14);border-radius:10px}
.checkflow .byp-private-row .k{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim2)}
.checkflow .byp-private-row .v{font-family:Consolas,monospace;font-size:13.5px;color:#fff;word-break:break-word;text-align:right}

