.tower-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 20px;
}
.tower-intro {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(100deg, #11121ee8, #18172bc9),
    url("./assets/echo-tower.png") center/cover;
}
.tower-intro h2 {
  font: 600 clamp(25px, 4vw, 40px) var(--serif);
  margin: 12px 0;
}
.tower-intro > p {
  max-width: 550px;
}
.tower-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin: 26px 0 20px;
}
.tower-progress > strong {
  font: 600 40px var(--serif);
  color: #e8d5a3;
}
.tower-progress small {
  font-size: 20px;
  color: var(--muted);
}
.tower-progress > span {
  font-size: 12px;
  color: var(--muted);
}
.tower-progress > div {
  height: 6px;
  width: 100%;
  background: #090c16;
}
.tower-progress i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #9a7cdb, #d8bb75);
}
.tower-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tower-result {
  padding: 12px;
  border-left: 2px solid #d7b66f;
  background: #d7b66f0b;
  font-size: 13px;
  line-height: 1.6;
}
.tower-next {
  padding: 24px;
}
.tower-next h2 {
  font: 600 28px var(--serif);
  margin: 12px 0 5px;
}
.tower-next h3 {
  font-size: 13px;
  color: var(--purple);
}
.tower-next p {
  font-size: 13px;
  line-height: 1.7;
}
.tower-next dl {
  margin: 24px 0;
  display: grid;
  gap: 10px;
}
.tower-next dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.tower-next dd {
  margin: 0;
  color: var(--gold);
}
.tower-complete {
  color: var(--gold);
  padding: 10px 0;
}
.tower-path,
.tower-rewards {
  grid-column: 1/-1;
}
.tower-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tower-chapter {
  padding: 22px;
  min-width: 0;
}
.tower-chapter h2 {
  font: 500 19px var(--serif);
  margin: 5px 0 8px;
}
.tower-chapter small {
  font-size: 11px;
  color: var(--muted);
}
.tower-floors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 19px;
}
.tower-floors > span {
  border: 1px solid #353344;
  background: #0c111c;
  padding: 12px 3px;
  display: grid;
  gap: 6px;
  text-align: center;
  color: #838094;
}
.tower-floors b {
  font-size: 13px;
}
.tower-floors .cleared {
  border-color: #3a7862;
  color: #aae1bd;
  background: #17352940;
}
.tower-floors .cleared small {
  color: #aae1bd;
}
.tower-floors .next {
  border-color: #c9aa73;
  color: #f2d397;
  box-shadow: inset 0 0 18px #c9aa7310;
}
.tower-floors .milestone:not(.cleared) {
  background: #9e7ed912;
}
.tower-rewards {
  padding: 24px;
}
.tower-rewards > p {
  font-size: 13px;
  color: var(--muted);
}
.tower-chests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.tower-chests article {
  padding: 16px;
  border: 1px solid #333242;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.tower-chests article.ready {
  border-color: #c9aa7370;
  background: #c9aa7307;
}
.tower-chests article.claimed {
  opacity: 0.65;
}
.tower-chest-symbol {
  color: var(--purple);
}
.tower-chests h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.tower-chests p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: var(--muted);
}
.tower-chests small {
  font-size: 10px;
  color: var(--gold);
}
.tower-chests button {
  grid-column: 2;
  font-size: 12px;
  justify-self: start;
}
.tower-live {
  border: 1px solid #8e76b6;
  background: #10111fea;
  padding: 12px;
  margin: 13px 0 0;
  max-width: 300px;
  line-height: 1.5;
}
.tower-live > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
}
.tower-live p {
  font-size: 11px;
  margin: 8px 0;
  color: var(--muted);
}
.tower-live button {
  font-size: 11px;
}
.tower-live[hidden] {
  display: none;
}
.city-tower-link {
  margin-top: 12px;
}
.tower-layout button:disabled {
  opacity: 0.6;
}
[data-location="tower"] .quest-hud {
  display: none;
}
@media (max-width: 760px) {
  .tower-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .tower-intro,
  .tower-next,
  .tower-rewards {
    padding: 20px;
  }
  .tower-path,
  .tower-chests {
    grid-template-columns: minmax(0, 1fr);
  }
  .tower-chapter {
    padding: 18px;
  }
  .tower-intro h2 {
    font-size: 29px;
  }
  .tower-live {
    max-width: none;
    padding: 9px;
    margin-top: 8px;
  }
  .tower-live p {
    font-size: 10px;
    margin: 5px 0;
  }
  .tower-live > div {
    font-size: 11px;
  }
  [data-location="tower"] .location-hud {
    max-width: calc(100vw - 30px);
  }
  .tower-chests article {
    padding: 14px;
  }
}
.tower-live {
  position: fixed;
  top: 105px;
  right: 22px;
  width: 253px;
  pointer-events: auto;
  margin: 0;
  z-index: 2;
  text-align: left;
}
@media (max-width: 1000px) {
  .tower-live {
    top: 224px;
    right: 16px;
    width: 220px;
  }
}
@media (max-width: 760px) {
  .tower-live {
    top: 225px;
    left: 15px;
    right: 15px;
    width: auto;
    max-width: none;
    margin: 0;
  }
  [data-location="tower"] .target-hud {
    top: 350px;
    bottom: auto;
  }
  [data-location="tower"] .player-hud .xp-label,
  [data-location="tower"] .player-hud .xp-track,
  [data-location="tower"] .player-hud .mana-label,
  [data-location="tower"] .player-hud .mana-track,
  [data-location="tower"] .player-hud .talents-link {
    display: none;
  }
  [data-location="tower"] .location-hud h1 {
    font-size: 19px;
  }
  [data-location="tower"] .location-hud > p:not(.eyebrow) {
    display: none;
  }
}
@media (max-width: 760px) and (max-height: 850px) {
  .tower-live {
    top: 222px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .tower-live p {
    display: none;
  }
  .tower-live > div {
    gap: 10px;
    flex: 1;
  }
  .tower-live button {
    font-size: 10px;
    padding: 0;
  }
  [data-location="tower"] .target-hud {
    top: 280px;
    bottom: auto;
  }
}
