@font-face {
  font-family: "Roabla";
  src: url("../fonts/Roabla-DemoVersion-Regular.ttf") format("truetype"),
    url("../fonts/Roabla-DemoVersion-Regular.otf") format("opentype");
  font-weight: normal;
  font-display: swap;
}

:root {
  --bg-0: #07090e;
  --bg-1: #0d111a;
  --panel: rgba(12, 15, 23, 0.86);
  --panel-strong: rgba(9, 12, 19, 0.94);
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f6f2ea;
  --muted: #bdb4a7;
  --accent: #e0d1bc;
  --accent-soft: rgba(224, 209, 188, 0.14);
  --blue: rgba(111, 159, 216, 0.18);
  --green: #cbe6d2;
  --warning: #f0d3a8;
  --shadow-lg: 0 26px 56px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(200, 125, 94, 0.16), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(62, 112, 178, 0.2), transparent 26%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.03), transparent 30%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.7;
}

body::after {
  background:
    radial-gradient(circle at 28% 68%, rgba(200, 125, 94, 0.12), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(111, 159, 216, 0.16), transparent 32%);
  filter: blur(20px);
  opacity: 0.75;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.page {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.6rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Roabla", "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.95;
  cursor: default;
}

.brand::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 209, 188, 0.18);
}

.ticket-shell {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 0.5rem;
}

.artist-card,
.show-card {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
  animation: card-enter 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.show-card {
  animation-delay: 70ms;
}

.artist-card::before,
.show-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.artist-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.artist-image-wrap {
  position: relative;
  min-height: 250px;
  border-radius: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#ticket-artwork,
.artwork-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#ticket-artwork {
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: transparent;
  transition: filter 0.35s ease;
}

.artist-card:hover #ticket-artwork {
  filter: saturate(1.03) contrast(1.02);
}

.artwork-fallback {
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(200, 125, 94, 0.2), transparent 40%),
    radial-gradient(circle at bottom left, rgba(111, 159, 216, 0.2), transparent 42%),
    #0f1219;
}

.fallback-brand {
  font-family: "Roabla", "Oswald", sans-serif;
  font-size: clamp(1.9rem, 4.8vw, 2.7rem);
  line-height: 0.9;
  text-align: center;
  color: var(--accent);
  text-transform: uppercase;
}

.artist-copy {
  display: grid;
  align-content: end;
  gap: 0.62rem;
  min-width: 0;
  padding: 0.15rem 0.2rem 0.2rem;
}

.artist-name {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.artist-note {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.48;
  max-width: 40ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow,
.state-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.eyebrow {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(224, 209, 188, 0.23);
}

.ticket-badge-link {
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.ticket-badge-link:hover,
.ticket-badge-link:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ticket-badge-link.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.75;
  transform: none;
}

.state-chip {
  color: var(--green);
  background: rgba(203, 230, 210, 0.12);
  border-color: rgba(203, 230, 210, 0.24);
  animation: chip-pulse 1.5s ease-in-out infinite;
}

.state-chip.is-warning {
  color: var(--warning);
  background: rgba(240, 211, 168, 0.14);
  border-color: rgba(240, 211, 168, 0.24);
  animation: none;
}

.meta-chip {
  color: #d8d1c7;
  background: rgba(255, 255, 255, 0.04);
  text-transform: none;
  letter-spacing: 0.02em;
}

.show-card {
  display: grid;
  gap: 0.78rem;
  padding: 1rem;
}

.show-main {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3.1vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.subtitle,
.show-location,
.description,
.note {
  margin: 0;
}

.price-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin: 0.12rem 0 0.05rem;
}

.price-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #ddd5c9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-chip.is-primary {
  border-color: rgba(224, 209, 188, 0.33);
  background: rgba(224, 209, 188, 0.14);
  color: #f2ebdf;
}

.subtitle {
  color: #ece5d8;
  font-size: 0.96rem;
  line-height: 1.32;
}

.show-date-line {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.28;
}

.show-location {
  color: #cbc3b7;
  font-size: 1rem;
  line-height: 1.35;
}

.description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
  max-width: 48ch;
}

.show-actions {
  display: grid;
  gap: 0.5rem;
}

.cta-button {
  min-width: 170px;
  min-height: 44px;
  padding: 0.58rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease,
    background 190ms ease,
    color 190ms ease;
}

.cta-button.primary {
  color: #1a1d22;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f4f7 100%);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cta-button.primary:hover,
.cta-button.primary:focus {
  transform: translateY(-1px);
  background: #fff;
  border-color: #fff;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.trust-copy {
  margin: 0;
  color: #d8d0c2;
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 600;
}

.progress-shell {
  display: block;
}

.progress-track {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(224, 209, 188, 0.95), rgba(111, 159, 216, 0.85));
}

.progress-fill.is-running {
  animation: progress-fill linear forwards;
}

.note {
  color: #c8c0b4;
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-links {
  gap: 0.85rem;
  justify-content: center;
}

.top-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 170ms ease;
}

.top-link:hover,
.top-link:focus {
  color: #fff;
}

.sticky-cta-shell {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.6rem max(0.65rem, env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(7, 9, 14, 0), rgba(7, 9, 14, 0.95) 28%, rgba(7, 9, 14, 1) 100%);
  backdrop-filter: blur(7px);
}

.sticky-cta-button {
  display: block;
  width: min(860px, 100%);
  margin: 0 auto;
  min-height: 52px;
  border-radius: 14px;
  text-align: center;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chip-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(203, 230, 210, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(203, 230, 210, 0.14);
  }
}

@keyframes progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 1.2rem, 860px);
  }

  .artist-card {
    grid-template-columns: 1fr;
  }

  .artist-image-wrap {
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 0.9rem, 860px);
    padding-top: 0.8rem;
  }

  .topbar {
    padding-bottom: 0.75rem;
  }

  .brand {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }

  .artist-card,
  .show-card {
    border-radius: 22px;
    padding: 0.88rem;
  }

  .artist-image-wrap {
    min-height: 208px;
  }

  .artist-name {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .show-card {
    gap: 0.65rem;
  }

  .show-actions {
    position: static;
    padding: 0;
    z-index: auto;
  }

  .cta-button {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    min-height: 48px;
    border-radius: 14px;
    box-shadow:
      0 10px 20px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .ticket-shell {
    padding-bottom: 5.7rem;
  }

  .note {
    display: none;
  }

  #ticket-continue {
    display: none !important;
  }

  .sticky-cta-shell {
    display: block;
  }
}

@media (max-width: 460px) {
  .page {
    width: min(100% - 0.65rem, 860px);
    padding-bottom: 1.2rem;
  }

  .artist-card,
  .show-card {
    border-radius: 19px;
    padding: 0.74rem;
  }

  .artist-note,
  .subtitle,
  .show-date-line,
  .show-location,
  .description,
  .note {
    font-size: 0.98rem;
  }

  .price-chip {
    min-height: 27px;
    font-size: 0.76rem;
    padding: 0.2rem 0.62rem;
  }
}
