/* Footer ASCII logo flames. Letters keep the existing glow; the flame characters carry their own colour and shadow. */
.ascii-logo.ascii-flame .fl {
    display: inline;
    will-change: color, opacity, text-shadow;
    transition: color .09s linear, opacity .09s linear, text-shadow .09s linear;
}

/* Footer spacing: the copyright strip sits closer to the logo. Shared by every page. */
.footer { padding-bottom: 1.5rem; }
.footer-ascii { margin-bottom: 2.25rem; }
.footer-bottom { padding-top: 1.5rem; }
.footer-bottom p { line-height: 1.3; }

/* Shows page: drop the faint grid that was drawn across the whole page, including behind the footer. */
.shows-section .container::before { display: none; }

/* =============================================
   Cart drawer, restyled to match the rest of the site: black, bone, hairlines, square controls.
   ============================================= */
.cart-sidebar { width: 420px; right: -420px; background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; border-left: 1px solid rgba(255,255,255,.12); transition: right .35s ease; }
.cart-sidebar.active { right: 0; }
.cart-overlay { background: rgba(0,0,0,.6); }
.cart-header { padding: 1.4rem 1.75rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.cart-header h3 { font-family: 'Bebas Neue','Oswald','Arial Narrow',Impact,sans-serif; font-size: 1.6rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: #f2ece6; }
.close-cart { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 0; background: transparent; color: #f2ece6; font-size: .95rem; transition: border-color .2s ease, background-color .2s ease; }
.close-cart:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.cart-items { padding: 0 1.75rem; }
.empty-cart { font-style: normal; font-family: 'Inter', sans-serif; font-size: .95rem; color: rgba(242,236,230,.6); text-align: left; padding: 1.75rem 0 .4rem; margin: 0; }
.cart-item { gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.1); align-items: flex-start; }
.cart-item-image { width: 72px; height: 72px; flex-shrink: 0; border-radius: 0; object-fit: contain; background: #f2ece6; }
.cart-item-details { min-width: 0; }
.cart-item-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: .95rem; color: #f2ece6; margin-bottom: .1rem; line-height: 1.35; }
.cart-item-variant { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,236,230,.5); margin-top: .15rem; }
.cart-item-price { font-family: 'Inter', sans-serif; font-weight: 400; font-size: .9rem; color: rgba(242,236,230,.8); margin-top: .25rem; }
.cart-item-controls { display: flex; align-items: center; gap: 1rem; margin-top: .7rem; }
.cart-item-quantity { display: inline-flex; align-items: center; gap: .6rem; margin: 0; border: 0; }
.quantity-btn { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 0; background: transparent; color: #f2ece6; font-size: .95rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: border-color .2s ease, background-color .2s ease; }
.quantity-btn:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cart-item-qty { min-width: 1.2em; text-align: center; font-family: 'Inter', sans-serif; font-size: .95rem; color: #f2ece6; border: 0; line-height: 1; }
.cart-item-remove { background: none; border: 0; border-bottom: 1px solid rgba(242,236,230,.3); border-radius: 0; padding: 0 0 .1rem; color: rgba(242,236,230,.5); font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.cart-item-remove:hover { color: #f2ece6; border-color: #0066ff; }
.cart-footer { padding: 1.4rem 1.75rem 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; text-align: left; font-weight: 400; margin-bottom: 1rem; }
.cart-total-label { font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,236,230,.5); }
.cart-total-amount { font-family: 'Bebas Neue','Oswald','Arial Narrow',Impact,sans-serif; font-size: 1.7rem; letter-spacing: .04em; color: #f2ece6; }
.checkout-btn { height: 52px; padding: 0; border-radius: 0; background: #f2ece6; border: 1px solid #f2ece6; color: #000; font-family: 'Bebas Neue','Oswald','Arial Narrow',Impact,sans-serif; font-size: 1.1rem; font-weight: 400; letter-spacing: .2em; transition: background-color .2s ease, border-color .2s ease; }
.checkout-btn:hover:not(:disabled) { background: #fff; border-color: #fff; transform: none; box-shadow: none; }
.checkout-btn:disabled { background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(242,236,230,.4); }
@media (max-width: 480px) { .cart-sidebar { width: 100%; right: -100%; } .cart-header, .cart-items, .cart-footer { padding-left: 1.25rem; padding-right: 1.25rem; } }
/* Page stylesheets restyle a few cart pieces with more specific selectors; pin these. */
.cart-sidebar .cart-item-price { color: rgba(242,236,230,.8); font-weight: 400; text-shadow: none; }
.cart-sidebar .cart-item-title { color: #f2ece6; }
.cart-sidebar .empty-cart { text-align: left; padding: 1.75rem 0 .4rem; font-style: normal; }
.cart-sidebar .cart-total { text-align: left; }

/* The four motif marks in the nav: his bat, the Dark Cowboy, the crowned skull, the star. Kept still, one size, one tone.
   The sequential blue glow cycle and the hover scale are off. */
.nav-logos .small-logo, .small-logo { animation: none !important; filter: none; opacity: .88; transform: none; transition: opacity .2s ease; }
.nav-logos .small-logo { width: auto; height: 46px; max-width: 64px; object-fit: contain; }
.small-logo-container { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
.small-logo-container:hover, .small-logo-container:hover .small-logo { transform: none; filter: none; background: none; }
.small-logo-container:hover .small-logo { opacity: 1; }
.nav-logos.logo-grid { gap: 1.4rem; align-items: center; }

/* Nav: flat charcoal, bone hairline, no blue bar, no blur. The scroll script no longer overrides this. */
.navbar { background: #0e0e10; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.16); box-shadow: none; position: fixed; }

/* Footer: the same flat charcoal as the nav, hairline on top, no gradient wash, no blue or violet glows. */
.footer { background: #0e0e10; border-top: 1px solid rgba(255,255,255,.16); }
.footer::before { display: none; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }

/* Shop banner: no rule under the subtitle; the lettering carries the banner. */
.shop-hero-content::after { display: none !important; content: none !important; }
.shop-hero-subtitle { margin-bottom: 0.4rem; }
/* Scroll-to-top: square hairline button instead of the round blue pill. */
.scroll-to-top { width: 44px; height: 44px; border-radius: 0; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.35); color: #f2ece6; box-shadow: none; font-size: .9rem; }
.scroll-to-top:hover { background: rgba(255,255,255,.08); border-color: #fff; transform: none; box-shadow: none; }

/* Section headings on home and shop: Hells Savior Brush, a dry-brush marker face generated for the site (assets/fonts). Caps only; the slant is built in. */
@font-face { font-family: 'Hells Savior Brush'; src: url('../../assets/fonts/HellsSaviorBrush.woff2?v=9') format('woff2'), url('../../assets/fonts/HellsSaviorBrush.ttf?v=9') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
/* Section headings on home and shop are the hand-lettered brush artwork (assets/images/headings). The text stays in alt for search and screen readers. */
.heading-art { font-size: 0 !important; line-height: 0; text-shadow: none !important; margin: 0 auto; }
.heading-art img { display: block; height: auto; max-width: 100%; }
.shop-hero-title h1.heading-art img { width: min(44vw, 540px); }
.official-merch-title.heading-art { display: inline-block; }
.official-merch-title.heading-art img { width: min(38vw, 470px); }
.official-merch-title.heading-art::after { display: none; }
@media (max-width: 768px) { .shop-hero-title h1.heading-art img { width: 82vw; } .official-merch-title.heading-art img { width: 78vw; } }

/* Glitch on the heading artwork. One short, fixed sequence every nine seconds plus a smaller tick in between:
   the word nudges, one band of the letters displaces (the original band is cut out and redrawn offset), a thin blue fringe
   shows for two frames, then everything snaps clean. Stepped timing, no easing, nothing moves the rest of the time. */
.heading-art .ha-glitch { position: relative; display: block; }
.heading-art .ha-glitch img { position: relative; z-index: 1; animation: ha-img 9s steps(1, end) infinite; }
.heading-art .ha-glitch::before, .heading-art .ha-glitch::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: var(--ha) center / contain no-repeat; mask: var(--ha) center / contain no-repeat; }
.heading-art .ha-glitch::before { background: #fff; z-index: 2; animation: ha-band 9s steps(1, end) infinite; }   /* the displaced band */
.heading-art .ha-glitch::after { background: #0066ff; z-index: 0; animation: ha-fringe 9s steps(1, end) infinite; } /* blue fringe behind */
/* mask urls live here, not inline, because Chrome resolves url() inside a custom property against the stylesheet */
.official-merch-title .ha-glitch { --ha: url(../../assets/images/headings/official-merchandise.png); }
/* a frame with a slot cut out: nonzero fill leaves the band between the two y values empty */
@keyframes ha-img {
  0%, 100% { transform: none; clip-path: none; }
  10%   { transform: translateX(-2px); }
  10.7% { transform: translateX(1px);  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%, 0 54%, 100% 54%, 100% 100%, 0 100%); }
  11.5% { transform: none;             clip-path: polygon(0 0, 100% 0, 100% 66%, 0 66%, 0 78%, 100% 78%, 100% 100%, 0 100%); }
  12.2% { clip-path: none; }
  62%   { transform: translateX(2px); }
  62.7% { transform: translateX(-1px); clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%, 0 32%, 100% 32%, 100% 100%, 0 100%); }
  63.4% { transform: none; clip-path: none; }
}
@keyframes ha-band {
  0%, 100% { opacity: 0; }
  10.7% { opacity: 1; clip-path: inset(38% 0 46% 0); transform: translateX(9px); }
  11.5% { clip-path: inset(66% 0 22% 0); transform: translateX(-7px); }
  12.2% { opacity: 0; }
  62.7% { opacity: 1; clip-path: inset(20% 0 68% 0); transform: translateX(-8px); }
  63.4% { opacity: 0; }
}
@keyframes ha-fringe {
  0%, 100% { opacity: 0; }
  10%   { opacity: .6; transform: translateX(4px); }
  10.7% { transform: translateX(-4px); }
  11.5% { opacity: 0; }
  62%   { opacity: .5; transform: translateX(-4px); }
  62.7% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .heading-art .ha-glitch img, .heading-art .ha-glitch::before, .heading-art .ha-glitch::after { animation: none; } .heading-art .ha-glitch::before, .heading-art .ha-glitch::after { display: none; } }
