@import url("./venue-fonts.css");

* { box-sizing: border-box; }
html { text-size-adjust: 100%; }
body { min-width: 0; margin: 0; overflow-x: auto; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a img { border: 0; }
h1, h2, h3, p, td { overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
font[size="7"] { font-size: clamp(2rem, 7vw, 3.4rem); }
font[size="6"] { font-size: clamp(1.55rem, 5vw, 2.4rem); }
font[size="5"] { font-size: clamp(1.2rem, 4vw, 1.65rem); }

/* Keep old fixed-width tables centered, but allow them to shrink on phones. */
table { margin-left: auto !important; margin-right: auto !important; max-width: calc(100vw - 16px); }
td, th { max-width: calc(100vw - 24px); }

.retro-spacer { min-height: clamp(26px, 8vh, 105px); margin: 0; }
.clipart-strip, .balanced-clipart-row {
  display: flex !important; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(10px, 4vw, 48px); width: 100%; text-align: center !important;
}
.clipart-strip img, .balanced-clipart-row img { float: none !important; margin: 4px; }

.marquee { width: 100%; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-block; min-width: 100%; padding-left: 100%; animation: scroll 15s linear infinite; }
.marquee-inner.marquee-right { padding-left: 0; padding-right: 100%; animation-name: scrollright; }
@keyframes scroll { to { transform: translateX(-100%); } }
@keyframes scrollright { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { white-space: normal; text-align: center; }
  .marquee-inner { padding: 0; animation: none; }
}

.flyer-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; width: min(1180px, calc(100vw - 28px)); margin: 14px auto;
}
.flyer-thumb { display: block; padding: 5px; background: #000; border: 1px solid #fff; text-align: center; }
.flyer-thumb img { width: 100%; max-width: 220px; object-fit: contain; }
.flyer-lightbox { max-width: 94vw; max-height: 92vh; padding: 30px 8px 8px; background: #000; border: 2px outset #fff; }
.flyer-lightbox::backdrop { background: rgba(0,0,0,.82); }
.flyer-lightbox img { display: block; max-width: 88vw; max-height: 82vh; margin: auto; }
.lightbox-close { position: absolute; top: 3px; right: 3px; }

.retro-panel, .booking-form, .archive-list, .status-panel {
  width: min(760px, calc(100vw - 24px)); margin: 14px auto; padding: 14px;
  color: #fff; background: rgba(0,0,0,.72); border: 1px solid #fff;
}
.retro-button, button, input[type="submit"], input[type="reset"] {
  font: inherit; color: #000; background: #c0c0c0; border: 2px outset #fff; padding: 5px 10px;
}
.retro-button:active, button:active { border-style: inset; }
.booking-form label { display: block; margin: 12px auto 4px; max-width: 560px; text-align: left; }
.booking-form input, .booking-form textarea, .booking-form select {
  display: block; width: min(560px, 100%); margin: auto; padding: 7px;
  color: #000; background: #fff; border: 2px inset #ddd; font: inherit;
}
.booking-form textarea { min-height: 150px; resize: vertical; }
.booking-form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

.archive-track { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px; border-bottom: 1px dotted #fff; }
.archive-track:last-child { border-bottom: 0; }
.status-online { color: #00ff00; }
.status-offline { color: #ff4040; }
.site-map { line-height: 1.8; }
.site-map a { background: #fff; color: #000; padding: 2px 4px; }
.direct-shell-link {
  position: fixed; right: 8px; bottom: 8px; z-index: 90000; padding: 5px 8px;
  color: #000; background: #c0c0c0; border: 2px outset #fff; text-decoration: none;
}
.rules-copy { width: min(920px, calc(100vw - 24px)); margin: 20px auto; padding: 16px; background: rgba(0,0,0,.58); border: 1px solid #fff; }
.rules-copy p { line-height: 1.45; }

@media (max-width: 650px) {
  table { font-size: .93rem; }
  td, th { padding: 5px !important; }
  .archive-track { grid-template-columns: 1fr; text-align: center; }
  .flyer-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Archive library generated from assets/audio/archive/. */
.archive-global-controls {
  width: min(900px, calc(100vw - 24px));
  margin: 10px auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.archive-list { width: min(900px, calc(100vw - 24px)); padding: 8px; }
.archive-collection { margin: 12px 0 20px; border: 1px solid #fff; background: rgba(0,0,0,.42); }
.archive-collection-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px dotted #fff;
}
.archive-collection-heading h2 { margin: 0 0 4px; }
.archive-cover { width: min(130px, 30vw); max-height: 150px; object-fit: contain; }
.archive-collection-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px dotted #fff;
}
.archive-track-info { min-width: 0; }
.archive-duration { font-weight: normal; opacity: .8; }
.archive-notes { margin-top: 3px; font-size: .9em; }
.archive-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.archive-file-link { display: inline-block; color: #000; text-decoration: none; }

@media (max-width: 650px) {
  .archive-collection-heading { align-items: flex-start; }
  .archive-controls { justify-content: center; }
}


/* V3 landing-page alignment fixes. */
.landing-page .intro {
  min-height: 78vh;
  padding-bottom: clamp(28px, 6vh, 70px);
}
.landing-page .shows-top-spacer {
  min-height: clamp(24px, 4vh, 52px);
}
.landing-page .shows-divider {
  display: block;
  width: min(760px, calc(100vw - 30px));
  height: auto;
  margin-inline: auto;
}
.show-schedule {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 10px 12px 54px;
  text-align: center;
}
.show-month-block {
  width: 100%;
  margin: 30px auto 10px;
}
.show-table-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 700px) 80px;
  justify-content: center;
  align-items: center;
  column-gap: 18px;
  width: 100%;
  margin: 0 auto;
}
.show-table {
  float: none !important;
  clear: both;
  display: table;
  width: min(700px, 100%) !important;
  table-layout: fixed;
  margin: 0 auto !important;
}
.show-table tr:not(:first-child) > :nth-child(1) { width: 22%; }
.show-table tr:not(:first-child) > :nth-child(2) { width: 52%; }
.show-table tr:not(:first-child) > :nth-child(3) { width: 26%; }
.show-side-art {
  display: block;
  float: none !important;
  width: 65px;
  height: auto;
  margin: auto;
}
.show-interlude {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px auto 4px;
}
.show-center-art { max-height: 158px; width: auto; }
.show-bottom-art { margin-top: 6px; }

/* Keep large legacy panels centered and responsive on the newly added pages. */
.legacy-centered-panel {
  width: min(1200px, calc(100vw - 24px)) !important;
  margin-inline: auto !important;
}

@media (max-width: 900px) {
  .show-table-row {
    grid-template-columns: minmax(0, 700px);
    row-gap: 10px;
  }
  .show-side-art { display: none; }
}
@media (max-width: 650px) {
  .landing-page .intro {
    min-height: auto;
    padding-bottom: 38px;
  }
  .show-schedule { padding-inline: 8px; }
  .show-month-block { margin-top: 22px; }
  .show-table { font-size: .86rem; }
  .show-table td { overflow-wrap: normal; word-break: normal; }
  .show-interlude { min-height: 90px; }
}

/* V4: retain the original FrontPage prose and table proportions. */
.legacy-house-rules {
  padding: 8px;
  color: #fff;
}
.legacy-house-rules p {
  margin-top: 1em;
  margin-bottom: 1em;
}

.legacy-booking-page {
  color: #fff;
  padding: 8px;
}
.legacy-booking-table {
  width: 538px !important;
  max-width: calc(100vw - 24px) !important;
  margin-inline: auto !important;
  background: transparent !important;
  border-collapse: separate;
}
.legacy-booking-table > tbody > tr > td {
  width: auto !important;
  padding: 0 12px;
}
.legacy-booking-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.legacy-booking-form input[type="text"],
.legacy-booking-form textarea {
  display: inline-block;
  width: auto;
  max-width: calc(100vw - 70px);
  margin: 0;
  padding: 2px;
  color: #000;
  background: #fff;
  border: 2px inset #ddd;
  font: initial;
}
.legacy-booking-form textarea {
  width: 20em;
  min-height: 3.2em;
  resize: vertical;
}
.legacy-booking-form input[type="submit"],
.legacy-booking-form input[type="reset"] {
  padding: 1px 6px;
  margin: 0 2px;
  font: menu;
}

.announcement-clipart-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 4vw, 52px);
  padding: 8px 12px;
}
.announcement-clipart-row img {
  float: none !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

/* Make opened flyers dominate the viewport, while preserving their aspect ratio. */
.flyer-lightbox {
  width: 98vw;
  height: 98vh;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 34px 10px 10px;
  overflow: hidden;
}
.flyer-lightbox img {
  display: block;
  width: 94vw;
  height: calc(96vh - 44px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  image-rendering: auto;
  margin: auto;
}

.visitor-counter {
  display: inline-flex;
  gap: 1px;
  padding: 3px;
  vertical-align: middle;
  background: #000;
  border: 2px inset #c0c0c0;
  box-shadow: 1px 1px 0 #000;
}
.counter-digit {
  display: inline-block;
  min-width: .72em;
  padding: 1px 2px;
  color: #00ff00;
  background: #101010;
  border-right: 1px solid #333;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 3px #00ff00;
}
.search-results-panel {
  width: min(760px, calc(100vw - 24px));
  margin: 20px auto;
  padding: 12px;
  color: #fff;
  background: rgba(0,0,0,.75);
  border: 1px solid #fff;
}
.search-result {
  padding: 10px 4px;
  border-bottom: 1px dotted #fff;
}
.search-result:last-child { border-bottom: 0; }
.search-result a { color: #00ffff; }

.radio-status-table { color: #fff; background: rgba(0,0,0,.55); }
.mc-extra-status { opacity: .9; }

@media (max-width: 650px) {
  .legacy-house-rules { padding: 8px 12px; }
  .legacy-booking-table > tbody > tr > td { padding: 0 6px; }
  .legacy-booking-form textarea { width: min(20em, calc(100vw - 64px)); }
  .announcement-clipart-row { gap: 10px 18px; }
  .flyer-lightbox { width: 100vw; height: 100vh; border-width: 1px; }
  .flyer-lightbox img { width: 98vw; height: calc(100vh - 46px); }
}

/* V4.3: the chat hitbox stays active while only the image blinks. */
.landing-page .intro {
  position: relative;
}
.chatbird {
  position: absolute;
  right: clamp(10px, 3vw, 52px);
  bottom: clamp(56px, 10vh, 110px);
  z-index: 40;
  display: block;
  width: clamp(190px, 24vw, 300px);
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.chatbird img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  border: 0;
  opacity: 0;
  animation: blink 6s steps(1, end) infinite;
}
.chatbird:hover img,
.chatbird:focus-visible img {
  opacity: 1;
  animation-play-state: paused;
}
.chatbird:focus-visible {
  outline: 2px dotted #fff;
  outline-offset: 4px;
}
@keyframes blink {
  0%, 83.333% { opacity: 0; }
  83.334%, 99.999% { opacity: 1; }
  100% { opacity: 0; }
}

/* A deliberately obnoxious DVD-style homepage play button. */
.bounce {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  margin: 0;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  will-change: transform;
}
.bounce img {
  display: block;
  width: 39px;
  height: 39px;
  max-width: none;
  margin: 0;
  border: 0;
}
.bounce:hover,
.bounce:focus-visible {
  outline: 2px dotted #fff;
  outline-offset: 1px;
}
.bounce.still {
  left: 12px;
  top: 12px;
  transform: none !important;
}

@media (max-width: 700px) {
  .chatbird {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(230px, 68vw);
    margin: -16px 12px 14px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chatbird img {
    opacity: 1;
    animation: none;
  }
}

/* Cellar readability patch: schedule, second marquee, Minecraft details. */
.show-table tr:not(:first-child) td,
.show-table tr:not(:first-child) td * {
  font-family: "Verdana2", "Venue Body Font", Verdana, Arial, sans-serif !important;
  font-weight: normal !important;
  line-height: 1.35;
}

.shows .marquee-inner {
  color: #ffffff !important;
  font-family: "Verdana2", "Venue Body Font", Verdana, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: normal !important;
  line-height: 1.35;
}

.mc-extra-status,
.mc-extra-status * {
  font-family: "Verdana2", "Venue Body Font", Verdana, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: normal !important;
  line-height: 1.45;
}

