/* Glaze hero upgrades by Claude: options 1 to 3. Every rule sits under html[data-up-carousel] or html[data-up-bar]
   (menus are appended to <body> and carry their own .upm-N class). Option 0 is untouched. */

/* =====================================================================
   REVIEW CAROUSEL, shared by 1 to 3: same coverflow, no control bar.
   ===================================================================== */
html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9 .cn9-ctl,
html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9 .cn9-pick { display: none !important; }

.upc-nav, .upc-pause, .upc-snd {
  position: absolute; z-index: 140; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; color: #4a1942; background: rgba(255, 250, 243, .92);
  box-shadow: 0 10px 22px -10px rgba(45, 25, 40, .55), 0 0 0 1px rgba(212, 168, 67, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent;
  transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1), background-color .2s;
}
.upc-nav svg, .upc-pause svg, .upc-snd svg { width: 18px; height: 18px; }
.upc-nav { top: 42%; opacity: 0; }
.upc-prev { left: 2%; transform: translate(-6px, -50%); }
.upc-next { right: 2%; transform: translate(6px, -50%); }
.upc-nav:active { background: #fff; }
.cn9-stage:hover .upc-nav, .upc-nav:focus-visible { opacity: 1; transform: translate(0, -50%); }
.upc-pause { right: 2%; bottom: 2%; width: 34px; height: 34px; opacity: .0; background: rgba(255, 250, 243, .8); }
.upc-pause::before { content: ''; position: absolute; inset: -5px; }
.upc-pause svg { width: 14px; height: 14px; }
.cn9-stage:hover .upc-pause, .upc-pause:focus-visible, .cn9.is-paused .upc-pause { opacity: 1; }
.upc-nav:focus-visible, .upc-pause:focus-visible, .upc-snd:focus-visible { outline: 3px solid #d4a843; outline-offset: 2px; }
@media (hover: none) {
  .upc-nav { display: none; }                       /* on a phone you swipe, or tap the card that peeks from the side */
  .upc-pause { opacity: .9; }
}

/* the single soft nudge */
@keyframes upcNudge { 0%, 100% { transform: translateX(0) rotate(0); } 28% { transform: translateX(-13px) rotate(-1.4deg); } 62% { transform: translateX(5px) rotate(.5deg); } }
.cn9.upc-nudge .cn9-card.is-front .cn9-in { animation: upcNudge 1.1s cubic-bezier(.3, .7, .3, 1) both; }

/* crisper press and neighbours, all three */
html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9-card.is-front .cn9-face:active { transform: scale(.975); }
html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9-face { transition: box-shadow .4s ease-out, opacity .25s ease-out, transform .18s cubic-bezier(.22, 1, .36, 1), filter .35s ease; }
@media (hover: hover) {
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .carousel-v12 .cn9-card:not(.is-front) .cn9-face:hover { filter: brightness(.96) saturate(.95); }
}

/* ---- phone: a real coverflow again, in a compact height (the strip crop goes away) ---- */
@media (max-width: 599px) {
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) section.hero > #r2cHero.r2c-hero { overflow-x: clip !important; overflow-y: visible !important; padding-bottom: 6px; }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9.carousel-v12 .cn9-stage {
    aspect-ratio: auto !important; height: 236px; max-height: none !important; overflow: visible; border-radius: 0; box-shadow: none; perspective: 900px;
  }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9.carousel-v12 .cn9-card { width: 44% !important; margin-left: -22% !important; top: 5% !important; }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9.carousel-v12 .cn9-face { aspect-ratio: 4 / 5 !important; border-radius: 16px !important; -webkit-box-reflect: below 4px linear-gradient(transparent 80%, rgba(255, 255, 255, .16)); }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9-pills { left: 6px; right: 6px; top: 6px; gap: 4px; font-size: .62rem; }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9-pill { padding: 4px 7px; }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9-card:not(.is-front) .cn9-pills { opacity: 0; }
  .upc-pause { right: 0; bottom: 14%; opacity: .78; }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9-card .glz-bb-chip { display: none !important; }
  html:is([data-up-carousel="1"], [data-up-carousel="2"], [data-up-carousel="3"]) #r2cHero .cn9-card .glz-bb { scale: .8; transform-origin: 100% 100%; }
}

/* =====================================================================
   1. Halo, uncluttered
   ===================================================================== */
.upc-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.upc-ring rect { fill: none; stroke: #f0cf7a; stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 5px rgba(240, 207, 122, .75)); animation: upcRing var(--cn9-dwell, 3800ms) linear forwards; }
@keyframes upcRing { to { stroke-dashoffset: 0; } }
.cn9.is-held .upc-ring rect { animation-play-state: paused; }
html.glz-static .upc-ring { display: none; }
html[data-up-carousel="1"] #r2cHero .carousel-v12 .cn9-card.is-front .cn9-face { box-shadow: 0 0 0 1px rgba(212, 168, 67, .4), 0 0 40px rgba(212, 168, 67, .22), 0 34px 70px -18px rgba(29, 15, 26, .6); }
@keyframes upcPop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.cn9-pill.upc-pop { animation: upcPop .5s cubic-bezier(.3, 1.5, .5, 1) .25s both; }
/* the caption bubble arrives with a little spring */
html[data-up-carousel="1"] #r2cHero .cn9-bub { transform-origin: 0 100%; transition: opacity .25s ease-out, translate .5s cubic-bezier(.3, 1.45, .5, 1), scale .5s cubic-bezier(.3, 1.45, .5, 1); scale: .86; }
html[data-up-carousel="1"] #r2cHero .cn9-card.is-front .cn9-bub { scale: 1; }
@media (max-width: 599px) {
  html[data-up-carousel="1"] #r2cHero .cn9.carousel-v12 .cn9-card.is-front .cn9-bub {
    display: block !important; left: -46% !important; right: auto !important; top: auto !important; bottom: 12px !important; max-width: 86% !important; width: max-content;
    padding: 7px 10px; font-size: .7rem; line-height: 1.3; border-radius: 14px 14px 14px 4px;
  }
  html[data-up-carousel="1"] #r2cHero .cn9-bub-typed { inset: 7px 10px; -webkit-line-clamp: 3; }
  html[data-up-carousel="1"] #r2cHero .cn9-bub-size { -webkit-line-clamp: 3; }
}

/* =====================================================================
   2. Glow and voices
   ===================================================================== */
.upc-amb { position: absolute; inset: 4% 8% 10%; z-index: 0; pointer-events: none; filter: blur(38px) saturate(1.35); opacity: .62; transform: translateZ(-260px) scale(1.35); }
.upc-amb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 40%; opacity: 0; transition: opacity .9s ease; }
.upc-amb img.is-on { opacity: 1; }
html[data-up-carousel="2"] #r2cHero .cn9.carousel-v12 .cn9-stage { margin-bottom: 62px; }
html[data-up-carousel="2"] #r2cHero .cn9 .cn9-bub, html[data-up-carousel="2"] #r2cHero .cn9 .cn9-coms { display: none !important; }
.upc-voice { position: absolute; z-index: 130; left: 50%; top: calc(100% + 6px); width: min(100%, 360px); transform: translateX(-50%); height: 52px; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
.upc-voice-in {
  margin: 0; max-width: 100%; padding: 8px 14px; border-radius: 18px 18px 18px 6px; background: #4a1942; color: #fdf8f0; text-align: left;
  font: 500 .8rem/1.3 'DM Sans', sans-serif; box-shadow: 0 14px 28px -12px rgba(74, 25, 66, .6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: opacity .17s ease, transform .34s cubic-bezier(.3, 1.4, .5, 1);
}
.upc-voice-in b { color: #f0cf7a; font-weight: 700; }
.upc-voice-in.is-out { opacity: 0; transform: translateY(8px) scale(.96); }
.upc-voice-in:empty { display: none; }
.upc-hearts { position: absolute; left: 50%; top: 16%; width: 0; height: 0; z-index: 135; pointer-events: none; }
.upc-heart { position: absolute; left: var(--hx, 0); top: 0; width: 18px; height: 18px; color: #f0cf7a; opacity: 0; filter: drop-shadow(0 2px 4px rgba(45, 25, 40, .4)); animation: upcHeart 1.1s cubic-bezier(.2, .7, .3, 1) var(--hd, 0s) both; }
.upc-heart svg { width: 100%; height: 100%; display: block; }
@keyframes upcHeart { 0% { opacity: 0; transform: translateY(10px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-58px) scale(1.15) rotate(8deg); } }
html[data-up-carousel="2"] #r2cHero .carousel-v12 .cn9-card.is-front .cn9-face { box-shadow: 0 0 0 2px rgba(255, 250, 243, .9), 0 30px 60px -18px rgba(29, 15, 26, .6); }
html[data-up-carousel="2"] #r2cHero .carousel-v12 .cn9-in::before { opacity: 0 !important; animation: none !important; }
@media (max-width: 599px) {
  html[data-up-carousel="2"] #r2cHero .cn9.carousel-v12 .cn9-stage { margin-bottom: 56px; }
  .upc-voice-in { font-size: .76rem; padding: 7px 12px; }
}

/* =====================================================================
   3. Story ticks
   ===================================================================== */
.upc-ticks { position: absolute; z-index: 4; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 4px; pointer-events: none; }
.upc-ticks i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .38); overflow: hidden; position: relative; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.upc-ticks i::after { content: ''; position: absolute; inset: 0; background: #f0cf7a; transform: scaleX(0); transform-origin: 0 50%; }
.upc-ticks i.is-past::after { transform: scaleX(1); }
.upc-ticks i.is-on::after { animation: upcTick var(--cn9-dwell, 3800ms) linear forwards; }
@keyframes upcTick { to { transform: scaleX(1); } }
.cn9.is-held .upc-ticks i.is-on::after { animation-play-state: paused; }
html.glz-static .upc-ticks i.is-on::after { animation: none; transform: scaleX(1); }
.upc-snd { right: 8px; top: 8px; width: 36px; height: 36px; background: rgba(28, 17, 24, .6); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transform: translateZ(60px); }
.upc-snd::before { content: ''; position: absolute; inset: -4px; }
.upc-snd[hidden] { display: none; }
.upc-snd[aria-pressed="true"] { background: #f0cf7a; color: #2d1928; }
.upc-snd svg { width: 16px; height: 16px; }
html[data-up-carousel="3"] #r2cHero .cn9-tap { display: none; }
html[data-up-carousel="3"] #r2cHero .cn9.upc-holding .cn9-card.is-front .cn9-face { transform: scale(.97); box-shadow: 0 0 0 2px #f0cf7a, 0 18px 40px -16px rgba(29, 15, 26, .6); }
html[data-up-carousel="3"] #r2cHero .cn9.upc-holding .cn9-card:not(.is-front) .cn9-face { filter: brightness(.6) saturate(.6); }
html[data-up-carousel="3"] #r2cHero .cn9-face { -webkit-touch-callout: none; touch-action: pan-y; }
@media (max-width: 599px) {
  .upc-ticks { left: 7px; right: 7px; bottom: 7px; gap: 3px; }
  .upc-snd { right: 5px; top: 5px; width: 32px; height: 32px; }
  html[data-up-carousel="3"] #r2cHero .cn9.carousel-v12 .cn9-card.is-front .cn9-bub {
    display: block !important; left: -46% !important; right: auto !important; top: auto !important; bottom: 26px !important; max-width: 86% !important; width: max-content;
    padding: 7px 10px; font-size: .7rem; line-height: 1.3; border-radius: 14px 14px 14px 4px;
  }
  html[data-up-carousel="3"] #r2cHero .cn9-bub-typed { inset: 7px 10px; -webkit-line-clamp: 3; }
  html[data-up-carousel="3"] #r2cHero .cn9-bub-size { -webkit-line-clamp: 3; }
}

/* =====================================================================
   TILE BAR, shared by 1 to 3: the menu
   ===================================================================== */
.upm {
  position: fixed; z-index: 120; box-sizing: border-box; overflow: auto; overscroll-behavior: contain; padding: 14px;
  background: #fffaf3; color: #2d1928; border-radius: 22px; border: 1px solid #eadcc8; text-align: left;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 30px 60px -24px rgba(45, 25, 40, .55), 0 2px 0 rgba(255, 255, 255, .9) inset;
  opacity: 0; pointer-events: none; --ax: 50%;
}
.upm * { box-sizing: border-box; }
.upm.is-open { opacity: 1; pointer-events: auto; }
.upm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.upm-ht b { display: block; font: 600 1.22rem/1.1 'Glaze Display', 'Fraunces', Georgia, serif; color: #4a1942; }
.upm-ht span { display: block; margin-top: 3px; font: 500 .8rem/1.3 'DM Sans', sans-serif; color: #6b5a52; }
.upm-x { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 50%; background: none; color: #6b5a52; cursor: pointer; display: grid; place-items: center; }
.upm-x svg { width: 16px; height: 16px; }
.upm-body { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.upm-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: inherit; background: rgba(74, 25, 66, .045); -webkit-tap-highlight-color: transparent; transition: background-color .2s, transform .18s cubic-bezier(.22, 1, .36, 1); }
.upm-item:active { transform: scale(.975); background: rgba(212, 168, 67, .2); }
@media (hover: hover) { .upm-item:hover { background: rgba(212, 168, 67, .16); } .upm-item:hover .upm-chev { transform: translateX(3px); } }
.upm-tx { flex: 1; min-width: 0; }
.upm-tx b { display: block; font: 700 .92rem/1.2 'DM Sans', sans-serif; color: #2d1928; }
.upm-tx small { display: block; margin-top: 2px; font: 500 .76rem/1.3 'DM Sans', sans-serif; color: #6b5a52; }
.upm-chev { flex: none; width: 16px; height: 16px; color: #b8902d; transition: transform .2s ease; }
.upm-chev svg, .upm-go svg { width: 100%; height: 100%; display: block; }
.upm-step { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #4a1942; color: #f0cf7a; font: 700 .85rem/1 'Glaze Display', Georgia, serif; }
.upm-coins .upm-body { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.upm-coins .upm-item { flex-direction: column; gap: 6px; padding: 8px 4px; text-align: center; background: none; min-height: 0; }
.upm-coin { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(212, 168, 67, .75), 0 12px 20px -10px rgba(45, 25, 40, .6); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.upm-coin img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upm-coins .upm-item:active .upm-coin { transform: scale(.93); }
@media (hover: hover) { .upm-coins .upm-item:hover .upm-coin { transform: translateY(-3px) scale(1.05); } }
.upm-label { font: 700 .74rem/1.2 'DM Sans', sans-serif; color: #2d1928; }
.upm-go { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; margin-top: 12px; padding: 0 8px 0 18px; border-radius: 999px; text-decoration: none; background: #4a1942; color: #fdf8f0; font: 700 .9rem/1 'DM Sans', sans-serif; box-shadow: 0 12px 22px -12px rgba(74, 25, 66, .8); transition: transform .18s cubic-bezier(.22, 1, .36, 1); }
.upm-go svg { flex: none; width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: #e5be5e; color: #2d1928; }
.upm-go:active { transform: scale(.975); }
.upm a:focus-visible, .upm button:focus-visible { outline: 3px solid #d4a843; outline-offset: 2px; }

/* tiles: common press and "this one is open" states */
html:is([data-up-bar="1"], [data-up-bar="2"], [data-up-bar="3"]) .topbar-v2 .tb9-card:active { --r: 0deg; --y: 2px; transition-duration: .12s; }
html:is([data-up-bar="1"], [data-up-bar="2"], [data-up-bar="3"]) .topbar-v2 .tb9-cards > li.up-on { z-index: 6; }
html:is([data-up-bar="1"], [data-up-bar="2"], [data-up-bar="3"]) .topbar-v2 .tb9-cards > li.up-on .tb9-card { --r: 0deg; --y: -4px; border-color: #e5be5e; }
html:is([data-up-bar="1"], [data-up-bar="2"], [data-up-bar="3"]) .tb9-order:active { transform: scale(.96); }

/* =====================================================================
   Bar 1. Lifted tiles
   ===================================================================== */
html[data-up-bar="1"] .topbar-v2 .tb9-card { box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 18px 28px -14px rgba(45, 25, 40, .8), 0 4px 8px -4px rgba(45, 25, 40, .35); }
html[data-up-bar="1"] .topbar-v2 .tb9-card:active { box-shadow: 0 6px 10px -8px rgba(45, 25, 40, .8); scale: .965; }
html[data-up-bar="1"] .topbar-v2 .tb9-card::before { content: ''; position: absolute; z-index: 1; inset: -20% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255, 244, 214, .55) 50%, transparent 58%); transform: translateX(-70%); pointer-events: none; }
html[data-up-bar="1"] .topbar-v2 .tb9-card.up-sheen::before { animation: upbSheen 1.1s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes upbSheen { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
html[data-up-bar="1"] .topbar-v2 .tb9-card img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { html[data-up-bar="1"] .topbar-v2 .tb9-card:hover img { transform: scale(1.07); } }
html[data-up-bar="1"] .topbar-v2 .tb9-cards > li.up-on .tb9-card { box-shadow: 0 0 0 2px rgba(229, 190, 94, .5), 0 24px 30px -14px rgba(45, 25, 40, .85); }
html[data-up-bar="1"] .topbar-v2 .tb9-logo { position: relative; }
html[data-up-bar="1"] .topbar-v2 .tb9-logo::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, transparent 0 78%, rgba(240, 207, 122, .95) 88%, transparent 100%); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: upbSpin 5.5s linear infinite; }
@keyframes upbSpin { to { transform: rotate(360deg); } }
html[data-up-bar="1"] .tb9-order > svg { animation: upbArrow 3.2s cubic-bezier(.3, .7, .3, 1) infinite; }
@keyframes upbArrow { 0%, 72%, 100% { translate: 0 0; } 82% { translate: 5px 0; } 92% { translate: -1px 0; } }
/* the menu unfolds out of the tile */
.upm-1 { transform-origin: var(--ax) 0; transform: perspective(900px) rotateX(-22deg) scale(.9, .6); transition: transform .42s cubic-bezier(.3, 1.35, .5, 1), opacity .18s ease; }
.upm-1.is-open { transform: perspective(900px) rotateX(0) scale(1); }
.upm-1.is-closing { transition: transform .2s ease-in, opacity .2s ease-in; }
.upm-1 .upm-body > li { opacity: 0; transform: translateY(8px); transition: opacity .28s ease calc(.1s + var(--i) * .04s), transform .4s cubic-bezier(.3, 1.3, .5, 1) calc(.1s + var(--i) * .04s); }
.upm-1.is-open .upm-body > li { opacity: 1; transform: none; }

/* =====================================================================
   Bar 2. The shelf
   ===================================================================== */
html[data-up-bar="2"] .topbar-v2 .tb9-card { transition: transform .4s cubic-bezier(.3, 1.3, .5, 1), box-shadow .35s ease, filter .3s ease, opacity .3s ease; }
html[data-up-bar="2"].upm-open .topbar-v2 .tb9-cards > li:not(.up-on) .tb9-card { filter: saturate(.6) brightness(.82); --y: 4px; }
html[data-up-bar="2"] .topbar-v2 .tb9-cards > li.up-on .tb9-card { --y: 6px; scale: 1.04; box-shadow: 0 0 0 2px #e5be5e, 0 20px 26px -14px rgba(45, 25, 40, .8); }
html[data-up-bar="2"] .topbar-v2 .tb9-card img { animation: upbDrift 9s ease-in-out infinite alternate; }
html[data-up-bar="2"] .topbar-v2 .tb9-cards > li:nth-child(2n) .tb9-card img { animation-delay: -4s; animation-duration: 11s; }
@keyframes upbDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }
html[data-up-bar="2"] .topbar-v2 .tb9-logo img { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
html[data-up-bar="2"] .topbar-v2 .tb9-logo:active img { transform: scale(.92) rotate(-6deg); }
html[data-up-bar="2"] .tb9-order { position: relative; overflow: hidden; }
html[data-up-bar="2"] .tb9-order::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-120%); animation: upbShine 4.6s ease-in-out infinite; pointer-events: none; }
@keyframes upbShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.upm-2 { border-radius: 0 0 24px 24px; border-top: 0; padding: 16px 16px 14px; background: linear-gradient(180deg, #fbf3e8, #fffaf3 40%); clip-path: inset(0 0 100% 0 round 0 0 24px 24px); transform: translateY(-10px); transition: clip-path .46s cubic-bezier(.22, 1, .36, 1), transform .46s cubic-bezier(.22, 1, .36, 1), opacity .12s ease; }
.upm-2.is-open { clip-path: inset(0 0 0 0 round 0 0 24px 24px); transform: none; }
.upm-2.is-closing { transition-duration: .2s; }
.upm-2::before { content: ''; position: absolute; top: 0; left: calc(var(--ax) - 26px); width: 52px; height: 4px; border-radius: 0 0 4px 4px; background: #e5be5e; }
.upm-2 .upm-body { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
.upm-2 .upm-body::-webkit-scrollbar { display: none; }
.upm-2 .upm-body > li { scroll-snap-align: start; opacity: 0; transform: translateX(22px); transition: opacity .3s ease calc(.12s + var(--i) * .05s), transform .5s cubic-bezier(.22, 1, .36, 1) calc(.12s + var(--i) * .05s); }
.upm-2.is-open .upm-body > li { opacity: 1; transform: none; }
.upm-2 .upm-item { height: 100%; align-items: flex-start; background: #fff; box-shadow: 0 0 0 1px #eadcc8, 0 10px 18px -14px rgba(45, 25, 40, .5); }
.upm-2.upm-coins .upm-body { grid-template-columns: none; grid-auto-columns: 92px; gap: 6px; }
.upm-2.upm-coins .upm-item { background: none; box-shadow: none; align-items: center; }
.upm-2 .upm-go { max-width: 360px; margin-left: auto; }
@media (max-width: 599px) { .upm-2 .upm-body { grid-auto-columns: minmax(210px, 78%); } .upm-2 .upm-go { max-width: none; } }

/* =====================================================================
   Bar 3. Speech bubble
   ===================================================================== */
@keyframes upbWave { 0% { translate: 0 0; } 40% { translate: 0 -9px; } 100% { translate: 0 0; } }
html[data-up-bar="3"] .tb9.up-wave .tb9-cards > li { animation: upbWave .7s cubic-bezier(.3, 1.4, .5, 1) calc(.25s + var(--i, 0) * .07s) both; }
html[data-up-bar="3"] .topbar-v2 .tb9-card { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .35s ease; }
html[data-up-bar="3"] .topbar-v2 .tb9-card b { transition: background-color .25s, color .25s; }
html[data-up-bar="3"] .topbar-v2 .tb9-cards > li.up-on .tb9-card b { background: #4a1942; color: #f0cf7a; }
html[data-up-bar="3"] .topbar-v2 .tb9-card:active { scale: .95; }
html[data-up-bar="3"] .topbar-v2 .tb9-logo img { animation: upbBreathe 4.8s ease-in-out infinite; }
@keyframes upbBreathe { 0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #4a1942, 0 10px 20px -6px rgba(45, 25, 40, .45); } 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #4a1942, 0 0 0 9px rgba(229, 190, 94, .35), 0 10px 20px -6px rgba(45, 25, 40, .45); } }
html[data-up-bar="3"] .tb9-order { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s ease; }
@media (hover: hover) { html[data-up-bar="3"] .tb9-order:hover { transform: translateY(-2px) scale(1.03); } }
.upm-3 { overflow: visible; border-radius: 26px; background: #fffaf3; transform-origin: var(--ax) -10px; transform: scale(.5) translateY(-12px); transition: transform .44s cubic-bezier(.3, 1.5, .5, 1), opacity .16s ease; }
.upm-3.is-open { transform: none; }
.upm-3.is-closing { transition: transform .18s ease-in, opacity .18s ease-in; }
.upm-3::before { content: ''; position: absolute; top: -8px; left: calc(var(--ax) - 9px); width: 18px; height: 18px; background: #fffaf3; border-left: 1px solid #eadcc8; border-top: 1px solid #eadcc8; transform: rotate(45deg); border-radius: 4px 0 0 0; }
.upm-3 .upm-body { display: flex; flex-wrap: wrap; gap: 8px; }
.upm-3 .upm-body > li { flex: 1 1 100%; opacity: 0; transform: scale(.7); transition: opacity .2s ease calc(.12s + var(--i) * .06s), transform .45s cubic-bezier(.3, 1.7, .5, 1) calc(.12s + var(--i) * .06s); }
.upm-3.is-open .upm-body > li { opacity: 1; transform: none; }
.upm-3 .upm-item { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #eadcc8; }
.upm-3.upm-coins .upm-body > li { flex: 1 1 28%; }
.upm-3.upm-coins .upm-item { box-shadow: none; background: none; }
.upm-3 .upm-go { background: linear-gradient(180deg, #e0c16e, #c8a15a 48%, #b8902d); color: #2d1928; }
.upm-3 .upm-go svg { background: #4a1942; color: #fdf8f0; }

/* reduced motion: final states, nothing loops */
html.glz-static .upm, html.glz-static .upm *, html.glz-static .upc-voice-in { transition: none !important; animation: none !important; }
html.glz-static .upm .upm-body > li { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .upm, .upm *, .upc-voice-in, .upc-nav, .upc-pause { transition: none !important; animation: none !important; }
  .upm .upm-body > li { opacity: 1 !important; transform: none !important; }
  .upc-ring { display: none; }
  .upc-ticks i.is-on::after { animation: none; transform: scaleX(1); }
  html[data-up-bar] .tb9 *, html[data-up-bar] .tb9 *::before, html[data-up-bar] .tb9 *::after { animation: none !important; }
  .cn9.upc-nudge .cn9-card.is-front .cn9-in { animation: none; }
}

/* the shelf on a phone: the three steps stack, so the curbside line is never off to the side */
@media (max-width: 599px) { .upm-2.upm-steps .upm-body, .upm-2.upm-rows .upm-body { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; } .upm-2.upm-steps .upm-body > li, .upm-2.upm-rows .upm-body > li { transform: translateY(-10px); } .upm-2.is-open .upm-body > li { transform: none; } }
