/* Rolling final build, Nov 14: the Glaze palette as shared tokens, and the cream-and-gold polish from the owner's phone review.
   Other threads: use these variables so panels and cards match (--glz-cream, --glz-paper, --glz-gold, --glz-gold-d, --glz-line, --glz-plum, --glz-ink). */
:root { --glz-cream: #fffaf2; --glz-paper: #fdf6ea; --glz-porcelain: #fffdf8; --glz-gold: #d4a843; --glz-gold-l: #ecd28a; --glz-gold-d: #9a7420;
  --glz-line: #ead9bb; --glz-plum: #4A1942; --glz-ink: #2d1928; --glz-cinnamon: #b5651d;
  --glz-shadow: 0 1px 0 #fff inset, 0 14px 28px -18px rgba(74, 25, 66, 0.4); }

/* ---------- 6. Tile bar, refined default (same bar, same tiles, same order; upgrades 1 to 6 still in the Versions tab) ---------- */
html.fh-on:not([data-up-bar]) .topbar-v2 {
  background: radial-gradient(120% 140% at 50% -40%, #fffdf6 0%, #fbf3e6 60%, #f7ecdb 100%);
  box-shadow: 0 1px 0 rgba(212, 168, 67, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 18px 34px -26px rgba(74, 25, 66, 0.55);
}
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-logo img { box-shadow: 0 0 0 2.5px #fffaf2, 0 0 0 4px var(--glz-gold), 0 10px 20px -8px rgba(74, 25, 66, 0.45); }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card {
  background: #2a1a22; border: 0; border-radius: 20px;
  box-shadow: 0 0 0 2.5px #fffaf2, 0 0 0 3.5px rgba(212, 168, 67, 0.7), 0 16px 24px -14px rgba(74, 25, 66, 0.6), 0 3px 6px -3px rgba(74, 25, 66, 0.3);
}
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card img { filter: saturate(1.12) brightness(1.06) contrast(1.02); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
/* the old full-card dark wash made the photos look gray; keep only a short shade under each label */
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card::after { background: linear-gradient(180deg, rgba(28, 17, 24, 0.28) 0%, rgba(28, 17, 24, 0) 30%, rgba(28, 17, 24, 0) 62%, rgba(28, 17, 24, 0.42) 100%); }
/* a slow warm glint crosses one tile at a time */
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card::before { content: ''; position: absolute; z-index: 2; top: -10%; bottom: -10%; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 240, 205, 0), rgba(255, 240, 205, 0.42) 50%, rgba(255, 240, 205, 0)); transform: translateX(-160%) skewX(-16deg); animation: glzGlint 9s ease-in-out infinite; }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-cards > li:nth-child(2) .tb9-card::before { animation-delay: 1.5s; }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-cards > li:nth-child(3) .tb9-card::before { animation-delay: 3s; }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-cards > li:nth-child(4) .tb9-card::before { animation-delay: 4.5s; }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-cards > li:nth-child(5) .tb9-card::before { animation-delay: 6s; }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-cards > li:nth-child(6) .tb9-card::before { animation-delay: 7.5s; }
@keyframes glzGlint { 0%, 12% { transform: translateX(-160%) skewX(-16deg); } 26%, 100% { transform: translateX(360%) skewX(-16deg); } }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card b { background: rgba(255, 250, 242, 0.94); color: var(--glz-plum); box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.55), 0 4px 10px -4px rgba(28, 17, 24, 0.5); padding-left: 18px; }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card b::before { content: ''; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--glz-gold); }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card small { background: rgba(255, 250, 242, 0.16); color: #fffaf2; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255, 250, 242, 0.28) inset; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
@media (hover: hover) { html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card:hover img { transform: scale(1.06); } }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-arrow { background: radial-gradient(circle at 35% 30%, #f6dd9a, var(--glz-gold) 60%, #b48a2c); color: var(--glz-ink); box-shadow: 0 0 0 2px #fffaf2, 0 8px 16px -6px rgba(74, 25, 66, 0.5); }
html.fh-on:not([data-up-bar]) .tb9-mini.tbm-v2 { background: rgba(253, 246, 234, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(212, 168, 67, 0.5), 0 10px 24px -18px rgba(74, 25, 66, 0.5); }
@media (prefers-reduced-motion: reduce) { html.fh-on .topbar-v2 .tb9-card::before { animation: none !important; display: none; } }
html.fh-on:not([data-up-bar]) .topbar-v2 .tb9-card small { background: rgba(45, 25, 40, 0.5); box-shadow: 0 0 0 1px rgba(255, 250, 242, 0.22) inset; }
/* the round logo in the bar uses the same plum wordmark as the hero, on porcelain */
html.fh-on .topbar-v2 .tb9-logo, html.fh-on .tb9-mini .tb9-logo { position: relative; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fffdf8, #f8eedd); }
html.fh-on .topbar-v2 .tb9-logo img, html.fh-on .tb9-mini .tb9-logo img { opacity: 0; }
html.fh-on .topbar-v2 .tb9-logo::after, html.fh-on .tb9-mini .tb9-logo::after { content: ''; position: absolute; inset: 22% 14% 26%; background: var(--glz-plum);
  -webkit-mask: url("/assets/glaze/core/glaze-wordmark-letters.png") center / contain no-repeat; mask: url("/assets/glaze/core/glaze-wordmark-letters.png") center / contain no-repeat; }
html.fh-on .topbar-v2 .tb9-logo { box-shadow: 0 0 0 2.5px #fffaf2, 0 0 0 4px var(--glz-gold), 0 10px 20px -8px rgba(74, 25, 66, 0.45); }
html.fh-on .tb9-mini .tb9-logo { box-shadow: 0 0 0 1.5px var(--glz-gold); }

/* ---------- 7. The ending in cream and gold (fin/home c2 structure, the owner liked it; no plum gradients) ---------- */
.gzb[data-gzb="c2"] .gzb-cap { background: linear-gradient(180deg, var(--glz-porcelain), var(--glz-paper)); box-shadow: 0 0 0 1px var(--glz-line), 0 1px 0 #fff inset, 0 22px 40px -26px rgba(74, 25, 66, 0.45); }
.gzb[data-gzb="c2"] .gzb-cap::before { background: radial-gradient(circle, rgba(236, 200, 120, 0.4), transparent 65%); }
.gzb[data-gzb="c2"] .gzb-cap-txt b { color: var(--glz-plum); }
.gzb[data-gzb="c2"] .gzb-cap-txt small { color: #7a6470; }
.gzb[data-gzb="c2"] .gzb-cap-go { background: var(--glz-plum); }
.gzb[data-gzb="c2"] .gzb-cap-go::before, .gzb[data-gzb="c2"] .gzb-cap-go::after { background: var(--glz-gold-l); }
.gzb[data-gzb="c2"] .gzb-road { background: #fff; box-shadow: 0 0 0 1px var(--glz-line) inset; }
.gzb[data-gzb="c2"] .gzb-road::before { background: repeating-linear-gradient(90deg, rgba(154, 116, 32, 0.55) 0 6px, transparent 6px 11px); }
.gzb[data-gzb="c2"] .gzb-car { color: var(--glz-plum); }
.gzb[data-gzb="c2"] .gzb-box { background: var(--glz-gold-l); box-shadow: 0 -2px 0 var(--glz-gold-d) inset; }
.gzb[data-gzb="c2"] .gzb-chat { background: #fff; box-shadow: 0 0 0 1px var(--glz-line); }
.gzb[data-gzb="c2"] .gzb-m p { background: var(--glz-cream); }
.gzb[data-gzb="c2"] .gzb-m.is-me p { background: #fff; color: var(--glz-plum); box-shadow: 0 0 0 1.5px var(--glz-gold), 0 8px 18px -14px rgba(74, 25, 66, 0.5); }
.gzb[data-gzb="c2"] .gzb-replies button { background: #fff; color: var(--glz-plum); border-color: var(--glz-gold); box-shadow: 0 6px 14px -10px rgba(74, 25, 66, 0.5); }
.gzb[data-gzb="c2"] .gzb-whn .gzb-row .gzb-link { color: var(--glz-plum); border-color: var(--glz-gold); }
.gzb-peek { background: linear-gradient(180deg, var(--glz-porcelain), var(--glz-paper)); color: var(--glz-ink); box-shadow: 0 0 0 1px var(--glz-line), 0 22px 40px -26px rgba(74, 25, 66, 0.45); }
.gzb-peek h3 { color: var(--glz-plum); } .gzb-peek-s { color: var(--glz-gold-d); }
.gzb-peek-x { background: rgba(74, 25, 66, 0.08); } .gzb-peek-x::before, .gzb-peek-x::after { background: var(--glz-plum); }
/* the ending's own plum footer gives way to the cream sign-off (js/final-foot.js) */
.gzb[data-gzb="c2"] .gzb-foot { display: none !important; }
html[data-gzb-on="c2"] #fcFoot { display: block !important; }

/* ---------- 8. Prime close (js/final-close.js) ---------- */
.glz-close { width: min(100%, 560px); margin: 40px auto 0; padding: 0 16px; box-sizing: border-box; }
.glz-close-card { position: relative; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, var(--glz-porcelain), var(--glz-paper)); box-shadow: 0 0 0 1px var(--glz-line), 0 1px 0 #fff inset, 0 30px 50px -30px rgba(74, 25, 66, 0.5); }
.glz-close-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; box-shadow: 0 0 0 1.5px rgba(212, 168, 67, 0.55) inset; }
.glz-close-ph { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.glz-close-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.glz-close.is-in .glz-close-ph img { transform: scale(1); }
.glz-close-ph::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, rgba(253, 246, 234, 0), var(--glz-paper)); }
.glz-close-price { position: absolute; z-index: 1; right: 16px; top: 16px; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; text-align: center; color: var(--glz-ink);
  background: radial-gradient(circle at 35% 28%, #f8e4ad, var(--glz-gold) 58%, #b28a2e); box-shadow: 0 0 0 3px rgba(255, 250, 242, 0.9), 0 14px 24px -10px rgba(74, 25, 66, 0.55); transform: rotate(-8deg) scale(0.6); opacity: 0; transition: transform 0.7s cubic-bezier(0.3, 1.6, 0.4, 1) 0.4s, opacity 0.3s 0.4s; }
.glz-close.is-in .glz-close-price { transform: rotate(-8deg) scale(1); opacity: 1; }
.glz-close-price b { display: block; font: 600 28px/0.9 "Glaze Display", Recoleta, Georgia, serif; }
.glz-close-price small { display: block; font: 700 10px/1 "DM Sans", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; margin-top: -14px; }
.glz-close-tx { position: relative; padding: 0 22px 24px; margin-top: -26px; text-align: left; }
.glz-close-k { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glz-gold-d); }
.glz-close-k i { width: 18px; height: 1.5px; background: var(--glz-gold); }
.glz-close h2 { margin: 8px 0 14px; font: 400 clamp(30px, 8.6vw, 40px)/1.02 "Glaze Display", Recoleta, Georgia, serif; color: var(--glz-plum); letter-spacing: -0.02em; }
.glz-close h2 em { font-style: italic; position: relative; white-space: nowrap; }
.glz-close h2 em::after { content: ''; position: absolute; left: 2%; right: 0; bottom: -0.08em; height: 0.2em; background: var(--glz-gold); border-radius: 4px; opacity: 0.75; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.6s; }
.glz-close.is-in h2 em::after { transform: scaleX(1); }
.glz-close-perks[hidden] { display: none !important; }
.glz-close-reel { margin: 0 0 14px; }
.glz-close-perks { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 0; }
.glz-close-perks li { position: relative; padding: 12px 4px 12px 40px; background: none; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(212, 168, 67, 0.55), rgba(212, 168, 67, 0)) 1; opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1); }
.glz-close.is-in .glz-close-perks li { opacity: 1; transform: none; }
.glz-close.is-in .glz-close-perks li:nth-child(2) { transition-delay: 0.1s; } .glz-close.is-in .glz-close-perks li:nth-child(3) { transition-delay: 0.2s; }
.glz-close-perks li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; box-shadow: 0 3px 8px -3px rgba(154, 116, 32, 0.7); background: radial-gradient(circle at 35% 30%, #f6dd9a, var(--glz-gold) 60%, #b48a2c); }
.glz-close-perks li::after { content: ''; position: absolute; left: 12px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border-right: 2px solid var(--glz-ink); border-bottom: 2px solid var(--glz-ink); transform: rotate(45deg); }
.glz-close-perks li:last-child { border-image: none; }
.glz-close-perks b { display: block; font: 700 15px/1.2 "DM Sans", sans-serif; color: var(--glz-plum); }
.glz-close-perks span { display: block; font: 500 13.5px/1.35 "DM Sans", sans-serif; color: #6d5a63; margin-top: 2px; }
.glz-close-bb { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 16px; }
.glz-close-bb img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.glz-say-in { animation: glzSayIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; } @keyframes glzSayIn { from { opacity: 0; transform: translateY(6px); } }
.glz-close-bb p { margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--glz-cream); box-shadow: 0 0 0 1px var(--glz-line); color: var(--glz-plum); font: 500 14.5px/1.4 "DM Sans", sans-serif; }
.glz-close-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 8px 0 22px; border-radius: 999px; text-decoration: none; color: #2c1226;
  background: linear-gradient(180deg, var(--glz-gold-l), var(--glz-gold)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 28px -14px rgba(154, 116, 32, 0.8); font: 700 17px/1 "DM Sans", sans-serif; transition: transform 0.16s; }
.glz-close-go:active { transform: scale(0.97); }
.glz-close-go i { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--glz-plum); flex: none; }
.glz-close-go i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--glz-gold-l); border-top: 2.5px solid var(--glz-gold-l); transform: translate(-65%, -50%) rotate(45deg); }
.glz-close-more { display: block; width: fit-content; margin: 12px auto 0; min-height: 44px; line-height: 44px; color: var(--glz-plum); font: 600 14.5px/44px "DM Sans", sans-serif; text-decoration: underline; text-decoration-color: var(--glz-gold); text-underline-offset: 5px; }
.glz-close-curb { margin: 4px 0 0; text-align: center; font: 500 13px/1.4 "DM Sans", sans-serif; color: #7a6470; }
.glz-close-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin: 18px 0 0; font: 600 14px/1 "DM Sans", sans-serif; }
.glz-close-alt a { min-height: 44px; display: inline-flex; align-items: center; color: var(--glz-plum); text-decoration: none; }
.glz-close-alt a:hover { text-decoration: underline; text-decoration-color: var(--glz-gold); text-underline-offset: 4px; }
.glz-close-alt span { color: var(--glz-gold); }
.glz-close a:focus-visible { outline: 3px solid var(--glz-gold); outline-offset: 3px; }
@media (min-width: 900px) {
  .glz-close { width: min(100%, 980px); }
  .glz-close-card { display: grid; grid-template-columns: 1fr 1fr; }
  .glz-close-ph { aspect-ratio: auto; min-height: 100%; }
  .glz-close-ph::after { inset: 0 0 0 auto; width: 30%; height: auto; background: linear-gradient(90deg, rgba(253, 246, 234, 0), var(--glz-paper)); }
  .glz-close-tx { margin-top: 0; padding: 34px 34px 30px 8px; }
}
/* the perk reels (.pr from v4/club/perk-reel, .pk from v4/prime/perk-story) are left out: their pictures are placed with transforms and hidden perks sit at opacity 0; each stills itself in its own file */
@media (prefers-reduced-motion: reduce) { .glz-close :not(.pr, .pr *, .pk, .pk *), .glz-close-ph img { transition: none !important; transform: none !important; opacity: 1 !important; } }

/* ---------- 9. Sol pass (Nov 14): the Prime pill line reads in full on a phone ---------- */
@media (max-width: 480px) {
  #gpCapsule .gpcap-t > span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; display: block; font-size: 12.5px; line-height: 1.25; letter-spacing: -0.01em; }
}

/* Centering pass (loops thread, Nov 14): BonBon's line under the hero card sits centered under it, like the card. */
#hero .bbl-host { justify-content: center; }

/* Loops pass (Nov 15): in the slim bar a nav pill that does not fit used to stop in a hard cut ("Ga..."). A longer fade
   makes the row read as one that scrolls. */
html.fh-on .tb9-mini .tb9-cards { --tb-fade: 48px; }
