/* ChadJame5 design system.
   Gallery-clean base (ink black, lots of air, the art does the shouting) + comic accents used sparingly:
   halftone dots, sticker badges with hard shadows, marker scribbles. */

:root {
  --ink: #0b0b0f;
  --ink-2: #14141a;
  --ink-3: #1d1d26;
  --paper: #f4efe6;
  --muted: #a39f97;
  --red: #e5202e;
  --red-deep: #b3121f;
  --marigold: #f5a623;
  --green: #0e8a4b;
  --azure: #1fa0f0;
  --pink: #ff3d9a;
  --line: rgba(244, 239, 230, 0.14);
  --radius: 14px;
  --shadow-hard: 4px 4px 0 var(--ink);
  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --header-h: 64px;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--ink);
  --bs-body-color: var(--paper);
  --bs-body-font-family: var(--font-body);
  --bs-primary: var(--red);
  --bs-primary-rgb: 229, 32, 46;
  --bs-link-color: var(--paper);
  --bs-link-color-rgb: 244, 239, 230;
  --bs-link-hover-color: var(--marigold);
  --bs-link-hover-color-rgb: 245, 166, 35;
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--ink-2);
  --bs-border-radius: 10px;
}

html { scroll-behavior: smooth; }
body { background: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
main { overflow-x: clip; } /* the tilted ticker and collage poke past the viewport on purpose */
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.02; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3, .h5, .h6 { font-family: var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; }
.h3, .h4, .h5, .h6 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; }
.marker { font-family: var(--font-marker); text-transform: none; letter-spacing: 0; }

/* ---------- comic accents ---------- */
.halftone { position: relative; isolation: isolate; }
.halftone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background-image: radial-gradient(circle, rgba(244, 239, 230, .09) 1.2px, transparent 1.6px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.sticker {
  display: inline-block; padding: .18em .7em .1em; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  font-size: .85rem; line-height: 1.3; color: var(--ink); background: var(--marigold);
  border: 2px solid var(--paper); border-radius: 6px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
  transform: rotate(-4deg);
}
.sticker--red { background: var(--red); color: var(--paper); }
.sticker--pink { background: var(--pink); }
.sticker--azure { background: var(--azure); }
.sticker--green { background: var(--green); color: var(--paper); }
.sticker--dark { background: var(--ink); color: var(--paper); }
.underline-marker { position: relative; display: inline-block; }
.underline-marker::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .22em; background: var(--red);
  border-radius: 100px; transform: rotate(-1.2deg); z-index: -1;
}
.draft-banner { background: rgba(245, 166, 35, .14); border: 2px dashed var(--marigold); border-radius: 10px; padding: .75rem 1rem; }

/* ---------- buttons ---------- */
.btn { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; border-radius: 10px; transition: transform .15s ease, box-shadow .15s ease, background-color .15s; }
.btn-danger, .btn-pop {
  --bs-btn-bg: var(--red); --bs-btn-border-color: var(--paper); --bs-btn-hover-bg: var(--red); --bs-btn-hover-border-color: var(--paper);
  --bs-btn-active-bg: var(--red-deep); --bs-btn-active-border-color: var(--paper); --bs-btn-disabled-bg: #5a1a20; --bs-btn-disabled-border-color: #6b6660;
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
  border-width: 2px; box-shadow: 4px 4px 0 var(--paper);
}
.btn-danger:hover:not(:disabled), .btn-pop:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--paper); }
.btn-danger:active:not(:disabled), .btn-pop:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--paper); }
.btn-danger:disabled { box-shadow: none; }
.btn-outline-light { --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--paper); --bs-btn-hover-color: var(--ink); border-width: 2px; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.15rem; }
.form-control, .form-select { background-color: var(--ink-2); border-color: var(--line); }
.form-control:focus, .form-select:focus { background-color: var(--ink-2); border-color: var(--marigold); box-shadow: 0 0 0 .2rem rgba(245, 166, 35, .25); }
.badge { font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }
.alert { border-radius: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(11, 11, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .navbar { min-height: var(--header-h); padding-block: .35rem; }
.wordmark {
  display: inline-block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; letter-spacing: .04em; color: var(--paper);
  text-decoration: none; text-shadow: 3px 3px 0 var(--red); transition: text-shadow .2s, transform .2s;
}
.wordmark b { color: var(--red); font-weight: 400; text-shadow: 3px 3px 0 var(--paper); }
.wordmark:hover { color: var(--paper); transform: rotate(-1.5deg) scale(1.03); text-shadow: 4px 4px 0 var(--red); }
.wordmark--xl { font-size: clamp(3rem, 12vw, 8rem); text-shadow: 6px 6px 0 var(--red); }
.wordmark--xl b { text-shadow: 6px 6px 0 var(--paper); }
.site-header .nav-link { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .07em; font-size: 1.02rem; color: var(--paper); padding: .5rem .9rem; position: relative; }
.site-header .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; border-radius: 2px; }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.dropdown-menu { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; }
.dropdown-item { border-radius: 8px; color: var(--paper); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.dropdown-item:hover { background: var(--red); color: #fff; }
.search-form input { width: 9.5rem; transition: width .25s; border-radius: 999px; padding-inline: 1rem; }
.search-form input:focus { width: 14rem; }
.cart-btn { position: relative; }
.cart-btn .count { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .3em; background: var(--red); color: #fff; border-radius: 999px; font-size: .85em; text-align: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: 5rem; background: var(--ink-2); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.site-footer .footer-mark { padding-block: 3rem 1.5rem; }
.site-footer h3 { font-size: 1rem; color: var(--marigold); margin-bottom: .9rem; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--paper); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--marigold); }
.site-footer .legal { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- art cards ---------- */
.art-card { position: relative; display: block; text-decoration: none; color: var(--paper); }
.art-card__frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.art-card__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.art-card:hover .art-card__frame { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 18px 36px rgba(0, 0, 0, .5); }
.art-card:hover .art-card__frame img { transform: scale(1.05); }
.art-card__title { margin-top: .55rem; font-weight: 600; font-size: .95rem; }
.art-card__meta { color: var(--muted); font-size: .85rem; }
.art-card .sticker { position: absolute; z-index: 2; }
.art-card .sticker.tl { top: .6rem; left: .6rem; }
.art-card .sticker.center { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-5deg); font-size: 1rem; }

/* ---------- home: hero collage ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__collage { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; z-index: 1; opacity: .66; transform: rotate(-3deg) scale(1.12);
  -webkit-mask-image: linear-gradient(180deg, transparent 2%, #000 22%, #000 74%, transparent 97%); mask-image: linear-gradient(180deg, transparent 2%, #000 22%, #000 74%, transparent 97%); }
.hero__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.hero__row img { height: clamp(170px, 29vh, 300px); width: auto; border-radius: 12px; flex: none; }
.hero__row--a { animation: marquee 70s linear infinite; }
.hero__row--b { animation: marquee 85s linear infinite reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 28% 50%, rgba(11, 11, 15, .9) 0%, rgba(11, 11, 15, .55) 52%, rgba(11, 11, 15, .1) 100%), linear-gradient(180deg, rgba(11, 11, 15, .45), transparent 24%); }
.hero__inner { position: relative; z-index: 4; padding-block: 5rem 9rem; }
.hero__eyebrow { font-family: var(--font-marker); font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--marigold); transform: rotate(-2deg); display: inline-block; margin-bottom: .6rem; }
.hero h1 { max-width: 12ch; text-shadow: 4px 4px 0 rgba(0, 0, 0, .55); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lede { max-width: 34rem; font-size: 1.15rem; color: rgba(244, 239, 230, .88); margin-block: 1.2rem 1.8rem; }

/* ticker strip */
.ticker { background: var(--red); color: var(--paper); transform: rotate(-1.4deg); margin-block: -.6rem; border-block: 3px solid var(--paper); overflow: hidden; position: relative; z-index: 3; }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: .08em; padding: .85rem 1.2rem; white-space: nowrap; }
.ticker__track i { font-style: normal; color: var(--ink); }

/* section scaffolding */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head .link { white-space: nowrap; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; }

/* category tiles */
.tile { position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 5; text-decoration: none; color: var(--paper); border: 2px solid var(--line); background: var(--ink-2);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11, 11, 15, .92)); }
.tile__label { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; }
.tile__label strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; line-height: 1; }
.tile__label small { color: rgba(244, 239, 230, .75); }
.tile .sticker { position: absolute; z-index: 2; top: .8rem; right: .8rem; }
.tile--noimg { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), var(--ink-2); }
.tile--noimg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(244,239,230,.12) 1.4px, transparent 1.8px); background-size: 10px 10px; }
.tile:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--accent, var(--red)); }
.tile:hover img { transform: scale(1.08); opacity: 1; }

/* masonry (CSS columns: no JS, no layout shift because every image reserves its aspect-ratio) */
.masonry { column-gap: 14px; columns: 2; }
.masonry > * { break-inside: avoid; margin-bottom: 14px; }
@media (min-width: 768px) { .masonry { columns: 3; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }

/* book banner */
.book-banner { position: relative; overflow: hidden; background: var(--red); border-radius: 24px; border: 3px solid var(--paper); box-shadow: 8px 8px 0 var(--paper); padding: clamp(2rem, 6vw, 4rem); }
.book-banner::before { content: ""; position: absolute; inset: -70%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .075) 0 6deg, transparent 6deg 12deg); animation: spin-slow 160s linear infinite; }
.book-banner > * { position: relative; }
.book-banner .phone { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: .04em; color: var(--paper); text-decoration: none; }
.book-banner .btn-outline-light { --bs-btn-border-color: var(--paper); }

/* offcanvas cart */
.offcanvas { background: var(--ink-2); border-left: 1px solid var(--line); }
.offcanvas-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; }

/* info pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; color: var(--marigold); }

/* ---------- the artist page ---------- */
.artist-hero { position: relative; padding-block: clamp(3rem, 8vw, 6rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.artist-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 30%, rgba(229, 32, 46, .22), transparent 60%), radial-gradient(circle, rgba(244, 239, 230, .06) 1.3px, transparent 1.7px); background-size: auto, 10px 10px; pointer-events: none; }
.artist-hero .container { position: relative; }
.artist-tagline { font-size: clamp(1.4rem, 3.2vw, 2.2rem); color: var(--marigold); transform: rotate(-1.5deg); margin: .2rem 0 1rem; }
.portrait-wrap { position: relative; margin: 0 auto; max-width: 24rem; }
.portrait-frame { position: relative; transform: rotate(2.5deg); border: 4px solid var(--paper); border-radius: 16px; box-shadow: 12px 12px 0 var(--red); overflow: hidden; background: var(--ink-2); }
.portrait-frame img { width: 100%; height: auto; display: block; }
.portrait-sticker { position: absolute; z-index: 2; top: -.9rem; right: -.5rem; font-size: 1.15rem; transform: rotate(7deg); }
.portrait-stack { position: relative; margin: 0 auto; max-width: 26rem; aspect-ratio: 1 / 1.05; }
.portrait-stack img { position: absolute; width: 58%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid var(--paper); border-radius: 14px; box-shadow: 8px 8px 0 rgba(0, 0, 0, .6); background: var(--ink-2); }
.portrait-stack--sm { max-width: 19rem; }
.portrait-stack img:nth-child(1) { left: 0; top: 4%; transform: rotate(-7deg); }
.portrait-stack img:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.portrait-stack img:nth-child(3) { left: 20%; bottom: 0; transform: rotate(-1.5deg); box-shadow: 10px 10px 0 var(--red); }
.story p { font-size: 1.12rem; line-height: 1.7; color: rgba(244, 239, 230, .9); }
.story p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; float: left; line-height: .85; padding: .05em .1em 0 0; color: var(--red); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 2.2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: .4rem; bottom: .4rem; width: 4px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--paper) 0 10px, transparent 10px 18px); opacity: .35; }
.timeline__item { position: relative; padding-bottom: 2.2rem; }
.timeline__dot { position: absolute; left: -2.25rem; top: .35rem; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--marigold); box-shadow: 0 0 0 4px var(--ink); }
.timeline__item.is-now .timeline__dot { border-color: var(--red); background: var(--red); }
.timeline__item h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .35rem 0 .1rem; }
.timeline__item .sticker { margin-right: .4rem; }
.timeline__item p { max-width: 40rem; }

.theme-card { --accent: var(--red); display: block; height: 100%; padding: 1rem 1rem 1.1rem; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); border-top: 6px solid var(--accent); text-decoration: none; color: var(--paper); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
a.theme-card:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 16px 30px rgba(0, 0, 0, .5); color: var(--paper); }
.theme-card__imgs { display: flex; gap: 6px; margin-bottom: .9rem; height: 8.5rem; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 75%), var(--ink-3); }
.theme-card__imgs img { flex: 1 1 0; min-width: 0; height: 100%; width: auto; object-fit: cover; }
.theme-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.theme-card p { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }
.theme-card .go { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-size: .9rem; }

.passion { display: grid; grid-template-columns: 1fr; border-radius: 24px; overflow: hidden; border: 3px solid var(--paper); box-shadow: 8px 8px 0 var(--p1); margin-bottom: 2rem; }
@media (min-width: 992px) { .passion { grid-template-columns: 5fr 7fr; } }
.passion__text { position: relative; background: var(--p1); color: var(--on); padding: clamp(1.5rem, 4vw, 2.6rem); }
.passion__text::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(0, 0, 0, .16) 2px, transparent 2.5px); background-size: 14px 14px; pointer-events: none; }
.passion__text > * { position: relative; }
.passion__text h3 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .2rem 0 .8rem; color: var(--on); }
.passion__text .marker { font-size: 1.4rem; }
.passion__art { background: var(--p2); padding: clamp(1rem, 3vw, 1.6rem); display: flex; align-items: center; }
.passion__art .art-card__title { color: #fff; }
.passion__art .art-card:hover { color: #fff; }
.passion__empty { position: relative; width: 100%; min-height: 9rem; display: flex; flex-direction: column; justify-content: center; color: rgba(255, 255, 255, .8); font-family: var(--font-marker); font-size: 1.2rem; }
.passion__empty b { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 9vw, 6rem); line-height: .95; opacity: .22; transform: rotate(-3deg); }
.passion__empty span { transform: rotate(-2deg); display: inline-block; }

.press-card { height: 100%; border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.press-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.press-card h3 { font-size: 1.5rem; margin: .7rem 0 .2rem; }
.press-card blockquote { font-style: italic; color: rgba(244, 239, 230, .85); border-left: 4px solid var(--red); padding-left: .8rem; margin: .6rem 0; }
.award { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.award .sticker { flex: none; }
.award h3 { font-size: 1.25rem; margin: 0; }

/* home: meet-the-artist teaser */
.teaser { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 992px) { .teaser { grid-template-columns: 5fr 7fr; } }

/* ---------- Vegas after dark ---------- */
/* Sky palettes. The site defaults to night; static/js/vegas.js swaps <html data-vegas> to the Las Vegas time of day. */
:root { --sky-1: #0e0820; --sky-2: #2c0b3a; --sky-3: #6d0f3d; --sky-4: #e0457a; --glow: rgba(255, 90, 60, .5); --star-opacity: .55; }
[data-vegas="dawn"] { --sky-1: #1a2350; --sky-2: #5a4a87; --sky-3: #d1777a; --sky-4: #f6b26b; --glow: rgba(255, 190, 110, .55); --star-opacity: .12; }
[data-vegas="day"] { --sky-1: #0f2747; --sky-2: #244f7e; --sky-3: #5b8db3; --sky-4: #e8c58c; --glow: rgba(255, 236, 170, .5); --star-opacity: 0; }
[data-vegas="golden"] { --sky-1: #1e0c3d; --sky-2: #7b1d55; --sky-3: #e0455a; --sky-4: #f5a623; --glow: rgba(255, 170, 60, .6); --star-opacity: .18; }

.vegas-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 36%, var(--sky-3) 70%, var(--sky-4) 100%); }
.vegas-stars { position: absolute; inset: 0; opacity: var(--star-opacity); animation: twinkle 6s ease-in-out infinite alternate;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.6px); background-size: 73px 59px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
.vegas-glow { position: absolute; left: 66%; bottom: -34%; width: 78vw; height: 78vw; max-width: 1100px; max-height: 1100px; transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow), transparent 64%); }
@keyframes twinkle { from { opacity: calc(var(--star-opacity) * .55); } to { opacity: var(--star-opacity); } }

.vegas-skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 12vw, 150px); z-index: 3; pointer-events: none; display: block; }
.vegas-skyline .bldg { fill: var(--ink); }
.vegas-skyline .win { animation: windows 5s ease-in-out infinite alternate; }
@keyframes windows { from { opacity: .85; } to { opacity: .35; } }

/* Neon sign (desktop only: on phones the headline needs the room). Unlit in daylight. */
.vegas-neon { position: absolute; z-index: 3; right: clamp(1rem, 4vw, 7rem); top: 9%; text-align: center; transform: rotate(-5deg); pointer-events: none; display: none; }
@media (min-width: 992px) { .vegas-neon { display: block; } }
.neon-script { display: block; font-family: var(--font-marker); font-size: clamp(3rem, 6vw, 6.5rem); line-height: 1; color: #ffe3ef;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px var(--pink), 0 0 60px var(--pink), 0 0 100px rgba(255, 61, 154, .7); animation: neon-flicker 7s infinite; }
.neon-tube { display: block; margin-top: .5rem; font-family: var(--font-display); font-size: clamp(1rem, 2.2vw, 1.9rem); letter-spacing: .32em; text-indent: .32em; color: #e6f6ff;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--azure), 0 0 28px var(--azure), 0 0 56px var(--azure); }
[data-vegas="dawn"] .neon-script, [data-vegas="day"] .neon-script, [data-vegas="dawn"] .neon-tube, [data-vegas="day"] .neon-tube { text-shadow: none; color: rgba(244, 239, 230, .3); animation: none; }
@keyframes neon-flicker { 0%, 88%, 100% { opacity: 1; } 89% { opacity: .35; } 90% { opacity: 1; } 92% { opacity: .5; } 93% { opacity: 1; } }

/* Marquee bulbs: every other bulb is lit and the lit set steps along, so the light appears to chase. */
.bulbs { --bulb-s: 26px; --bulb-h: 14px; position: absolute; left: 12px; right: 12px; height: var(--bulb-h); z-index: 4; pointer-events: none;
  background:
    radial-gradient(circle at calc(var(--bulb-s) / 2) 50%, #fffbe0 0 2.5px, #ffc23d 3.5px, rgba(255, 170, 40, .4) 6px, transparent 8px) 0 0 / calc(var(--bulb-s) * 2) 100% repeat-x,
    radial-gradient(circle at calc(var(--bulb-s) / 2) 50%, rgba(255, 240, 200, .5) 0 2px, rgba(90, 40, 15, .65) 3px, transparent 5px) 0 0 / var(--bulb-s) 100% repeat-x;
  animation: bulbs 1s steps(1, end) infinite; }
.bulbs--top { top: 7px; }
.bulbs--bottom { bottom: 7px; animation-delay: -.5s; }
.ticker > .bulbs, .book-banner > .bulbs { position: absolute; }
.ticker .bulbs { --bulb-s: 22px; --bulb-h: 11px; }
.ticker .bulbs--top { top: 4px; } .ticker .bulbs--bottom { bottom: 4px; }
@keyframes bulbs { 0% { background-position: 0 0, 0 0; } 50% { background-position: var(--bulb-s) 0, 0 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Poker chips: count badges and SOLD OUT tags */
.chip { --c: var(--red); --s: 58px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; transform: rotate(-8deg);
  background: repeating-conic-gradient(var(--c) 0 20deg, var(--paper) 20deg 40deg); box-shadow: 0 4px 0 rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(0, 0, 0, .18); }
.chip__face { display: grid; place-content: center; text-align: center; width: 72%; height: 72%; border-radius: 50%; background: var(--c); border: 2px dashed rgba(255, 255, 255, .75);
  color: #fff; font-family: var(--font-display); text-transform: uppercase; line-height: 1; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.chip__face b { font-weight: 400; font-size: 1.25rem; }
.chip__face small { font-size: .5rem; letter-spacing: .08em; }
.chip--soldout { --c: #3a3a44; --s: 64px; }
.chip--soldout .chip__face { font-size: .58rem; letter-spacing: .06em; padding: 0 .35rem; }
.tile .chip { position: absolute; z-index: 2; top: .7rem; right: .7rem; }
.art-card .chip, .product-card .chip { position: absolute; z-index: 2; top: .6rem; left: .6rem; }

/* Faint card suits behind a run of sections */
.suits { position: relative; }
.suits::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg font-family='Arial' font-size='34' text-anchor='middle'%3E%3Ctext x='30' y='42' fill='%23f4efe6' fill-opacity='.07'%3E%E2%99%A0%3C/text%3E%3Ctext x='90' y='42' fill='%23e5202e' fill-opacity='.16'%3E%E2%99%A5%3C/text%3E%3Ctext x='30' y='102' fill='%23e5202e' fill-opacity='.16'%3E%E2%99%A6%3C/text%3E%3Ctext x='90' y='102' fill='%23f4efe6' fill-opacity='.07'%3E%E2%99%A3%3C/text%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.suits > * { position: relative; }

/* Footer: casino-carpet texture, gold trim and the redrawn sign */
.site-footer { border-top: 3px solid var(--marigold); box-shadow: inset 0 5px 0 var(--ink-2), inset 0 7px 0 rgba(245, 166, 35, .45); }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .34;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 8px, rgba(245, 166, 35, .5) 9px 10px, transparent 11px 17px, rgba(245, 166, 35, .26) 18px 19px, transparent 20px) 0 0 / 56px 56px,
    conic-gradient(from 45deg at 50% 50%, #5a0a15 0 25%, #220409 0 50%, #5a0a15 0 75%, #220409 0) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.site-footer > .container { position: relative; }
.vegas-sign { position: relative; width: 210px; height: 250px; flex: none; }
.vegas-sign .burst { position: absolute; left: 50%; top: 0; width: 64px; height: 64px; transform: translateX(-50%); background: var(--marigold); filter: drop-shadow(0 0 9px rgba(245, 166, 35, .85));
  clip-path: polygon(50% 0, 58% 30%, 85% 12%, 70% 40%, 100% 50%, 70% 60%, 85% 88%, 58% 70%, 50% 100%, 42% 70%, 15% 88%, 30% 60%, 0 50%, 30% 40%, 15% 12%, 42% 30%); }
.vegas-sign .pole { position: absolute; left: 50%; bottom: 0; width: 10px; height: 74px; background: #24242e; transform: translateX(-50%); }
.vegas-sign .diamond { position: absolute; left: 50%; top: 50px; width: 132px; height: 132px; transform: translateX(-50%) rotate(45deg); background: var(--red); border: 6px solid var(--paper);
  box-shadow: 0 0 0 3px var(--red), 0 0 30px rgba(229, 32, 46, .65); }
.vegas-sign .in { position: absolute; inset: 0; transform: rotate(-45deg); display: grid; place-items: center; text-align: center; line-height: 1; font-family: var(--font-display); text-transform: uppercase; }
.vegas-sign small { display: block; font-size: .62rem; letter-spacing: .12em; }
.vegas-sign b { display: block; font-weight: 400; font-size: 1.4rem; letter-spacing: .04em; margin: .18rem 0; }
.vegas-sign em { font-style: normal; font-size: .58rem; letter-spacing: .16em; color: var(--marigold); }

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__row, .ticker__track { transform: none !important; }
  .hero__collage { overflow: hidden; }
}
body[data-motion="off"] *, body[data-motion="off"] *::before, body[data-motion="off"] *::after { animation: none !important; transition: none !important; }
