.weup-countdown {
  position: relative;
  z-index: 5;
  overflow: hidden;
  margin: 0 !important;
  color: #fff;
  background: linear-gradient(180deg, #4d00a5 0%, #6200bd 70%, #e7a2ed 100%);
}

.weup-announcement {
  padding: .4rem 1rem;
  background: #24131f;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  text-align: center;
}

.weup-announcement a { color: inherit; text-underline-offset: .18em; }

.weup-global-cta {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.35rem;
  border: 3px solid #34203d;
  border-radius: .65rem;
  background: linear-gradient(180deg, #df9bec, #a84fce);
  color: #24131f;
  box-shadow: 0 4px 0 #24131f;
  font: italic 900 clamp(1.15rem, 5vw, 2rem)/1 Nunito, sans-serif;
  text-decoration: none;
  text-shadow: 2px 2px 0 #fff;
}

.weup-contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1rem;
  text-align: center;
}

.weup-contact-details a { color: inherit; }
.weup-contact-details address { font-style: normal; }
.weup-contact-details__form { flex-basis: 100%; }

.weup-countdown::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .7) 0 1px, transparent 1.5px);
  background-size: 29px 23px;
  opacity: .28;
  content: "";
}

.weup-countdown__inner {
  position: relative;
  width: min(100% - 1rem, 760px);
  margin-inline: auto;
  padding: .65rem 0 .45rem;
  text-align: center;
}

.weup-countdown__label {
  margin: .25rem 0 0;
  font-size: clamp(.68rem, 2.5vw, .9rem);
  font-weight: 700;
}

.weup-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, 3vw, 1.5rem);
}

.weup-countdown__unit {
  min-width: 0;
}

.weup-countdown__unit strong {
  position: relative;
  display: grid;
  width: clamp(3.25rem, 16vw, 5.8rem);
  aspect-ratio: 1;
  place-items: center;
  margin-inline: auto;
  border: 3px solid rgba(255, 252, 193, .9);
  border-top-color: transparent;
  border-radius: 50%;
  color: #fff;
  font: 900 clamp(1.45rem, 6vw, 2.45rem)/1 Nunito, sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
  transform: rotate(-8deg);
}

.weup-countdown__unit strong::after {
  position: absolute;
  inset: 4px;
  border: 1px dotted rgba(255, 255, 255, .7);
  border-radius: inherit;
  content: "";
}

.weup-countdown__unit strong + span {
  display: block;
  margin-top: .25rem;
  font-size: clamp(.55rem, 2vw, .75rem);
  font-weight: 800;
}

.weup-countdown__cta {
  display: inline-block;
  margin-top: .4rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  text-underline-offset: .2em;
}

.weup-video-panel {
  position: relative;
  width: 100%;
  margin: 0;
}

.weup-video-panel__inline {
  width: 100%;
  height: 100%;
}

.weup-video-panel__mobile-trigger {
  display: none;
}

.weup-video-panel__frame,
.weup-video-dialog__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080607;
}

.weup-video-panel__frame iframe,
.weup-video-panel__frame > video,
.weup-video-panel__frame > div,
.weup-video-dialog__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.weup-character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 2rem);
}

.weup-character-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}

.weup-character-card:hover,
.weup-character-card:focus-within {
  z-index: 20;
}

.weup-character-card.weup-reveal,
.weup-character-card.weup-reveal.is-visible,
.weup-character-card:hover,
.weup-character-card:focus-within {
  transform: none !important;
}

.weup-character-card__trigger {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.weup-character-card__portrait {
  display: grid;
  min-height: 7.5rem;
  place-items: end center;
  margin: 0 0 .6rem;
}

.weup-character-card__portrait img {
  width: auto;
  max-width: 100%;
  height: clamp(5.5rem, 24vw, 10rem);
  object-fit: contain;
}

.weup-character-card h3 {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.3rem);
}

.weup-character-card p {
  margin: .25rem 0 0;
  font-size: .8rem;
}

.weup-character-card__hint {
  display: inline-block;
  margin-top: .45rem;
  border-bottom: 2px solid currentColor;
  color: #6200bd;
  font-size: .72rem;
  font-weight: 900;
}

.weup-character-card__preview {
  position: fixed;
  z-index: 25;
  top: 50%;
  left: 50%;
  display: block;
  visibility: hidden;
  box-sizing: border-box;
  width: min(calc(100vw - 3rem), 20rem);
  padding: .4rem;
  border: 3px solid #fff;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 8px 8px 0 #6200bd, 0 18px 40px rgba(36, 19, 31, .35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -47%) scale(.94);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.weup-character-card__preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 30rem);
  border-radius: .45rem;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .weup-character-card__trigger:hover .weup-character-card__preview,
  .weup-character-card__trigger:focus-visible .weup-character-card__preview {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (hover: none), (pointer: coarse) {
  .weup-character-card__preview {
    display: none;
  }
}

.weup-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(.65rem, 2vw, 1.25rem);
}

.weup-event-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 3px solid #3e211d;
  border-radius: 1.25rem;
  background: #f5d59b;
  box-shadow: 7px 7px 0 #7c161c;
  height: 100%;
}

.weup-event-card__image {
  margin: 0;
  background: #fff;
}

.weup-event-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.weup-event-card__content {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.weup-event-card__content h3,
.weup-event-card__content p {
  margin: 0 0 .35rem;
}

.weup-event-card__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .35rem;
}

.weup-event-card__title h3 {
  margin: 0;
}

.weup-event-card__flag {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  object-fit: contain;
}

.weup-event-card__status {
  color: #7c161c;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weup-event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: auto;
  padding-top: 1rem;
}

.weup-event-card__actions a,
.weup-event-card__actions button {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border: 2px solid #24131f;
  border-radius: 999px;
  background: #6200bd;
  color: #fff;
  cursor: pointer;
  font: 900 .9rem/1 Nunito, sans-serif;
  text-decoration: none;
}

.weup-tour-map {
  position: relative;
  width: min(100%, 1000px);
  margin-inline: auto;
}

.weup-tour-map__image {
  display: block;
  width: 100%;
  height: auto;
}

.weup-tour-map__markers {
  position: absolute;
  inset: 0;
}

.weup-tour-map__marker {
  position: absolute;
  top: var(--weup-map-y);
  left: var(--weup-map-x);
  display: grid;
  width: clamp(2rem, 5vw, 3.25rem);
  aspect-ratio: 1;
  place-items: center;
  padding: .2rem;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #7423d5;
  box-shadow: 0 3px 8px rgba(36, 19, 31, .4);
  cursor: pointer;
  transform: translate(-50%, -100%) rotate(-45deg);
}

.weup-tour-map__marker img,
.weup-tour-map__marker > span:not(.screen-reader-text) {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(45deg);
}

.weup-tour-map__marker:disabled {
  cursor: default;
  opacity: .75;
}

.weup-rpg-dialogue {
  position: relative;
  display: grid;
  grid-template-columns: minmax(5rem, 32%) 1fr;
  align-items: end;
  gap: 0;
  width: min(100%, 760px);
  margin-inline: auto;
}

.weup-rpg-dialogue__portrait {
  position: relative;
  z-index: 0;
  width: 115%;
  max-height: 25rem;
  object-fit: contain;
  object-position: bottom center;
}

.weup-rpg-dialogue__box {
  position: relative;
  z-index: 1;
  margin-left: -10%;
  padding: 1.4rem;
  border: .45rem solid #02c4e8;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 6px 0 #058c84;
  color: #24131f;
}

.weup-rpg-dialogue__name {
  display: inline-block;
  margin: -2.4rem 0 .65rem;
  padding: .35rem .8rem;
  border-radius: .55rem;
  background: #02c4e8;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.weup-rpg-dialogue__cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .45rem .75rem;
  border-radius: .55rem;
  background: #02c4e8;
  color: #24131f;
  font-weight: 900;
  text-decoration: none;
}

.weup-accent-red .weup-rpg-dialogue__box { border-color: #ef4c47; box-shadow-color: #a51923; }
.weup-accent-red .weup-rpg-dialogue__name,
.weup-accent-red .weup-rpg-dialogue__cta { background: #ef4c47; }
.weup-accent-yellow .weup-rpg-dialogue__box { border-color: #eed47a; box-shadow-color: #c49725; }
.weup-accent-yellow .weup-rpg-dialogue__name,
.weup-accent-yellow .weup-rpg-dialogue__cta { background: #eed47a; color: #24131f; }
.weup-accent-purple .weup-rpg-dialogue__box { border-color: #8a55d6; box-shadow-color: #4d1a98; }
.weup-accent-purple .weup-rpg-dialogue__name,
.weup-accent-purple .weup-rpg-dialogue__cta { background: #8a55d6; }
.weup-accent-green .weup-rpg-dialogue__box { border-color: #23b93a; box-shadow-color: #087b29; }
.weup-accent-green .weup-rpg-dialogue__name,
.weup-accent-green .weup-rpg-dialogue__cta { background: #23b93a; }

.weup-dialog {
  width: min(94vw, 880px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 1.1rem;
  background: transparent;
  color: #24131f;
}

.weup-dialog::backdrop {
  background: rgba(20, 20, 45, .68);
  backdrop-filter: blur(9px) saturate(.8);
}

.weup-dialog__surface {
  position: relative;
  overflow: auto;
  max-height: 92vh;
  padding: clamp(1rem, 3vw, 2rem);
  border: 3px solid #02c4e8;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 10px 10px 0 #6200bd;
}

.weup-dialog__close {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #24131f;
  border-radius: 50%;
  background: #fff;
  color: #24131f;
  cursor: pointer;
  font: 900 1.6rem/1 sans-serif;
}

.weup-character-dialog {
  width: min(94vw, 520px);
}

.weup-character-dialog__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 4rem);
  margin-inline: auto;
  object-fit: contain;
}

.weup-register-dialog {
  width: min(94vw, 680px);
}

.weup-register-dialog__surface {
  background: #f6f8ff;
}

.weup-register-dialog__eyebrow {
  margin: 0;
  color: #6200bd;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weup-register-dialog__form {
  display: grid;
  gap: .8rem;
}

.weup-registration-honeypot {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.weup-register-dialog__form p {
  margin: 0;
}

.weup-register-dialog__form label {
  display: block;
  margin-bottom: .3rem;
  font-weight: 800;
}

.weup-register-dialog__form input,
.weup-register-dialog__form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: .7rem .8rem;
  border: 2px solid #8e9ddd;
  border-radius: .45rem;
  background: #fff;
  color: #24131f;
  font: inherit;
}

.weup-register-dialog__form button[type="submit"] {
  min-height: 2.8rem;
  border: 0;
  border-radius: .5rem;
  background: #6200bd;
  color: #fff;
  font: 900 1rem/1 Nunito, sans-serif;
}

.weup-register-dialog__form button:disabled {
  background: #d4d4d4;
  cursor: not-allowed;
}

.weup-register-dialog__status {
  min-height: 1.4em;
  color: #4d1a98;
  font-size: .9rem;
  font-weight: 800;
}

.weup-register-dialog__status.is-success { color: #087b29; }
.weup-register-dialog__status.is-error { color: #a51923; }

.weup-register-dialog__notice,
.weup-editor-placeholder {
  padding: .75rem;
  border: 1px dashed #6200bd;
  border-radius: .5rem;
  background: #f7efff;
  color: #4d1a98;
  font-size: .85rem;
}

.has-weup-dialog {
  overflow: hidden;
}

@media (min-width: 680px) {
  .weup-character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weup-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .weup-video-panel--mobile-dialog .weup-video-panel__inline {
    display: none;
  }

  .weup-video-panel--mobile-dialog .weup-video-panel__mobile-trigger {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .weup-video-panel--mobile-dialog .weup-video-panel__mobile-trigger > span[aria-hidden="true"] {
    display: grid;
    width: clamp(3rem, 15vw, 4.25rem);
    aspect-ratio: 1;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #6200bd;
    box-shadow: 0 5px 0 #24131f;
    color: #fff;
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    transform: translateX(.12em);
  }

  .weup-event-card {
    border-width: 2px;
    border-radius: .9rem;
    box-shadow: 4px 4px 0 #7c161c;
  }

  .weup-event-card__content {
    padding: .7rem;
  }

  .weup-event-card__content h3 {
    font-size: clamp(.78rem, 3.5vw, 1rem);
    line-height: 1.1;
  }

  .weup-event-card__content p,
  .weup-event-card__content time {
    font-size: clamp(.68rem, 2.8vw, .82rem);
    line-height: 1.25;
  }

  .weup-event-card__flag {
    width: 1.9rem;
    height: 1.9rem;
    flex-basis: 1.9rem;
  }

  .weup-event-card__title {
    align-items: flex-start;
    gap: .4rem;
  }

  .weup-event-card__status {
    font-size: .62rem;
  }

  .weup-event-card__actions {
    padding-top: .65rem;
  }

  .weup-event-card__actions a,
  .weup-event-card__actions button {
    width: 100%;
    min-height: 2.25rem;
    padding: .45rem .55rem;
    font-size: .75rem;
  }
}

@media (max-width: 359px) {
  .weup-event-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1080px) {
  .weup-event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .weup-tour-map__marker,
  .weup-dialog { scroll-behavior: auto; }
}
