.ticket-dialog-open { overflow: hidden; }

.page-share-trigger {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 3vw, 1.55rem);
  width: min(calc(100% - .35rem), 46rem);
  min-height: clamp(5.4rem, 11vw, 7.5rem);
  margin: clamp(2.5rem, 6vw, 5rem) auto clamp(2.25rem, 5vw, 4.25rem);
  padding: .65rem clamp(.72rem, 3vw, 1.6rem);
  overflow: hidden;
  border: 2px solid #301355;
  border-radius: clamp(1.05rem, 3vw, 1.75rem);
  color: #25104f;
  background: linear-gradient(135deg, #c7f9ff 3%, #f8f0ff 28%, #efa8ec 53%, #ad98ff 76%, #8ef0ff);
  box-shadow: inset 0 4px 0 #fff8, inset 0 -6px 0 #41179544, 4px 5px 0 #32135c, 0 .9rem 1.65rem #8548c936;
  text-align: start;
  touch-action: manipulation;
}
.page-share-trigger::before, .page-share-trigger::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.page-share-trigger::before {
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 82% 55%, #fbfcffce, transparent 46%),
    repeating-linear-gradient(0deg, #4d258713 0 1px, transparent 1px 4px);
}
.page-share-trigger::after {
  z-index: 1;
  inset: 0 -35% 0 auto;
  width: 32%;
  background: linear-gradient(90deg, transparent, #fff2 29%, #fff9 50%, #ddfe7577 56%, transparent 82%);
  transform: skewX(-22deg);
}
.page-share-trigger:active { translate: 2px 3px; box-shadow: inset 0 2px 0 #fff8, inset 0 -4px 0 #41179544, 2px 2px 0 #32135c; }
.page-share-orb {
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 8vw, 4.85rem);
  aspect-ratio: 1;
  border: 1px solid #381490;
  border-radius: 50%;
  color: #3b128b;
  background: radial-gradient(circle at 35% 22%, #fff 5%, #f0cdff 38%, #ab97f5 58%, #6553be 79%, #effaff 100%);
  box-shadow: inset 0 0 0 3px #fff7, 2px 3px 0 #522b8a69;
}
.page-share-orb .icon { width: 51%; height: 51%; stroke-width: 1.9; }
.page-share-label {
  position: relative;
  z-index: 1;
  font-size: clamp(1.15rem, 4.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.055em;
  text-shadow: 0 2px 0 #fff9;
}
.page-share-sparks {
  position: absolute;
  top: 12%;
  right: 13%;
  display: grid;
  justify-items: end;
  color: #fff;
  filter: drop-shadow(1px 1px 0 #8348ce);
}
.page-share-sparks .icon { width: var(--spark-size); height: var(--spark-size); }
.page-share-sparks .icon:first-child { --spark-size: clamp(1.1rem, 4vw, 2.5rem); }
.page-share-sparks .icon:last-child { --spark-size: clamp(.53rem, 1.7vw, 1.05rem); translate: -1.3rem -.05rem; }
.page-share-arrow {
  --arrow-size: clamp(.9rem, 3vw, 1.65rem);
  position: relative;
  z-index: 1;
  width: var(--arrow-size);
  height: var(--arrow-size);
  rotate: -90deg;
  stroke-width: 2.5;
}
.page-share-dialog .ticket-dialog-sheet { width: min(100%, 26rem); }
.page-share-dialog .page-share-copy {
  width: 100%;
  margin-top: .6rem;
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.page-share-dialog .page-share-copy:hover { background: #eeffb6; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="paused"]) .page-share-trigger.is-glinting::after {
    animation: page-share-glint .9s ease-out;
  }
}
@keyframes page-share-glint {
  from { transform: translateX(-435%) skewX(-22deg); }
  to { transform: translateX(0) skewX(-22deg); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="paused"]) .page-share-trigger:hover:not(:active) {
    animation: page-share-bounce .55s cubic-bezier(.27,.73,.4,1);
  }
}
@keyframes page-share-bounce {
  0%, 100% { transform: none; }
  22% { transform: translateY(-4px) rotate(-.65deg) scale(.995, 1.035); }
  46% { transform: translateY(1px) rotate(.55deg) scale(1.009, .97); }
  68% { transform: translateY(-2px) rotate(-.26deg) scale(.999, 1.012); }
  85% { transform: rotate(.13deg); }
}

.ticket-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: max(.7rem, env(safe-area-inset-top)) max(.7rem, env(safe-area-inset-right))
    max(.7rem, env(safe-area-inset-bottom)) max(.7rem, env(safe-area-inset-left));
  overflow: auto;
  color: var(--ink);
  background: transparent;
  overscroll-behavior: contain;
}
.ticket-dialog:not([open]) { display: none; }
.ticket-dialog[open] { display: grid; place-items: center; place-items: safe center; }
.ticket-dialog::backdrop { background: #1d103c9e; backdrop-filter: blur(5px); }
.ticket-dialog[data-fallback] { z-index: 30; background: #1d103ca9; }
.ticket-dialog-sheet {
  width: min(100%, 33.5rem);
  min-width: 0;
  padding: clamp(.78rem, 3vw, 1.35rem);
  border: 1.5px solid var(--ink);
  border-radius: 1.2rem;
  background: #fcf9ff;
  box-shadow: 4px 5px 0 #381490, 0 1rem 3rem #1c102e70;
  animation: ticket-arrive 250ms cubic-bezier(.24,.75,.38,1) both;
}
.ticket-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.ticket-dialog-header h2 { margin: 0; font-size: clamp(1.23rem, 5vw, 1.65rem); font-weight: 900; letter-spacing: -.055em; }
.ticket-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  color: var(--ink);
  background: #f0e7ff;
  border: 1px solid #d6c4f0;
  border-radius: 50%;
}
.ticket-close:hover { background: #e9dcff; }

.unavailable-campaign .ticket-dialog-sheet {
  position: relative;
  width: min(100%, 27rem);
  padding: clamp(.9rem, 4vw, 1.45rem);
  background: linear-gradient(153deg, #faf4ff 12%, #fffefa 59%, #f0e9ff);
  text-align: center;
}
.unavailable-campaign .ticket-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
}
.unavailable-campaign-mascot {
  display: grid;
  place-items: center;
  width: min(100%, 9.25rem);
  aspect-ratio: 1;
  margin: 0 auto .7rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ece0ff, #eadbff7d 57%, transparent 72%);
}
.unavailable-campaign-mascot img {
  display: block;
  width: 91%;
  height: auto;
  filter: drop-shadow(0 .38rem .42rem #4a228640);
}
.unavailable-campaign h2 {
  margin: 0;
  font-size: clamp(1.22rem, 5vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.35;
  text-wrap: balance;
}
.unavailable-campaign p {
  margin: .55rem 0 1.1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  text-wrap: balance;
}
.unavailable-campaign-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 3.15rem;
  padding: .55rem .7rem;
  border: 1px solid var(--ink);
  border-radius: .8rem;
  color: var(--ink);
  background: linear-gradient(155deg, #f1ffba 8%, #ddfe75 57%, #aadd62);
  box-shadow: inset 0 2px 0 #fff9, 3px 3px 0 var(--ink);
  text-decoration: none;
  font-weight: 900;
}
.unavailable-campaign-home:hover { background: #efffae; }

.share-ticket {
  --foil-light: #ded6ff;
  --foil-deep: #b8bcff;
  --foil-warm: #fbdaff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(.85rem, 4vw, 1.3rem);
  border: 1.5px solid var(--ink);
  border-radius: .85rem;
  color: #271345;
  background: linear-gradient(144deg, var(--foil-light) 0%, #fffaff 33%, var(--foil-warm) 54%, var(--foil-deep) 86%, #fffaff 111%);
}
.share-ticket[data-theme="lime"] { --foil-light: #eaffb1; --foil-deep: #beef99; --foil-warm: #f8e4b5; }
.share-ticket[data-theme="pink"] { --foil-light: #ffd6f3; --foil-deep: #f2afdb; --foil-warm: #f7dcff; }
.share-ticket[data-theme="blue"] { --foil-light: #c5f5ff; --foil-deep: #a3cbff; --foil-warm: #d9deff; }
.share-ticket[data-theme="peach"] { --foil-light: #ffdfbc; --foil-deep: #f8c9a1; --foil-warm: #ffe8bf; }
.share-ticket[data-theme="mint"] { --foil-light: #cffeed; --foil-deep: #a8f2da; --foil-warm: #dceeff; }
.share-ticket-glint {
  position: absolute;
  z-index: -1;
  width: clamp(7rem, 44%, 13rem);
  aspect-ratio: 1.38;
  right: -5%;
  top: 11%;
  display: grid;
  place-items: center;
  pointer-events: none;
  border: 1px solid #fffc;
  box-shadow: inset 0 0 0 9px #fff2, 0 0 0 .8rem #fff4, 0 0 0 1.55rem #fff3;
  background: radial-gradient(ellipse at center, #fff9, transparent 65%);
  border-radius: 50%;
  color: color-mix(in srgb, #3e2469 50%, var(--foil-deep));
  rotate: -31deg;
}
.share-ticket-glint .icon { width: 34%; height: auto; rotate: 21deg; opacity: .46; }
.share-ticket-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .75rem; font-size: .8rem; font-weight: 800; }
.share-ticket-top [data-ticket-type] { padding: .16rem .5rem; border: 1px solid #4b326a8a; border-radius: 999px; background: #fff9; }
.share-ticket-top [data-ticket-brand] { min-width: 0; overflow-wrap: anywhere; }
.share-ticket-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .34rem; margin: .35rem 0 .45rem; font-weight: 900; line-height: 1; }
.share-ticket-value strong { font-size: clamp(2.6rem, 11vw, 5rem); font-weight: 950; letter-spacing: -.07em; line-height: 1.04; overflow-wrap: anywhere; }
.share-ticket-value span { font-size: clamp(.93rem, 4.2vw, 1.48rem); }
.share-ticket h3 { margin: 0; font-size: clamp(1rem, 4vw, 1.28rem); line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
.share-ticket-audience { display: flex; flex-wrap: wrap; align-items: center; gap: .22rem .55rem; margin-top: .36rem; }
.share-ticket-reach { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 750; }
.share-ticket-summary, .share-ticket-conditions { margin: .36rem 0 0; font-size: .84rem; font-weight: 550; line-height: 1.6; }
.share-ticket-summary { font-weight: 750; }
.share-ticket-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .75rem;
  border-top: 1px dashed #55316f8c;
  padding-top: .56rem;
  margin-top: .72rem;
  font-size: .77rem;
  font-weight: 850;
}
.share-ticket-deadline { display: inline-flex; align-items: center; gap: .3rem; }
.share-ticket-period { display: grid; gap: .23rem; }

.ticket-score {
  --score-paper: #f2eff8;
  --score-ink: #493365;
  --score-border: #c3b3d7;
  margin-top: .66rem;
  border: 1px solid var(--score-border);
  border-radius: .65rem;
  color: var(--score-ink);
  background: var(--score-paper);
}
.ticket-score[data-tier="high"] { --score-paper: #e5fc9e; --score-ink: #293a11; --score-border: #879a49; }
.ticket-score[data-tier="good"] { --score-paper: #e8ddff; --score-ink: #3a1e72; --score-border: #bca0ec; }
.ticket-score[data-tier="conditional"] { --score-paper: #fff0c8; --score-ink: #593713; --score-border: #d7ad63; }
.ticket-score-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .63rem;
  min-height: 3.4rem;
  padding: .43rem .7rem;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}
.ticket-score-summary::-webkit-details-marker { display: none; }
.ticket-score-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: .34rem;
  font-size: .76rem;
  font-weight: 850;
}
.ticket-score-total strong {
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ticket-score-limit { font-size: .7rem; }
.ticket-score-verdict {
  display: grid;
  gap: .03rem;
  border-left: 1px solid var(--score-border);
  padding-left: .62rem;
  font-size: .76rem;
}
.ticket-score-verdict strong { font-size: .88rem; line-height: 1.25; }
.ticket-score-chevron { width: 1rem; height: 1rem; }
.ticket-score[open] .ticket-score-chevron { rotate: 180deg; }
.ticket-score-breakdown {
  display: grid;
  gap: .38rem;
  padding: .62rem .7rem .69rem;
  border-top: 1px dashed var(--score-border);
  font-size: .8rem;
}
.ticket-score-breakdown p { margin: 0; }
.ticket-score-factor {
  display: grid;
  grid-template-columns: 6.5rem minmax(1.5rem, 1fr) 3.25rem;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 750;
}
.ticket-score-factor span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ticket-score-factor meter { width: 100%; height: .55rem; appearance: none; }
.ticket-score-factor meter::-webkit-meter-bar { border: 0; border-radius: 99px; background: #ffffffa6; }
.ticket-score-factor meter::-webkit-meter-optimum-value { border-radius: 99px; background: var(--score-ink); }
.ticket-score-factor meter::-moz-meter-bar { border-radius: 99px; background: var(--score-ink); }
.ticket-unrated { font-size: .75rem; color: var(--muted); }
.ticket-unrated { margin: .55rem 0 0; }

.ticket-official {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .37rem;
  min-height: 2.75rem;
  margin-top: .65rem;
  padding: .37rem .65rem;
  border: 1px solid #9e7ec7;
  border-radius: .6rem;
  color: var(--purple-deep);
  background: #f9f4ff;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}
.ticket-official:hover { background: #ede0ff; }
.ticket-dialog[data-mode="details"] .ticket-official:not([data-official-link]) { color: #351a65; background: #e7d9f7; border-color: #7a5ba5; box-shadow: 2px 2px 0 #7a5ba5; }
.ticket-dialog[data-mode="details"] .ticket-official:not([data-official-link]):hover { background: #ddcaf2; }
.ticket-official[data-official-link] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #563192;
  border-color: #3c2268;
}
.ticket-official[data-official-link]:hover { background: #472679; }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="paused"]) .ticket-official[data-official-link].is-glinting::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: 65%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 10%, #a4f8ff36 36%, #fff4 50%, #f7baff36 65%, transparent 90%);
    animation: ticket-official-glint .85s .08s ease-out both;
  }
}
@keyframes ticket-official-glint {
  from { transform: translateX(-125%) skewX(-19deg); }
  to { transform: translateX(175%) skewX(-19deg); }
}

.ticket-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .9rem;
}
.ticket-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 3rem;
  padding: .48rem .55rem;
  border: 1px solid #a78bcf;
  border-radius: .6rem;
  color: var(--purple-deep);
  background: #f2e9ff;
  font-size: clamp(.84rem, 3vw, .97rem);
  font-weight: 850;
  white-space: nowrap;
}
.ticket-action:hover { background: #e9dcff; }
.ticket-action:disabled { opacity: .55; cursor: default; }
.ticket-action:is([data-ticket-copy], .ticket-invitation-copy) {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.ticket-action:is([data-ticket-copy], .ticket-invitation-copy):hover { background: #eeffb6; }

.ticket-invitation {
  margin-top: .85rem;
  padding: .72rem;
  border: 1px solid #ad90d5;
  border-radius: .72rem;
  background: linear-gradient(145deg, #f5ebff, #e9f8ff);
}
.ticket-invitation label {
  display: block;
  margin-bottom: .42rem;
  font-size: .85rem;
  font-weight: 850;
  color: var(--purple-deep);
}
.ticket-invitation-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.ticket-invitation-code {
  flex: 2 1 15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  min-width: 0;
}
.ticket-invitation-code input {
  width: 100%;
  min-width: 0;
  padding: .38rem .58rem;
  border: 1px solid #ad90d5;
  border-radius: .6rem;
  background: var(--white);
  font: 850 1.2rem/1.4 var(--mono);
  letter-spacing: .04em;
}
.ticket-invitation-app {
  flex: 1 1 10rem;
  color: #fff;
  background: #563192;
  border-color: #3c2268;
  text-decoration: none;
  white-space: normal;
  text-align: center;
}
.ticket-invitation-app:hover { background: #472679; }

.ticket-image-preview {
  display: grid;
  gap: .45rem;
  margin: .65rem 0 0;
  padding: .6rem;
  border: 1px solid #d6c4f0;
  border-radius: .6rem;
  background: #f6efff;
}
.ticket-image-preview figcaption { color: var(--purple-deep); font-size: .84rem; font-weight: 800; }
.ticket-image-preview img { display: block; width: 100%; height: auto; border-radius: .35rem; -webkit-touch-callout: default; }
.ticket-image-preview a { justify-self: start; padding-block: .3rem; color: var(--purple-deep); font-size: .8rem; }
.ticket-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .55rem;
}
.ticket-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 3rem;
  min-width: 0;
  padding: .48rem .4rem;
  border: 1px solid var(--channel-border);
  border-radius: .6rem;
  color: var(--channel-ink);
  background: var(--channel-paper);
  font-size: clamp(.83rem, 3vw, .97rem);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ticket-channel:hover, .ticket-channel:active { background: var(--channel-hover); }
.ticket-channel[aria-expanded="true"] { box-shadow: 0 0 0 2px #b492f1; }
.ticket-channel--x {
  --channel-border: #a39aa5;
  --channel-ink: #18141a;
  --channel-paper: #f3f0f4;
  --channel-hover: #e8e3eb;
  --channel-mark: #e8e2ea;
}
.ticket-channel--line {
  --channel-border: #75ac90;
  --channel-ink: #11643a;
  --channel-paper: #e5f9ea;
  --channel-hover: #d2f1dd;
}
.ticket-channel-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.42rem;
  height: 1.42rem;
  border-radius: .39rem;
  background: var(--channel-mark);
  font-size: .98rem;
  line-height: 1;
}
.ticket-channel--line .ticket-channel-mark {
  position: relative;
  width: 1.24rem;
  height: 1.04rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: .48rem;
  letter-spacing: .03em;
}
.ticket-channel--line .ticket-channel-mark::after {
  content: "";
  position: absolute;
  bottom: -.2rem;
  left: .31rem;
  width: .32rem;
  height: .29rem;
  background: var(--channel-paper);
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: skewY(-25deg);
}
.ticket-channel--line:is(:hover, :active) .ticket-channel-mark::after { background: var(--channel-hover); }
.ticket-channel-preview {
  min-width: 0;
  margin-top: .7rem;
  padding: .7rem .77rem;
  border: 1px dashed #ae95d1;
  border-radius: .65rem;
  color: var(--ink);
  background: #f7efff;
  font-size: .83rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ticket-channel-preview-title { margin: 0; font-size: .9rem; font-weight: 850; }
.ticket-channel-preview-text { margin: .27rem 0 0; white-space: pre-wrap; }
.ticket-channel-preview-link {
  display: block;
  margin: .24rem 0 0;
  color: var(--muted);
  font-size: .74rem;
}
.ticket-channel-preview-text:empty, .ticket-channel-preview-link:empty { display: none; }
.ticket-link-block { margin-top: .75rem; }
.ticket-link-block label { display: block; margin-bottom: .24rem; font-size: .82rem; font-weight: 750; color: var(--muted); }
.ticket-link-block input {
  display: block;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdb9e9;
  border-radius: .5rem;
  padding: .52rem .56rem;
  font-size: 1rem;
}
.ticket-local-note { margin: .6rem 0 0; font-size: .76rem; color: var(--muted); }
.ticket-feedback { margin: .42rem 0 0; font-size: .85rem; font-weight: 750; color: var(--purple-deep); }
.ticket-feedback:empty { margin: 0; }
@media (max-width: 22.5rem) {
  .ticket-action { gap: .28rem; padding-inline: .3rem; }
  .ticket-action .icon { width: 1em; height: 1em; }
  .ticket-score-summary { gap: .42rem; padding-inline: .5rem; }
  .ticket-score-verdict { padding-left: .45rem; }
  .ticket-score-factor { grid-template-columns: 5.75rem minmax(1.5rem, 1fr) 3rem; }
}

@keyframes ticket-arrive {
  from { transform: translateY(9px) scale(.985); opacity: .6; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
html[data-motion="paused"] .ticket-dialog-sheet { animation: none; }
@media (prefers-reduced-motion: reduce) { .ticket-dialog-sheet { animation: none; } }
