/* JB Authentic v1.5 — microsite styles (extracted from microsite.php, v1.4 rules preserved). */

  :root{
    --green: #34FF82;
    --pink: #FF5FA2;      /* JB Neon Pink (2.0, the orbs' new look: the Messages orb's heart, light, badge and news) */
    --cyan: #1FC4FF;      /* JB Neon Cyan (2.0, the orbs' new look: the Messages orb's bubble) */
    --purple: #8234FF;
    --yellow: #FFFB00;
    --glass-bg: rgba(5,7,10,0.44);
    --glass-bd: rgba(255,255,255,0.22);
    --phone-w: 420px;
    --hero-size: min(480px, 92vw);
    --pill-bg: #151515;

    /* Safe-area inset for iOS notch */
    --safe-top: env(safe-area-inset-top, 0px);
  }

  /* v1.5: weight ranges let browsers use the variable 'wght' axis instead of synthesising faux bold */
  @font-face{font-family:'Orbitron';src:url('/wp-content/fonts/Orbitron-VariableFont_wght.woff2') format('woff2');font-weight:400 900;font-display:swap}
  @font-face{font-family:'Jura';src:url('/wp-content/fonts/Jura-VariableFont_wght.woff2') format('woff2');font-weight:300 700;font-display:swap}

  html,body{margin:0;background:#000;color:var(--green);font-family:'Jura',sans-serif;text-align:center;overflow-x:hidden}

/* Full black until dismissed */
#bootScreen {
  position: fixed;
  inset: 0;
  padding-top: var(--safe-top);  /* prevents brief under-notch flash */
  min-height: 100dvh;            /* covers tall notches */
  background: #000;
  z-index: 9999;
  pointer-events: none;          /* no interaction during boot */
  opacity: 1;
  transition: opacity .45s ease;
  touch-action: none;
  /* v1.5 failsafe: if the script never runs, the loader still fades out (JS cancels this) */
  animation: jbBootFailsafe .45s ease 9s forwards;
}
@keyframes jbBootFailsafe { to { opacity: 0; visibility: hidden; } }

/* While boot overlay is up, stop background scroll/bounce */
body.booting {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Moving logo (sits above the bar so the bar looks like a trail) */
#bootLogo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);  /* JS animates translate/scale */
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.5));
  will-change: transform;
  z-index: 3;
}

/* SVG trail covers viewport, drawn behind logo */
#bootBar {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Rect inside SVG (rainbow bar) */
#bootBarRect {
  filter: drop-shadow(0 0 6px rgba(0,0,0,.35));
  transition: height .45s ease;   /* only the length eases on the final swallow */
}

/* v1.5.9: the rainbow trail. The script sets its position and length (the bar's exact shape: 6 px
   wide, round ends) and scales the inner strip to the bar's length, so the bands stretch with it as
   before (one rainbow cycle per 42% of the bar). The colors stream up by a transform animation, which
   Safari runs on the compositor: it keeps flowing even while the page's script is busy. A full cycle
   every 0.7 s; still under Reduce Motion; stopped once the loader has gone. */
#bootTrail{
  position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: var(--boot-bar-w); height: 0;
  border-radius: calc(var(--boot-bar-w) / 2);
  overflow: hidden;
}
#bootTrail .boot-trail-scale{
  position: absolute; left: 0; top: 0; width: 100%;
  height: var(--trail-h0, 100vh);
  transform-origin: 0 0;
}
#bootTrail .boot-trail-flow{
  position: absolute; left: 0; top: 0; width: 100%;
  height: calc(var(--trail-h0, 100vh) * 1.42);          /* the bar's length + one cycle */
  background: repeating-linear-gradient(to bottom,        /* one cycle = 0.42 / 1.42 of the strip */
    #FF004D 0%, #FF7A00 4.2254%, #FFEB3B 8.4507%, #34FF82 12.6761%,
    #34FFE7 16.9014%, #349BFF 21.1268%, #9B34FF 25.3521%, #FF004D 29.5775%);
  animation: jbTrailFlow .7s linear infinite;
  will-change: transform;
}
@keyframes jbTrailFlow{ to{ transform: translateY(-29.5775%); } }   /* exactly one cycle: seamless */
body:not(.booting) #bootTrail .boot-trail-flow{ animation: none; }
@media (prefers-reduced-motion: reduce){ #bootTrail .boot-trail-flow{ animation: none; } }

/* Footer tagline (hidden until JS positions it under logo) */
.boot-footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  z-index: 1;
  visibility: hidden;            /* prevent flashing at top */
}

.boot-tag {
  font-size: 12px;
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;                    /* hidden until booting */
  transition: opacity .35s ease, transform .35s ease;
}

/* When boot overlay is active and JS has placed footer */
body.booting #bootScreen.footer-ready .boot-tag {
  opacity: .92;
  visibility: visible;
}

/* Tagline fade-out (triggered by JS adding .tag-fade) */
#bootScreen.tag-fade .boot-tag {
  opacity: 0;
  transform: translateY(-8px);
}

/* Exit choreography (also hide tagline immediately) */
#bootScreen.boot-vanish,
#bootScreen.boot-vanish .boot-footer {
  opacity: 0;
  pointer-events: none;
  visibility: hidden !important;
}

/* Boot bar thickness (read by JS) + safe-area padding for notches */
:root {
  --boot-bar-w: 6px;
  --safe-top: env(safe-area-inset-top, 0px);
}

/* Safari 26 safe background video */
.bg-video-wrap{
  position: fixed;
  left: 0;
  top: -15vh;              /* pull it upward */
  width: 100vw;
  height: 130vh;           /* make container taller than viewport */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

/* Background video with ultra-subtle overscan */
.bg-video{
  position: absolute;
  inset: -1.5%;
  width: 103%;
  height: 103%;
  object-fit: cover;
  object-position: center;
}

/* Reduced motion: the script does not load the video; the theme poster image stays visible */

/* v1.5.2 — the background stays behind the page everywhere, including under iPhone Safari's
   toolbars. iOS 26 Safari does not draw position:fixed layers in the strip behind its expanded
   bottom toolbar (it paints that strip with the layer's flat colour, black) but it does draw
   scrolling content there — which is why the video ended in a hard line while the buttons
   carried on underneath. The video therefore now lives in the page flow as a full-screen
   STICKY layer: it holds still while the page scrolls, exactly like fixed, yet Safari treats it
   as page content and renders it under the toolbar.
   - Sized to the largest viewport (lvh), so it never comes up short when the bars collapse;
     cropped with object-fit: cover (no stretching, no bars, any video aspect ratio).
   - Takes no space (negative margin): the page starts on top of it, at any page length.
   - A fixed copy of the theme poster sits underneath, so the rubber-band overscroll at the top
     or bottom shows the theme instead of black.
   - The desktop phone frame (demo garments on wide screens) keeps its original fixed layer.
   - Needs overflow: clip and lvh (Safari 16+, Chrome 108+); older browsers keep the fixed layer. */
@supports (overflow: clip) and (height: 100lvh){
  @media (max-width: 820px){
    html, body{ overflow-x: clip; }        /* "hidden" would make <body> a scroll container and stop sticky */
    body{ background: transparent; }       /* <html> keeps the black canvas; lets the poster layer show */
    body.modal-open{ overflow: clip; }     /* the dialog scroll lock stays on <html>; <body> must not become a scroller */
    body::before{
      content: ""; position: fixed; left: 0; right: 0; top: -15lvh; bottom: -15lvh; z-index: -1; pointer-events: none;
      background: #000 var(--jb-poster, none) center / cover no-repeat;
    }
    .bg-video-wrap{
      position: sticky; top: 0; left: auto;
      width: 100%; height: 100lvh; margin-bottom: -100lvh;
    }
  }
  @media (min-width: 821px){
    html[data-layout="responsive"], html[data-layout="responsive"] body{ overflow-x: clip; }
    html[data-layout="responsive"] body{ background: transparent; }
    html[data-layout="responsive"] body.modal-open{ overflow: clip; }
    html[data-layout="responsive"] body::before{
      content: ""; position: fixed; left: 0; right: 0; top: -15lvh; bottom: -15lvh; z-index: -1; pointer-events: none;
      background: #000 var(--jb-poster, none) center / cover no-repeat;
    }
    html[data-layout="responsive"] .bg-video-wrap{
      position: sticky; top: 0; left: auto;
      width: 100%; height: 100lvh; margin-bottom: -100lvh;
    }
  }
}

/* UI stays above */
.frame-stage{
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.frame{
  width: 100%;
  max-width: var(--phone-w);
  padding: 0;
  background: transparent;
}

/* === FIXED HERO STACK (split layers) === */

/* Layer A: Hero image layer (behind UI, pushed down by --ui-top) */
.fixed-hero-visual {
  position: fixed;
  top: calc(var(--ui-top, 0px) + var(--hero-offset, 0px));
  left: 0; right: 0;
  z-index: 50;  /* stays under bubbles but above background */
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.fixed-hero-visual .hero-fixed {
  width: var(--hero-size);
  aspect-ratio: 1/1;
  margin: 0 auto;
  overflow: visible;
}
.fixed-hero-visual .hero-fixed img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  animation: floatSmooth 7.2s linear infinite;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.55));
  pointer-events: none;     /* belt + suspenders */
}

/* Layer B: UI/bubbles/logo (always tappable, above hero) */
.fixed-hero-ui{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;                /* ↑ above scroll content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  gap: 10px;
}
.fixed-hero-ui .logoRow,
.fixed-hero-ui .hanger-wrap,
.fixed-hero-ui button,
.fixed-hero-ui .bubble-btn {
  pointer-events: auto;     /* explicitly clickable */
}

/* FIVE columns keep logo centered */
.logoRow {
  width: min(560px, 92vw);
  margin: 0 auto 10px !important;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  justify-items: center;
  column-gap: 26px;
  z-index: 71;
}
/* November 10: under 381 px wide, the four 46 px orbs, the 62 px logo and their four 26 px gaps (350 px) were wider than
   the row (92vw), which ran off to the right: at 320 px the closet orb was off the screen, at 344 px half of it, at
   360 px its edge. There the gaps take the room there is (12 px at 320). From 381 px wide nothing changes. */
@media (max-width: 380.98px){
  .logoRow{ column-gap: calc((100% - 246px) / 4); }
}
.logo {
  width: 62px;
  grid-column: 3;
  justify-self: center;
}

.bubble-btn {
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--purple); border: 1.5px solid var(--green); color: var(--green);
  cursor: pointer; position: relative; z-index: 72;
  -webkit-tap-highlight-color: transparent;
}
.bubble-note { grid-column:1; justify-self:end }
.bubble-coupon { grid-column:4; justify-self:start }
.bubble-hanger { grid-column:5; justify-self:start }
.bubble-badge { position:absolute; right:-6px; top:-6px; font-size:15px; color:var(--green) }
.bubble-count { display:grid; place-items:center; min-width:19px; height:19px; padding:0 5px; box-sizing:border-box; border-radius:999px; background:var(--green); color:#14072b; font:800 11px/1 'Orbitron',sans-serif; box-shadow:0 0 0 1.5px #000 }

.bubble-vip {
  grid-column: 2; justify-self: end;
  background: rgba(18,18,18,.72);
  border-color: var(--yellow); color: var(--yellow);
  box-shadow: 0 0 14px rgba(255,251,0,.85), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
/* 2.0 own icons (includes/icons.php): inline SVG instead of the Font Awesome kit. The kit's box
   (1.25em wide and 1em tall for each of these icons, measured on live) and its position
   (vertical-align -.125em); the second tone ("s") at 40%, as the kit's duotone icons. */
.jb-icon{ display:inline-block; width:1.25em; height:1em; vertical-align:-.125em; overflow:visible; }
.jb-icon .s{ opacity:.4; }
.bubble-vip .jb-icon-star { display:inline-block; animation: vipSpin 6s linear infinite; }   /* 2.0 own icons: was i.fa-star */
@keyframes vipSpin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.bubble-vip:hover,.bubble-vip:focus {
  box-shadow: 0 0 18px rgba(255,251,0,.95), inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateY(-1px); outline: 0;
}
.bubble-vip:focus-visible {
  box-shadow: 0 0 18px rgba(255,251,0,.95), 0 0 0 2px rgba(255,251,0,.85), inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateY(-1px);
}

/* Float animation */
@keyframes floatSmooth {
  0% { transform: translateY(0) }
  25% { transform: translateY(-8px) }
  50% { transform: translateY(0) }
  75% { transform: translateY(8px) }
  100% { transform: translateY(0) }
}

/* Tuning knobs */
:root{
    --hero-offset: 14px;   /* tweak this ↑ or ↓ until it feels right */
  --hero-extra: 20px;   /* cushion UNDER hero image */
  --stage-tweak: -6px;  /* fine-tune offset */
}

/* Spacer = measured stack + cushion (+ optional tweak) */
#heroSpacer{
  height: calc(
    max(0px,
      var(--hero-pad, 140px)
      + var(--hero-extra, 20px)
      + var(--stage-tweak, -6px)
    )
  );
  width: 100%;
  pointer-events: none; /* inert */
}

/* Scroll content always above hero image */
.scroll-stage{
  position: relative;
  z-index: 120;                /* above hero (50), below UI (200) */
  pointer-events: none;
  box-sizing: border-box;
}
.scroll-stage .viewport{
  padding: 14px;
  pointer-events: auto;
  position: relative;
  z-index: 121;
}
.wrap { padding:16px 12px; text-align:center }

  .glass{
    background:var(--glass-bg); border:1px solid var(--glass-bd);
    -webkit-backdrop-filter:blur(4.5px) saturate(2.2); backdrop-filter:blur(4.5px) saturate(2.2);
    border-radius:18px; box-shadow:0 12px 26px rgba(0,0,0,.30); position:relative;
  }
  .glass::before{
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
    background:radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.14), transparent 42%),
               linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
    mix-blend-mode:screen;opacity:.9;
  }

  .titleWrap{padding:6px 8px;display:flex;justify-content:center}
  .titleGlass{display:inline-block;padding:10px 16px;border-radius:999px;max-width:92%;position:relative}
  .titleGlass::before{
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
    background:radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.14), transparent 42%),
               linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
    mix-blend-mode:screen;opacity:.9;z-index:0;
  }
  .titleGlass h1{
    position:relative;z-index:1;margin:0;font-family:'Orbitron',sans-serif;font-weight:700;
    background:linear-gradient(135deg,#00FF99,#34FFE7,#9AC4F8,#FFB2E6,#FDFD96,#00FF99);
    -webkit-background-clip:text !important;background-clip:text !important;
    -webkit-text-fill-color:transparent !important;color:transparent !important;
    background-size:500% 500%; animation:holoPulse 9s ease-in-out infinite alternate;
    font-size:clamp(14px,4.6vw,22px); line-height:1.1; white-space:nowrap; overflow:hidden; text-align:center;
  }
  @keyframes holoPulse{0%{background-position:0% 0%}100%{background-position:100% 100%}}

  /* THEME title variants */
  .title-pride .titleGlass h1{background:linear-gradient(90deg,rgba(255,48,0,1) 0%,rgba(255,130,52,1) 9%,rgba(255,231,52,1) 18%,rgba(52,255,130,1) 30%,rgba(52,200,255,1) 40%,rgba(200,52,255,1) 47%,rgba(255,52,177,1) 54%,rgba(255,48,0,1) 60%,rgba(255,130,52,1) 69%,rgba(255,231,52,1) 78%,rgba(52,255,130,1) 87%,rgba(52,200,255,1) 93%,rgba(200,52,255,1) 97%,rgba(255,52,177,1) 99%,rgba(255,48,0,1) 100%);background-size:600px 100%;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:prideLoop 8s linear infinite}
@keyframes prideLoop{0%{background-position:0px 0}100%{background-position:-600px 0}}
  .title-galactic .titleGlass h1{background:linear-gradient(135deg,#8234FF,#FF4FD8,#34FFE7,#8234FF);background-size:600% 600%;animation:galacticGlow 10s ease-in-out infinite alternate}
  @keyframes galacticGlow{0%{background-position:0% 0%}100%{background-position:100% 100%}}
  .title-gal-red .titleGlass h1{background:linear-gradient(90deg,#FF344C,#FF7A29,#FFD633,#FF344C,#9B34FF,#FF344C);background-size:1400% 100%;animation:galRedLoop 14s linear infinite}
  @keyframes galRedLoop{0%{background-position:0% 0%}100%{background-position:-100% 0%}}
  .title-gal-gre .titleGlass h1{background:linear-gradient(90deg,#34FF82,#F9FF00,#34FF82,#F9FF00,#34FF82);background-size:1200% 100%;animation:galGreenLoop 12s linear infinite}
  @keyframes galGreenLoop{0%{background-position:0% 0%}100%{background-position:-100% 0%}}
  .title-gal-blu .titleGlass h1{background:linear-gradient(90deg,#349BFF,#34FFB9,#4DC3FF,#8234FF,#4DC3FF,#34FFB9,#349BFF);background-size:1600% 100%;animation:galBlueLoop 16s linear infinite}
  @keyframes galBlueLoop{0%{background-position:0% 0%}100%{background-position:100% 0%}}
  .title-glitter .titleGlass h1{background:linear-gradient(135deg,#e0e0e0,#ffffff,#c0c0c0,#f2f2f2,#d9d9d9,#ffffff,#e0e0e0);background-size:600% 100%;animation:shimmerFirefox 8s linear infinite}
  @keyframes shimmerFirefox{0%{background-position:200% 0}100%{background-position:-100% 0}}
  .title-glow .titleGlass h1{background:linear-gradient(135deg,#ffffff,#d9d9ff,#e6ffe6,#ffe6f2,#ffffff);background-size:600% 600%;animation:glowShift 6s ease-in-out infinite alternate;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;text-shadow:none;filter:none;mix-blend-mode:normal}
  @keyframes glowShift{0%{background-position:0% 0%}100%{background-position:100% 100%}}
  
  /* =========================
   GLITCH TITLE (Digital GLI-DIG only)
   Activates when body has .title-glitch
========================= */

.title-glitch .titleGlass h1{
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
  color: #34FF82;
  background: none !important;
  -webkit-text-fill-color: #34FF82 !important;
  text-shadow: none;
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* RGB double behind the real text */
.title-glitch .titleGlass h1::before,
.title-glitch .titleGlass h1::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Purple pass */
.title-glitch .titleGlass h1::before{
  color: #8234FF;
  animation: rgbA 1.4s infinite;
}

/* Pink pass */
.title-glitch .titleGlass h1::after{
  color: #FF34B1;
  animation: rgbB 1.4s infinite;
}

/* Micro vertical distortion */
.title-glitch .titleGlass h1{
  animation: textWave 1.4s infinite;
}

/* Animations */
@keyframes rgbA{
  0%,88%,100%{opacity:0}
  89%{opacity:.95;transform:translate(-4px,-2px)}
}
@keyframes rgbB{
  0%,90%,100%{opacity:0}
  91%{opacity:.9;transform:translate(5px,3px)}
}
@keyframes textWave{
  0%,87%,100%{transform:none}
  88%{transform:scaleY(.92)}
  89%{transform:scaleY(.96)}
}

  .capsRow{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
  .cap{font-size:15px;padding:8px 12px;border-radius:999px}
  .cap.glass{padding:9px 14px}
  .capLine{display:flex;justify-content:center;margin-top:10px}
  .capLine .cap{font-size:15px;padding:8px 12px}

  .buttons{
    margin-top:18px;margin-bottom:22px;display:grid;grid-template-columns:repeat(3,auto);gap:10px;justify-content:center;align-items:center;
  }
  .btn{
    display:inline-block;text-align:center;text-decoration:none;cursor:pointer;
    padding:15px 16px;border-radius:999px;font-weight:800;letter-spacing:.4px;
    font-size:13.5px;text-transform:uppercase;background:var(--green);color:#000;border:0;
    min-width:94px;max-width:114px;transition:transform .15s ease, box-shadow .15s ease;
    box-shadow:0 10px 22px rgba(0,0,0,.35);
  }
  .btn:hover,.btn:focus{transform:translateY(-1px);box-shadow:0 12px 28px rgba(0,0,0,.42);text-decoration:none}

  .regblock{margin-top:26px;font-size:16px;padding:20px 18px;text-align:center}
  .regblock p{margin:12px 0}
  .regblock .muted{opacity:.88;font-style:italic}
  .regblock .purple{color:var(--purple);font-size:.8em;line-height:1.4}
  .regblock .purple a{color:var(--purple) !important;text-decoration:underline}

  .pill{display:inline-flex;align-items:center;gap:8px;background:var(--pill-bg);border:1px solid var(--glass-bd);padding:6px 10px;border-radius:999px}
  .pill .icon-btn{background:transparent;border:0;color:var(--green);cursor:pointer;font-size:16px;line-height:1;display:inline-grid;place-items:center}

 /* -------- HANGER TRAY -------- */
.hanger-wrap{
  position: relative;
  z-index: 120;
}

.hanger-tray{
  position: absolute;
  top: 56px;
  right: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(4.5px) saturate(2.2);
  backdrop-filter: blur(4.5px) saturate(2.2);
  border: 1px solid var(--glass-bd);
  border-radius: 999px;
  padding: 16px 16px 24px;    /* 2.0 wardrobe tray: room above the close button (was 16px all round) */
  width: 94px;
  box-shadow: 0 14px 34px rgba(0,0,0,.55),
              inset 0 1px 0 rgba(255,255,255,.08);
  box-sizing: border-box;
  overflow: visible;          /* allow close button to hang out */
  display: none;
  z-index: 130;
}
.hanger-tray.is-open{ display:block; }

/* Close button sits INSIDE tray, bottom center */
.hanger-tray .tray-close{
  position: absolute;
  left: 50%;
  bottom: -16px;              /* hangs slightly outside */
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--green);
  display: grid;              /* always inside tray */
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.55),
              inset 0 1px 0 rgba(255,255,255,.12);
  z-index: 200;
  pointer-events: auto;
}

/* ===== HANGER TRAY (yesterday layout + glow-only polish) ===== */

/* Wide tray (>=5 & <=20). 2.0 wardrobe tray: the sides keep 18px clear and the bottom 24px, so
   every circle sits inside the rounded box and the close button never touches the last row or
   "Next reward" (was 14px 14px 10px). */
.hanger-tray.grid{
  width:min(380px,92vw);
  border-radius:48px;
  padding:14px 18px 24px;
  overflow:visible;
  box-sizing:border-box;
}
/* Compact wide tray (>=21); 2.0 wardrobe tray: as above (was 12px 12px 10px) */
.hanger-tray.grid-compact{
  width:min(420px,94vw);
  border-radius:40px;
  padding:12px 16px 24px;
  overflow:visible;
  box-sizing:border-box;
}

/* Close button (half outside) */
.tray-close{
  position:absolute; left:50%; bottom:-16px; transform:translateX(-50%);
  width:30px; height:30px; border-radius:999px;
  background:rgba(20,20,20,.92);
  border:1px solid rgba(255,255,255,.28);
  color:var(--green);
  display:grid; place-items:center;
  font-size:16px; cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  z-index:2;
}

/* Rows / grids (unchanged ordering) */
.tray-list{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:flex-start}
/* 2.0 wardrobe tray: the columns shrink on narrow phones instead of spilling past the box
   (were fixed at 58px and 40px); at full size nothing moves. */
.hanger-tray.grid .tray-list{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,58px));
  justify-content:center;
  align-content:start;
  gap:12px 14px;
}
.hanger-tray.grid-compact .tray-list{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,40px));
  justify-content:center;
  align-content:start;
  gap:10px 10px;
}

/* Thumbs */
.thumb{
  width:62px;height:62px;border-radius:50%;overflow:hidden;
  border:1.5px solid rgba(255,255,255,.22);         /* subtle border */
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);   /* inner line */
  pointer-events:auto;                               /* ✅ clickable */
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  transition:box-shadow .25s ease, border-color .25s ease;
}
.hanger-tray.grid .thumb{width:100%;max-width:58px;height:auto;aspect-ratio:1;justify-self:center}            /* 2.0: fits its column */
.hanger-tray.grid-compact .thumb{width:100%;max-width:36px;height:auto;aspect-ratio:1;justify-self:center}     /* 2.0: fits its column */
/* 2.0 wardrobe tray: "Next reward" in the first or last column of the compact tray stays inside the box */
.hanger-tray.grid-compact .tray-list > .milestone:nth-child(7n+1) .milestone-label{ align-self:flex-start; }
.hanger-tray.grid-compact .tray-list > .milestone:nth-child(7n) .milestone-label{ align-self:flex-end; }
.thumb img{width:100%;height:100%;object-fit:contain;display:block}

/* === Milestone thumbs: keep base border + inner, add glow === */
.thumb.milestone{
  border:1.5px solid rgba(255,255,255,.22);         /* same as normal */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),            /* keep inner */
    0 0 18px var(--glow-color, #34FFE7);            /* colored glow */
}
/* Hints */
.hint{
  width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;background:var(--glass-bg);
  border:1.5px solid var(--glass-bd);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 4px 12px rgba(0,0,0,.35);
  opacity:.95; margin:0 auto;
}
.hanger-tray.grid .hint{width:26px;height:26px}
.hanger-tray.grid-compact .hint{width:20px;height:20px}
.hint.glass{
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border:1.5px solid rgba(255,255,255,.35);
  box-shadow:0 4px 12px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.45);
}

/* === GEM: glow ring only (no inner border/fill) === */
.hint.gem{
  width:28px;height:28px;
  background:transparent; border:none; color:#34FFE7;
  box-shadow:
    0 0 0 2px #34FFE7,
    0 0 18px rgba(52,255,231,.85),
    0 0 28px rgba(52,255,231,.65);
  animation:gemPulse 2.8s ease-in-out infinite;
}
.hanger-tray.grid-compact .hint.gem{width:22px;height:22px}
.hint.gem .jb-icon{font-size:16px}
.hanger-tray.grid-compact .hint.gem .jb-icon{font-size:13px}

@keyframes gemPulse{
  0%,100%{ box-shadow:0 0 0 2px #34FFE7, 0 0 16px rgba(52,255,231,.7), 0 0 28px rgba(52,255,231,.55) }
  50%{    box-shadow:0 0 0 2px #34FFE7, 0 0 28px rgba(52,255,231,1), 0 0 38px rgba(52,255,231,.85) }
}

/* Milestone row (tiny tighten) */
.milestone{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px}
.milestone .milestone-label{
  font-size:11px;font-weight:700;line-height:1.2;color:#34FFE7;text-align:center;white-space:nowrap;
  margin:2px 0 0;
}

/* Tiny shave when only hints precede the milestone row */
.hanger-tray .tray-list :is(.hint,.milestone) + .milestone { margin-top:2px; }

.hint.star{width:30px;height:30px;background:var(--yellow);border:1.5px solid var(--yellow);color:#000;box-shadow:0 0 14px rgba(255,251,0,.9)}

/* 2.0 wardrobe tray with the orbs' new look (Jason, November 10; the page writes .tray-new and .next-reward only
   then): "Next reward" is the size of a piece, in line with the pieces and the beads: the next gem (his art; it
   sparkles once the tray is open) over a little glow of its color (--next, the ring's own color), the words circling it
   slowly. (November 10 it sat in a dark bubble with a fine ring; November 11, Jason: no circle.)
   The words are one small picture, turned by the compositor and only while the tray is open (a closed tray is not
   drawn at all); at half speed with Reduce Motion. */
.hanger-tray.tray-new .tray-list > .next-reward.milestone{ display:grid; grid-template-columns:minmax(0,1fr); place-items:center; gap:0; margin-top:0; }
/* The beads, one for each piece still to go (Jason, November 10: no color tint, no glass shine, "it should feel more
   futuristic"): a point of light in a hairline ring, in the middle of its place. A light runs along them to the bubble
   (--s, 0 to 1, written by the page: how far along each bead is), in step with the bubble's own breath; opacity only,
   and only while the tray is open. */
.hanger-tray.tray-new .hint.glass{
  position:relative; align-self:center; width:14px; height:14px; border:0; border-radius:50%; opacity:1;
  background: radial-gradient(circle, #fff 0 15%, rgb(190 220 255 / .5) 24%, rgb(190 220 255 / 0) 40%);
  box-shadow: inset 0 0 0 1px rgb(190 220 255 / .32);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.hanger-tray.tray-new .hint.glass::after{
  content:""; display:block; position:absolute; inset:-3px; border-radius:50%; pointer-events:none;
  -webkit-mask:none; mask:none; padding:0;
  background: radial-gradient(circle, rgb(235 245 255 / .95) 0 18%, rgb(190 220 255 / .35) 34%, rgb(190 220 255 / 0) 62%);
  box-shadow: inset 0 0 0 1px rgb(235 245 255 / .85), 0 0 10px rgb(190 220 255 / .55);
  opacity:0; animation: jbNextNode 3.4s ease-in-out infinite; animation-delay: calc((var(--s, 1) - 1) * 1.3s); will-change: opacity;
}
@keyframes jbNextNode{ 0%,32%{ opacity:0; } 50%{ opacity:1; } 68%,100%{ opacity:0; } }
.hanger-tray.grid-compact.tray-new .hint.glass{ width:12px; height:12px; }
.next-bubble{
  position:relative; flex:none; width:65px; aspect-ratio:1; border-radius:50%;   /* a piece's own size, its border included */
  container-type:inline-size;             /* (no circle, November 11: the gem over a little glow, the words round it) */
}
/* a little glow of its color behind the gem; it breathes softly (opacity only: the compositor's work) */
.next-bubble::before{
  content:""; position:absolute; inset:10%; border-radius:50%; pointer-events:none; z-index:-1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--next, #34FFE7) 60%, transparent), color-mix(in srgb, var(--next, #34FFE7) 30%, transparent) 38%, color-mix(in srgb, var(--next, #34FFE7) 9%, transparent) 70%, transparent);
  animation: jbNextGlow 3.4s ease-in-out infinite; will-change: opacity;
}
@keyframes jbNextGlow{ 0%,100%{ opacity:.3; } 50%{ opacity:.9; } }
.hanger-tray.grid .next-bubble{ width:calc(100% + 3px); max-width:61px; margin:0 -1.5px; }
/* the compact tray's places are 36 px or less: too small for the words, so its bubble is 12 px larger than its place
   (48 px at most) and reaches into the gaps; the tray keeps 4 px more under its last row, clear of the close button */
.hanger-tray.grid-compact .next-bubble{ width:calc(100% + 12px); max-width:48px; margin:-6px; }
.hanger-tray.grid-compact.tray-new{ padding-bottom:28px; }
.next-words{
  position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none;
  fill: color-mix(in srgb, var(--next, #34FFE7) 55%, #fff);
  font-family:'Jura',sans-serif; font-weight:700; text-anchor:middle;
  animation: jbNextTurn 26s linear infinite; will-change: transform;
}
@keyframes jbNextTurn{ to{ transform: rotate(360deg); } }
.next-bubble .next-gem{ position:absolute; left:20%; top:20%; width:60%; height:60%; display:block; }
.next-words > g{ stroke: rgb(0 0 0 / .6); stroke-width: 2.4px; paint-order: stroke; stroke-linejoin: round; letter-spacing: .12em; }   /* a fine dark edge on the letters and stars (not on the circle they stand on): they read on any page; the letters a little apart (Jason, November 11: "can we slightly space out the letters?"; the em is the letters' own size) */
/* his gem, as everywhere (assets/css/jb-dust.css, which is only there with Diamond Dust on): the refined look until its sparkle is live */
.next-gem.jbx-gemstone > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; transition:opacity .45s ease; }
.next-gem.jbx-gemstone > .jbx-gs-base{ opacity:0; }
.next-gem.jbx-gemstone.is-live > .jbx-gs-base{ opacity:1; }
.next-gem.jbx-gemstone.is-live > .jbx-gs-still{ opacity:0; }
.next-gem > .jbx-gs-c{ position:absolute; z-index:1; pointer-events:none; }
/* a ring with no gem of his (25, 30): the gem icon, in the ring's color */
.next-bubble .next-icon{ display:grid; place-items:center; color: var(--next, #34FFE7); }
.next-icon .jb-icon{ font-size:22px; font-size:38cqw; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--next, #34FFE7) 80%, transparent)); }

/* 2.0 wardrobe with the orbs' new look, the pieces (Jason, November 11, from pictures of five versions: "I LOVE D,
   mark 3, but ... a faint white glow behind the in-between pieces, ... make the glow pulse for whatever item they are
   looking at (so no ring) ... remove the circle from the next reward and have the gem sparkle with a little glow
   behind it, and the next reward can still rotate around it"):
   - no circles: each piece stands free (its picture has no background), a touch larger, with a fine light outline and
     a faint white glow, so a dark piece still reads over the glass;
   - a piece that earned a gem glows in that gem's color (--glow-color, as its ring did) and carries the gem; the gems'
     pictures are loaded the first time the wardrobe opens (assets/js/jb-orbs-new.js);
   - the piece you are looking at: its glow pulses gently (the same picture again with a stronger light, faded in
     and out: opacity only; a breath every 3.4 s, never fully out, never at its full strength). Nothing else marks it (until November 11 a point of light sat under it; Jason, from his
     phone: "the white dot underneath is too distracting");
   - "Next reward" (above) has no circle.
   The glows are filters on small still pictures: drawn once when the wardrobe opens, never animated. Nothing here is
   drawn, loaded or animated while the wardrobe is closed. */
.thumb .thumb-pulse, .ring-gem{ display:none; }
.hanger-tray.tray-new .tray-list > .thumb{
  position:relative; overflow:visible; border-color:transparent; border-radius:0; background-image:none; box-shadow:none;
}
.hanger-tray.tray-new .tray-list > .thumb > img{
  transform: scale(1.12);
  filter: drop-shadow(0 0 .6px rgb(255 255 255 / .9)) drop-shadow(0 0 6px rgb(255 255 255 / .36));
}
.hanger-tray.tray-new .tray-list > .thumb.milestone > img{
  filter: drop-shadow(0 0 .6px rgb(255 255 255 / .95)) drop-shadow(0 0 5px var(--glow-color, #34FFE7)) drop-shadow(0 0 12px color-mix(in srgb, var(--glow-color, #34FFE7) 65%, transparent));
}
/* the piece you are looking at */
.hanger-tray.tray-new .tray-list > .thumb > .thumb-pulse{
  display:block; position:absolute; left:0; top:0; width:100%; height:100%; object-fit:contain; pointer-events:none;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 11px rgb(255 255 255 / .85));
  opacity:.2; animation: jbTrayPulse 3.4s ease-in-out infinite; will-change: opacity;   /* a slow, gentle breath, in step with the next reward's own (3.4 s) */
}
.hanger-tray.tray-new .tray-list > .thumb.milestone > .thumb-pulse{
  filter: drop-shadow(0 0 5px var(--glow-color, #34FFE7)) drop-shadow(0 0 13px var(--glow-color, #34FFE7));
}
@keyframes jbTrayPulse{ 0%,100%{ opacity:.2; } 50%{ opacity:.85; } }
/* the gem a piece earned */
.hanger-tray.tray-new .ring-gem{
  display:grid; place-items:center; position:absolute; right:-6px; bottom:-6px; z-index:1; width:23px; height:23px; border-radius:50%;
  background: rgb(6 8 12 / .88);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow-color, #34FFE7) 78%, transparent), 0 0 9px -1px var(--glow-color, #34FFE7);
}
.hanger-tray.tray-new .tray-list > .thumb .ring-gem > img{ width:17px; height:17px; object-fit:contain; transform:none; filter:none; }
.hanger-tray.tray-new.grid-compact .ring-gem{ width:17px; height:17px; right:-5px; bottom:-5px; }
.hanger-tray.tray-new.grid-compact .tray-list > .thumb .ring-gem > img{ width:12px; height:12px; }

.tray-foot{margin-top:12px;font-size:12px;font-weight:600;text-align:center;color:#34FFE7}
.tray-foot.cyan{color:#34FFE7}

  /* -------- MODALS -------- */
  .overlay{position:fixed;inset:0;z-index:200;display:none !important;align-items:center;justify-content:center;padding:20px}
  .overlay::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(3px)}
  .overlay.is-open{display:flex !important}

  .modal-card{
    position:relative;z-index:1;width:min(760px,92vw);
    border-radius:26px;border:1px solid var(--glass-bd);background:var(--glass-bg);
    -webkit-backdrop-filter:blur(4.5px) saturate(2.2);backdrop-filter:blur(4.5px) saturate(2.2);
    box-shadow:0 10px 40px rgba(0,0,0,.6);
    display:flex;flex-direction:column;max-height:min(78dvh,640px);padding:14px 18px 16px;overflow:hidden;
  }
  .modal-card::before{
    content:"";position:absolute;inset:0;border-radius:inherit;
    background:radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.14), transparent 42%),
               linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
    pointer-events:none;mix-blend-mode:screen;z-index:0;
  }

  .modal-close{
    position:absolute; top:10px; right:12px; z-index:60;
    width:34px; height:34px; border-radius:999px; display:grid; place-items:center; line-height:1; font-size:18px;
    color:var(--green); background:rgba(0,0,0,.58); border:1px solid rgba(255,255,255,.22);
    backdrop-filter:blur(2px) saturate(1.1); -webkit-backdrop-filter:blur(2px) saturate(1.1);
    filter:drop-shadow(0 4px 10px rgba(0,0,0,.55));
    transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
    pointer-events:auto; cursor:pointer;
  }
  .modal-close:hover,.modal-close:focus{
    background:rgba(0,0,0,.72); border-color:rgba(255,255,255,.32); box-shadow:0 0 0 2px rgba(52,255,231,.25);
    transform:translateY(-1px);
  }

  @media (max-width:480px){.modal-card{max-height:74dvh}}
  .modal-card.compact{max-height:min(68dvh,560px);padding-top:12px}
  .modal-card.compact .perk-card{border:none;background:transparent;box-shadow:none;padding:0}

  .modal-title{
    position:sticky;top:0;z-index:2;margin:0 0 8px;padding:10px 0 8px;
    font-family:'Orbitron',sans-serif;font-size:20px;letter-spacing:.4px;text-align:center;
    background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.08);
  }

.perk-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 0 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 2px;
  flex: 1 1 auto;
}
.modal-card.compact .perk-list { margin-top: 4px; }

.perk-card {
  border: 1px solid var(--glass-bd);
  border-radius: 18px;
  padding: 12px;
  background: var(--glass-bg);
  text-align: center;
}

.perk-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  justify-content: center;
}

.perk-icon,
.vip-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f0f0f;
  border: 1px solid var(--glass-bd);
}
.perk-icon.special,
.vip-icon.special {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.perk-img,
.vip-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 1px solid var(--glass-bd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.perk-img.is-banner,
.vip-img.is-banner {
  width: 100%;
  height: auto;
  max-height: 160px;
  border-radius: 16px;
  margin-top: 4px;
}

/* Title + Offer: cohesive but distinct */
.perk-title,
.perk-offer {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
}

.perk-title {
  text-transform: uppercase; /* All caps for distinction */
}

.perk-offer {
  letter-spacing: 0.03em;    /* Subtle spacing for readability */
}

/* Hide if no offer text */
.perk-offer:empty { display: none; }

/* Description + Details flow inline */
.perk-desc,
.perk-details {
  display: inline;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  margin: 0;
}
.perk-details { font-weight: 700; }
.perk-desc + .perk-details::before { content: " "; }

/* Hide if no description or details */
.perk-desc:empty,
.perk-details:empty { display: none; }

/* Actions layout */
.perk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}
/* A reward's code above its button, centered, on every screen (Jason, November 18, 2026: as on the phone; on
   wider screens the two sat side by side). Rewards only: the classic window and Diamond Dust's gems window.
   VIP Insider's window keeps its row (on a phone on its side its card must still show whole). */
#perkModal .perk-actions,
.jbd-gems .perk-actions {
  flex-direction: column;
  align-items: center;
}
.perk-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.perk-action-group .btn,
.perk-action-group .pill {
  margin: 0;
  min-width: 140px;
  max-width: 200px;
  padding: 15px 22px;
}
.perk-action-group .subtext {
  font-size: 12px;
  opacity: .9;
  text-align: center;
  line-height: 1.3;
  white-space: pre-line; /* makes \A render as a line break */
}

/* Force "Expires..." onto a new line if present */
.perk-action-group .subtext:before {
  content: attr(data-prefix);
}

/* Pill status: prevent wrapping */
.perk-actions .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

  /* Note modal */
  .note-flex{display:flex;gap:12px;align-items:flex-start;text-align:left}
  .modal-card .note-flex div{text-align:left}
  .note-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid #1d1d1d}

/* ================================
   DESKTOP PHONE CONTAINMENT (CLEAN TOP ALIGNMENT)
================================ */

/* v1.5: scoped to phone presentation (demo XUIDs, or every XUID when responsive_layouts is off).
   :where() keeps the v1.4 specificity unchanged. */
@media (min-width: 821px) {

  :root{
    --desktop-phone-w: 420px;
    --desktop-phone-r: 28px;
  }

  /* ===== OUTER BACKDROP ===== */
  :where(html:not([data-layout="responsive"])) body{
    background:#000;
  }

  :where(html:not([data-layout="responsive"])) body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
      radial-gradient(1200px 800px at 50% 20%,
      rgba(130,52,255,.25),
      rgba(0,0,0,.92));
    z-index:0;
    pointer-events:none;
  }

  /* ===== CENTER STAGE (NO TOP PADDING) ===== */
  :where(html:not([data-layout="responsive"])) .frame-stage{
    position:relative;
    z-index:1;
    display:flex;
    justify-content:center;
    padding:0;   /* ← this removes the floating border gap */
    margin:0;
  }

/* ===== PHONE CONTAINER ===== */
:where(html:not([data-layout="responsive"])) .frame{
  position:relative;

  /* Smooth fluid behavior */
  width:min(var(--desktop-phone-w), 92vw);
  max-width:var(--desktop-phone-w);

  border-radius:var(--desktop-phone-r);
  overflow:hidden;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 40px 90px rgba(0,0,0,.70);

  transition: width .25s ease;
}

  /* ===== CONTAIN BACKGROUND VIDEO ===== */
  :where(html:not([data-layout="responsive"])) .bg-video-wrap{
    position:fixed;
    inset:0;
    left:50%;
    transform:translateX(-50%);
    width:var(--desktop-phone-w);
    height:100dvh;
    border-radius:var(--desktop-phone-r);
    overflow:hidden;
    z-index:0;
  }

  :where(html:not([data-layout="responsive"])) .bg-video{
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
  }

  /* ===== HERO LAYERS (NO TOP OVERRIDES) ===== */
  :where(html:not([data-layout="responsive"])) .fixed-hero-ui,
  :where(html:not([data-layout="responsive"])) .fixed-hero-visual{
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:var(--desktop-phone-w);
    max-width:var(--desktop-phone-w);
  }

  :where(html:not([data-layout="responsive"])) .fixed-hero-ui{
    padding-left:12px;
    padding-right:12px;
    box-sizing:border-box;
  }

  :where(html:not([data-layout="responsive"])) .logoRow{
    width:100% !important;
    max-width:100% !important;
  }

  /* ===== CONTAIN MODALS ===== */
  :where(html:not([data-layout="responsive"])) .overlay{
    left:50% !important;
    transform:translateX(-50%) !important;
    width:var(--desktop-phone-w) !important;
    max-width:var(--desktop-phone-w) !important;
  }

}

/* ===================================
   TRUE MOBILE MODAL LOCK (<= 820px)
=================================== */

@media (max-width: 820px){

  .modal-card{
    width: 92vw !important;
    max-width: 92vw !important;
    border-radius: 22px;
  }

  .modal-card.compact{
    width: 92vw !important;
    max-width: 92vw !important;
  }

  /* Ensure action buttons stack like real mobile */
  .perk-actions{
    flex-direction: column;
    align-items: center;
  }

  .perk-action-group .btn{
    width: 100%;
    max-width: 320px;
  }

}
/* (v1.5: removed one stray closing brace that followed this block) */


/* ===== Care guide modal (was inline in <body>) ===== */
  /* Care modal sizing */
  #careModal .modal-card {
    max-height: 90vh;   /* use most of the screen */
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .care-vertical {
    flex: 1 1 auto;
    max-height: none;   /* remove small cap */
    overflow-y: auto;   /* scroll if content overflows */
    padding-right: 6px; /* prevent scrollbar overlap */
  }

  .care-pill {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;   /* slightly roomier */
    margin: 12px 0;
    border: 1px solid var(--glass-bd);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(4.5px) saturate(2.0);
    backdrop-filter: blur(4.5px) saturate(2.0);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.25);
    text-align: left;
  }

  .care-pill img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .care-pill .txt :is(h3,h4) {
  margin: 0;
  font-size: 16px;   /* original headline size */
  line-height: 1.2;
}

.care-pill .txt p {
  margin: 0;
  font-size: 14px;   /* original detail text */
  opacity: .9;
}

  .care-do .txt :is(h3,h4),
  .care-do .txt p { color: var(--green); }

  .care-dont .txt :is(h3,h4),
  .care-dont .txt p { color: #FF344C; }

  .care-pill.first { border-radius: 30px; }

/* Until pad is computed, prevent the scroll viewport from catching taps */
/* Until pad is computed, prevent the scroll viewport from catching taps */
body:not([data-pad-ready="1"]) .scroll-stage .viewport { pointer-events: none !important; }

/* =====================================================================================
   JB AUTHENTIC v1.5 — LIQUID GLASS-INSPIRED REFINEMENT
   Everything below is scoped to html.ui-v15 (config/flags.php → 'ui_refresh').
   Turning the flag off restores the v1.4 look exactly (the rules above are untouched).
   Principles: keep the neon green, purple bubbles, yellow VIP and the theme videos;
   one directional light (top-left rim + soft sheen); no blend modes; one blur per modal.
   ===================================================================================== */
.ui-v15{
  --jb-green:#34FF82; --jb-purple:#8234FF; --jb-yellow:#FFFB00; --jb-pink: var(--pink); --jb-cyan: var(--cyan);
  --jb-accent: var(--theme-accent, #34FFE7);
  --jb-ink: 7 9 15;
  --jb-holo-stops: #34FFE7, #9AC4F8, #FFB2E6, #FDFD96, #00FF99, #34FFE7;   /* the holoPulse title palette */
  --jb-sheen: radial-gradient(130% 80% at 22% -30%, rgb(255 255 255 / .08), rgb(255 255 255 / 0) 58%);
  --jb-shadow-2: 0 2px 6px rgb(0 0 0 / .26), 0 22px 56px rgb(0 0 0 / .5);
  /* v1.5.1: one hairline language for every glass edge (≈ 2 device pixels on an iPhone) */
  --jb-hair: .75px;
  --jb-hairline: inset 0 0 0 var(--jb-hair) rgb(255 255 255 / .14);
  --jb-catchlight: inset 0 .5px 0 rgb(255 255 255 / .26);
  --jb-ease: cubic-bezier(.2,.8,.2,1);
  --jb-dur-1: .16s; --jb-dur-2: .26s;
  --jb-focus: 0 0 0 2px #000, 0 0 0 4px var(--jb-green);
}

/* ---------- prism glass: title capsule, pills, registration card ----------
   Clear-bodied lens: a light blur that keeps the holographic video readable through the
   glass, a smoky core only where the text sits, and the edge doing the work: a thin
   holographic prism rim with white glints (::after, below), a top catch-light and a lower
   "caustic" lip tinted by the theme accent. Scrolling turns the prism, like tilting
   holographic foil (scroll-driven, so it costs nothing while idle).
   v1.5.1: finer rim, softer lip and shadows, less blur/saturation (clearer, less frosted);
   the glint is static so scrolling only repaints the thin rim, not the blurred body. */
@property --jb-holo { syntax: '<angle>'; inherits: true; initial-value: 200deg; }

.ui-v15 .glass{
  --jb-core: .24; --jb-edge: .05;
  border: 1px solid rgb(255 255 255 / .2);                /* fallback rim when masks are unsupported */
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0) 2%, rgb(255 255 255 / .07) 16%, rgb(255 255 255 / 0) 36%),
    radial-gradient(closest-side, rgb(var(--jb-ink) / var(--jb-core)), rgb(var(--jb-ink) / var(--jb-edge)));
  -webkit-backdrop-filter: blur(2px) saturate(1.15) brightness(.78);
  backdrop-filter: blur(2px) saturate(1.15) brightness(.78);
  box-shadow:
    var(--jb-catchlight),
    inset 0 -7px 10px -9px color-mix(in srgb, var(--jb-accent) 45%, transparent),
    0 5px 14px -9px rgb(0 0 0 / .5);
  text-shadow: 0 1px 1.5px rgb(0 0 0 / .62), 0 0 6px rgb(0 0 0 / .32);
}
.ui-v15 .glass::before{ display:none; }                 /* replaces the blend-mode highlight */
.ui-v15 .cap.glass{ font-size: 15px; letter-spacing: .01em; padding: 9px 15px; }
.ui-v15 .titleGlass{ padding: 11px 20px; max-width: 94%; }
.ui-v15 .titleGlass.glass{
  --jb-core: .32; --jb-edge: .07;
  -webkit-backdrop-filter: blur(2.5px) saturate(1.2) brightness(.72);
  backdrop-filter: blur(2.5px) saturate(1.2) brightness(.72);
  box-shadow:
    var(--jb-catchlight),
    inset 0 -8px 12px -10px color-mix(in srgb, var(--jb-accent) 50%, transparent),
    0 6px 18px -10px rgb(0 0 0 / .55),
    0 0 30px -10px color-mix(in srgb, var(--jb-accent) 26%, transparent);
}
.ui-v15 .titleGlass h1{
  white-space: normal; overflow: visible; text-wrap: balance;      /* long names wrap instead of being cut */
  letter-spacing: .015em; line-height: 1.15;
  font-size: clamp(17px, 5vw, 24px);
  text-shadow: none;                         /* a text-shadow paints over background-clip:text gradients */
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .6));   /* one shadow: this text repaints every frame (holoPulse) */
}
.ui-v15 .regblock{ border-radius: 24px; padding: 22px 20px; }
.ui-v15 .regblock.glass{
  --jb-core: .36; --jb-edge: .12;
  -webkit-backdrop-filter: blur(3.5px) saturate(1.15) brightness(.7);
  backdrop-filter: blur(3.5px) saturate(1.15) brightness(.7);
}
.ui-v15 .regblock .purple{ color: #B08CFF; }            /* v1.4 #8234FF ≈ 3.9:1 on black → ≈ 8:1 */
.ui-v15 .regblock .purple a{ color: #CDB4FF !important; text-underline-offset: 3px; }
.ui-v15 .regblock .muted{ opacity: .9; }

/* Prism rim: a hairline holographic ring + white glints, masked to the edge so the body
   stays clear. (v1.5 r1 used padding-box/border-box backgrounds, which need an opaque fill.) */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor){
  .ui-v15 :is(.glass, .hanger-tray, .modal-card){ border-color: transparent; }
  .ui-v15 :is(.glass, .hanger-tray, .modal-card)::after{
    content:""; position:absolute; inset:-1px; border-radius:inherit; padding:var(--jb-hair); pointer-events:none;
    background:
      linear-gradient(140deg, rgb(255 255 255 / .9) 0%, rgb(255 255 255 / 0) 22%,
                      rgb(255 255 255 / 0) 72%, rgb(255 255 255 / .45) 100%),
      conic-gradient(from var(--jb-holo), var(--jb-holo-stops));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .78;
  }
  .ui-v15 .modal-card::after{ inset:0; border-radius: 27px; }   /* the card clips overflow at its padding edge */
  .ui-v15 .hint.glass::after{ opacity: .45; }
}
/* Glass lens (desktop Chromium only; html.jb-lens is added by JS after feature checks). */
.ui-v15.jb-lens .wrap .cap.glass{ backdrop-filter: url(#jbLens) saturate(1.15) brightness(.78); }
.ui-v15.jb-lens .wrap .titleGlass.glass{ backdrop-filter: url(#jbLens) saturate(1.2) brightness(.72); }

@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .ui-v15 .wrap .glass{ animation: jbPrism linear both; animation-timeline: view(); }
  }
}
@keyframes jbPrism{ from{ --jb-holo: 110deg; } to{ --jb-holo: 470deg; } }

/* v1.5.4: iPhone Safari could paint the title's prism rim (a masked overlay) without its mask for a
   moment, filling the capsule with the bright rim gradient. Where background-clip: border-area is
   supported, the title draws the same rim inside its own .75 px border instead, so it can only ever
   paint the edge. (Same look: ::after's .78 opacity is folded into the colours; padding grows by the
   .25 px the border lost, so nothing moves. Contrast/transparency preferences below still win.) */
@supports (background-clip: border-area){
  .ui-v15 .titleGlass{
    border: var(--jb-hair) solid transparent;
    padding: calc(12px - var(--jb-hair)) calc(21px - var(--jb-hair));
    background-image:
      linear-gradient(140deg, rgb(255 255 255 / .70) 0%, rgb(255 255 255 / 0) 22%, rgb(255 255 255 / 0) 72%, rgb(255 255 255 / .35) 100%),
      conic-gradient(from var(--jb-holo), #34FFE7C7, #9AC4F8C7, #FFB2E6C7, #FDFD96C7, #00FF99C7, #34FFE7C7),
      linear-gradient(115deg, rgb(255 255 255 / 0) 2%, rgb(255 255 255 / .07) 16%, rgb(255 255 255 / 0) 36%),
      radial-gradient(closest-side, rgb(var(--jb-ink) / var(--jb-core)), rgb(var(--jb-ink) / var(--jb-edge)));
    background-clip: border-area, border-area, border-box, border-box;
    background-origin: border-box, border-box, padding-box, padding-box;
  }
  .ui-v15 .titleGlass::after{ display: none; }
}

/* ---------- legibility scrim over the theme video ---------- */
.ui-v15 .bg-video-wrap::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 42%, rgb(0 0 0 / .34) 100%);
}

/* ---------- bubble row: purple glass orbs (green rim kept) ---------- */
.ui-v15 .bubble-btn{
  background:
    radial-gradient(75% 55% at 34% 22%, rgb(255 255 255 / .50), rgb(255 255 255 / 0) 62%),
    radial-gradient(120% 120% at 50% 125%, rgb(20 0 50 / .55), transparent 62%),
    color-mix(in srgb, var(--jb-purple) 80%, transparent);
  border: 1.5px solid var(--jb-green);
  box-shadow: inset 0 .5px 1px rgb(255 255 255 / .5), inset 0 -3px 7px rgb(0 0 0 / .26),
              0 6px 16px rgb(130 52 255 / .38), 0 0 0 .75px rgb(0 0 0 / .28);
  /* v1.5.1: no backdrop blur — the orb is ~80% opaque, so the blur was invisible but cost a
     GPU pass over the playing video on every frame */
  transition: transform var(--jb-dur-1) var(--jb-ease), box-shadow var(--jb-dur-2) var(--jb-ease);
}
.ui-v15 .bubble-btn .jb-icon{ filter: drop-shadow(0 1px 0 rgb(0 0 0 / .35)); }
.ui-v15 .bubble-btn:active{ transform: scale(.93); }
@media (hover:hover){
  .ui-v15 .bubble-btn:hover{ transform: translateY(-1px);
    box-shadow: inset 0 .5px 1px rgb(255 255 255 / .55), inset 0 -3px 7px rgb(0 0 0 / .24), 0 10px 24px rgb(130 52 255 / .5), 0 0 0 .75px rgb(0 0 0 / .28); }
}
.ui-v15 .bubble-vip{
  background:
    radial-gradient(75% 55% at 34% 22%, rgb(255 255 255 / .28), rgb(255 255 255 / 0) 62%),
    rgb(16 14 4 / .78);
  border-color: var(--jb-yellow);
  box-shadow: inset 0 .5px 1px rgb(255 255 255 / .32), 0 0 16px rgb(255 251 0 / .72), 0 0 0 .75px rgb(0 0 0 / .3);
}
.ui-v15 .bubble-count{ box-shadow: 0 0 0 1.5px #0b0716, 0 2px 6px rgb(0 0 0 / .45); }

/* ---------- primary buttons: solid neon capsules with glass highlight ---------- */
.ui-v15 .buttons{ gap: 12px; }
.ui-v15 .btn{
  display:inline-flex; align-items:center; justify-content:center;   /* v1.4 padding keeps ≈47 px height */
  background: linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / 0) 50%), var(--jb-green);
  color:#03140a; letter-spacing:.06em;
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .7), inset 0 -1px 0 rgb(0 0 0 / .08),
              0 8px 22px -6px rgb(52 255 130 / .36), 0 2px 5px rgb(0 0 0 / .32);
  transition: transform var(--jb-dur-1) var(--jb-ease), box-shadow var(--jb-dur-2) var(--jb-ease);
}
.ui-v15 .btn:active{ transform: scale(.96); }
@media (hover:hover){
  .ui-v15 .btn:hover{ transform: translateY(-1px);
    box-shadow: inset 0 .5px 0 rgb(255 255 255 / .75), inset 0 -1px 0 rgb(0 0 0 / .08), 0 12px 28px -6px rgb(52 255 130 / .46), 0 2px 5px rgb(0 0 0 / .32); }
}
.ui-v15 button.btn{ font-family: inherit; }

/* ---------- modals as glass sheets (one blur layer, animated) ---------- */
/* The fade runs on the scrim and the sheet, not the overlay: an ancestor with opacity < 1
   isolates backdrop-filter, so fading the overlay made the blur pop in at the end. */
.ui-v15 .overlay{
  display:flex !important; visibility:hidden; pointer-events:none;
  transition: visibility 0s linear var(--jb-dur-2);
}
.ui-v15 .overlay.is-open{ visibility:visible; pointer-events:auto; transition: visibility 0s; }
.ui-v15 .overlay::before{
  opacity: 0; transition: opacity var(--jb-dur-2) var(--jb-ease);
  background: rgb(4 3 12 / .3);
  -webkit-backdrop-filter: blur(10px) brightness(.76); backdrop-filter: blur(10px) brightness(.76);
}
.ui-v15 .modal-card{
  border: 1px solid rgb(255 255 255 / .2); border-radius: 28px;
  background: var(--jb-sheen), rgb(9 10 18 / .38);
  -webkit-backdrop-filter: none; backdrop-filter: none;      /* the scrim already blurs */
  box-shadow: var(--jb-catchlight),
              inset 0 -12px 20px -18px color-mix(in srgb, var(--jb-accent) 40%, transparent), var(--jb-shadow-2);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: transform .32s var(--jb-ease), opacity var(--jb-dur-2) var(--jb-ease);
}
.ui-v15 .overlay.is-open::before{ opacity: 1; }
.ui-v15 .overlay.is-open .modal-card{ opacity: 1; transform:none; }
.ui-v15 .modal-card::before{ display:none; }
.ui-v15 .modal-title{ font-size: 19px; letter-spacing: .06em; border-bottom-color: rgb(255 255 255 / .09); }
.ui-v15 .modal-close, .ui-v15 .tray-close{
  background: radial-gradient(80% 60% at 35% 25%, rgb(255 255 255 / .12), transparent 62%), rgb(12 12 20 / .7);
  border: 0;
  box-shadow: inset 0 0 0 var(--jb-hair) rgb(255 255 255 / .3), var(--jb-catchlight), 0 4px 12px rgb(0 0 0 / .4);
  -webkit-backdrop-filter: none; backdrop-filter: none; filter: none;
}
.ui-v15 .modal-close::after, .ui-v15 .tray-close::after, .ui-v15 .icon-btn::after{
  content:""; position:absolute; inset:-8px;           /* ≥ 44 px touch target, same visual size */
}
.ui-v15 .icon-btn{ position: relative; }
.ui-v15 .perk-card{
  border: 0; border-radius: 20px;
  background: rgb(255 255 255 / .025);                        /* clear, not milky */
  box-shadow: var(--jb-hairline), inset 0 .5px 0 rgb(255 255 255 / .12);
}
.ui-v15 .modal-card.compact .perk-card{ background: transparent; box-shadow: none; }   /* single reward: no inner card (v1.4) */
.ui-v15 .perk-action-group .btn{ box-sizing: border-box; }   /* v1.4: 100% width + padding overflowed the card by 8 px */
.ui-v15 :is(.perk-img, .vip-img){ border: 0; box-shadow: 0 0 0 var(--jb-hair) rgb(255 255 255 / .2), 0 6px 16px rgb(0 0 0 / .4); }
.ui-v15 .perk-icon, .ui-v15 .vip-icon{
  background: radial-gradient(70% 55% at 35% 25%, rgb(255 255 255 / .16), transparent 62%), #0d0d14;
  box-shadow: inset 0 0 0 var(--jb-hair) rgb(255 255 255 / .16), var(--jb-catchlight), 0 6px 16px rgb(0 0 0 / .4);
}
.ui-v15 .perk-icon.special, .ui-v15 .vip-icon.special{
  background: radial-gradient(70% 55% at 35% 25%, rgb(255 255 255 / .55), transparent 62%), var(--jb-yellow);
  box-shadow: 0 0 22px rgb(255 251 0 / .55);
}
.ui-v15 .perk-actions .pill{ border: 0; background: rgb(0 0 0 / .22); box-shadow: inset 0 0 0 var(--jb-hair) rgb(255 255 255 / .18); }
.ui-v15 .pill[data-code]{
  background: rgb(0 0 0 / .32); box-shadow: none; border: var(--jb-hair) dashed color-mix(in srgb, var(--jb-green) 55%, transparent);
  font-family: 'Orbitron', sans-serif; letter-spacing: .08em; padding: 8px 12px;
}

/* ---------- wardrobe tray ---------- */
.ui-v15 .hanger-tray{
  border: 1px solid rgb(255 255 255 / .2);
  background: var(--jb-sheen), rgb(var(--jb-ink) / .3);
  -webkit-backdrop-filter: blur(7px) saturate(1.15) brightness(.76); backdrop-filter: blur(7px) saturate(1.15) brightness(.76);
  box-shadow: var(--jb-catchlight),
              inset 0 -10px 16px -14px color-mix(in srgb, var(--jb-accent) 45%, transparent), var(--jb-shadow-2);
}
.ui-v15 .hanger-tray.is-open{ animation: jbTrayIn .26s var(--jb-ease) both; transform-origin: top right; }
@keyframes jbTrayIn{ from{ opacity:0; transform: translateY(-6px) scale(.96); } to{ opacity:1; transform:none; } }
.ui-v15 .thumb{ border-color: rgb(255 255 255 / .22); box-shadow: var(--jb-catchlight), 0 4px 12px rgb(0 0 0 / .32); }
.ui-v15 .hint.glass{ -webkit-backdrop-filter: none; backdrop-filter: none; }   /* tiny placeholders: no blur pass each */
.ui-v15 .thumb.milestone{ box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 0 0 1.5px var(--glow-color, #34FFE7), 0 0 18px var(--glow-color, #34FFE7); }

/* ---------- care guide ---------- */
.ui-v15 .care-pill{
  border: 0;
  background: rgb(255 255 255 / .03);                         /* clear, not milky */
  box-shadow: var(--jb-hairline), inset 0 .5px 0 rgb(255 255 255 / .14);
  -webkit-backdrop-filter: none; backdrop-filter: none;     /* sits inside the sheet: no nested blur */
}

/* ---------- v1.5.1: green button labels ----------
   Jura's heaviest weight is 700. v1.4 asked for 800 with no weight range declared, so browsers
   faked a bolder face; with the real variable axis the labels rendered lighter. A hairline
   stroke in the text colour restores the weight without changing font, size or spacing. */
.ui-v15 .buttons .btn{ font-weight: 700; -webkit-text-stroke: .35px currentColor; }

/* ---------- v1.5.1: close icon (SVG, geometrically centred; replaces the "×" text glyph) ---------- */
.modal-close, .tray-close{ display: grid; place-items: center; padding: 0; line-height: 0; }
.jb-x{ display: block; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tray-close .jb-x{ width: 10px; height: 10px; }

/* ---------- v1.5.1: gemstone collection row (Rewards dialog) ---------- */
.gem-row{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 0 0 10px; padding: 2px 0 10px;
  border-bottom: .75px solid rgb(255 255 255 / .08);
}
.gem-chip{
  position: relative; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: #0b0b12; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 .75px rgb(255 255 255 / .2), 0 3px 8px rgb(0 0 0 / .35);
  transition: transform .14s ease;
}
.gem-chip img{ display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.gem-chip::after{ content: ""; position: absolute; inset: -3px; border-radius: 50%; }   /* 44 px tap target */
.gem-chip:active{ transform: scale(.92); }
.gem-chip .perk-icon-fallback{ display: grid; place-items: center; width: 100%; height: 100%; color: var(--green, #34FF82); font-size: 16px; }
.perk-card:focus{ outline: none; }
.perk-card:focus-visible{ outline: 2px solid var(--green, #34FF82); outline-offset: 2px; }

/* ---------- v1.5.1: lighter compositing while a dialog is open ----------
   The page behind an open dialog is already blurred and dimmed by the scrim, so its own glass
   blur is invisible; switching it off spares iPhone Safari several blur passes over the playing
   video on every frame. */
.ui-v15 body.modal-open .frame-stage :is(.glass, .hanger-tray){ -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- copy feedback toast ---------- */
.jb-toast{
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); z-index: 400;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; color: #34FF82; font: 600 14px/1.2 'Jura', sans-serif;
  background: rgb(10 12 20 / .86); border: 1px solid rgb(255 255 255 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 10px 30px rgb(0 0 0 / .5);
  transition: opacity .2s ease, transform .2s ease;
}
.jb-toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }

/* ---------- desktop phone stage (forced-mobile demos, or all XUIDs when responsive_layouts is off) ---------- */
@media (min-width: 821px){
  .ui-v15:not([data-layout="responsive"]) body::before{
    background:
      radial-gradient(900px 640px at 50% 18%, color-mix(in srgb, var(--jb-accent) 22%, transparent), transparent 70%),
      radial-gradient(1200px 800px at 50% 30%, rgb(130 52 255 / .22), rgb(0 0 0 / .94));
  }
  .ui-v15:not([data-layout="responsive"]) .frame{
    box-shadow: 0 0 0 1px rgb(255 255 255 / .16), 0 0 0 7px rgb(0 0 0 / .45),
                0 0 0 8px rgb(255 255 255 / .06), 0 40px 100px rgb(0 0 0 / .75),
                0 0 90px color-mix(in srgb, var(--jb-accent) 18%, transparent);
  }
}

/* =====================================================================================
   JB AUTHENTIC v1.5 — RESPONSIVE LAYOUTS + ACCESSIBILITY
   html[data-layout="responsive"]: non-demo garments when responsive_layouts is on.
   Demo XUIDs (data-layout="phone") keep the v1.4 phone frame on desktop.
   ===================================================================================== */

/* Shop / Care / Contact share the row instead of overflowing (v1.4 clipped them on phones
   narrower than ~430 px and inside the 420 px desktop frame). */
.ui-v15 .buttons{ grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 410px); margin-inline: auto; }
.ui-v15 .buttons .btn{
  min-width: 0; max-width: none; box-sizing: border-box; padding-inline: 8px;
  font-size: clamp(12px, 3.4vw, 13.5px);
}
button.btn{ font-family: inherit; line-height: inherit; }   /* Care is now a <button> (it opens a dialog) */

/* Tablet portrait and squarish windows: wider column, larger product */
@media (min-width: 600px) and (min-height: 521px) and (max-aspect-ratio: 5/4){
  html[data-layout="responsive"]{ --phone-w: 560px; --hero-size: min(520px, 64vw, 46vh); }
  html[data-layout="responsive"] :is(.modal-card, .modal-card.compact){
    width: min(600px, 88vw) !important; max-width: min(600px, 88vw) !important;
  }
}

/* Two panes — product left, details right: landscape tablets and desktops, phones in
   landscape, and dual-screen foldables (one pane per screen). */
@media (min-width: 800px) and (min-height: 521px) and (min-aspect-ratio: 5/4),
       (orientation: landscape) and (max-height: 520px) and (min-width: 560px),
       (horizontal-viewport-segments: 2){
  html[data-layout="responsive"]{ --pane: 50vw; --hero-size: min(44vw, 78vh, 680px); }
  html[data-layout="responsive"] .fixed-hero-visual{
    top: 0; bottom: 0; left: 0; right: auto; width: var(--pane); align-items: center;
  }
  html[data-layout="responsive"] .fixed-hero-ui{ left: var(--pane); right: 0; }
  html[data-layout="responsive"] .logoRow{ width: min(520px, calc(100% - 32px)); }
  html[data-layout="responsive"] .frame-stage{ justify-content: flex-start; }
  html[data-layout="responsive"] .frame{ margin-left: var(--pane); flex: 1 1 auto; width: auto; max-width: none; }
  html[data-layout="responsive"] #heroSpacer{ height: calc(var(--ui-top, 76px) + 4px); }
  html[data-layout="responsive"] .scroll-stage .viewport{
    max-width: 580px; margin-inline: auto; box-sizing: border-box;
    min-height: calc(100dvh - var(--ui-top, 76px) - 4px);
    display: flex; flex-direction: column; justify-content: center;
  }
  html[data-layout="responsive"] :is(.modal-card, .modal-card.compact){
    width: min(600px, 92vw) !important; max-width: min(600px, 92vw) !important;
  }
}
@media (horizontal-viewport-segments: 2){
  html[data-layout="responsive"]{ --pane: env(viewport-segment-right 0 0, 50vw); --hero-size: min(40vw, 72vh); }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px){
  html[data-layout="responsive"]{ --hero-size: min(42vw, 84vh); }
  html[data-layout="responsive"] .scroll-stage .viewport{ justify-content: flex-start; }
  /* November 10 (Jason: "Yes, phones too"): a phone turned on its side. Every window may be as tall as the screen,
     less the 20 pt the scrim keeps round it (it was 78% of the height, 68% for a window with one card, and a VIP
     card's button was cut off at the window's foot). The 72 pt: the scrim's 40 and the window's own padding and
     border, which its height limit doesn't count. The same rule as for the unfolded Duo on its side, further down. */
  html[data-layout="responsive"] :is(.modal-card, .modal-card.compact){ max-height: calc(100dvh - 72px); }
  /* The demo pages too (Jason, November 10: "Yes, demos too"). They keep their phone frame (data-layout="phone"), and
     on a phone turned on its side their VIP window's button was cut off the same way. Only this one rule: the frame
     itself, and the demo pages on every other screen, are as they were. */
  html[data-layout="phone"] :is(.modal-card, .modal-card.compact){ max-height: calc(100dvh - 72px); }
  /* November 14: the same screen, since VIP Insider (draft.37) gave the VIP window its heading with one card too. The
     heading's 51 pt pushed a card like Jason's (a banner, a title, two lines, a button) past the window's foot again, and
     its button was cut off (tests/dust-page, "taps"). With one card (the compact window) a phone on its side shows no
     heading, as before draft.37; with several cards, and on every other screen, the heading stays. */
  #vipModal .modal-card.compact .vip-insider-title{ display: none; }
}

/* Keyboard focus: one consistent neon ring (pointer taps don't show it) */
.ui-v15 :is(a, button, [tabindex]):focus-visible{ outline: 2px solid var(--jb-green); outline-offset: 3px; }
.ui-v15 .bubble-vip:focus-visible{ outline-color: var(--jb-yellow); }

/* While a dialog is open the page behind does not scroll; dialog lists don't chain scroll */
html:has(> body.modal-open), body.modal-open{ overflow: hidden; }
:is(.modal-card, .perk-list, .care-vertical){ overscroll-behavior: contain; }

/* Reduced motion: stop decorative loops (float, gradient drift, spinning star, glitch) */
@media (prefers-reduced-motion: reduce){
  .fixed-hero-visual .hero-fixed img, .titleGlass h1, .bubble-vip .jb-icon-star{ animation: none !important; }
  .title-glitch .titleGlass h1::before, .title-glitch .titleGlass h1::after{ animation: none !important; opacity: 0; }
  .ui-v15 *, .ui-v15 *::before, .ui-v15 *::after{ transition-duration: .01ms !important; }
  .ui-v15 .hanger-tray.is-open{ animation: none; }
}
/* Reduce Motion with the new look (Jason, November 8: the glints and glows keep running, only the movements are
   gentler): the words turn at half speed; the lights are light, not movement, and stay. */
@media (prefers-reduced-motion: reduce){
  .next-words{ animation-duration: 52s; }
}

/* Behind a window that covers the page, the page's own endless loops hold where they are (November 11, the warm
   iPhone Duo check): the piece's float, the title's moving colors (every title style, the glitch's two passes too) and
   the old VIP star. They went on behind the Messages window, where nothing of the page can be seen (html.jb-covered,
   jb-messages.js), and behind the site's own windows and the gems window, where the page is dimmed and blurred
   (body.modal-open): there they were about a third of what the gems window cost. The orbs and the video already rest
   behind the same windows. Held, not stopped: as the window closes each goes on from the very place it was held, so
   nothing jumps or starts over. The wardrobe covers only part of the page: nothing rests behind it.
   November 12 (Jason): not behind the glass windows, the VIP, gems and care windows (body.glass-open,
   jb-microsite.js): the portal behind them keeps moving. And held behind the JB diamond's window once its black has
   faded in (html.jbd-dark, jb-diamond.js): nothing of the page shows there. */
html.jb-covered .fixed-hero-visual .hero-fixed img, html.jbd-dark .fixed-hero-visual .hero-fixed img, body.modal-open:not(.glass-open) .fixed-hero-visual .hero-fixed img,
html.jb-covered .titleGlass h1, html.jbd-dark .titleGlass h1, body.modal-open:not(.glass-open) .titleGlass h1,
html.jb-covered .titleGlass h1::before, html.jbd-dark .titleGlass h1::before, body.modal-open:not(.glass-open) .titleGlass h1::before,
html.jb-covered .titleGlass h1::after, html.jbd-dark .titleGlass h1::after, body.modal-open:not(.glass-open) .titleGlass h1::after,
html.jb-covered .bubble-vip .jb-icon-star, html.jbd-dark .bubble-vip .jb-icon-star, body.modal-open:not(.glass-open) .bubble-vip .jb-icon-star{ animation-play-state: paused; }
/* Behind the glass windows the title is on its own layer (November 12). Its moving colors are painted again on
   every frame; behind a window that cost about five times what it costs on the open page. On its own layer only the
   title is painted. Measured in Safari (the iPhone Duo simulator): the VIP window 61 to 48, the gems window 89 to 83.
   The same pixels, in true captures at two moments of its colors (Jason: "only change it if [it] looks exactly the
   same as today in real Safari, side by side"). Not on the open page: there it saved nothing. The title is already
   its own stacking context (its shadow is a filter), so nothing about its place or order changes. */
body.glass-open .titleGlass h1{ will-change: transform; }

/* ---------- progressive enhancement & user preferences ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .ui-v15 .glass, .ui-v15 .hanger-tray{ background-color: rgb(8 10 16 / .82); }
}
@media (prefers-reduced-transparency: reduce){
  .ui-v15 .glass, .ui-v15 .hanger-tray, .ui-v15 .bubble-btn{ -webkit-backdrop-filter:none; backdrop-filter:none; }
  .ui-v15 .glass, .ui-v15 .hanger-tray, .ui-v15 .modal-card{ background: rgb(10 12 18 / .94); }
  .ui-v15 .overlay::before{ background: rgb(4 3 12 / .82); }
}
@media (prefers-contrast: more){
  .ui-v15 .glass, .ui-v15 .modal-card, .ui-v15 .hanger-tray{ background: rgb(0 0 0 / .9); border: 1px solid rgb(255 255 255 / .7); }
  .ui-v15 :is(.glass, .modal-card, .hanger-tray)::after{ display: none; }
}

/* ---------- v1.5.3: holographic orbs (assets/js/jb-orbs.js) ----------
   html[data-orbs="3d"|"static"]  a richer look is being prepared; the v1.5 buttons stay as they are
   html[data-orbs-ready]          it has been drawn: the v1.5 look fades out and the orbs fade in
   Without these attributes (no modules, a contrast or transparency preference, any failure) the
   buttons are exactly v1.5. The buttons themselves (handlers, labels, badges, focus, touch area)
   never change; only how they are painted. */
@property --jb-orb-v15 { syntax: '<number>'; inherits: false; initial-value: 1; }

/* 3D: one canvas behind the row, under the buttons and the logo */
.jb-orb-canvas{ position: absolute; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s var(--jb-ease); }
html[data-orbs="3d"][data-orbs-ready] .jb-orb-canvas{ opacity: 1; }

/* The v1.5 look, restated with a fade factor (1 = identical to v1.5, 0 = clear) */
.ui-v15[data-orbs] .bubble-btn{
  background:
    radial-gradient(75% 55% at 34% 22%, rgb(255 255 255 / calc(.50 * var(--jb-orb-v15))), rgb(255 255 255 / 0) 62%),
    radial-gradient(120% 120% at 50% 125%, rgb(20 0 50 / calc(.55 * var(--jb-orb-v15))), transparent 62%),
    rgb(130 52 255 / calc(.80 * var(--jb-orb-v15)));   /* = color-mix(var(--jb-purple) 80%, transparent), as in v1.5 */
  transition: transform var(--jb-dur-1) var(--jb-ease), box-shadow .5s var(--jb-ease),
              border-color .5s var(--jb-ease), --jb-orb-v15 .5s var(--jb-ease);
}
.ui-v15[data-orbs] .bubble-vip{
  background:
    radial-gradient(75% 55% at 34% 22%, rgb(255 255 255 / calc(.28 * var(--jb-orb-v15))), rgb(255 255 255 / 0) 62%),
    rgb(16 14 4 / calc(.78 * var(--jb-orb-v15)));
}
.ui-v15[data-orbs] .bubble-btn > .jb-icon{ transition: opacity .5s var(--jb-ease); }
.ui-v15[data-orbs-ready] .bubble-btn,
.ui-v15[data-orbs-ready] .bubble-btn:is(:hover, :focus, :focus-visible){ --jb-orb-v15: 0; border-color: transparent; box-shadow: none; }
.ui-v15[data-orbs-ready] .bubble-btn > .jb-icon{ opacity: 0; animation-play-state: paused; }

/* Static: one prerendered still per orb (glass + halo), 74 px around the 46 px button */
.ui-v15[data-orbs="static"] .bubble-btn::before{
  content: ""; position: absolute; inset: -15.5px; z-index: -1; pointer-events: none;   /* from inside the 1.5 px border → 74 px */
  background: var(--jb-orb-still, none) center / 100% 100% no-repeat;
  opacity: 0; transition: opacity .5s var(--jb-ease);
}
.ui-v15[data-orbs="static"][data-orbs-ready] .bubble-btn::before{ opacity: 1; }
/* v1.5.4: the live orbs replace the stills in the same frame (their first frame is the stills' pose) */
html[data-orbs-instant] .jb-orb-canvas{ transition: none; }

/* =====================================================================================
   v1.5.5 — OPTICAL CRYSTAL GLASS
   The glass reads as precision-cut optical crystal. The title and pills are clear and dark (no
   blur over the text, so the garment and video stay sharp behind them); the registration card
   keeps a light diffusion for its paragraphs. The light is held in fine, precise features at
   the edges rather than broad glows, so the garment, the video, the holographic title and the
   orbs stay the attractions:
     rim          a hairline with tight ice-white glints (top left, bottom right), a faint icy
                  cyan → electric blue → violet split along the top, and the theme light gathered
                  under the bottom centre, fading toward the ends. Drawn with border-area, so it
                  can only ever paint the border (the masked-overlay flash fixed in v1.5.4).
     curved ends  crescent reflections that follow each curve: ice on the left, theme light on
                  the right, a dark refraction band inside each and a fine line bent deeper in.
     light lines  a tapered top catch-light (brightest upper left) and a tapered caustic focused
                  under the centre, instead of lines running all the way round.
     lensing      title and information pills only: the video behind the curved ends is gathered,
                  slightly blurred, brighter and more saturated (one masked backdrop pass each,
                  paid for by the clear centre; desktop Chromium bends it with the v1.5 #jbLens map).
     legibility   a dark plateau behind the whole line of text and a tight dark halo round each
                  letter, so text holds over busy patterns while the glass stays clear.
   Cool by design: ice, icy cyan, electric blue and violet highlights. The theme accent is cooled
   a touch (--jb-optic), more for warm or near-white accents. Painted once: no animation, blend
   modes or filters besides the lensing, and the scroll-driven prism repaint is gone. Blur passes
   over the video: 7, as in v1.5.4 (title and five pill lenses, the card), none behind a dialog.
   Every border width and padding is unchanged, so nothing moves. Browsers without border-area
   (Safari < 18.2) keep v1.5.4. With Increase Contrast none of this applies and the rules above
   work exactly as in v1.5.4; Reduce Transparency is handled at the end. The orbs are untouched.
   ===================================================================================== */
.ui-v15{
  --jb-ice: 226 248 255;      /* specular white with a cyan cast: never warm or milky */
  --jb-frost: 160 226 255;    /* icy cyan */
  --jb-volt: 66 150 255;      /* electric blue */
  --jb-prism: 178 152 255;    /* the violet edge of a prism split */
  --jb-optic: color-mix(in oklab, var(--jb-accent) 80%, rgb(var(--jb-frost)));   /* theme light, cooled */
  --jb-o-glint: linear-gradient(135deg, rgb(var(--jb-ice) / .95) 0, rgb(var(--jb-ice) / 0) 7%, rgb(var(--jb-ice) / 0) 93%, rgb(var(--jb-ice) / .5) 100%);
  --jb-o-split: linear-gradient(90deg, rgb(var(--jb-frost) / 0), rgb(var(--jb-frost) / .5) 14%, rgb(var(--jb-volt) / .4) 50%, rgb(var(--jb-prism) / .36) 86%, rgb(var(--jb-prism) / 0));   /* top edge only: fades out before the sides */
  --jb-o-hair: linear-gradient(rgb(var(--jb-frost) / .26), rgb(var(--jb-frost) / .08) 55%, rgb(var(--jb-frost) / .14));
  --jb-o-catch: linear-gradient(90deg, rgb(var(--jb-ice) / 0) 5%, rgb(var(--jb-ice) / .55) 27%, rgb(var(--jb-ice) / .12) 60%, rgb(var(--jb-ice) / 0) 85%);
}
/* warm or near-white accents are cooled further, so the glass never reads yellow, hot or milky */
.ui-v15 body.theme-gal-red{ --jb-optic: color-mix(in oklab, var(--jb-accent) 65%, rgb(var(--jb-frost))); }
.ui-v15 body.theme-glow{ --jb-optic: color-mix(in oklab, var(--jb-accent) 45%, rgb(var(--jb-frost))); }
.ui-v15 body.theme-holo-pride{ --jb-optic: color-mix(in oklab, var(--jb-accent) 20%, rgb(120 200 255)); }   /* the title carries the rainbow */

@supports (background-clip: border-area){
@media not all and (prefers-contrast: more){

  /* ---------- title capsule, information pills, registration card ---------- */
  .ui-v15 .wrap .glass{
    isolation: isolate;                                    /* keeps the lens and optics layers inside */
    border-color: transparent;                             /* today's border widths: nothing moves */
    animation: none;                                       /* no repaint while scrolling */
    -webkit-backdrop-filter: none; backdrop-filter: none;  /* clear centre */
    background-color: rgb(0 0 0 / .2);
    background-image:
      var(--jb-o-glint), var(--jb-o-split),
      radial-gradient(42% 100% at 50% 100%, color-mix(in srgb, var(--jb-optic) 70%, transparent), transparent),
      var(--jb-o-hair),
      linear-gradient(90deg, rgb(var(--jb-ink) / .1) 0, rgb(var(--jb-ink) / .36) 18px, rgb(var(--jb-ink) / .36) calc(100% - 18px), rgb(var(--jb-ink) / .1) 100%),
      radial-gradient(closest-side, rgb(var(--jb-ink) / .26), rgb(var(--jb-ink) / 0));
    background-size: auto, 100% 50%, auto, auto, auto, auto;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-clip: border-area, border-area, border-area, border-area, border-box, border-box;
    background-origin: border-box, border-box, border-box, border-box, padding-box, padding-box;
    box-shadow: 0 5px 14px -9px rgb(0 0 0 / .55), 0 0 0 .5px rgb(0 0 0 / .4);
    /* a tight dark halo round each letter (two 3 px layers reach the first ~2 px): it only shows
       where something bright sits right behind the text, so the glass stays clear elsewhere */
    text-shadow: 0 0 1px rgb(0 0 0 / .9), 0 0 3px rgb(0 0 0 / .85), 0 0 3px rgb(0 0 0 / .85), 0 1px 2px rgb(0 0 0 / .5), 0 0 8px rgb(0 0 0 / .25);
  }
  /* the curved ends and light lines, above the lensing and below the text */
  .ui-v15 .wrap .glass::after{
    content: ""; display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; padding: 0; opacity: 1; -webkit-mask: none; mask: none;
    background:
      var(--jb-o-catch) 0 0 / 100% .75px no-repeat,
      linear-gradient(90deg, transparent 24%, color-mix(in srgb, var(--jb-optic) 55%, transparent) 50%, transparent 76%) 0 100% / 100% 1px no-repeat;
    /* inset shadows offset sideways draw crescents that follow the curved ends exactly;
       listed first = on top, so each band shows only beyond the one above it */
    box-shadow:
      inset 1.75px 0 0 -.75px rgb(var(--jb-ice) / .62),                                     /* left: ice crescent */
      inset -1.75px 0 0 -.75px color-mix(in srgb, var(--jb-optic) 66%, transparent),         /* right: theme light */
      inset 3px 0 0 -1px rgb(0 0 0 / .42),                                                   /* dark refraction band */
      inset -3px 0 0 -1px rgb(0 0 0 / .42),
      inset 4.5px 0 .5px -1.5px color-mix(in srgb, var(--jb-optic) 30%, transparent),         /* light bent deeper in */
      inset -4.5px 0 .5px -1.5px rgb(var(--jb-frost) / .2);
  }

  /* the title: the hero, so the same optics a touch larger; its glow is now a tight halo */
  .ui-v15 .wrap .titleGlass.glass{
    box-shadow: 0 6px 18px -10px rgb(0 0 0 / .6), 0 0 0 .5px rgb(0 0 0 / .4),
                0 0 22px -14px color-mix(in srgb, var(--jb-optic) 30%, transparent);
  }
  .ui-v15 .wrap .titleGlass.glass::after{
    background:
      var(--jb-o-catch) 0 0 / 100% .75px no-repeat,
      linear-gradient(90deg, transparent 22%, color-mix(in srgb, var(--jb-optic) 62%, transparent) 50%, transparent 78%) 0 100% / 100% 1.25px no-repeat;
    box-shadow:
      inset 2.25px 0 0 -1px rgb(var(--jb-ice) / .66),
      inset -2.25px 0 0 -1px color-mix(in srgb, var(--jb-optic) 66%, transparent),
      inset 4px 0 0 -1.5px rgb(0 0 0 / .42),
      inset -4px 0 0 -1.5px rgb(0 0 0 / .42),
      inset 5.75px 0 .5px -2px color-mix(in srgb, var(--jb-optic) 30%, transparent),
      inset -5.75px 0 .5px -2px rgb(var(--jb-frost) / .2);
  }

  /* the registration card: a thick, polished slab. Straight sides, so the crescents become fine
     polished side edges; a faint far-face line inside the rim and a body that deepens toward
     the bottom give it depth without any glow. It keeps a light blur for its paragraphs (the
     one backdrop pass it had in v1.5.4) and has no lensing. */
  .ui-v15 .wrap .regblock.glass{
    -webkit-backdrop-filter: blur(3px) saturate(1.1) brightness(.74);   /* paragraphs: a light diffusion, as v1.5.4 */
    backdrop-filter: blur(3px) saturate(1.1) brightness(.74);
    background-color: rgb(0 0 0 / .1);
    background-image:
      var(--jb-o-glint), var(--jb-o-split),
      radial-gradient(45% 100% at 50% 100%, color-mix(in srgb, var(--jb-optic) 70%, transparent), transparent),
      var(--jb-o-hair),
      linear-gradient(rgb(var(--jb-ink) / .06), rgb(var(--jb-ink) / 0) 28%, rgb(var(--jb-ink) / .24)),
      radial-gradient(closest-side, rgb(var(--jb-ink) / .36), rgb(var(--jb-ink) / .12));
    box-shadow: 0 10px 26px -16px rgb(0 0 0 / .7), 0 2px 6px -3px rgb(0 0 0 / .4), 0 0 0 .5px rgb(0 0 0 / .35);
  }
  .ui-v15 .wrap .regblock.glass::after{
    border-radius: 23px;                                                  /* concentric inside the 1 px border */
    outline: .75px solid rgb(var(--jb-frost) / .08); outline-offset: -4px; /* the slab's far face, seen through it */
    background:
      var(--jb-o-catch) 0 0 / 100% .75px no-repeat,
      linear-gradient(90deg, transparent 25%, color-mix(in srgb, var(--jb-optic) 55%, transparent) 50%, transparent 75%) 0 100% / 100% 1px no-repeat;
    box-shadow:
      inset 1.25px 0 0 -.5px rgb(var(--jb-ice) / .3),
      inset -1.25px 0 0 -.5px color-mix(in srgb, var(--jb-optic) 45%, transparent),
      inset 0 0 0 1.5px rgb(0 0 0 / .16);                                 /* the edge's thickness */
  }

  /* edge lensing: the light behind each curved end, gathered in the last ~15 px (it stops before the text) */
  .ui-v15 .wrap :is(.titleGlass, .cap).glass::before{
    content: ""; display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; background: none; opacity: 1; mix-blend-mode: normal;
    -webkit-backdrop-filter: blur(2px) saturate(1.8) brightness(1.16) contrast(1.1);
    backdrop-filter: blur(2px) saturate(1.8) brightness(1.16) contrast(1.1);
    -webkit-mask: linear-gradient(90deg, #000 0, #000 3px, transparent 15px, transparent calc(100% - 15px), #000 calc(100% - 3px), #000 100%);
    mask: linear-gradient(90deg, #000 0, #000 3px, transparent 15px, transparent calc(100% - 15px), #000 calc(100% - 3px), #000 100%);
  }
  /* desktop Chromium (html.jb-lens): the centre stays clear and the ends bend for real */
  .ui-v15.jb-lens .wrap :is(.titleGlass, .cap).glass{ -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ui-v15.jb-lens .wrap :is(.titleGlass, .cap).glass::before{ backdrop-filter: url(#jbLens) saturate(1.8) brightness(1.16) contrast(1.1); }
  /* behind an open dialog the scrim covers the page: no lens passes there */
  .ui-v15 body.modal-open .frame-stage .wrap .glass::before{ display: none; }

  /* ---------- dialogs ---------- */
  .ui-v15 .modal-card{
    background-color: rgb(9 10 18 / .38);
    background-image:
      var(--jb-o-glint), var(--jb-o-split),
      radial-gradient(45% 100% at 50% 100%, color-mix(in srgb, var(--jb-optic) 65%, transparent), transparent),
      var(--jb-o-hair),
      radial-gradient(130% 80% at 22% -30%, rgb(var(--jb-ice) / .07), rgb(var(--jb-ice) / 0) 58%);
    background-size: auto, 100% 50%, auto, auto, auto;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-clip: border-area, border-area, border-area, border-area, border-box;
    background-origin: border-box, border-box, border-box, border-box, padding-box;
    box-shadow: var(--jb-shadow-2), 0 0 0 .5px rgb(0 0 0 / .4);
  }
  .ui-v15 .modal-card::after{
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: 27px; padding: 0; opacity: 1; -webkit-mask: none; mask: none;
    outline: .75px solid rgb(var(--jb-frost) / .07); outline-offset: -4px;
    background:
      var(--jb-o-catch) 0 0 / 100% .75px no-repeat,
      linear-gradient(90deg, transparent 22%, color-mix(in srgb, var(--jb-optic) 60%, transparent) 50%, transparent 78%) 0 100% / 100% 1px no-repeat;
    box-shadow:
      inset 1.25px 0 0 -.5px rgb(var(--jb-ice) / .28),
      inset -1.25px 0 0 -.5px color-mix(in srgb, var(--jb-optic) 42%, transparent),
      inset 0 0 0 1.5px rgb(0 0 0 / .14);
  }
  .ui-v15 :is(.modal-title, .gem-row){
    border-image: linear-gradient(90deg, rgb(var(--jb-frost) / 0), rgb(var(--jb-frost) / .2), rgb(var(--jb-frost) / 0)) 1;
  }
  .ui-v15 .perk-card{
    background: var(--jb-o-catch) 0 0 / 100% .75px no-repeat, rgb(255 255 255 / .025);
    box-shadow: inset 0 0 0 var(--jb-hair) rgb(var(--jb-frost) / .13);
  }
  .ui-v15 .perk-actions .pill{ box-shadow: inset 0 0 0 var(--jb-hair) rgb(var(--jb-frost) / .2), inset 0 .75px 0 rgb(var(--jb-ice) / .14); }
  .ui-v15 .pill[data-code]{ box-shadow: inset 0 .75px 0 rgb(var(--jb-ice) / .12); }
  .ui-v15 .care-pill{
    background: var(--jb-o-catch) 0 0 / 100% .75px no-repeat, rgb(255 255 255 / .03);
    box-shadow:
      inset 1.5px 0 0 -.75px rgb(var(--jb-ice) / .34),
      inset -1.5px 0 0 -.75px color-mix(in srgb, var(--jb-optic) 38%, transparent),
      inset 0 0 0 var(--jb-hair) rgb(var(--jb-frost) / .12);
  }
  .ui-v15 .gem-chip{
    box-shadow:
      -.6px -.6px 0 .3px rgb(var(--jb-ice) / .42),
      .6px .6px 0 .3px color-mix(in srgb, var(--jb-optic) 40%, transparent),
      0 0 0 .75px rgb(var(--jb-frost) / .2),
      0 3px 8px rgb(0 0 0 / .35);
  }
  .ui-v15 :is(.perk-img, .vip-img){ box-shadow: 0 0 0 var(--jb-hair) rgb(var(--jb-frost) / .22), 0 6px 16px rgb(0 0 0 / .4); }
  /* close buttons and reward icons: small dark lenses with a precise glint, not a broad sheen */
  .ui-v15 :is(.modal-close, .tray-close){
    background: radial-gradient(42% 32% at 33% 26%, rgb(var(--jb-ice) / .2), rgb(var(--jb-ice) / 0)), rgb(12 12 20 / .7);
    box-shadow:
      inset 1px 1px 0 -.4px rgb(var(--jb-ice) / .55),
      inset -1px -1px 0 -.4px color-mix(in srgb, var(--jb-optic) 45%, transparent),
      inset 0 0 0 var(--jb-hair) rgb(var(--jb-frost) / .2),
      0 4px 12px rgb(0 0 0 / .4), 0 0 0 .5px rgb(0 0 0 / .4);
  }
  .ui-v15 :is(.perk-icon, .vip-icon):not(.special){
    background: radial-gradient(40% 30% at 34% 26%, rgb(var(--jb-ice) / .22), rgb(var(--jb-ice) / 0)), #0d0d14;
    box-shadow: inset 1px 1px 0 -.4px rgb(var(--jb-ice) / .45), inset 0 0 0 var(--jb-hair) rgb(var(--jb-frost) / .16), 0 6px 16px rgb(0 0 0 / .4);
  }

  /* ---------- wardrobe tray: keeps its blur (thumbnails over the garment); edges as above ---------- */
  .ui-v15 .hanger-tray{
    background-color: rgb(var(--jb-ink) / .3);
    background-image:
      var(--jb-o-glint), var(--jb-o-split),
      radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--jb-optic) 65%, transparent), transparent),
      var(--jb-o-hair),
      radial-gradient(130% 80% at 22% -30%, rgb(var(--jb-ice) / .07), rgb(var(--jb-ice) / 0) 58%);
    background-size: auto, 100% 50%, auto, auto, auto;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-clip: border-area, border-area, border-area, border-area, border-box;
    background-origin: border-box, border-box, border-box, border-box, padding-box;
    box-shadow: var(--jb-shadow-2), 0 0 0 .5px rgb(0 0 0 / .4);
  }
  .ui-v15 .hanger-tray::after{                       /* the column: its curved ends are top and bottom */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; padding: 0; opacity: 1; background: none; -webkit-mask: none; mask: none;
    box-shadow:
      inset 0 1.75px 0 -.75px rgb(var(--jb-ice) / .55),
      inset 0 -1.75px 0 -.75px color-mix(in srgb, var(--jb-optic) 60%, transparent),
      inset 0 3px 0 -1px rgb(0 0 0 / .35),
      inset 0 -3px 0 -1px rgb(0 0 0 / .35),
      inset 1.25px 0 0 -.5px rgb(var(--jb-ice) / .2),
      inset -1.25px 0 0 -.5px rgb(var(--jb-frost) / .14);
  }
  .ui-v15 .hanger-tray:is(.grid, .grid-compact)::after{   /* the wide tray: polished sides and light lines */
    border-radius: 47px;
    background:
      var(--jb-o-catch) 0 0 / 100% .75px no-repeat,
      linear-gradient(90deg, transparent 22%, color-mix(in srgb, var(--jb-optic) 60%, transparent) 50%, transparent 78%) 0 100% / 100% 1px no-repeat;
    box-shadow:
      inset 1.5px 0 0 -.75px rgb(var(--jb-ice) / .4),
      inset -1.5px 0 0 -.75px color-mix(in srgb, var(--jb-optic) 50%, transparent),
      inset 0 0 0 1.5px rgb(0 0 0 / .14);
  }
  .ui-v15 .hanger-tray.grid-compact::after{ border-radius: 39px; }
  /* placeholder beads: clear dark crystal with one precise glint (were milky white discs) */
  .ui-v15 .hint.glass{
    border-color: transparent;
    background-color: transparent;
    background-image:
      radial-gradient(20% 15% at 34% 28%, rgb(var(--jb-ice) / .55), rgb(var(--jb-ice) / 0)),
      linear-gradient(135deg, rgb(var(--jb-ice) / .8), rgb(var(--jb-frost) / .2) 38%, rgb(var(--jb-frost) / .1) 62%, color-mix(in srgb, var(--jb-optic) 60%, transparent)),
      radial-gradient(closest-side, rgb(var(--jb-ink) / .55), rgb(var(--jb-ink) / .25));
    background-size: auto;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-clip: border-box, border-area, border-box;
    background-origin: border-box, border-box, padding-box;
    box-shadow: 0 4px 10px rgb(0 0 0 / .35), 0 0 0 .5px rgb(0 0 0 / .35);
  }
  .ui-v15 .hint.glass::after{ display: none; }
  .ui-v15 .thumb{
    border-color: transparent;
    background-image: linear-gradient(135deg, rgb(var(--jb-ice) / .7), rgb(var(--jb-frost) / .2) 30%, rgb(var(--jb-frost) / .12) 70%, color-mix(in srgb, var(--jb-optic) 45%, transparent));
    background-clip: border-area; background-origin: border-box;
  }

  /* ---------- copy toast ---------- */
  .ui-v15 .jb-toast{
    border-color: transparent;
    background-color: rgb(10 12 20 / .86);
    background-image: var(--jb-o-glint), var(--jb-o-hair), none;
    background-clip: border-area, border-area, border-box;
    background-origin: border-box;
    box-shadow:
      inset 1.5px 0 0 -.75px rgb(var(--jb-ice) / .4),
      inset -1.5px 0 0 -.75px color-mix(in srgb, var(--jb-optic) 50%, transparent),
      0 10px 30px rgb(0 0 0 / .5), 0 0 0 .5px rgb(0 0 0 / .4);
  }

  /* ---------- Reduce Transparency: solid dark bodies, no lensing; the edges stay ---------- */
  @media (prefers-reduced-transparency: reduce){
    .ui-v15 .wrap .glass, .ui-v15 .wrap .regblock.glass, .ui-v15 .modal-card, .ui-v15 .hanger-tray{ background-color: rgb(10 12 18 / .94); }
    .ui-v15 .wrap :is(.titleGlass, .cap).glass::before{ display: none; }
    .ui-v15 .wrap .regblock.glass{ -webkit-backdrop-filter: none; backdrop-filter: none; }
  }
}
}

/* ---------- v1.5.6: poster hand-over ----------
   If the page appears before its background video is moving (slow network, Low Power Mode), the
   script adds html.jb-vid-poster: the same poster is held in this layer (same size and crop as the
   video, so nothing changes on screen) and cross-fades into the video once it plays. It sits under
   the legibility scrim, so the overall tone never shifts. Otherwise it is hidden and costs nothing. */
.ui-v15 .bg-video-wrap::before{
  content: ""; position: absolute; inset: -1.5%; z-index: 1; pointer-events: none;
  background: var(--jb-poster, none) center / cover no-repeat;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--jb-ease), visibility 0s linear .6s;
}
.ui-v15.jb-vid-poster .bg-video-wrap::before{ opacity: 1; visibility: visible; transition: none; }
.ui-v15 .bg-video-wrap::after{ z-index: 2; }
@media (min-width: 821px){
  .ui-v15:not([data-layout="responsive"]) .bg-video-wrap::before{ inset: 0; }   /* the desktop phone frame's video has no overscan */
}
@media (prefers-reduced-motion: reduce){ .ui-v15 .bg-video-wrap::before{ transition: none; } }

/* ---------- VIP Insider (contract draft.37): a card's cover, music preview, music links and gallery ----------
   Shown only on cards that have them, so a plain card is as before. Light and hairlines, no tints. */
.vip-cover{
  display: block; width: min(100%, 280px); height: auto; aspect-ratio: 1; object-fit: cover;
  margin: 2px auto 12px; border-radius: 14px;
  box-shadow: 0 0 0 var(--jb-hair, .75px) rgb(255 255 255 / .22), 0 10px 26px rgb(0 0 0 / .5);
}
/* hard to save casually: no long-press save menu (iPhone), no selecting or dragging the window's pictures and video */
#vipModal :is(img, video, .vip-video, .vip-audio){ -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.vip-video{ position: relative; width: min(100%, 280px); margin: 2px auto 12px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 var(--jb-hair, .75px) rgb(255 255 255 / .22), 0 10px 26px rgb(0 0 0 / .5); }
.vip-video .vip-cover{ width: 100%; height: 100%; margin: 0; border-radius: 0; box-shadow: none; background: #000; }
.vip-video-play{
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .42);
  box-shadow: inset 0 0 0 var(--jb-hair, .75px) rgb(255 255 255 / .6), 0 0 22px rgb(255 255 255 / .16);
  -webkit-tap-highlight-color: transparent; transition: transform .15s ease;
}
.vip-video-play:active{ transform: scale(.94); }
.vip-video-play svg{ width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
/* (is-starting, November 15: from the tap until the film really plays the cover stays, see "Ready before the tap" below) */
.vip-video.is-playing:not(.is-starting){ width: 100%; }
.vip-video.is-playing.is-youtube:not(.is-starting){ aspect-ratio: 16 / 9; }
.vip-video.is-playing:not(.is-starting) .vip-cover, .vip-video.is-playing:not(.is-starting) .vip-video-play{ display: none; }
.vip-video-el{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.vip-audio{ display: flex; align-items: center; gap: 12px; width: min(100%, 300px); margin: 12px auto 2px; }
.vip-play{
  flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .28);
  box-shadow: inset 0 0 0 var(--jb-hair, .75px) rgb(255 255 255 / .42), 0 0 14px rgb(255 255 255 / .08);
  -webkit-tap-highlight-color: transparent; transition: transform .15s ease, box-shadow .25s ease;
}
.vip-play:active{ transform: scale(.94); }
.vip-play svg{ width: 16px; height: 16px; fill: currentColor; }
.vip-play .vip-pause-i, .vip-audio.is-playing .vip-play .vip-play-i{ display: none; }
.vip-audio.is-playing .vip-play .vip-pause-i{ display: block; }
.vip-audio.is-playing .vip-play{ box-shadow: inset 0 0 0 var(--jb-hair, .75px) rgb(255 255 255 / .7), 0 0 18px rgb(255 255 255 / .22); }
.vip-audio-line{ position: relative; flex: 1; height: 1px; border-radius: 1px; background: rgb(255 255 255 / .22); }
.vip-audio-fill{ position: absolute; left: 0; top: -.5px; width: 0; height: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgb(255 255 255 / .7); }
.vip-audio-time{ flex: none; min-width: 4.6em; text-align: right; font-size: 12px; letter-spacing: .04em; color: rgb(255 255 255 / .7); font-variant-numeric: tabular-nums; }
.vip-links{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 2px; }
.vip-link{
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; letter-spacing: .03em; color: #fff; text-decoration: none; background: rgb(0 0 0 / .18);
  box-shadow: inset 0 0 0 var(--jb-hair, .75px) rgb(255 255 255 / .34);
}
.vip-link:active{ background: rgb(255 255 255 / .08); }
.vip-gallery{
  display: flex; gap: 8px; margin: 14px 0 2px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.vip-gallery::-webkit-scrollbar{ display: none; }
.vip-gallery:focus-visible{ outline: 2px solid var(--green, #34FF82); outline-offset: 2px; border-radius: 10px; }
.vip-shot{
  flex: none; height: 132px; width: auto; min-width: 88px; max-width: 78%; object-fit: cover; scroll-snap-align: center;
  border-radius: 10px; box-shadow: 0 0 0 var(--jb-hair, .75px) rgb(255 255 255 / .2);
}
.vip-shot:first-child{ margin-left: auto; }   /* centered while they fit; from the start once they scroll */
.vip-shot:last-child{ margin-right: auto; }

/* ---------- VIP Insider, November 13 (Jason, from his phone with the first live card) ----------
   Points of light and hairlines only: no glass, no tint over the art.
   1. The preview on the cover: a card with cover art and a preview but no video (a video has its own play button
      there, and the preview keeps its row). The play button is a small ring of light in the cover's bottom-left
      corner, inside a finger-sized target; the preview's progress is a hairline along the cover's bottom edge. */
.vip-cover-box{ position: relative; width: min(100%, 280px); margin: 2px auto 12px; }
.vip-cover-box .vip-cover{ width: 100%; margin: 0; }
.vip-audio.on-cover{ position: absolute; inset: 0; display: block; width: auto; margin: 0; pointer-events: none; }
/* November 14 (Jason, once it was live: "a little bit bigger or more clear... I just don't want people to miss it"):
   the ring 28 to 40 px in a 56 px target, its line a full pixel, a larger mark; and while it waits to be played, a
   slow glow pulse around it (still with Reduce Motion). A ring of light as before: no fill, no glass, no tint. A thin
   dark edge on each side of the line keeps it readable on bright art; on dark art it doesn't show. */
.vip-audio.on-cover .vip-play{ position: absolute; left: 4px; bottom: 6px; width: 56px; height: 56px; pointer-events: auto; background: none; box-shadow: none; }
.vip-audio.on-cover .vip-play::before, .vip-audio.on-cover .vip-play::after{ content: ""; position: absolute; inset: 8px; border-radius: 50%; }
.vip-audio.on-cover .vip-play::before{
  box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .45), 0 0 12px rgb(255 255 255 / .42), 0 0 3px rgb(0 0 0 / .7);
  transition: box-shadow .25s ease;
}
.vip-audio.on-cover .vip-play::after{ box-shadow: 0 0 20px 3px rgb(255 255 255 / .5); opacity: 0; pointer-events: none; }
#vipModal.is-open .vip-audio.on-cover:not(.is-playing) .vip-play::after{ animation: vip-play-wait 3.4s ease-in-out infinite; }
@keyframes vip-play-wait{ 0%, 100%{ opacity: 0; } 50%{ opacity: 1; } }
@media (prefers-reduced-motion: reduce){ #vipModal.is-open .vip-audio.on-cover:not(.is-playing) .vip-play::after{ animation: none; } }
.vip-audio.on-cover .vip-play svg{ position: relative; width: 16px; height: 16px; filter: drop-shadow(0 0 1px rgb(0 0 0 / .8)) drop-shadow(0 0 4px rgb(255 255 255 / .7)); }
.vip-audio.on-cover .vip-play .vip-play-i{ margin-left: 2px; }
.vip-audio.on-cover.is-playing .vip-play{ box-shadow: none; }
.vip-audio.on-cover.is-playing .vip-play::before{ box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .45), 0 0 16px rgb(255 255 255 / .65), 0 0 3px rgb(0 0 0 / .7); }
.vip-audio.on-cover .vip-audio-line{ position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; flex: none; background: none; border-radius: 0; }
.vip-audio.on-cover .vip-audio-fill{ top: auto; bottom: 0; height: 1.5px; border-radius: 1.5px; box-shadow: 0 0 6px rgb(255 255 255 / .8), 0 0 1px rgb(0 0 0 / .6); }

/* 2. A gallery photo opened larger (assets/js/jb-microsite.js makes it on the tap): inside the window, the window's own
      width, on plain black; the card's other photos a swipe away, a small count under it. */
.vip-shot{ cursor: pointer; }
.vip-viewer{
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; border-radius: inherit;
  background: #000; opacity: 0; transition: opacity .18s ease;
}
.vip-viewer.is-on{ opacity: 1; }
.vip-viewer-strip{
  flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; outline: none;
}
.vip-viewer-strip::-webkit-scrollbar{ display: none; }
.vip-viewer-slide{
  flex: 0 0 100%; min-width: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  padding: 54px 0 4px; scroll-snap-align: center; scroll-snap-stop: always;
}
.vip-viewer-img{ display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.vip-viewer-count{
  flex: none; min-height: 1.4em; padding: 8px 0 16px; text-align: center; font-size: 12px; line-height: 1.4; letter-spacing: .12em;
  color: rgb(255 255 255 / .72); font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce){ .vip-viewer{ transition: none; } }

/* 3. More to see. While the list carries on below, its last lines fade out (a mask: nothing is laid over them), and
      the fade lifts at the end. November 15 (Jason: friends did not see that there was more; "a styled bar going
      vertical"): a rail of light down the window's right edge, in the room beside the list (assets/js/jb-microsite.js
      makes and places it). A hairline the height of the list; on it a bar of light for the part in view, a point of
      light at its lower end; a short tick where each card starts, the tick of the card being looked at the bright
      one. Until the first scroll a light falls from the bar down the rail once every 3.4 s (the wardrobe's rhythm),
      and while there is more below a small arrow of light breathes at the rail's foot. Light and hairlines only: no
      glass, no tint. Nothing of this when everything fits; with Reduce Motion nothing moves by itself. Only while
      the window is open (a closed window's loops hold). (Until November 15: points of light on the title's hairline.) */
#vipModal .perk-list.can-scroll{
  -webkit-mask: linear-gradient(to bottom, #000 calc(100% - 52px), transparent) 0 0 / 100% calc(100% + 52px) no-repeat;
          mask: linear-gradient(to bottom, #000 calc(100% - 52px), transparent) 0 0 / 100% calc(100% + 52px) no-repeat;
  transition: -webkit-mask-size .3s ease, mask-size .3s ease;
}
#vipModal .perk-list.can-scroll.has-more{ -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.vip-rail{ position: absolute; width: 9px; z-index: 1; pointer-events: none; }
.vip-rail::before{
  content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0), rgb(255 255 255 / .24) 16px, rgb(255 255 255 / .24) calc(100% - 16px), rgb(255 255 255 / 0));
}
.vip-rail i{
  position: absolute; left: 1px; width: 7px; height: 1px; margin-top: -.5px; background: #fff; opacity: .42;
  transition: opacity .3s ease, box-shadow .3s ease;
}
.vip-rail i.is-current{ opacity: 1; box-shadow: 0 0 5px rgb(255 255 255 / .85); }
.vip-rail b{   /* (brightest at its lower end, where the list carries on) */
  position: absolute; left: 3px; top: 0; width: 3px; border-radius: 3px;
  background: linear-gradient(to bottom, rgb(255 255 255 / .34), #fff 62%);
  box-shadow: 0 0 6px rgb(255 255 255 / .55), 0 0 16px rgb(255 255 255 / .28); will-change: transform;
}
.vip-rail b::after{   /* the point of light at its lower end */
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 9px 1px #fff;
}
.vip-rail b em{   /* the falling light */
  position: absolute; left: 0; bottom: 0; width: 3px; height: 18px; border-radius: 3px; opacity: 0;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0), #fff); box-shadow: 0 6px 8px -2px rgb(255 255 255 / .7);
}
#vipModal.is-open .vip-rail.is-fresh.has-more b em{ animation: vip-fall 3.4s cubic-bezier(.45, 0, .7, 1) infinite; }
@keyframes vip-fall{
  0%{ opacity: 0; transform: translate3d(0, 0, 0); }
  7%{ opacity: 1; }
  44%{ opacity: 1; }
  56%, 100%{ opacity: 0; transform: translate3d(0, var(--vip-fall, 0px), 0); }
}
.vip-rail u{   /* the arrow at its foot */
  position: absolute; left: 1px; bottom: -11px; width: 6px; height: 6px; border: solid #fff; border-width: 0 1px 1px 0;
  transform: rotate(45deg); opacity: 0; transition: opacity .3s ease; text-decoration: none;
  filter: drop-shadow(0 0 3px rgb(255 255 255 / .9));
}
.vip-rail.has-more u{ opacity: .9; }
#vipModal.is-open .vip-rail.has-more u{ animation: vip-point 3.4s ease-in-out infinite; }
@keyframes vip-point{ 0%, 100%{ opacity: .3; } 50%{ opacity: 1; } }
@media (prefers-reduced-motion: reduce){
  #vipModal .perk-list.can-scroll{ transition: none; }
  .vip-rail i, .vip-rail u{ transition: none; }
  #vipModal.is-open .vip-rail.is-fresh.has-more b em, #vipModal.is-open .vip-rail.has-more u{ animation: none; }
}

/* 4. Ready before the tap, and never a tap that seems to do nothing (Jason, November 15; the script loads the song
      and YouTube's player as the window opens). From the tap until the sound or the film really plays, a light runs
      round the play button: the song's (is-waiting, again whenever it must wait for more of itself) and the film's
      (is-starting: its cover stays until it plays). A film's player loaded ahead sits under its cover, out of reach,
      until its tap. With Reduce Motion: a second, still ring. */
.vip-video{ isolation: isolate; }
.vip-video:not(.is-playing) .vip-video-el, .vip-video.is-starting .vip-video-el{ z-index: -1; pointer-events: none; }
.vip-video.is-starting .vip-video-play{ pointer-events: none; }
.vip-audio:not(.on-cover) .vip-play{ position: relative; }
.vip-video.is-starting .vip-video-play::after, .vip-audio.is-waiting .vip-play::after{
  content: ""; position: absolute; inset: -4px; border-radius: 50%; opacity: 1; box-shadow: none; pointer-events: none;
  background: conic-gradient(from 0deg, rgb(255 255 255 / 0) 130deg, #fff 350deg, rgb(255 255 255 / 0) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: vip-chase .95s linear infinite;
}
.vip-audio.on-cover.is-waiting .vip-play::after{ inset: 4px; }   /* (its ring is 8 px inside its target: the light runs 4 px outside the ring) */
@keyframes vip-chase{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .vip-video.is-starting .vip-video-play::after, .vip-audio.is-waiting .vip-play::after{
    animation: none; background: none; -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 1.5px #fff;
  }
}

/* ---------- VIP Insider's second release (contract draft.39; Jason, November 13 and 14) ----------
   1. The main picture in any shape (--vip-ar: its width over its height, written by the template). A square cover is
      exactly as before (280 px at most, centered). Any other shape takes the card's full width in its own shape, never
      cropped; one taller than 4 to 5 is narrower and centered, never taller than a 4 to 5 picture at full width (its
      width is at most 125% of the card's width times its shape). A video plays in its cover's shape, so the card
      doesn't change shape when it starts (a square cover's video: as before, the film's own shape). */
.vip-cover.is-shaped, .vip-video.is-shaped, .vip-cover-box.is-shaped{ width: 100%; max-width: calc(var(--vip-ar) * 125%); aspect-ratio: var(--vip-ar); }
:is(.vip-video, .vip-cover-box).is-shaped .vip-cover{ max-width: none; aspect-ratio: auto; }
.vip-video.is-shaped.is-playing, .vip-video.is-shaped.is-playing.is-youtube{ aspect-ratio: var(--vip-ar); }
/* YouTube in HD (Jason, November 14): while the film plays, its frame is laid out larger (the script sets its size and
   the scale back to the card's size), so YouTube, which picks the quality from its frame's size, sends 1080p where it
   sent 480p or 720p. The frame is its own size again whenever YouTube's buttons are in use (paused, just tapped, a
   mouse over it). */
.vip-video.is-hd .vip-video-el{ inset: 0 auto auto 0; transform-origin: 0 0; }
.perk-title br + br{ display: none; }   /* a title's line break, never an empty line */

/* 2. The preview keeps playing after the window closes: a thin ring of light traces around the VIP orb while it plays,
      whole at the preview's end, then fades (assets/js/jb-microsite.js makes it on the first play). A hairline and a
      point of light at its head: no fill, no glass. With Reduce Motion the whole ring shows, still. */
/* (the script places it 5 px outside the orb's button all round, from the button's measured size and edge) */
.vip-ring{ position: absolute; left: -6.5px; top: -6.5px; width: calc(100% + 13px); height: calc(100% + 13px); overflow: visible; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.vip-ring.is-on{ opacity: 1; }
.vip-ring circle{ fill: none; }
.vip-ring .vip-ring-track{ stroke: rgb(255 255 255 / .2); stroke-width: .75; }
.vip-ring .vip-ring-arc{ stroke: #fff; stroke-width: 1.25; stroke-linecap: round; filter: drop-shadow(0 0 2px rgb(255 255 255 / .9)); transition: stroke-dashoffset .3s linear; }
.vip-ring .vip-ring-head circle{ fill: #fff; stroke: none; filter: drop-shadow(0 0 3px #fff); }
.vip-ring .vip-ring-head{ transition: transform .3s linear; transform-origin: 28px 28px; transform-box: view-box; }
@media (prefers-reduced-motion: reduce){
  .vip-ring, .vip-ring .vip-ring-arc, .vip-ring .vip-ring-head{ transition: none; }
  .vip-ring .vip-ring-head{ display: none; }
}

/* =====================================================================================
   v1.5.12 — WIDE SCREENS: the unfolded iPhone Duo (portrait 669 pt, landscape 951 pt),
   tablets and desktops. Every rule sits in a media query that traditional iPhones never
   match (portrait ≤ 440 pt wide, landscape ≤ 440 pt tall), so their layout is unchanged.
   ===================================================================================== */

/* The header row: Orb · Orb · JB · Orb · Orb, evenly spaced and centred. v1.4's five flexible
   columns let the outer orbs drift apart on wider screens (the wardrobe orb sat 24 pt further out
   than the inbox orb on the unfolded Duo). The 3D orbs follow the buttons (they measure them). */
@media (min-width: 600px) and (min-height: 521px){
  html[data-layout="responsive"]{ --orb-col: 46px; --orb-gap: clamp(34px, 5.6vw, 44px); }
  html[data-layout="responsive"] .logoRow{
    width: auto;
    grid-template-columns: var(--orb-col) var(--orb-col) auto var(--orb-col) var(--orb-col);
    column-gap: var(--orb-gap);
    justify-content: center;
  }
  html[data-layout="responsive"] .logoRow > *{ justify-self: center; }
  /* Care Guide: never taller than the visible screen (it overflowed the 543 pt-tall unfolded
     landscape view, hiding its title and close button); its list scrolls inside. */
  .ui-v15 #careModal .modal-card{ max-height: min(90vh, calc(100dvh - 40px)); }
}
/* November 10 (Jason, on the unfolded Duo on its side, 543 pt tall): the VIP window's button was cut off at the
   window's foot, with empty screen above and below it. On a wide, low screen every window may be as tall as the
   screen, less the 20 pt the scrim keeps round it (it was 78% of the height, 68% for a window with one card). The
   72 pt: the scrim's 40 and the window's own padding and border, which its height limit doesn't count. A window is
   still only as tall as what's in it, and a longer one still scrolls inside. Like every rule here it needs 521 pt
   of height; a phone turned on its side has the same rule of its own, with the other rules for that screen (Jason:
   "Yes, phones too"). Upright phones, taller tablets and desktops are as they were. */
@media (min-width: 600px) and (min-height: 521px) and (max-height: 700px){
  html[data-layout="responsive"] :is(.modal-card, .modal-card.compact){ max-height: min(calc(100dvh - 72px), 640px); }
}

/* v1.5.13 — content inside the wide dialogs and panels (unfolded Duo, tablets, desktops). The glass
   keeps its size; what's inside gets editorial proportions. Prose gets a comfortable measure (about 60
   characters a line, balanced wrapping, a touch larger); banners keep their own shape instead of being
   stretched to the card and cropped into a strip; lists (the care guide, the gem row, the wardrobe)
   stay expansive. The demo's desktop phone frame is not affected (data-layout="phone"). */
@media (min-width: 600px) and (min-height: 521px){
  html[data-layout="responsive"] .modal-card:not(.compact) .perk-card{ padding: 18px 24px 20px; }
  html[data-layout="responsive"] .perk-head{ gap: 12px; margin-bottom: 10px; }
  html[data-layout="responsive"] .perk-desc{
    display: block; max-width: 30em; margin: 0 auto; font-size: 15px; line-height: 1.5; text-wrap: pretty;
  }
  html[data-layout="responsive"] .perk-action-group .subtext{ max-width: 28em; }
  html[data-layout="responsive"] :is(.perk-img, .vip-img).is-banner{
    width: auto; height: auto; max-width: min(100%, 460px); max-height: 220px; margin: 4px auto 2px;
  }
  html[data-layout="responsive"] #noteModal .note-flex{ justify-content: center; max-width: 38em; margin: 6px auto 8px; gap: 14px; }
  html[data-layout="responsive"] #noteModal .note-flex > div{ font-size: 15px; line-height: 1.5; }
  html[data-layout="responsive"] .regblock p{ max-width: 30em; margin-inline: auto; text-wrap: pretty; }
}

/* Two panes on a tall screen (unfolded Duo in landscape, desktops): the header spans the whole
   screen, so the diamond sits on the fold between the garment and its details, two orbs either
   side. The garment is centred in the space below the header instead of reaching up beside it. */
@media (min-width: 800px) and (min-height: 521px) and (min-aspect-ratio: 5/4){
  html[data-layout="responsive"]{
    --orb-gap: clamp(36px, 4vw, 60px);
    --hero-size: min(44vw, calc(100dvh - var(--ui-top, 109px) - env(safe-area-inset-bottom, 0px) - 36px), 680px);
  }
  html[data-layout="responsive"] .fixed-hero-ui{ left: 0; }
  html[data-layout="responsive"] .fixed-hero-visual{ top: var(--ui-top, 109px); bottom: env(safe-area-inset-bottom, 0px); }
  /* The details read as an editorial column beside the garment: title, capsules, buttons and the
     registration panel share one left edge, which starts on the centre line, beneath the diamond, so
     the garment and its details form one composition (centred in the right half, their varied widths
     left ragged edges on both sides and the group drifted towards the right). Still centred vertically. */
  html[data-layout="responsive"] .scroll-stage .viewport{ margin-left: 0; margin-right: auto; padding-left: 0; }
  html[data-layout="responsive"] .wrap{ text-align: left; padding-left: 0; }
  html[data-layout="responsive"] :is(.titleWrap, .capsRow, .capLine){ justify-content: flex-start; }
  html[data-layout="responsive"] .titleWrap{ padding-inline: 0; }
  html[data-layout="responsive"] :is(.titleGlass h1, .titleGlass h1::before, .titleGlass h1::after){ text-align: left; }
  html[data-layout="responsive"] .titleGlass{ border-radius: 28px; }   /* one line: still a pill; a long title wraps into a soft panel */
  html[data-layout="responsive"] .buttons{ margin-inline: 0; }
  html[data-layout="responsive"] .regblock{ text-align: left; }
  html[data-layout="responsive"] .regblock p{ margin-inline: 0; }   /* the editorial column: lines start at its left edge */
}

/* Large desktop screens: the details and the header grow a little with the screen (they were drawn at
   phone size, 552 px wide in a 960 px pane on a 1920 × 1080 screen). The details use zoom, which keeps
   their glass, wrapping and spacing exactly in proportion; the header's buttons are resized instead
   (the 3D orbs measure the buttons and follow them; a zoom there would confuse that measurement). */
@media (min-width: 1280px) and (min-height: 760px) and (min-aspect-ratio: 5/4){
  html[data-layout="responsive"]{ --jb-dz: 1.12; }
  html[data-layout="responsive"] #main{ zoom: var(--jb-dz); }
  html[data-layout="responsive"] .scroll-stage .viewport{ max-width: calc(580px * var(--jb-dz)); }
}
@media (min-width: 1600px) and (min-height: 900px) and (min-aspect-ratio: 5/4){
  html[data-layout="responsive"]{ --jb-dz: 1.25; --orb-col: 52px; }
  html[data-layout="responsive"] .bubble-btn{ width: 52px; height: 52px; font-size: 25px; }
  html[data-layout="responsive"] .logo{ width: 70px; }
  html[data-layout="responsive"] .hanger-tray{ top: 62px; }
  .ui-v15[data-layout="responsive"][data-orbs="static"] .bubble-btn::before{ inset: -17.5px; }   /* the still's halo, in proportion */
}

/* The theme video, framed so its light radiates from behind the garment (bgFrame in the script sets
   the frame; without it, the v1.5 cover framing below still applies). The poster that stands in until
   the video moves gets the identical frame. */
.ui-v15 .bg-video-wrap[data-bgv] .bg-video,
.ui-v15 .bg-video-wrap[data-bgv]::before{
  inset: auto; left: var(--bgv-l); top: var(--bgv-t); width: var(--bgv-w); height: var(--bgv-h);
  transform: rotate(var(--bgv-r, 0deg));
}
.ui-v15 .bg-video-wrap[data-bgv] .bg-video{ object-fit: fill; }
.ui-v15 .bg-video-wrap[data-bgv]::before{ background-size: 100% 100%; }
