/* Glaze route (Nov 14, 2026): the carried box between pages. Preview only. See js/glaze-route.js. */

/* a stand-in for the tapped button: the launch measures it and turns it into the box */
.glz-phantom {
  position: fixed; z-index: 1189; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-sizing: border-box; padding: 0 8px 0 20px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #ecd28a 0%, #d3ae5c 46%, #bb8f2f 100%); color: #3a2412;
  font: 700 15px/1.1 "DM Sans", system-ui, sans-serif; white-space: nowrap; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, .55), 0 14px 26px -14px rgba(90, 50, 20, .7);
}
.glz-phantom [data-glaze-label] { overflow: hidden; text-overflow: ellipsis; }
.glz-phantom-coin {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #5b2a4a; color: #f3d98a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .25);
}
.glz-phantom-coin svg { width: 18px; height: 18px; }

/* leaving a page: the button lifts and squares up into a box while the page goes to cream */
.glz-phantom.is-lift { z-index: 2147483001; transition: transform .42s cubic-bezier(.2, .8, .2, 1), border-radius .42s cubic-bezier(.2, .8, .2, 1), box-shadow .42s; will-change: transform; }
.glz-phantom.is-lift.is-up { transform: translate3d(0, -14px, 0) scale(1.06) rotateX(10deg); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 248, 230, .55), 0 30px 40px -18px rgba(70, 30, 20, .55); }
.glz-phantom.is-lift .glz-phantom-coin { transition: transform .42s cubic-bezier(.3, 1.6, .5, 1); }
.glz-phantom.is-lift.is-up .glz-phantom-coin { transform: rotate(-90deg) scale(1.08); }
.glz-veil { position: fixed; inset: 0; z-index: 2147483000; background: #FDF8F0; opacity: 0; transition: opacity .36s ease; pointer-events: none; }
.glz-veil.is-on { opacity: 1; }

/* arriving: the cream and the hovering box are put on the page by the home page's head (index.html) */
/* while the page gets ready the box hovers where it left the other page: same lift as it left with, a slow breath */
.glz-phantom.is-arrived { border-radius: 22px; transform: translate3d(0, -14px, 0) scale(1.06) rotateX(10deg); box-shadow: inset 0 1px 0 rgba(255, 248, 230, .55), 0 30px 40px -18px rgba(70, 30, 20, .55); animation: glzHover 1.6s ease-in-out infinite; }
.glz-phantom.is-arrived .glz-phantom-coin { transform: rotate(-90deg) scale(1.08); }
.glz-phantom.is-arrived.is-still { animation: none; }
@keyframes glzHover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

@media (prefers-reduced-motion: reduce) {
  .glz-phantom.is-lift, .glz-veil, #glzArriveVeil { transition: none; }
  .glz-phantom.is-arrived { animation: none; }
}
