#gachaModal {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 0;
  border-radius: 0;
  max-height: none;
  padding: calc(12px + var(--safe-area-inset-top,0px)) 12px calc(8px + var(--safe-area-inset-bottom,0px));
  padding: calc(12px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 12px calc(8px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));
  display: flex;
  flex-direction: column;
  --xhs-row-gap:6px;
  --xhs-column-gap:6px;
  grid-gap: 6px;
  gap: 6px;
  background: #36233e var(--xhs-image-306) center/cover no-repeat;
  box-shadow: none;
  color: #fff6df;
}
#gachaModal:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      #291832a8,
      transparent 24%,
      transparent 60%,
      #25172ddd 100%);
}
#gachaModal .gacha-header {
  grid-template-columns: 44px 1fr;
  --xhs-row-gap:4px;
  --xhs-column-gap:8px;
  grid-gap: 4px 8px;
  gap: 4px 8px;
}
#gachaModal .gacha-header h2 {
  color: #fff5d9;
  font-size: 22px;
  text-shadow: 0 2px 4px #30122b;
}
#gachaModal .gacha-header .close-btn {
  --xhs-width:44px;
  width: 44px;
  --xhs-height:44px;
  height: 44px;
  background: rgba(76, 51, 90, .79);
  color: #fff1c9;
  border: 1px solid #d8bd85;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(33, 16, 40, .467);
}
#gachaModal .gacha-wallet span {
  border: 0;
  background: rgba(36, 21, 42, .6);
  color: #fff3d7;
  font-size: 11px;
}
#gachaModal .gacha-status {
  color: #ffeab9;
  text-shadow: 0 1px 3px #210f24;
}
#gachaModal .legend-showcase {
  position: relative;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  --xhs-row-gap:0;
  --xhs-column-gap:0;
  grid-gap: 0;
  gap: 0;
  min-height: 90px;
  justify-content: flex-end;
  justify-content: end;
}
#gachaModal .gacha-heading {
  display: none;
}
#gachaModal .gacha-legends {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
  --xhs-width:100%;
  width: 100%;
  margin: 0;
  padding: 0;
  --xhs-row-gap:10px;
  --xhs-column-gap:10px;
  grid-gap: 10px;
  gap: 10px;
  align-items: stretch;
}
#gachaModal .legend-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  justify-content: end;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  min-width: 0;
}
#gachaModal .legend-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  --xhs-width:100%;
  width: 100%;
  --xhs-height:100%;
  height: 100%;
  --xhs-aspect-ratio:auto;
  aspect-ratio: auto;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
#gachaModal .legend-caption {
  position: relative;
  pointer-events: none;
  color: #fff6df;
  padding: 0;
  --xhs-row-gap:2px;
  --xhs-column-gap:2px;
  grid-gap: 2px;
  gap: 2px;
  text-shadow: 0 2px 4px #28102d, 0 0 8px #28102d;
}
#gachaModal .legend-caption > b {
  font-size: 17px;
  color: #fff6df;
}
#gachaModal .legend-caption > small {
  font-size: 12px;
  color: #ffedcd;
}
#gachaModal .legend-caption > button {
  pointer-events: auto;
  min-height: 44px;
  --xhs-width:100%;
  width: 100%;
  border: 0;
  color: #fff1d4;
  text-shadow: 0 1px 3px #321a36;
  font-size: 12px;
  padding: 9px 20px 1px;
  text-decoration: none;
  background: var(--xhs-image-227) center/100% 100% no-repeat;
}
#gachaModal .legend-dragon .legend-caption > button {
  background-image: var(--xhs-image-255);
}
#gachaModal .legend-stage-bottom {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  --xhs-row-gap:3px;
  --xhs-column-gap:3px;
  grid-gap: 3px;
  gap: 3px;
  padding: 3px 0 0;
  flex: none;
  min-height: 44px;
}
#gachaModal #legendResponse {
  font-size: 11px;
  color: #ffedcf;
  text-shadow: 0 1px 3px #241126;
  min-height: 0;
  text-align: left;
  max-width: 54%;
}
#gachaModal .legend-stage-bottom > button {
  border: 0;
  box-shadow: none;
  min-width: 130px;
  min-height: 44px;
  color: #fff0d0;
  padding: 8px 16px 0;
  font-size: 12px;
  background: var(--xhs-image-255) center/100% 100% no-repeat;
}
#gachaModal .gacha-footer {
  position: relative;
  flex: none;
  border: 0;
  background: none;
  padding: 4px 0 0;
}
#gachaModal .gacha-pity {
  color: #ffeccc;
  --xhs-row-gap:12px;
  --xhs-column-gap:12px;
  grid-gap: 12px;
  gap: 12px;
  font-size: 11px;
  text-shadow: 0 1px 3px #1f1027;
}
#gachaModal .gacha-pity progress {
  --xhs-height:8px;
  height: 8px;
  background: rgba(34, 20, 43, .8);
  box-shadow: 0 0 0 1px rgba(241, 201, 139, .4);
}
#gachaModal .gacha-pity progress::-webkit-progress-bar {
  background: rgba(34, 20, 43, .8);
}
#gachaModal .gacha-pity progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #c4a0e9,
      #ffe2a1);
}
#gachaModal .gacha-draws {
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 5px;
}
#gachaModal .gacha-draws .gacha-draw {
  min-height: 74px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--xhs-image-227) center/100% 100% no-repeat;
  color: #fff7da;
  padding: 16px 18px 6px;
  --xhs-row-gap:2px;
  --xhs-column-gap:2px;
  grid-gap: 2px;
  gap: 2px;
  text-shadow: 0 1px 3px #25122d;
}
#gachaModal .gacha-draws > div:last-child .gacha-draw {
  background-image: var(--xhs-image-255);
}
#gachaModal .gacha-draw b {
  font-size: 17px;
}
#gachaModal .gacha-draw span {
  font-size: 11px;
}
#gachaModal .gacha-under {
  color: #f5dfbc;
  min-height: 44px;
  font-size: 10px;
  text-shadow: 0 1px 3px #27152d;
}
#gachaModal .gacha-under s {
  color: #d7c3ad;
}
#gachaModal .gacha-info {
  color: #f4ddb5;
  background: var(--xhs-image-227) center/100% 80% no-repeat;
}
#gachaModal .gacha-draws > div:last-child .gacha-info {
  background-image: var(--xhs-image-255);
}
#gachaModal .gacha-info i {
  border: 0;
  font-size: 13px;
  margin-top: 4px;
}
#gachaModal .gacha-claim {
  border: 0;
  background: var(--xhs-image-255) center/100% 100% no-repeat;
  color: #fff0cf;
  min-height: 44px;
  --xhs-width:85%;
  width: 85%;
  padding: 12px 20px 2px;
}
#gachaModal .gacha-sheet {
  color: #674b59;
}
#gachaModal .gacha-sheet button:not(.close-btn) {
  background-image: var(--xhs-image-227);
  background-color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 0;
  box-shadow: none;
  color: #fff2d2;
  padding: 15px 26px 7px;
  text-shadow: 0 1px 2px #361b37;
  min-height: 48px;
}
#gachaModal .gacha-sheet [data-quality=legendary] button:not(.close-btn),
#gachaModal .gacha-sheet .gacha-confirm {
  background-image: var(--xhs-image-255);
}
#gachaModal button:focus {
  outline: 3px solid #fff0af;
  outline-offset: 2px;
}
#gachaModal button:focus-visible {
  outline: 3px solid #fff0af;
  outline-offset: 2px;
}
#deliveryModal {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: none;
  border: 0;
  border-image: none;
  border-radius: 0;
  padding: calc(12px + var(--safe-area-inset-top,0px)) 14px calc(12px + var(--safe-area-inset-bottom,0px));
  padding: calc(12px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 14px calc(12px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
  box-shadow: none;
  background: #faeddd url(assets/ui/event-art/delivery-scene.webp) center/cover no-repeat;
  color: #634457;
}
#deliveryModal .modal-head {
  margin: 0;
  min-height: 44px;
}
#deliveryModal .modal-head h2 {
  font-size: 25px;
  color: #69506c;
  text-shadow: 0 2px #fff4dc;
}
#deliveryModal .modal-head .close-btn {
  min-width: 44px;
  min-height: 44px;
}
#deliveryModal .delivery-champion {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  --xhs-row-gap:5px;
  --xhs-column-gap:5px;
  grid-gap: 5px;
  gap: 5px;
  min-height: 182px;
  padding: 8px 0 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#deliveryModal .delivery-champion-heading {
  --xhs-width:56%;
  width: 56%;
  text-shadow: 0 1px #fff6df, 0 0 7px #fff8e7;
}
#deliveryModal .delivery-champion-heading > small {
  font-size: 12px;
  font-weight: 800;
  color: #906332;
  letter-spacing: .08em;
}
#deliveryModal .delivery-champion-heading > b {
  display: block;
  font-size: 23px;
  line-height: 1.3;
  color: #764e35;
}
#deliveryModal #deliveryChampionProgress {
  font-size: 13px;
  font-weight: 800;
  margin: 5px 0 0;
  max-width: 57%;
  min-height: 36px;
  line-height: 1.45;
  text-shadow: 0 1px #fff6df;
}
#deliveryModal .champion-track {
  margin-top: auto;
  background: rgba(255, 249, 233, .93);
  border: 2px solid #c6a267;
  border-radius: 18px;
  padding: 9px 11px;
  box-shadow: 0 4px 0 rgba(170, 129, 85, .36), 0 0 18px rgba(255, 240, 207, .5);
}
#deliveryModal .champion-track-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}
#deliveryModal #deliveryChampionBar {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  --xhs-height:12px;
  height: 12px;
  --xhs-width:100%;
  width: 100%;
  border: 1px solid #c8a76e;
  border-radius: 10px;
  overflow: hidden;
  background: #dac5ad;
}
#deliveryModal #deliveryChampionBar::-webkit-progress-bar {
  background: #e7d8c5;
}
#deliveryModal #deliveryChampionBar::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #cb92bb,
      #f3c35c,
      #ffe299);
}
#deliveryModal #deliveryChampionBar::-moz-progress-bar {
  background: #eab660;
}
#deliveryModal .champion-milestones {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  --xhs-row-gap:4px;
  --xhs-column-gap:4px;
  grid-gap: 4px;
  gap: 4px;
}
#deliveryModal .champion-milestones span {
  display: flex;
  flex-direction: column;
  align-items: center;
  --xhs-row-gap:1px;
  --xhs-column-gap:1px;
  grid-gap: 1px;
  gap: 1px;
  font-size: 10px;
  color: #826980;
}
#deliveryModal .champion-milestones i {
  font-style: normal;
  font-size: 15px;
  color: #bdabc2;
  line-height: 18px;
}
#deliveryModal .champion-milestones .earned {
  color: #805223;
  font-weight: 800;
}
#deliveryModal .champion-milestones .earned i {
  color: #b78128;
  text-shadow: 0 0 5px #ffd577;
}
#deliveryModal .delivery-total {
  display: flex;
  align-items: center;
  --xhs-row-gap:12px;
  --xhs-column-gap:12px;
  grid-gap: 12px;
  gap: 12px;
  flex: none;
  margin-top: 4px;
  padding: 6px 10px;
  background: rgba(255, 245, 221, .87);
  border-radius: 10px;
}
#deliveryModal #deliveryProgress {
  font-size: 12px;
  white-space: nowrap;
}
#deliveryModal #deliveryProgressBar {
  flex: 1;
  --xhs-width:auto;
  width: auto;
  min-width: 0;
  --xhs-height:7px;
  height: 7px;
  accent-color: #ab83ba;
}
#deliveryModal .delivery-route {
  flex: 1;
  min-height: 74px;
  max-height: none;
  padding: 7px 7px 12px;
  background: linear-gradient(rgba(255, 248, 225, .79), rgba(255, 248, 225, .61));
  border-radius: 17px;
  box-shadow: inset 0 1px 5px rgba(170, 123, 74, .19);
}
#deliveryModal .delivery-leg {
  position: relative;
  padding: 7px 3px 11px;
}
#deliveryModal .delivery-leg > div {
  --xhs-row-gap:8px;
  --xhs-column-gap:8px;
  grid-gap: 8px;
  gap: 8px;
}
#deliveryModal .delivery-leg [data-delivery-level] {
  min-height: 44px;
  background: linear-gradient(#fff9db, #e3c5a0);
  border-color: #c19c77;
  border-radius: 50% 50% 42% 42%;
  box-shadow: inset 0 2px #fff9eb, 0 3px 0 rgba(165, 126, 96, .6);
  color: #815650;
}
#deliveryModal .delivery-leg [data-delivery-level].passed {
  background: linear-gradient(#fff0b5, #e8ba64);
  border-color: #b18a42;
  color: #7a572a;
}
#deliveryModal .delivery-leg [data-delivery-level].boss {
  background: linear-gradient(#d8bcea, #a384be);
  border-color: #96749d;
  color: #fffbea;
}
#deliveryModal .delivery-leg [aria-current=step] {
  outline: 3px solid #ffe495;
  outline-offset: 1px;
  filter: drop-shadow(0 0 5px #f3b547);
  opacity: 1;
}
#deliveryModal .delivery-reward-node {
  min-height: 44px;
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid #dfbd84;
  border-radius: 13px;
  background: rgba(255, 246, 223, .867);
  font-size: 11px;
}
#deliveryModal .delivery-reward-node img {
  --xhs-width:28px;
  width: 28px;
  --xhs-height:28px;
  height: 28px;
}
#deliveryModal .delivery-reward-node b {
  background: #a789b9;
  color: #fff9e9;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 10px;
}
#deliveryModal .delivery-fragment-node {
  background: #eedaaa;
  border: 1px solid #d6b677;
  text-align: center;
  font-weight: 800;
}
#deliveryModal .delivery-preview {
  background: rgba(255, 247, 230, .925);
  border-radius: 17px;
  padding: 9px 12px 10px;
  box-shadow: 0 3px 10px rgba(154, 109, 76, .14);
}
#deliveryModal .delivery-preview h3 {
  font-size: 18px;
  color: #785274;
}
#deliveryModal .delivery-preview p {
  font-size: 11px;
  margin: 4px 0;
}
#deliveryModal #deliveryBegin {
  min-height: 49px;
  background: linear-gradient(#ffdfa0, #eabd6d);
  border: 2px solid #bd8b46;
  border-radius: 18px;
  box-shadow: inset 0 2px #fff3c7, 0 4px 0 #ac7c48;
  color: #704528;
  padding-left: 44px;
  position: relative;
  font-size: 13px;
}
#deliveryModal #deliveryBegin:before {
  content: "";
  position: absolute;
  --xhs-width:44px;
  width: 44px;
  --xhs-height:49px;
  height: 49px;
  left: 4px;
  top: -3px;
  background: var(--xhs-image-299) center/contain no-repeat;
}
#deliveryModal .delivery-rules {
  font-size: 10px;
  line-height: 1.5;
  background: rgba(255, 246, 224, .85);
  border-radius: 8px;
  padding: 3px;
}
@media (max-height: 680px) and (orientation: portrait) {
  #gachaModal {
    padding: 8px 9px 4px;
    --xhs-row-gap:2px;
    --xhs-column-gap:2px;
    grid-gap: 2px;
    gap: 2px;
  }
  #gachaModal .gacha-header h2 {
    font-size: 18px;
  }
  #gachaModal .gacha-header {
    --xhs-row-gap:1px;
    --xhs-column-gap:6px;
    grid-gap: 1px 6px;
    gap: 1px 6px;
  }
  #gachaModal .legend-caption > b {
    font-size: 14px;
  }
  #gachaModal .legend-caption > small {
    font-size: 10px;
  }
  #gachaModal .gacha-draws .gacha-draw {
    min-height: 63px;
    padding-top: 13px;
  }
  #gachaModal .gacha-draw b {
    font-size: 15px;
  }
  #gachaModal .legend-stage-bottom {
    min-height: 40px;
  }
  #gachaModal #legendResponse {
    font-size: 10px;
  }
  #deliveryModal {
    padding: 7px 10px;
    --xhs-row-gap:5px;
    --xhs-column-gap:5px;
    grid-gap: 5px;
    gap: 5px;
  }
  #deliveryModal .modal-head h2 {
    font-size: 21px;
  }
  #deliveryModal .delivery-champion {
    min-height: 158px;
    padding-top: 0;
    --xhs-row-gap:3px;
    --xhs-column-gap:3px;
    grid-gap: 3px;
    gap: 3px;
  }
  #deliveryModal .delivery-champion-heading > b {
    font-size: 19px;
  }
  #deliveryModal #deliveryChampionProgress {
    font-size: 11px;
    min-height: 30px;
    margin-top: 0;
  }
  #deliveryModal .champion-track {
    padding: 6px 9px;
  }
  #deliveryModal .champion-track-label {
    font-size: 12px;
    margin-bottom: 3px;
  }
  #deliveryModal .champion-milestones {
    margin-top: 2px;
  }
  #deliveryModal .delivery-preview {
    padding: 6px 9px 8px;
  }
  #deliveryModal .delivery-rules {
    font-size: 9px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  #gachaModal {
    display: flex;
    background-position: center 48%;
    padding: 8px 12px;
    --xhs-row-gap:2px;
    --xhs-column-gap:2px;
    grid-gap: 2px;
    gap: 2px;
  }
  #gachaModal .gacha-header {
    display: flex;
    justify-content: space-between;
  }
  #gachaModal .gacha-header h2 {
    font-size: 18px;
  }
  #gachaModal .legend-showcase {
    margin-right: 44%;
    min-height: 0;
  }
  #gachaModal .legend-caption > b {
    font-size: 14px;
  }
  #gachaModal .legend-caption > small {
    font-size: 10px;
  }
  #gachaModal .gacha-footer {
    position: absolute;
    right: 12px;
    bottom: 12px;
    --xhs-width:40%;
    width: 40%;
  }
  #gachaModal .legend-stage-bottom {
    min-height: 44px;
  }
  #deliveryModal {
    display: grid;
    grid-template-columns: 43% 1fr;
    grid-template-rows: 44px minmax(0, 1fr) auto;
    --xhs-row-gap:6px;
    --xhs-column-gap:12px;
    grid-gap: 6px 12px;
    gap: 6px 12px;
    background-position: center 30%;
  }
  #deliveryModal .modal-head {
    grid-column: 1/-1;
  }
  #deliveryModal .delivery-champion {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
  }
  #deliveryModal .delivery-total {
    grid-column: 2;
    grid-row: 1;
    margin-right: 48px;
  }
  #deliveryModal .delivery-route {
    grid-column: 2;
    grid-row: 2;
  }
  #deliveryModal .delivery-preview {
    grid-column: 2;
    grid-row: 3;
  }
  #deliveryModal .delivery-rules {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
  }
}
