.elsky-bali-passport {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 6px 0 0;
  border-top: 1px solid rgba(88, 240, 238, 0.2);
  color: #effafa;
}

.elsky-bali-passport__summary {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto 18px;
  grid-template-areas:
    "heading progress revote account chevron"
    "current current current current current"
    "success success success success success";
  align-items: center;
  gap: 4px 10px;
  min-height: 46px;
  padding: 7px 38px 7px 9px;
  border: 1px solid rgba(88, 240, 238, 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 31, 39, 0.96), rgba(4, 21, 28, 0.9));
  box-shadow: inset 3px 0 0 rgba(245, 216, 145, 0.76), 0 5px 14px rgba(0, 0, 0, 0.18);
  color: #effafa;
  cursor: pointer;
  list-style: none;
}

.elsky-bali-passport__summary::-webkit-details-marker {
  display: none;
}

.elsky-bali-passport__summary:hover {
  border-color: rgba(88, 240, 238, 0.48);
}

.elsky-bali-passport__summary:focus-visible {
  outline: 2px solid #58f0ee;
  outline-offset: 2px;
}

.elsky-bali-passport__heading {
  grid-area: heading;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.elsky-bali-passport__title {
  min-width: 0;
  color: #f5d891;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.2;
}

.elsky-bali-passport__subtitle {
  color: rgba(239, 250, 250, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
}

.elsky-bali-passport__progress {
  min-width: 0;
  color: #58f0ee;
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.elsky-bali-passport__progress-group {
  grid-area: progress;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.elsky-bali-passport__rank {
  --elsky-trophy-light: #f0bd8a;
  --elsky-trophy-mid: #c98750;
  --elsky-trophy-deep: #8d4d2e;
  --elsky-trophy-end: #dca06b;
  display: inline-flex;
  flex: 0 0 29px;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
}

.elsky-bali-passport__rank[hidden] {
  display: none;
}

.elsky-bali-passport__rank svg {
  width: 28px;
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.52));
}

.elsky-bali-passport__trophy-stop.is-light { stop-color: var(--elsky-trophy-light); }
.elsky-bali-passport__trophy-stop.is-mid { stop-color: var(--elsky-trophy-mid); }
.elsky-bali-passport__trophy-stop.is-deep { stop-color: var(--elsky-trophy-deep); }
.elsky-bali-passport__trophy-stop.is-end { stop-color: var(--elsky-trophy-end); }

.elsky-bali-passport__trophy-highlight {
  fill: rgba(255, 255, 255, 0.56);
}

.elsky-bali-passport__trophy-shade {
  fill: rgba(4, 21, 28, 0.28);
}

.elsky-bali-passport__rank.is-silver {
  --elsky-trophy-light: #f5fbfc;
  --elsky-trophy-mid: #cddadd;
  --elsky-trophy-deep: #7f969c;
  --elsky-trophy-end: #e7f0f2;
}
.elsky-bali-passport__rank.is-gold {
  --elsky-trophy-light: #fff2b7;
  --elsky-trophy-mid: #f5d891;
  --elsky-trophy-deep: #b57a24;
  --elsky-trophy-end: #ffdfa0;
}
.elsky-bali-passport__rank.is-platinum {
  --elsky-trophy-light: #f4ffff;
  --elsky-trophy-mid: #bdeef0;
  --elsky-trophy-deep: #568b94;
  --elsky-trophy-end: #d8fbfc;
}
.elsky-bali-passport__rank.is-rainbow {
  --elsky-trophy-light: #ff789a;
  --elsky-trophy-mid: #f5d891;
  --elsky-trophy-deep: #58f0ee;
  --elsky-trophy-end: #ad86ff;
}
.elsky-bali-passport__rank.is-super_rainbow_platinum {
  --elsky-trophy-light: #fff;
  --elsky-trophy-mid: #ff8cac;
  --elsky-trophy-deep: #58f0ee;
  --elsky-trophy-end: #d6b7ff;
}

.elsky-bali-passport__rank.is-super_rainbow_platinum svg {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 5px rgba(88, 240, 238, 0.48));
}

.elsky-bali-passport__current {
  grid-area: current;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}

.elsky-bali-passport__current-chip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid rgba(88, 240, 238, 0.26);
  border-radius: 6px;
  background: rgba(4, 21, 28, 0.68);
  color: #effafa;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.15;
}

.elsky-bali-passport__current-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #58f0ee;
  border-radius: 50%;
  background: #0b1f2a;
  color: #58f0ee;
}

.elsky-bali-passport__current-icon .elsky-bali-passport__icon,
.elsky-bali-passport__list-icon .elsky-bali-passport__icon {
  width: 11px;
  height: 11px;
}

.elsky-bali-passport__current-label {
  min-width: 0;
  white-space: nowrap;
}

.elsky-bali-passport__current-chip strong {
  color: #f5d891;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.elsky-bali-passport__current-chip.is-current-venue-selection {
  border-color: rgba(245, 216, 145, 0.7);
  background: linear-gradient(145deg, rgba(88, 240, 238, 0.16), rgba(4, 21, 28, 0.72));
  box-shadow: inset 0 0 0 1px rgba(88, 240, 238, 0.12);
}

.elsky-bali-passport__current-chip.is-current-venue-selection .elsky-bali-passport__current-icon,
.elsky-bali-passport__list.is-current-selection .elsky-bali-passport__list-icon {
  border-color: #58f0ee;
  background: #58f0ee;
  color: #04151c;
  box-shadow: 0 3px 9px rgba(88, 240, 238, 0.2);
}

.elsky-bali-passport__current-chip.is-current-venue-selection::after {
  position: absolute;
  top: -4px;
  right: -3px;
  color: #58f0ee;
  content: "✓";
  font-size: 0.58rem;
  font-weight: 950;
}

.elsky-bali-passport__success {
  grid-area: success;
  min-height: 1em;
  color: #effafa;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
}

.elsky-bali-passport__chevron {
  position: relative;
  grid-area: chevron;
  align-self: center;
  justify-self: end;
  width: 16px;
  height: 16px;
}

.elsky-bali-passport__chevron::before {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #58f0ee;
  border-bottom: 2px solid #58f0ee;
  content: "";
  transform: rotate(225deg);
  transition: transform 160ms ease;
}

.elsky-bali-passport[open] > .elsky-bali-passport__summary .elsky-bali-passport__chevron::before {
  transform: rotate(45deg);
}

.elsky-bali-passport[open] > .elsky-bali-passport__summary .elsky-bali-passport__current,
.elsky-bali-passport[open] > .elsky-bali-passport__summary .elsky-bali-passport__success {
  display: none;
}

.elsky-bali-passport__add-reaction {
  position: static;
  grid-area: revote;
  display: none;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #58f0ee;
  border-radius: 7px;
  background: #0b1f2a;
  color: #effafa;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.elsky-bali-passport[open] > .elsky-bali-passport__summary .elsky-bali-passport__add-reaction {
  display: inline-flex;
}

.elsky-bali-passport[open] > .elsky-bali-passport__summary .elsky-bali-passport__progress {
  display: none;
}

.elsky-bali-passport__add-reaction:hover,
.elsky-bali-passport__add-reaction:focus-visible {
  border-color: #f5d891;
  color: #f5d891;
}

.elsky-bali-passport__add-reaction:focus-visible {
  outline: 2px solid #58f0ee;
  outline-offset: 2px;
}

.elsky-article-reactions [data-elsky-reaction][aria-disabled="true"],
.elsky-article-reactions [data-elsky-reaction-close][aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
}

.elsky-bali-passport__success:empty {
  display: none;
}

.elsky-bali-passport__body {
  box-sizing: border-box;
  max-height: min(42vh, 330px);
  padding: 6px 2px 2px;
  overflow: auto;
  overscroll-behavior: contain;
}

.elsky-bali-passport__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  align-items: stretch;
  gap: 7px;
}

.elsky-bali-passport__list {
  position: relative;
  min-width: 0;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.elsky-bali-passport__list.is-current-selection {
  border-color: rgba(88, 240, 238, 0.62);
  background: linear-gradient(145deg, rgba(88, 240, 238, 0.1), rgba(255, 255, 255, 0.035));
}

.elsky-bali-passport__list h4 {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 4px;
  color: #58f0ee;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.2;
}

.elsky-bali-passport__list h4 [data-elsky-passport-category-label] {
  min-width: 0;
  overflow-wrap: anywhere;
}

.elsky-bali-passport__list h4 strong {
  color: #f5d891;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.elsky-bali-passport__list-icon {
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #58f0ee;
  border-radius: 50%;
  background: #0b1f2a;
  color: #58f0ee;
}

.elsky-bali-passport__list ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.elsky-bali-passport__list li,
.elsky-bali-passport__list a {
  min-width: 0;
  color: #effafa;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.elsky-bali-passport__list a {
  text-decoration-color: rgba(88, 240, 238, 0.6);
  text-underline-offset: 2px;
}

.elsky-bali-passport__list .is-empty {
  color: rgba(239, 250, 250, 0.55);
  font-weight: 650;
}

.elsky-bali-passport__storage-note {
  margin: 6px 0 0;
  color: #f5d891;
  font-size: 0.66rem;
  font-weight: 800;
}

.elsky-bali-passport__signup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  margin-top: 7px;
  padding: 8px 34px 8px 9px;
  border: 1px solid rgba(245, 216, 145, 0.35);
  border-radius: 9px;
  background: rgba(245, 216, 145, 0.08);
}

.elsky-bali-passport__signup[hidden] {
  display: none;
}

.elsky-bali-passport__signup strong,
.elsky-bali-passport__signup span,
.elsky-bali-passport__signup a {
  min-width: 0;
  font-size: 0.67rem;
  line-height: 1.25;
}

.elsky-bali-passport__signup a {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #58f0ee;
  font-weight: 900;
}

.elsky-bali-passport__signup button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #effafa;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 560px) {
  .elsky-bali-passport__summary {
    grid-template-columns: minmax(0, 1fr) auto auto auto 16px;
    gap: 3px 4px;
    padding-right: 8px;
  }

  .elsky-bali-passport__title {
    font-size: clamp(0.74rem, 3.5vw, 0.86rem);
  }

  .elsky-bali-passport__subtitle {
    font-size: clamp(0.55rem, 2.8vw, 0.66rem);
  }

  .elsky-bali-passport__progress-group {
    gap: 3px;
  }

  .elsky-bali-passport__progress {
    font-size: clamp(0.55rem, 2.75vw, 0.68rem);
    line-height: 1.12;
    text-align: right;
    white-space: normal;
  }

  .elsky-bali-passport__add-reaction {
    padding: 4px 5px;
    font-size: 0.56rem;
  }

  .elsky-bali-passport__rank {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }

  .elsky-bali-passport__rank svg {
    width: 24px;
    height: 24px;
  }

  .elsky-bali-passport__current-chip {
    gap: 2px;
    padding: 4px 2px;
    font-size: 0.58rem;
  }

  .elsky-bali-passport__current-icon {
    width: 16px;
    height: 16px;
  }

  .elsky-bali-passport__current-icon .elsky-bali-passport__icon {
    width: 10px;
    height: 10px;
  }

  .elsky-bali-passport__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .elsky-bali-passport,
  .elsky-bali-passport * {
    scroll-behavior: auto !important;
  }

  .elsky-bali-passport__chevron::before {
    transition: none;
  }
}
