/* Homepage hero: the Sweet City skyline (home-city.js adds the motion). */
.h2-hero.ct { background: linear-gradient(#5b2a7e 0%, #b8478f 46%, #ff9a9e 78%, #ffd3a5 100%); }
.h2-hero.ct::before { display: none; }
.ct-night { position: absolute; inset: 0; z-index: -3; background: linear-gradient(#140f38 0%, #2c1860 42%, #72307f 74%, #c25a92 100%); }
.ct-stars { position: absolute; inset: 0 0 45%; z-index: -3; background: radial-gradient(#fff 1px, transparent 1.6px) 0 0 / 97px 71px, radial-gradient(#ffd6f0 1px, transparent 1.5px) 41px 29px / 131px 89px, radial-gradient(#bfeeff 1.4px, transparent 2px) 13px 55px / 173px 113px; opacity: .8; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.ct-moon { position: absolute; z-index: -2; right: 7%; top: 18px; width: 78px; height: 78px; border-radius: 50%; background: repeating-conic-gradient(#ff5f7f 0 22.5deg, #fff7f2 22.5deg 45deg); box-shadow: 0 0 0 4px #fff7f2, 0 0 50px 12px rgba(255, 220, 235, .45); -webkit-mask: none; }
.ct-moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.65), transparent 45%); }
.ct-cloud { position: absolute; z-index: -2; width: 190px; height: 46px; border-radius: 40px; opacity: .5; background: #ffb3dc; filter: blur(1px); }
.ct-cloud::before, .ct-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.ct-cloud::before { width: 78px; height: 78px; left: 26px; top: -34px; } .ct-cloud::after { width: 96px; height: 96px; right: 24px; top: -44px; }
.ct-cloud-1 { left: 46%; top: 84px; } .ct-cloud-2 { left: 78%; top: 132px; scale: .7; background: #b9e6ff; } .ct-cloud-3 { left: 16%; top: 40px; scale: .55; opacity: .32; }
.ct-far { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 250px; opacity: .42; background: #3b1a5f;
	clip-path: polygon(0 60%, 3% 60%, 3% 48%, 7% 48%, 7% 66%, 10% 66%, 10% 38%, 11.5% 38%, 12% 30%, 12.5% 38%, 14% 38%, 14% 70%, 18% 70%, 18% 52%, 22% 52%, 22% 62%, 25% 62%, 25% 28%, 26.4% 28%, 26.4% 20%, 27% 8%, 27.6% 20%, 27.6% 28%, 29% 28%, 29% 64%, 33% 64%, 33% 46%, 38% 46%, 38% 56%, 41% 56%, 41% 34%, 45% 34%, 45% 60%, 49% 60%, 49% 24%, 50.5% 24%, 51% 10%, 51.5% 24%, 53% 24%, 53% 54%, 58% 54%, 58% 40%, 62% 40%, 62% 62%, 66% 62%, 66% 30%, 70% 22%, 70% 58%, 74% 58%, 74% 44%, 79% 44%, 79% 26%, 80.3% 26%, 80.6% 14%, 81% 26%, 82% 26%, 82% 60%, 87% 60%, 87% 42%, 91% 42%, 91% 56%, 95% 56%, 95% 36%, 100% 36%, 100% 100%, 0 100%); }
.ct-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.62fr); gap: 24px; align-items: end; min-height: 408px; padding-top: 50px; position: relative; z-index: 1; }
.ct-copy { align-self: center; padding-bottom: 26px; }
.ct .h2-title { font-size: clamp(2.5rem, 4.3vw, 4rem); text-shadow: 0 2px 18px rgba(20, 10, 45, .45); }
.ct .h2-title em { color: #5ff0f0; }
.ct .h2-sub { color: #fbeaf6; max-width: 30rem; text-shadow: 0 1px 10px rgba(20, 10, 45, .6); }
.ct-hint { margin: 1rem 0 0; font-weight: 600; color: #ffe08a; text-shadow: 0 1px 8px rgba(20, 10, 45, .8); }

/* ---------- buildings ---------- */
.ct-street { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ct-b { position: relative; flex: 1 1 0; min-width: 0; max-width: 136px; transform-origin: 50% 100%; transition: filter .25s; }
.ct-face { position: relative; border-radius: 6px 6px 0 0; padding: 34px 8px 12px; background: var(--f, #c2407f); box-shadow: inset -12px 0 18px rgba(20, 5, 40, .28), inset 8px 0 12px rgba(255,255,255,.12); }
.is-a .ct-face { padding-bottom: 92px; } .is-b .ct-face { padding-bottom: 22px; } .is-c .ct-face { padding-bottom: 58px; } .is-d .ct-face { padding-bottom: 34px; }
.ct-face::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; height: 20px; margin-left: -13px; border-radius: 13px 13px 0 0; background: #ffe7a6; box-shadow: 0 0 14px rgba(255, 220, 140, .8); }
.ct-b a { text-decoration: none; }
.ct-sign { position: absolute; z-index: 3; left: -5px; right: -5px; top: 6px; min-height: 23px; display: grid; place-items: center; padding: 3px 4px 2px; border-radius: 5px; background: #1a0f33; color: #fff; font: 400 clamp(.8rem, 1.02vw, 1rem)/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 1.5px var(--s, #ff8fc7); transition: color .2s, box-shadow .2s; }
.ct-b:hover .ct-sign, .ct-sign:focus-visible { color: var(--s, #ff8fc7); box-shadow: 0 0 18px var(--s, #ff8fc7), inset 0 0 0 2px var(--s, #ff8fc7); }
.ct-wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ct-win { position: relative; display: block; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #2a1546; box-shadow: inset 0 0 0 1.5px rgba(20, 5, 40, .45); transition: transform .18s; }
.ct-win img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; background: #fffaf0; transition: opacity .5s; }
.ct-win.is-lit img { opacity: 1; }
.ct-win.is-lit { box-shadow: 0 0 9px rgba(255, 236, 180, .75); }
.ct-win:hover, .ct-win.is-peek, .ct-win:focus-visible { transform: scale(1.22); z-index: 4; outline: 2.5px solid #ffe08a; }
.ct-street:has(.ct-b:hover) .ct-b:not(:hover) { filter: brightness(.62) saturate(.8); }
.ct-roof { position: absolute; left: 0; right: 0; bottom: 100%; display: block; }
/* lollipops: a swirl on a stick */
.ct-lollipops { --f: linear-gradient(#ff77b7, #c73b86); --s: #ff9fd0; }
.ct-lollipops .ct-roof { height: 46px; width: 6px; left: 50%; margin-left: -3px; background: #fff3e2; }
.ct-lollipops .ct-roof::before { content: ""; position: absolute; left: 50%; bottom: 30px; width: 78px; height: 78px; margin-left: -39px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #ff3f7f 0 30deg, #ffd23e 30deg 60deg, #36d6d6 60deg 90deg, #fff 90deg 120deg); box-shadow: inset 0 0 0 4px rgba(255,255,255,.85), 0 0 22px rgba(255, 160, 210, .6); }
/* chocolate: a bar with a bite out of it */
.ct-chocolate { --f: repeating-linear-gradient(90deg, transparent 0 31%, rgba(0,0,0,.22) 31% 33.3%), linear-gradient(#7a4424, #48230f); --s: #ffcf9b; }
.ct-chocolate .ct-roof { height: 42px; background: repeating-linear-gradient(90deg, transparent 0 31%, rgba(0,0,0,.22) 31% 33.3%), linear-gradient(#93562f, #7a4424); border-radius: 5px 0 0; clip-path: polygon(0 0, 46% 0, 50% 22%, 58% 34%, 66% 40%, 72% 62%, 84% 68%, 100% 82%, 100% 100%, 0 100%); }
.ct-chocolate .ct-face { border-radius: 0; }
/* gummy: a bear's ears and face */
.ct-gummy { --f: linear-gradient(#ff5a5a, #b81840); --s: #ffb0a8; }
.ct-gummy .ct-roof { height: 46px; left: 8%; right: 8%; border-radius: 50% 50% 0 0 / 80% 80% 0 0; background: radial-gradient(circle at 34% 62%, #5c0820 0 4px, transparent 4.6px), radial-gradient(circle at 66% 62%, #5c0820 0 4px, transparent 4.6px), radial-gradient(circle at 50% 84%, #ffb4a8 0 9px, transparent 10px), radial-gradient(circle at 30% 24%, rgba(255,255,255,.5), transparent 34%), #ff5a5a; }
.ct-gummy .ct-roof::before, .ct-gummy .ct-roof::after { content: ""; position: absolute; top: -8px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #ff9a8f 0 8px, #ff5a5a 9px); } .ct-gummy .ct-roof::before { left: 0; } .ct-gummy .ct-roof::after { right: 0; }
/* gum: a gumball globe */
.ct-gum { --f: linear-gradient(#e8313f, #9c1226); --s: #8fe9ff; }
.ct-gum .ct-roof { left: 10%; right: 10%; height: 66px; border-radius: 50% 50% 14% 14%; background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.8), transparent 26%), radial-gradient(circle, #ff5f7f 6px, transparent 6.6px) 2px 8px / 24px 22px, radial-gradient(circle, #ffd23e 6px, transparent 6.6px) 14px 18px / 24px 22px, radial-gradient(circle, #36d6d6 6px, transparent 6.6px) 12px 0 / 36px 33px, radial-gradient(circle, #8be04e 6px, transparent 6.6px) 0 20px / 48px 28px, #e9fbff; box-shadow: inset 0 0 0 4px #b9d9e6; }
/* sour: sugar-dusted, saw-tooth */
.ct-sour { --f: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.5px) 0 0 / 9px 8px, linear-gradient(#b6e23a, #4f9a1f); --s: #e6ff8a; }
.ct-sour .ct-roof { height: 26px; background: #b6e23a; clip-path: polygon(0 100%, 0 40%, 12.5% 0, 25% 40%, 37.5% 0, 50% 40%, 62.5% 0, 75% 40%, 87.5% 0, 100% 40%, 100% 100%); }
/* hard candy: a wrapped sweet on a striped tower */
.ct-hard-candy { --f: repeating-linear-gradient(135deg, #fff 0 12px, #ff4d5e 12px 24px); --s: #ffd0d4; }
.ct-hard-candy .ct-roof { height: 40px; left: 50%; width: 40px; margin-left: -20px; border-radius: 50%; background: repeating-conic-gradient(#ff4d5e 0 45deg, #fff 45deg 90deg); box-shadow: 0 0 16px rgba(255,255,255,.5); }
.ct-hard-candy .ct-roof::before, .ct-hard-candy .ct-roof::after { content: ""; position: absolute; top: 8px; width: 24px; height: 24px; background: #ff9aa5; } .ct-hard-candy .ct-roof::before { right: 96%; clip-path: polygon(0 0, 100% 40%, 100% 60%, 0 100%, 30% 50%); } .ct-hard-candy .ct-roof::after { left: 96%; clip-path: polygon(100% 0, 0 40%, 0 60%, 100% 100%, 70% 50%); }
/* theater: marquee */
.ct-theater { --f: linear-gradient(#5b3fb5, #2e1b76); --s: #ffd23e; }
.ct-theater .ct-roof { height: 30px; left: -4px; right: -4px; border-radius: 6px 6px 0 0; background: radial-gradient(circle, #fff6c4 3px, transparent 3.6px) 0 3px / 13px 12px repeat-x, radial-gradient(circle, #ffd23e 3px, transparent 3.6px) 6px 17px / 13px 12px repeat-x, #c4162e; }
/* licorice: twisted, with a spire */
.ct-licorice { --f: repeating-linear-gradient(115deg, #2a1a24 0 14px, #4a2a3a 14px 22px); --s: #ff6a7a; }
.ct-licorice .ct-roof { height: 64px; left: 26%; right: 26%; background: repeating-linear-gradient(115deg, #2a1a24 0 10px, #5a2f44 10px 16px); clip-path: polygon(44% 0, 56% 0, 60% 46%, 82% 46%, 82% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 18% 70%, 18% 46%, 40% 46%); }
.ct-taffy-caramel { --f: repeating-linear-gradient(90deg, #ffe0ee 0 14px, #ff9fca 14px 28px); --s: #ffd0e6; }
.ct-taffy-caramel .ct-roof { height: 22px; left: -4px; right: -4px; background: radial-gradient(circle at 50% 0, #ff6fae 14px, transparent 14.6px) 0 8px / 28px 22px repeat-x, #ff6fae; background-clip: content-box, padding-box; }

.ct-pop { position: absolute; z-index: 12; left: 0; top: 0; width: 162px; padding: 10px; border-radius: 12px; background: #fff; color: #1b1020; box-shadow: 0 18px 40px rgba(20, 5, 40, .5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .28s cubic-bezier(.2, .9, .2, 1.25); transform: translateY(8px) scale(.9); display: block; }
.ct-pop.is-on { opacity: 1; transform: none; }
.ct-pop img { display: block; width: 100%; height: 112px; object-fit: contain; }
.ct-pop strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: .84rem; line-height: 1.22; } .ct-pop b { font-size: 1.05rem; color: #c73b86; }

/* ---------- street ---------- */
.ct-road { position: relative; height: 34px; background: linear-gradient(#3b2a5c 0 4px, #241739 4px); }
.ct-road::after { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 3px; background: repeating-linear-gradient(90deg, #ffd23e 0 26px, transparent 26px 54px); opacity: .75; }
.ct-truck { position: absolute; z-index: 2; left: 0; bottom: 5px; width: 106px; transform: translateX(-130px); }
.ct-truck svg { display: block; width: 100%; }
.ct .h2-aisles { background: none; position: relative; }
.ct-blimp { position: absolute; z-index: 0; left: 0; top: 5px; width: 152px; transform: translateX(-240px); }
.ct-blimp svg { display: block; width: 100%; }
.ct-blimp span { position: absolute; left: 18%; right: 18%; top: 36%; text-align: center; color: #fff; font: 400 .86rem/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; }
.ct-flake { position: absolute; z-index: 1; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .85; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
	.ct-moon { animation: ct-spin 60s linear infinite; }
	.ct-cloud { animation: ct-drift 34s ease-in-out infinite alternate; } .ct-cloud-2 { animation-duration: 46s; } .ct-cloud-3 { animation-duration: 58s; }
	.ct-truck { animation: ct-drive 17s linear 2s infinite; } .ct-truck svg { animation: ct-bump .42s ease-in-out infinite; }
	.ct-wheel { transform-box: fill-box; transform-origin: 50% 50%; animation: ct-spin .8s linear infinite; }
	.ct-blimp { animation: ct-fly 48s linear 4s infinite; } .ct-blimp svg, .ct-blimp span { animation: ct-bump 5s ease-in-out infinite; }
	.ct-lollipops .ct-roof::before { animation: ct-spin 16s linear infinite; }
	.ct-theater .ct-roof { animation: ct-bulbs 1s steps(2) infinite; }
	.ct-night { animation: ct-dusk 3.4s ease-in both; }
	.ct-stars { animation: ct-dusk 4.6s ease-in both; }
	.ct-b { animation: ct-rise .9s cubic-bezier(.2, .9, .25, 1.18) calc(.1s + var(--n) * .09s) backwards; }
	.ct-flake { animation: ct-snow var(--d) linear var(--w) infinite; }
}
@keyframes ct-spin { to { rotate: 360deg; } }
@keyframes ct-drift { from { translate: -40px 0; } to { translate: 60px 0; } }
@keyframes ct-drive { 0% { transform: translateX(-130px); } 70%, 100% { transform: translateX(calc(100vw + 130px)); } }
@keyframes ct-bump { 50% { translate: 0 -2px; } }
@keyframes ct-fly { from { transform: translateX(-240px); } to { transform: translateX(calc(100vw + 60px)); } }
@keyframes ct-dusk { from { opacity: 0; } }
@keyframes ct-rise { from { transform: translateY(106%); } }
@keyframes ct-bulbs { 50% { background-position: 6px 3px, 0 17px, 0 0; } }
@keyframes ct-snow { to { transform: translate(var(--x), 520px); } }
/* off screen or the visitor is elsewhere: nothing runs */
.ct.is-paused *, .ct.is-paused *::before { animation-play-state: paused !important; }

@media (max-width: 1080px) { .ct-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } .ct-b:nth-child(n + 6) { display: none; } }
@media (max-width: 760px) {
	.ct-inner { grid-template-columns: minmax(0, 1fr); gap: 92px; min-height: 0; padding-top: 22px; }
	.ct-copy { padding-bottom: 0; }
	.ct .h2-title { font-size: 2.5rem; }
	.ct-b { max-width: none; } .ct-b:nth-child(n + 5) { display: none; }
	.ct-face { padding: 30px 5px 10px; } .ct-wins { grid-template-columns: 1fr 1fr; gap: 5px; } .ct-win:nth-child(n + 7) { display: none; }
	.is-a .ct-face { padding-bottom: 56px; } .is-c .ct-face { padding-bottom: 40px; }
	.ct-sign { font-size: .78rem; left: -2px; right: -2px; }
	.ct-moon { width: 52px; height: 52px; right: 18px; top: 268px; } .ct-blimp { top: 258px; width: 140px; } .ct-blimp span { font-size: .78rem; }
	.ct-cloud-1 { left: 10%; top: 300px; scale: .6; } .ct-cloud-2, .ct-cloud-3 { display: none; }
	.ct-far { height: 200px; }
}
