/* V34: the mid-shift choice is a full-sized strategy beat, not a distant tooltip. */

#starTideModal .star-tide-card {
  box-sizing: border-box;
  width: min(94vw, 1080px);
  max-height: calc(100svh - 20px);
  aspect-ratio: 960 / 455;
  padding: clamp(76px, 7.8vw, 94px) clamp(78px, 8vw, 108px)
    clamp(52px, 5.2vw, 68px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: center;
  overflow: hidden;
  color: #fff1ca;
  background: transparent url("../assets/meowa/ui/v23/event-panel.png") center / contain no-repeat;
  border: 0;
  box-shadow: none;
}

#starTideModal .star-tide-card h2 {
  margin: 0;
  color: #fff2ce;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: 0 2px 3px #08070f, 0 0 10px rgb(25 56 78 / 72%);
}

#starTideModal .star-tide-card > p {
  margin: 5px 0 15px;
  color: #d9e8e1;
  font: 700 13px/1.25 var(--ui);
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 2px 3px #08070f;
}

#starTideModal .event-choices {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 1.2vw, 16px);
  align-items: center;
}

#starTideModal .star-tide-card .event-choice {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 520 / 221;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: clamp(48px, 4.6vw, 62px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, .8vw, 12px);
  overflow: hidden;
  color: #fff2ca;
  background: transparent url("../assets/meowa/ui/v23/primary-button.png") center / contain no-repeat;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 9px rgb(5 3 10 / 58%));
}

#starTideModal .star-tide-card .event-choice:is(:hover, :focus-visible) {
  outline: 0;
  filter: drop-shadow(0 0 9px rgb(244 201 104 / 88%)) brightness(1.12);
  transform: translateY(-2px);
}

#starTideModal .event-medallion {
  width: clamp(48px, 4.6vw, 62px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, #f2d999 0 35%, #1c6172 38% 64%, #9d6b2f 68% 75%, transparent 77%);
  filter: drop-shadow(0 2px 3px rgb(10 7 13 / 72%));
}

#starTideModal .event-medallion img {
  width: 90%;
  height: 90%;
  display: block;
  object-fit: contain;
}

#starTideModal .event-copy {
  min-width: 0;
  max-width: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "route title"
    "benefit benefit"
    "detail detail";
  gap: 2px 6px;
  align-items: baseline;
  text-align: left;
}

#starTideModal .event-copy > * {
  max-width: none;
}

#starTideModal .event-route {
  grid-area: route;
  padding: 2px 5px;
  color: #281a24;
  background: #e4bf70;
  border-radius: 999px;
  font: 700 10px/1.1 var(--ui);
  text-shadow: none;
  white-space: nowrap;
}

#starTideModal .event-choice strong {
  grid-area: title;
  min-width: 0;
  color: #fff3d0;
  font: 700 clamp(14px, 1.25vw, 18px)/1.15 var(--display);
  letter-spacing: .03em;
  white-space: nowrap;
}

#starTideModal .event-benefit {
  grid-area: benefit;
  margin-top: 4px;
  color: #f5d483;
  font: 700 clamp(12px, 1vw, 14px)/1.2 var(--ui);
  white-space: nowrap;
}

#starTideModal .event-detail {
  grid-area: detail;
  color: #d6e7df;
  font: 500 clamp(11px, .86vw, 13px)/1.2 var(--ui);
  white-space: nowrap;
}

@media (max-width: 600px) and (orientation: portrait) {
  #starTideModal .star-tide-card {
    position: relative;
    width: min(94vw, 420px);
    max-height: calc(100svh - 16px);
    aspect-ratio: auto;
    padding: 34px 6px 18px;
    overflow-y: auto;
    background: none;
  }

  #starTideModal .star-tide-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: 100%;
    aspect-ratio: 960 / 455;
    transform: translateX(-50%);
    pointer-events: none;
    background: transparent url("../assets/meowa/ui/v23/event-panel.png") center / contain no-repeat;
  }

  #starTideModal .star-tide-card h2 {
    position: relative;
    z-index: 1;
    font-size: 24px;
  }

  #starTideModal .star-tide-card > p {
    position: relative;
    z-index: 1;
    margin: 4px 0 10px;
    font-size: 12px;
  }

  #starTideModal .event-choices {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 88px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #starTideModal .star-tide-card .event-choice {
    width: min(100%, 360px);
    margin-inline: auto;
    padding: 16px 18%;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }

  #starTideModal .event-medallion {
    width: 58px;
  }

  #starTideModal .event-choice strong {
    font-size: 16px;
  }

  #starTideModal .event-benefit {
    font-size: 13px;
  }

  #starTideModal .event-detail {
    font-size: 12px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #starTideModal .star-tide-card {
    width: min(96vw, 800px);
    max-height: calc(100svh - 8px);
    padding: 54px 64px 44px;
  }

  #starTideModal .star-tide-card h2 {
    font-size: 21px;
  }

  #starTideModal .star-tide-card > p {
    margin: 2px 0 7px;
    font-size: 11px;
  }

  #starTideModal .event-choices {
    gap: 7px;
  }

  #starTideModal .star-tide-card .event-choice {
    padding: 10px 13px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px;
  }

  #starTideModal .event-medallion {
    width: 42px;
  }

  #starTideModal .event-route {
    padding: 1px 4px;
    font-size: 8px;
  }

  #starTideModal .event-choice strong {
    font-size: 13px;
  }

  #starTideModal .event-benefit {
    margin-top: 2px;
    font-size: 10px;
  }

  #starTideModal .event-detail {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #starTideModal .star-tide-card .event-choice:is(:hover, :focus-visible) {
    transform: none;
  }
}
