* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@font-face {
  font-family: "Michroma";
  src: url("/fonts/michroma.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
  /* no bg color: iOS Safari tints the toolbar with it */
  background: transparent url("/images/bg-poster.jpg") center / cover no-repeat;
  opacity: 0;
}

.bg-video.is-active {
  opacity: 1;
}

/* iOS Safari cuts off fully opaque fixed layers behind its toolbars while
   scrolling. 0.99 opacity + overscan avoids the black bars. */
@media (hover: none) and (pointer: coarse) {
  .bg-video {
    top: -80px;
    height: calc(100vh + 240px);
    height: calc(100lvh + 240px);
  }
  .bg-video.is-active { opacity: 0.99; }
}

html, body {
  background-color: transparent;
}

html {
  background-color: #000;
}

:root {
  --footer-height: calc(30px + env(safe-area-inset-bottom, 0px));
  --nav-space: calc(222px + env(safe-area-inset-top, 0px));
}

@media (max-width: 600px) {
  :root { --nav-space: calc(122px + env(safe-area-inset-top, 0px)); }
}

nav-bar {
  --nav-logo-height: 170px;
  --nav-font-size: 40px;
  --nav-letter-spacing: 0.06em;
  --nav-link-gap: 112px;
  --nav-padding-y: 40px;
  --nav-link-offset: -18px;
  --nav-fade-height: 300px;

  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  width: 100%;
  z-index: 10;
}

@media (max-width: 1100px) {
  :root { --nav-space: calc(182px + env(safe-area-inset-top, 0px)); }
  nav-bar {
    --nav-logo-height: 130px;
    --nav-font-size: 26px;
    --nav-link-gap: 48px;
    --nav-link-offset: -12px;
  }
}

@media (max-width: 760px) {
  :root { --nav-space: calc(156px + env(safe-area-inset-top, 0px)); }
  nav-bar {
    --nav-logo-height: 104px;
    --nav-font-size: 19px;
    --nav-link-gap: 26px;
  }
}

@media (max-width: 600px) {
  nav-bar {
    --nav-logo-height: 86px;
    --nav-link-gap: 14px;
    --nav-font-size: 13px;
    --nav-padding-y: 18px;
    --nav-padding-top: 44px;
    --nav-link-offset: -8px;
    --nav-logo-depth: 12px;
    --nav-fade-height: 0px;
  }
}

@media (max-width: 360px) {
  nav-bar {
    --nav-logo-height: 66px;
    --nav-link-gap: 10px;
    --nav-font-size: 11px;
  }
}

.home {
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
  padding: var(--nav-space) 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards {
  --card-gap: 64px;
  --card-height: min(
    calc(100svh - var(--nav-space) - var(--footer-height) - 80px),
    560px,
    calc((100vw - 48px - 2 * var(--card-gap)) / 3 * 5 / 4)
  );

  display: flex;
  gap: var(--card-gap);
  justify-content: center;
  align-items: center;
}

.card {
  height: var(--card-height);
  aspect-ratio: 4 / 5;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid #ffffff;
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.7),
    0 0 16px rgba(255, 255, 255, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
}

.card[hidden] { display: none; }

.cards[data-hidden="1"] .card--spotify {
  aspect-ratio: auto;
  width: calc(var(--card-height) * 8 / 5 + var(--card-gap));
}
.cards[data-hidden="2"] .card--spotify {
  aspect-ratio: auto;
  width: calc(var(--card-height) * 12 / 5 + 2 * var(--card-gap));
}

@media (max-width: 700px) {
  .home {
    align-items: flex-start;
    padding: var(--nav-space) 16px 24px;
  }

  .cards {
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .card {
    height: auto;
    width: min(100%, 380px);
    aspect-ratio: 4 / 5;
  }

  .cards[data-hidden] .card--spotify { width: min(100%, 380px); aspect-ratio: 4 / 5; }
}

.card {
  --card-pad: clamp(16px, 1.6vw, 26px);
  --card-text: #e6e6e6;
  --card-muted: #8c8c8c;
  --card-line: rgba(255, 255, 255, 0.14);
  --card-fill: rgba(255, 255, 255, 0.08);

  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);
  padding: var(--card-pad);
  color: var(--card-text);
  font-size: clamp(11px, 0.85vw, 13px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-line);
}

.card-head h2,
.card-link,
.tour-tix {
  font-family: "Michroma", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-head h2 {
  font-size: clamp(14px, 1.2vw, 18px);
  color: #fff;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.1em;
  font-size: 0.8em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.card-link::after {
  content: "→";
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.card-link[target="_blank"]::after { content: "↗"; }

.card-link:hover,
.card-link:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
  outline: none;
}

.card-link:hover::after { transform: translateX(2px); }
.card-link[target="_blank"]:hover::after { transform: translate(2px, -2px); }

.merch-grid {
  --merch-col-gap: clamp(10px, 1vw, 16px);
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.6vh, 16px) var(--merch-col-gap);
  flex: 1;
  min-height: 0;
}

.merch-item { min-height: 0; }

.merch-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--merch-col-gap)) / 2);
}

.merch-link {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  text-align: center;
  gap: 2px;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.merch-link:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

.merch-thumb {
  display: block;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card-fill);
  border: 1px solid var(--card-line);
  transition: border-color 0.15s ease;
}

.merch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.merch-link:hover .merch-thumb { border-color: rgba(255, 255, 255, 0.6); }
.merch-link:hover .merch-thumb img { transform: scale(1.04); }

.merch-name {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merch-price { color: var(--card-muted); }

.is-sold-out .merch-thumb img { filter: grayscale(0.6); }
.is-sold-out .merch-price { text-transform: uppercase; letter-spacing: 0.06em; }

.merch-empty { grid-column: 1 / -1; color: var(--card-muted); }

.tour-table {
  width: 100%;
  border-collapse: collapse;
}

.card--tour { overflow: hidden; }

.tour-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: calc(var(--card-pad) * -0.5);
  padding-right: calc(var(--card-pad) * 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  --fade-top: 0px;
  --fade-bottom: 0px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
}

.tour-scroll.is-scrolled { --fade-top: 28px; }
.tour-scroll.has-more { --fade-bottom: 40px; }

.tour-scroll::-webkit-scrollbar { width: 4px; }
.tour-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }
.tour-scroll::-webkit-scrollbar-track { background: transparent; }

.tour-table tr + tr td { border-top: 1px solid var(--card-line); }

.tour-table td {
  padding: clamp(6px, 1.3vh, 14px) 0;
  vertical-align: middle;
}

.tour-date {
  width: 1%;
  padding-right: 14px !important;
  white-space: nowrap;
  font-family: "Michroma", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
}

.tour-place span { display: block; }
.tour-venue { color: var(--card-muted); margin-top: 2px; }

.tour-table td:last-child { text-align: right; width: 1%; }

.tour-tix {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.75em;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 999px;
  white-space: nowrap;
}

.tour-tix:hover,
.tour-tix:focus-visible { background: #fff; color: #000; outline: none; }

.tour-door {
  font-family: "Michroma", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--card-muted);
}

.tour-empty { color: var(--card-muted); }

.spotify-embed {
  flex: 1;
  min-height: 152px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--card-fill);
}

.page {
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
  padding: var(--nav-space) 24px 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-panel {
  width: min(920px, 100%);
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 3vw, 44px);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid #ffffff;
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.7),
    0 0 16px rgba(255, 255, 255, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.15);
  border-radius: 18px;
}

.page-panel--wide {
  width: min(1100px, 100%);
}

@media (max-width: 600px) {
  .page { padding: var(--nav-space) 12px 24px; }
  .page-panel { padding: 20px 16px; border-radius: 16px; }
}

shop-cart { --cart-safe-top: env(safe-area-inset-top, 0px); }

.legal {
  width: min(720px, 100%);
  color: #d6d6d6;
  font-size: 15px;
  line-height: 1.6;
}

.legal h1,
.legal h2 {
  font-family: "Michroma", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.legal h1 { font-size: clamp(20px, 2vw, 28px); }
.legal h2 { font-size: 13px; margin: 28px 0 8px; }
.legal p + p { margin-top: 10px; }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin-top: 6px; font-size: 12px; color: #8c8c8c; }

@media (max-width: 600px) {
  .has-cart-bar site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

.shot-mode .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--shot-height, 100vh);
}

.not-found a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.not-found p { margin-top: 12px; }
