/* =============================================
   CSS VARIABLES — edit your branding here
   ============================================= */
:root {
  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --border:       #2a2a2a;
  --text:         #d00339;   /* main color (crimson) — r208 g3 b57 */
  --text-dim:     #777777;
  --accent:       #654ef8;   /* second color (violet) — r101 g78 b248 */
  --on-accent:    #ffffff;   /* text sitting on an --accent background */
  --font-body:    Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --logo-width:   640px;         /* max width of the header banner */
  --bg-art-opacity: 0.14;        /* strength of the glitch patchwork background (0 = off, 1 = full) */
  --bg-art-size:  1200px;        /* how big each repeat of the background is */
  --static-opacity: 0.07;        /* strength of the grain texture (0 = off) */
  --soldout-opacity: 0.88;       /* see-through-ness of the SOLD OUT pop-up (1 = solid) */
  --panel-opacity: 0.72;         /* darkness of the panel behind each page's content (0 = none, 1 = solid) */
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; }   /* buttons don't pick up the page font on their own */

/* =============================================
   BACKGROUND — glitch patchwork + TV static
   Two layers, both behind the page content:
     .bg-canvas    drifting logo patches that glitch individually (assets/bg.js)
     html::after   a still film-grain texture
   Strength knobs are at the top of the file (--bg-art-opacity, --static-opacity).
   ============================================= */

/* patchwork art. assets/bg.js redraws it on a canvas and glitches single patches;
   this plain version only shows if that script can't run. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/bg-glitch.jpg') repeat;
  background-size: var(--bg-art-size) auto;
  opacity: var(--bg-art-opacity);
  pointer-events: none;
  z-index: -1;
}
html.bg-live body::before { display: none; }
/* the 1% easter egg (assets/bg.js) */
html.bg-egg body::before {
  background: #000 url('assets/egg.jpg') center / 138% 100% no-repeat;
  image-rendering: pixelated;  /* one huge peter, stretched wider than the screen, pixelated + crunchy */
  opacity: 0.9;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: var(--bg-art-opacity);
  pointer-events: none;
  z-index: -1;
  animation: bg-jolt 11s steps(1, end) infinite;
}
/* click-shock layer (assets/bg.js): the dent + shockwave, much stronger than the faint background */
.bg-shock {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: -1;                /* behind everything, like the background itself */
}
/* every ~11s the whole background color-flashes for a few frames (it doesn't move) */
@keyframes bg-jolt {
  0%   { filter: none; }
  91%  { filter: hue-rotate(110deg) saturate(2); }
  92%  { filter: none; }
  93%  { filter: saturate(3) contrast(1.4); }
  94%  { filter: none; }
}

/* grain — a generated noise texture laid over the art. It doesn't move. */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--static-opacity);
  pointer-events: none;
  z-index: -1;
}

/* scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.05) 3px,
    rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* =============================================
   TICKER
   ============================================= */
.ticker {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.15em;
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
}
/* ticker.js fills the strip with evenly spaced copies and sets the speed */
.ticker-inner {
  display: inline-flex;
  animation: ticker 28s linear infinite;
  will-change: transform;
}
.ticker-inner span { flex: none; padding: 0 2.5rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  width: 100%;
  max-width: var(--logo-width);
}
.site-title a { display: block; }
.site-title a:hover { text-decoration: none; }
.site-title img {
  width: 100%;
  height: auto;
}
/* tagline boxes sit under the logo frame, outside it */
.site-title .tagline { display: block; width: 77.5%; margin: 8px auto 0; }
.site-title .tagline img { image-rendering: pixelated; }

/* ---------- glitch on hover (logo + nav buttons) ----------
   Put class="glitch" on a link and set --glitch-img to the same image it
   contains, e.g. style="--glitch-img: url(assets/machine-logo.jpg)".
   The logo is split into a red copy and a cyan copy that recombine into the
   full-color image. Hovering snaps it into a glitched state that HOLDS still:
   the colors are pulled apart, and the logo grows and stretches sideways to a
   random width, anywhere up to the full screen. assets/logo-glitch.js picks a
   new random state each time you hover; the values below are the fallback. */
.glitch {
  position: relative;
  isolation: isolate;
  overflow: hidden;      /* the color layers never spill past the logo's edges */
  transform-origin: center;
  --sx: 1.1;             /* stretch sideways */
  --sy: 1.1;             /* grow taller */
  --skew: 0deg;
  --r-x: -8px;  --r-y: 1px;  --r-clip: inset(0 0 0 0);
  --c-x: 8px;   --c-y: -1px; --c-clip: inset(0 0 0 0);
}
.glitch::before,
.glitch::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--glitch-img);
  background-size: 100% 100%;
  image-rendering: pixelated;
  background-blend-mode: multiply;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.glitch::before { background-color: #ff0000; }   /* red channel */
.glitch::after  { background-color: #00ffff; }   /* green + blue channels */

.glitch:hover {
  background: #000;
  z-index: 2;
  transform: scale(var(--sx), var(--sy)) skewX(var(--skew));
}
.glitch:hover img { opacity: 0; }
.glitch:hover::before {
  opacity: 1;
  transform: translate(var(--r-x), var(--r-y));
  clip-path: var(--r-clip);
}
.glitch:hover::after {
  opacity: 1;
  transform: translate(var(--c-x), var(--c-y));
  clip-path: var(--c-clip);
}
.site-subtitle {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* =============================================
   PAGE TABS — 88x31 web buttons (header nav)
   The buttons are real 88x31 pixel images (assets/btn-*.png) shown at 2x with
   crisp pixels. The page you're on gets a blinking acid-green outline.
   Hovering one wrecks it — see "glitch" below and assets/logo-glitch.js.
   ============================================= */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.buttons {
  gap: 10px;
  margin-top: 0.6rem;
}

.btn88 {
  display: block;
  width: 176px;              /* 88 x 2 */
  height: 62px;              /* 31 x 2 */
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.btn88 img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.btn88.active { outline-color: var(--accent); animation: btn-blink 1s steps(1, end) infinite; }
@keyframes btn-blink { 50% { outline-color: transparent; } }

/* ---------- live static + analog roll while hovered (buttons + logo) ----------
   Sits on top of the held glitch state. Each one has its own flavor:
     LOGO     faint color snow, slow roll with a sideways tear, brightness pumps
     SHOWS    gray snow, picture rolls DOWN every few seconds
     ARCHIVE  green-tinted snow, picture rolls UP, horizontal hold jitters
     GALLERY  color snow, horizontal hold slips sideways
     ABOUT    heavy snow + flicker, fast frequent roll
     BLOG     orange-tinted snow, picture rolls UP quickly, tall band
   --bh / --bw (the button's size) are set by assets/logo-glitch.js. */
.glitch { --bh: 62px; --bw: 176px; }
.glitch .fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  mix-blend-mode: screen;
}
/* the bright band of a picture that's losing vertical hold */
.glitch .fx::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  top: -40%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.55) 50%, transparent);
}
.glitch:hover .fx { opacity: var(--snow, 0.3); animation: snow 0.3s steps(6) infinite; }
.glitch:hover .fx::after { animation: roll-band var(--band-time, 1.8s) linear infinite; }
.glitch:hover::before,
.glitch:hover::after {
  background-repeat: repeat;
  animation: var(--roll, vroll-down) var(--roll-time, 2.6s) linear infinite;
}

@keyframes snow {
  0%   { background-position: 0 0; }
  100% { background-position: 37px -53px; }
}
@keyframes roll-band {
  0%   { top: -40%; }
  100% { top: 115%; }
}
@keyframes vroll-down {                /* still, then the picture rolls down one frame */
  0%, 82% { background-position: 0 0; }
  100%    { background-position: 0 var(--bh); }
}
@keyframes vroll-up {
  0%, 78% { background-position: 0 0; }
  100%    { background-position: 0 calc(var(--bh) * -1); }
}
@keyframes hslip {                     /* horizontal hold slips sideways and snaps back */
  0%, 60% { background-position: 0 0; }
  62%     { background-position: calc(var(--bw) * 0.3) 0; }
  64%     { background-position: calc(var(--bw) * -0.12) 0; }
  66%, 86%{ background-position: 0 0; }
  88%     { background-position: calc(var(--bw) * 0.55) 0; }
  90%     { background-position: calc(var(--bw) * 0.2) 0; }
  92%     { background-position: 0 0; }
}
@keyframes vroll-jitter {              /* rolls up, with the image shivering sideways */
  0%, 70% { background-position: 0 0; }
  71%     { background-position: 3px 0; }
  72%     { background-position: -2px 0; }
  73%     { background-position: 0 0; }
  100%    { background-position: 0 calc(var(--bh) * -1); }
}
@keyframes snow-flicker {
  0%, 100% { opacity: var(--snow); }
  40%      { opacity: calc(var(--snow) * 1.6); }
  42%      { opacity: calc(var(--snow) * 0.6); }
  70%      { opacity: calc(var(--snow) * 1.3); }
}

.btn88--shows   { --snow: 0.28; --roll: vroll-down;   --roll-time: 2.6s; --band-time: 1.9s; }
.btn88--archive { --snow: 0.3;  --roll: vroll-jitter; --roll-time: 3.2s; --band-time: 2.4s; }
.btn88--archive .fx { background-color: rgba(120, 255, 0, 0.18); background-blend-mode: multiply; }
.btn88--gallery { --snow: 0.34; --roll: hslip;        --roll-time: 2.2s; --band-time: 1.4s; }
.btn88--gallery .fx {                   /* colored snow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.btn88--about   { --snow: 0.45; --roll: vroll-down;   --roll-time: 1.5s; --band-time: 1.1s; }
.btn88--about:hover .fx { animation: snow 0.25s steps(5) infinite, snow-flicker 0.9s steps(1, end) infinite; }
.btn88--blog    { --snow: 0.3;  --roll: vroll-up;     --roll-time: 1.9s; --band-time: 1.3s; }
.btn88--blog .fx { background-color: rgba(255, 140, 0, 0.22); background-blend-mode: multiply; }
.btn88--blog .fx::after { height: 45%; }

/* the logo's flavor */
.glitch[data-glitch="logo"] { --snow: 0.2; --roll: logo-roll; --roll-time: 4.2s; --band-time: 2.9s; }
.glitch[data-glitch="logo"] .fx {
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 90px 90px;
}
.glitch[data-glitch="logo"] .fx::after {
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255, 120, 255, 0.35) 45%, rgba(255,255,255,0.5) 50%, transparent);
}
.glitch[data-glitch="logo"]:hover .fx { animation: snow 0.32s steps(6) infinite, snow-flicker 2.3s steps(1, end) infinite; }
.glitch[data-glitch="logo"]:hover { animation: logo-pump 3.1s steps(1, end) infinite; }
@keyframes logo-roll {                 /* sideways tear, then a slow roll down */
  0%, 50% { background-position: 0 0; }
  51%     { background-position: calc(var(--bw) * 0.04) 0; }
  52%     { background-position: calc(var(--bw) * -0.02) 0; }
  53%, 76%{ background-position: 0 0; }
  100%    { background-position: 0 var(--bh); }
}
@keyframes logo-pump {                 /* short brightness / color blips */
  0%, 100% { filter: none; }
  37%      { filter: brightness(1.5) contrast(1.3); }
  38%      { filter: none; }
  71%      { filter: hue-rotate(40deg) saturate(1.8); }
  72.5%    { filter: none; }
  90%      { filter: brightness(0.7); }
  91%      { filter: none; }
}

/* =============================================
   PAGE LAYOUT
   ============================================= */
.page {
  max-width: 1080px;
  width: calc(100% - 2rem);
  margin: 2rem auto;
  padding: 2rem 2rem 0.5rem;
  /* the see-through panel that separates page content from the background art */
  background: rgba(8, 8, 8, var(--panel-opacity));
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 12px 40px rgba(0,0,0,0.5);
}
.page section:last-child { margin-bottom: 2rem; }

/* empty writing area (ABOUT, BLOG) — replace the comment inside with your text */
.text-zone {
  min-height: 320px;
  padding: 1.25rem 1.4rem;
  border: 1px dashed #3a3a3a;
  background: rgba(0, 0, 0, 0.35);
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.75;
}
.text-zone:empty::before {
  content: '(nothing here yet)';
  color: #4a4a4a;
  font-size: 11px;
  letter-spacing: 0.2em;
}
.text-zone p { margin-bottom: 1em; }
/* about page: centered, regular weight, dimmer, airier */
.about-text { text-align: center; font-weight: normal; color: rgba(216, 216, 216, 0.45); line-height: 2.05;
  -webkit-text-stroke: 0.35px currentColor; }                 /* "half bold": regular weight, slightly thickened */
.about-text p { width: 89%; margin-left: auto; margin-right: auto; transform: scaleX(1.12); text-wrap: balance; }  /* stretched sideways, still fits the box */
.text-zone .standby { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.text-zone h2 { color: var(--text); font-size: 16px; margin-bottom: 0.2em; }
.text-zone .post-date { color: var(--accent); font-size: 10px; letter-spacing: 0.15em; margin-bottom: 0.8em; }
.text-zone a { color: var(--accent); text-decoration: underline; }

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-heading {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

section { margin-bottom: 4rem; }

/* =============================================
   SHOWS — flyer card grid  (index.html)
   ============================================= */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
}


.show-card {
  display: block;
  background: var(--bg-2);
  outline: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s;
  position: relative;
}
a.show-card:hover { background: #181818; text-decoration: none; }

.show-card::after {
  content: 'TICKETS \2197';
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.15em;
  padding: 2px 7px;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 4;
}
a.show-card:hover::after { opacity: 1; }
.show-card.no-link::after { content: none; }

.show-flyer {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  overflow: hidden;
}
.show-flyer img { width: 100%; height: 100%; object-fit: cover; }

.show-info {
  padding: 0.7rem 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
}

.show-date {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 3px;
}

.show-headliner {
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.show-support { font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.show-venue   { font-size: 10px; color: var(--text-dim); }
.show-venue span { color: var(--text); }

.shows-grid.is-empty { display: block; }

/* ---------- SECRET LOCATION shows — clicking opens the "halt!!!" window ---------- */
.show-card.is-secret { cursor: pointer; }
/* glossy red "aero" bubble — appears and blinks while the card is hovered */
.show-card.is-secret::after {
  content: 'DM FOR LOCATION';
  opacity: 0;
  padding: 3px 10px 4px;
  border-radius: 999px;
  border: 1px solid #7a0000;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.35) 46%, rgba(255,255,255,0) 52%),
    radial-gradient(ellipse at 50% 120%, #ff8a8a 0%, rgba(255,138,138,0) 60%),
    linear-gradient(to bottom, #ff3b3b, #c00000);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -2px 3px rgba(90,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.25),
    0 2px 5px rgba(0,0,0,0.55),
    0 0 10px rgba(255,40,40,0.45);
}
.show-card.is-secret:hover::after,
.show-card.is-secret:focus-visible::after {
  opacity: 1;
  animation: secret-blink 1s steps(1, end) infinite;
}
@keyframes secret-blink { 50% { visibility: hidden; } }
.show-card.is-secret:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.halt-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.halt-overlay[hidden] { display: none; }
.halt-win {
  width: min(380px, 100%);
  padding: 3px;
  background: #c0c0c0;
  color: #000;
  font: bold 13px/1.45 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 6px 6px 0 rgba(0,0,0,0.6);
}
.halt-win.pop { animation: halt-pop 0.18s steps(3, end); }
@keyframes halt-pop { from { transform: scale(0.6); } to { transform: none; } }
.halt-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; font-size: 12px;
}
.halt-x, .halt-ok {
  font: bold 12px Arial, Helvetica, sans-serif; color: #000; background: #c0c0c0; border: 0; cursor: pointer;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.halt-x { width: 18px; height: 16px; padding: 0; font-size: 10px; line-height: 16px; }
.halt-x:active, .halt-ok:active { box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px #808080; }
.halt-body { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px 8px; }
.halt-body p { margin: 0; }
.halt-body a { color: #000080; text-decoration: underline; }
.halt-icon {                            /* the classic red "stop" error icon */
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e00000; color: #fff; font-size: 18px; font-weight: 900;
  box-shadow: inset -2px -2px rgba(0,0,0,0.35), 1px 1px 0 #000;
}
.halt-actions { display: flex; justify-content: center; padding: 8px 0 12px; }
.halt-ok { min-width: 84px; padding: 5px 12px; }
.halt-ok:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

/* ---------- SOLD OUT — a fake pop-up ad blinking over the flyer ---------- */
.show-flyer { position: relative; }
.soldout-pop {
  position: absolute;
  left: 7%; right: 7%; top: 22%;
  z-index: 3;
  padding: 2px;
  background: #c0c0c0;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  letter-spacing: 0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, 4px 4px 0 rgba(0,0,0,0.6);
  opacity: var(--soldout-opacity, 0.88);
  transform: rotate(-4deg);
  animation: soldout-blink 1s steps(1, end) infinite;
  pointer-events: none;
}
.soldout-pop .sp-body {
  display: block;
  padding: 6px 4px 7px;
  background: #e00000;
}
.soldout-pop .sp-big {
  display: block;
  font-size: 22px; line-height: 1; font-weight: 900; font-style: italic;
  color: #ffe600;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  animation: soldout-shout 0.4s steps(1, end) infinite;
}
.soldout-pop .sp-sub {
  display: block; margin: 5px 0 4px;
  background: #fff; color: #000; font-size: 9px; padding: 2px;
}
.soldout-pop .sp-cta {
  display: inline-block;
  background: #ffe600; color: #d00000; font-size: 10px; font-weight: 900;
  padding: 2px 6px; border: 2px outset #fff5a0;
}
@keyframes soldout-blink {           /* steady on/off, like a cursor */
  50% { visibility: hidden; }
}
@keyframes soldout-shout { 50% { color: #ffffff; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- show cards: low-key grow + glitch on hover ----------
   A quick stutter, then it holds a slightly bigger card with a faint
   red / cyan split on the flyer. --flyer is set per card by shows-render.js. */
.show-card { transition: none; }
.show-flyer::before,
.show-flyer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--flyer, none);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.show-flyer::before { background-color: #ff0000; }
.show-flyer::after  { background-color: #00ffff; }
.show-card:hover { z-index: 2; transform: scale(1.035); animation: card-glitch-in 0.28s steps(1, end) 1; }
.show-card.has-flyer:hover .show-flyer { background: #000; }
.show-card.has-flyer:hover .show-flyer img { opacity: 0; }
.show-card.has-flyer:hover .show-flyer::before { opacity: 1; transform: translate(-3px, 0); }
.show-card.has-flyer:hover .show-flyer::after  { opacity: 1; transform: translate(3px, 1px); }
@keyframes card-glitch-in {
  0%   { transform: scale(1.02) skewX(-4deg) translateX(-3px); }
  25%  { transform: scale(1.05, 1.01) skewX(3deg); }
  50%  { transform: scale(1.03) translateX(4px); }
  75%  { transform: scale(1.04) skewX(-1.5deg); }
  100% { transform: scale(1.035); }
}
.empty-note {
  padding: 1.5rem 0;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  list-style: none;
}


.show-card.sold-out .show-flyer img { filter: grayscale(35%); }
.show-card.sold-out .show-headliner { color: var(--text-dim); }

/* =============================================
   ARCHIVE  (archive.html)
   ============================================= */
.archive-list { list-style: none; }

.archive-year {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.archive-year::after { content: '\25BE'; }
.archive-year.collapsed::after { content: '\25B8'; }
.archive-group.collapsed { display: none; }

.archive-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--border);
  align-items: baseline;
  font-size: 12px;
}
.archive-row:hover { background: var(--bg-2); }

.ar-date  { color: var(--text-dim); font-size: 10px; letter-spacing: 0.05em; }
.ar-acts  { color: var(--text); }
.ar-venue { color: var(--text-dim); font-size: 11px; }
.archive-row.has-flyer { cursor: pointer; }
.archive-row.has-flyer:hover,
.archive-row.has-flyer:focus-visible { background: rgba(208, 3, 57, 0.14); outline: none; }
.archive-row.has-flyer:hover .ar-acts,
.archive-row.has-flyer:focus-visible .ar-acts { color: var(--accent); }

/* flyer pop-up window (shares the Win95 look of the "halt!!!" window) */
.flyer-win { width: auto; max-width: min(560px, 100%); }
/* flyer pop-up: much darker backdrop than the "halt!!!" window, so the flyer pops */
.flyer-overlay { background: rgba(0, 0, 0, 0.88); }
.flyer-win { position: relative; }
.meme-arrows { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
/* each arrow is a point just outside the window edge; the arrow's tip sits on that point
   and it's rotated to aim in, so it can never cross into the frame */
.meme-arrow { position: absolute; width: 0; height: 0; transform: rotate(var(--rot)); }
.ma-bob {
  position: absolute; right: 0; top: -50px; width: 170px;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.6));
  animation: meme-arrow 0.6s ease-in-out var(--delay, 0s) infinite alternate;
}
.ma-bob svg { display: block; width: 100%; height: auto; }
@keyframes meme-arrow { from { transform: translateX(-28px); } to { transform: translateX(0); } }

/* the red marker circle drawn over the flyer */
.fb-wrap { position: relative; display: block; width: fit-content; margin: 0 auto; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ring path {
  fill: none; stroke: #e8271b; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 1px rgba(232, 39, 27, 0.8));
}
.ring.draw path { animation: ring-draw 1.5s cubic-bezier(.35, .05, .45, 1) 0.2s both; }
/* when circled, shrink the flyer a bit so the whole loop fits on screen */
.flyer-win.ringed .fb-wrap { max-width: 70%; margin: 13% auto; }
.flyer-win.ringed .flyer-body img { max-height: min(54vh, 540px); }
@keyframes ring-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.flyer-win .halt-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; }
.flyer-body {
  margin: 3px;
  padding: 3px;
  background: #000;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
}
.flyer-body img { display: block; max-width: 100%; max-height: min(74vh, 720px); margin: 0 auto; }
.flyer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 3px 3px; }
.flyer-bar[hidden] { display: none; }
.flyer-bar .halt-ok { min-width: 72px; padding: 4px 0; }
.flyer-count { font-size: 11px; color: #000; }

/* =============================================
   GALLERY  (gallery.html)
   ============================================= */
.gallery-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.gallery-tab {
  padding: 3px 14px;
  border: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-dim);
  background: none;
  font-family: var(--font-body);
}
.gallery-tab.active { border-color: var(--accent); color: var(--accent); }
.gallery-tab:hover  { border-color: var(--text-dim); }

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
}

.photo-item {
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.photo-item:hover img { transform: scale(1.03); }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(0,0,0,0.7);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.15s;
}
.photo-item:hover .photo-caption { opacity: 1; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.video-item { border: 1px solid var(--border); background: var(--bg-2); }
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  position: relative;
}
.video-thumb::after {
  content: '\25B6';
  position: absolute;
  font-size: 24px;
  color: var(--accent);
  opacity: 0.8;
}
.video-meta { padding: 0.6rem 0.8rem; border-top: 1px solid var(--border); }
.video-title { font-size: 12px; color: var(--text); margin-bottom: 2px; }
.video-date  { font-size: 10px; color: var(--text-dim); }
.tab-count { opacity: 0.6; }
.coming-soon {
  padding: 4.5rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.35em;
  border: 1px dashed #3a3a3a;
  background: rgba(0, 0, 0, 0.35);
}

/* photos are buttons (they open the lightbox) — strip the default button look */
button.photo-item { border: 0; padding: 0; width: 100%; font: inherit; color: inherit; outline: 1px solid var(--border); }
.photo-item img { position: absolute; inset: 0; }
.photo-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* video + audio cards */
.media-item { border: 1px solid var(--border); background: var(--bg-2); }
.media-frame { background: #000; }
.media-item--video .media-frame { aspect-ratio: 16 / 9; }
.media-embed, .media-file { display: block; width: 100%; height: 100%; border: 0; }
.media-embed--audio { height: 120px; }
.media-file--audio { height: 54px; padding: 10px; color-scheme: dark; }
.media-item--audio .media-frame { background: linear-gradient(90deg, #160016, #000 60%); }
.media-link, .media-missing {
  display: grid; place-items: center; height: 100%; min-height: 80px;
  color: var(--accent); font-size: 11px; letter-spacing: 0.15em;
}
.media-missing { color: var(--text-dim); }
.media-note { font-size: 11px; color: #bbb; margin-top: 4px; line-height: 1.45; }
.audio-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* photo lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 0 0 1px var(--border); }
.lightbox figcaption { color: var(--text-dim); font-size: 11px; letter-spacing: 0.1em; text-align: center; padding: 0 1rem; }
.lightbox button {
  background: none; border: 0; color: var(--accent); font: bold 40px/1 Arial, sans-serif; cursor: pointer; height: 100%;
}
.lightbox .lb-close { position: absolute; top: 12px; right: 16px; height: auto; font-size: 26px; }
.lightbox button:hover { color: var(--text); }

/* =============================================
   ABOUT  (about.html)
   ============================================= */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
.about-body { font-size: 13px; line-height: 1.9; color: var(--text-dim); }
.about-body p { margin-bottom: 1.1em; }
.about-body strong { color: var(--text); }
.about-body a { color: var(--accent); }

.info-block {
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.info-block .label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.info-block .value { font-size: 13px; color: var(--text); }
.info-block .value a { color: var(--accent); }

.social-links { display: flex; flex-direction: column; gap: 0.3rem; }
.social-links a {
  display: block;
  border: 1px solid var(--border);
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: border-color 0.1s, color 0.1s;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer nav { display: flex; gap: 1.2rem; margin-top: 0; }
footer nav a {
  border: none;
  padding: 0;
  color: var(--text-dim);
  font-size: 10px;
}
footer nav a:hover {
  background: none;
  color: var(--accent);
  text-decoration: none;
}

.blink { animation: blink 1s step-start infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
  .btn88 { width: 160px; height: 55px; }
  .archive-row { grid-template-columns: 70px 1fr; }
  .ma-bob { width: 92px; top: -27px; }
  .audio-grid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 36px 1fr 36px; }
  .ar-venue { display: none; }
  .about-wrap { grid-template-columns: 1fr; }
  .shows-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  header { padding: 1rem; }
  .page { padding: 1.25rem 1rem 0.25rem; margin: 1.25rem auto; width: calc(100% - 1.5rem); }
  footer { justify-content: center; text-align: center; }
}

/* respect people who turn off motion in their OS settings */
@media (prefers-reduced-motion: reduce) {
  .ticker-inner, .blink, .bg-canvas, .btn88.active, .show-card:hover,
  .soldout-pop, .soldout-pop .sp-big, .halt-win.pop, .ma-bob, .ring.draw path, .show-card.is-secret::after,
  .glitch:hover, .glitch:hover .fx, .glitch:hover .fx::after, .glitch:hover::before, .glitch:hover::after { animation: none; }
}
