.features--tickets {
  --ticket-surface: #342b41;
  --ticket-focus: #e0c8f3;
  padding-block: clamp(44px, 6.2svh, 78px) clamp(54px, 7.4svh, 90px);
  background: radial-gradient(ellipse at 74% 3%, #40334d, transparent 66%), #2e283b;
}

.features--tickets > .wrap { width: min(91%, 1450px); }
.feature-tickets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3.4vw, 42px);
  background: url("assets/explorer/orbity-biletow.png") right -18px top -52px / min(75vw, 1120px) auto no-repeat;
}

.features--tickets .feature-tickets-heading {
  position: relative;
  display: block;
  grid-area: 1 / 1;
  min-width: 0;
  margin: 0;
  padding-inline-end: clamp(136px, 19vw, 286px);
}

.feature-tickets-heading .eyebrow { margin-bottom: 8px; }
.feature-tickets-heading h2 {
  font-size: clamp(2rem, 3.48vw, 3.5rem);
  font-weight: 550;
}
.feature-tickets-heading .section-lead {
  max-width: 70ch;
  margin-top: 13px;
  font-size: clamp(.9rem, 1.14vw, 1.05rem);
}

.feature-tickets-brand {
  position: absolute;
  inset: -5px 4% auto auto;
  width: clamp(132px, 15vw, 232px);
  transform: rotate(-7deg);
  filter: drop-shadow(0 12px 22px #17121c78);
  pointer-events: none;
}
.feature-tickets-brand .explorer-hub-logo {
  position: absolute;
  inset: 50% auto auto 44%;
  width: 62%;
  transform: translate(-50%, -50%);
}

.feature-tickets-grid {
  grid-area: 2 / 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.24vw, 19px);
  min-width: 0;
}
.feature-tickets-grid > li { min-width: 0; }

.feature-ticket {
  --focus: var(--ticket-focus);
  --ticket-line: #a493b89c;
  --ticket-cut: #342b41;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1vw, 15px);
  width: 100%;
  height: 100%;
  min-height: clamp(70px, 10svh, 92px);
  overflow: hidden;
  padding: 11px clamp(12px, 1.35vw, 21px);
  border: 1px solid var(--ticket-line);
  border-radius: 13px;
  background: var(--ticket-surface);
  color: var(--paper);
  font-size: clamp(.88rem, 1.09vw, 1.03rem);
  font-weight: 600;
  line-height: 1.27;
  text-align: start;
  transition: border-color 160ms, background-color 160ms;
}
.feature-ticket > .icon { color: var(--brand-gold); }
.feature-ticket > .icon:first-child { width: 26px; height: 26px; }
.feature-ticket .feature-ticket-arrow {
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: .8;
}
.feature-ticket > span { min-width: 0; overflow-wrap: anywhere; }
.feature-ticket::before, .feature-ticket::after {
  position: absolute;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 1px solid var(--ticket-line);
  border-radius: 50%;
  background: var(--ticket-cut);
  content: '';
}
.feature-ticket::before { left: -10px; }
.feature-ticket::after { right: -10px; }
.feature-ticket > span::after {
  position: absolute;
  inset: 6px 10px 6px auto;
  border-right: 1px dashed var(--ticket-line);
  content: '';
}
.feature-ticket:not([aria-expanded="true"]):is(:hover, :focus-visible, :active) {
  --ticket-line: #c5afd8bf;
  background: #41354e;
}
.feature-ticket[aria-expanded="true"] {
  border-style: dashed;
  background: transparent;
}
.feature-ticket[aria-expanded="true"] > * { opacity: 0; }

.feature-ticket-dialog {
  --focus: var(--ticket-focus);
  inset: 0;
  width: min(900px, calc(100% - 30px));
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  filter: drop-shadow(0 20px 36px #1b152470);
}
.feature-ticket-sheet {
  position: relative;
  border-radius: 24px;
  mask:
    radial-gradient(circle at left center, transparent 12px, #000 12.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at right center, transparent 12px, #000 12.5px) right / 51% 100% no-repeat;
  max-height: calc(100svh - 30px);
  overflow: auto;
  padding: clamp(24px, 3vw, 38px) clamp(26px, 3.5vw, 44px);
  border: 1px solid #a493b89c;
  background: var(--ticket-surface);
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.feature-ticket-sheet::after {
  position: absolute;
  inset: 12px 14px 12px auto;
  border-right: 1px dashed #8a78969c;
  pointer-events: none;
  content: '';
}
.feature-ticket-dialog:modal::backdrop {
  background: #1b1426a6;
  animation: feature-ticket-veil 300ms ease-out both;
}
.feature-ticket-dialog--closing:modal::backdrop {
  animation: feature-ticket-veil-out 250ms ease-in both;
}
@keyframes feature-ticket-veil { from { opacity: 0; } to { opacity: 1; } }
@keyframes feature-ticket-veil-out { from { opacity: 1; } to { opacity: 0; } }
html:has(.feature-ticket-dialog:modal) { overflow: hidden; }
.feature-ticket-close {
  position: absolute;
  z-index: 1;
  inset: 10px 23px auto auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #9b86aa;
  border-radius: 50%;
  background: var(--ticket-surface);
  color: var(--paper);
}
.feature-ticket-close:hover { background: #41354e; border-color: var(--ticket-focus); }
.feature-ticket-close .icon { width: 18px; height: 18px; }
.feature-ticket-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feature-ticket-dialog h3 {
  margin: 5px 38px 14px 0;
  font-size: clamp(1.38rem, 3vw, 2.12rem);
  font-weight: 650;
  line-height: 1.13;
  overflow-wrap: break-word;
}
.feature-ticket-dialog .explorer-detail p { font-size: .95rem; line-height: 1.5; }
.feature-ticket-dialog .explorer-detail-copy, .feature-ticket-dialog .explorer-detail-media { animation: none; }
.feature-ticket-dialog .explorer-detail-media { margin-top: 18px; }
.feature-ticket-scan { margin-top: 16px; }
.feature-ticket-scan .explorer-scan-topics { margin: 0; }
.feature-ticket-scan .explorer-scan-viewer { margin-top: 12px; }
.feature-ticket-dialog .explorer-scan-caption { font-size: .81rem; }
.feature-ticket-dialog .explorer-full-description { margin-top: 13px; border-color: #8a78969c; }
.feature-ticket-dialog .explorer-full-description summary { color: #f0e5f7; }
.feature-ticket-dialog .explorer-full-description summary:focus-visible { outline-color: var(--ticket-focus); }
.feature-ticket-scan .explorer-choice {
  min-height: 44px;
  padding: 6px 11px;
  border-color: #9b86aa;
  border-radius: 24px;
  background: transparent;
  color: var(--paper);
  font-size: .81rem;
}
.feature-ticket-scan .explorer-choice:not([aria-pressed="true"]):hover {
  border-color: var(--ticket-focus);
  background: #41354e;
}
.feature-ticket-scan .explorer-choice[aria-pressed="true"] {
  border-color: var(--brand-gold);
  background: var(--brand-gradient);
  color: #2a2118;
}

@media (min-width: 720px) {
  .feature-ticket-sheet { padding-top: 57px; }
  .feature-ticket-dialog h3 { margin-inline-end: 0; }
  .feature-ticket-dialog .explorer-detail--scanner,
  .feature-ticket-dialog .explorer-detail--with-media {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: start;
    gap: 0 clamp(20px, 3vw, 40px);
  }
  .feature-ticket-dialog .explorer-detail--scanner { grid-template-rows: auto 1fr; }
  .feature-ticket-dialog .explorer-detail--scanner .feature-ticket-scan { grid-area: 1 / 2 / 3; margin-top: 0; }
  .feature-ticket-dialog .explorer-detail--with-media .explorer-detail-media { margin-top: 0; }
}
@media (max-width: 1100px) {
  .feature-tickets-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 810px) {
  .feature-tickets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 585px) {
  .feature-tickets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features--tickets .feature-tickets-heading { padding-inline-end: 0; }
  .feature-tickets-heading .eyebrow { max-width: calc(100% - 90px); }
  .feature-tickets-heading h2 { font-size: clamp(1.85rem, 6.3vw, 2.4rem); max-width: calc(100% - 110px); }
  .feature-tickets-brand { inset: 5px 8px auto auto; width: clamp(88px, 22vw, 124px); }
  .feature-ticket {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 74px;
    gap: 6px;
    padding-inline: 10px 20px;
    font-size: .81rem;
  }
  .feature-ticket > .icon:first-child { width: 20px; height: 20px; }
  .feature-ticket .feature-ticket-arrow {
    position: absolute;
    inset-inline-end: 8px;
    width: 10px;
    height: 10px;
  }
  .feature-ticket > span::after { inset-inline-end: 5px; }
  .feature-ticket-sheet { padding-inline: 23px; }
  .feature-ticket-close { inset-inline-end: 18px; }
  .feature-ticket-scan .explorer-scan-topics { gap: 6px; }
  .feature-ticket-scan .explorer-choice { padding-inline: 8px; font-size: .79rem; }
}
@media (max-width: 370px) {
  .feature-ticket { padding-inline-end: 12px; }
  .feature-ticket .feature-ticket-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-ticket { transition: none; }
  .feature-ticket-dialog:modal::backdrop { animation: none; }
}
