.mb-event-popup {
  position: fixed;
  inset: 0;
  width: min(640px, calc(100% - 24px));
  width: min(640px, calc(100% - 24px), max(360px, calc(100svh - 36px)));
  max-width: none;
  max-height: calc(100% - 24px);
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  container-type: inline-size;
  border: 1px solid #a06b466b;
  border-radius: clamp(16px, 2.7vw, 24px);
  background: #28130d;
  color: #ffdfb2;
  box-shadow: 0 22px 95px #100703a8;
  font-family: Inter, Arial, sans-serif;
  text-align: center;
}

.mb-event-popup::backdrop {
  background: rgb(20 9 5 / 73%);
}

html:has(.mb-event-popup[open]) {
  overflow: hidden;
}

.mb-event-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 22cqw;
  min-height: 100cqw;
  padding: 4cqw 5cqw 4.5cqw;
  box-sizing: border-box;
}

.mb-event-panel::before,
.mb-event-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mb-event-panel::before {
  z-index: -1;
  content: '';
  background: linear-gradient(180deg, #1a080563 0%, #1a080548 46%, transparent 68%, #1a080559 100%);
}

.mb-event-background {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  color: transparent;
}

.mb-event-dismiss {
  position: absolute;
  z-index: 1;
  top: 2cqw;
  right: 2cqw;
  margin: 0;
}

.mb-event-close {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(29 11 6 / 36%);
  color: #ffdfb2;
  cursor: pointer;
}

.mb-event-close::before,
.mb-event-close::after {
  grid-area: 1 / 1;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: '';
  transform: rotate(45deg);
}

.mb-event-close::after {
  transform: rotate(-45deg);
}

.mb-event-close:hover {
  background: rgb(29 11 6 / 72%);
}

.mb-event-close:focus-visible,
.mb-event-ticket:focus-visible {
  outline: 2px solid #fff3dc;
  outline-offset: 2px;
}

.mb-event-content {
  width: 100%;
  overflow-wrap: anywhere;
}

.mb-event-brand,
.mb-event-title,
.mb-event-subtitle,
.mb-event-date {
  margin: 0;
  text-transform: uppercase;
}

.mb-event-brand {
  font-size: clamp(15px, 3cqw, 20px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .28em;
}

.mb-event-brand span {
  display: block;
  margin-top: .35em;
  font-size: .59em;
}

.mb-event-title {
  margin-top: 4.1cqw;
  background: linear-gradient(175deg, #fb4b0c 26%, #ff7a10 63%, #ffd275 94%);
  color: #ff7419;
  font-family: Gregory, Impact, sans-serif;
  font-size: clamp(44px, 17cqw, 112px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.018em;
  text-wrap: balance;
}

@supports (background-clip: text) {
  .mb-event-title {
    background-clip: text;
    color: transparent;
  }
}

.mb-event-subtitle {
  margin-top: 2.3cqw;
  color: inherit;
  font-size: clamp(10px, 2.2cqw, 15px);
  line-height: 1.35;
  letter-spacing: .21em;
}

.mb-event-program {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  margin: 3.4cqw auto 0;
  padding: 0;
  list-style: none;
  color: inherit;
}

.mb-event-program li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65em;
  min-width: 0;
  margin: 0;
  padding: 0 .3em;
  font-size: clamp(9px, 1.5cqw, 11px);
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mb-event-program li + li {
  border-left: 1px solid #ffdfb24d;
}

.mb-event-program svg {
  flex: none;
  width: clamp(21px, 5.3cqw, 35px);
  height: auto;
}

.mb-event-program span {
  white-space: pre-line;
}

.mb-event-date {
  margin-top: 3.6cqw;
  color: inherit;
  font-size: clamp(15px, 3.05cqw, 22px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .19em;
  text-shadow: 0 1px 6px #2a1109;
}

.mb-event-popup .mb-event-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 44px;
  max-width: 100%;
  padding: .6em 1.8em;
  box-sizing: border-box;
  border: 1px solid #ffe4bc;
  border-radius: 100px;
  background: #f9d9aa;
  color: #33170f;
  font-size: clamp(13px, 2.7cqw, 19px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mb-event-popup .mb-event-ticket:hover {
  background: #ffebcc;
  color: #33170f;
}

.mb-event-ticket span {
  flex: none;
  font-size: 1.35em;
  line-height: 1;
}

@media (max-width: 520px) {
  .mb-event-panel {
    gap: 27cqw;
    min-height: 111cqw;
    padding: 6cqw 3cqw 5cqw;
  }

  .mb-event-program li {
    letter-spacing: .04em;
  }

  .mb-event-title {
    margin-top: 5cqw;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .mb-event-popup {
    width: min(640px, calc(100% - 24px), calc(100svh - 30px));
  }

  .mb-event-panel {
    gap: 12cqw;
    min-height: 98cqw;
    padding-block: 4cqw;
  }
}
