@font-face {
  font-family: Battle;
  src: url("./assets/fonts/bangers.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #142b38;
  --deep: #0c2530;
  --panel: #243e4c;
  --steel: #789ba9;
  --light: #c5e5e7;
  --cyan: #42d8fa;
  --gold: #ffdb65;
  --cream: #eff6df;
  --muted: #b8cbd0;
  --font: Battle, "Arial Black", sans-serif;
  --frame: 0 0 0 3px #132936, 0 6px 0 #142933, 0 10px 22px #0007;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font:
    15px/1.45 "Trebuchet MS",
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  filter: saturate(0.35) brightness(0.7);
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible,
select:focus-visible {
  outline: 3px solid #ffed72;
  outline-offset: 4px;
}
button:active:not(:disabled) {
  translate: 0 2px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.12;
}
a {
  color: var(--cyan);
}
[hidden] {
  display: none !important;
}
.ui-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 0 #071f2a70);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  min-height: 48px;
  border: 4px solid #87b9c7;
  border-top-color: #d0eff3;
  border-radius: 10px;
  background: linear-gradient(#19c6ec 0 44%, #009dcf 45% 100%);
  color: #083447;
  font: 26px/1 var(--font);
  letter-spacing: 0.6px;
  text-shadow: 0 1px #a9efff;
  box-shadow:
    inset 0 0 0 2px #14779b,
    var(--frame);
}
.btn:hover:not(:disabled) {
  filter: brightness(1.15);
  border-color: #e0faff;
}
.btn.secondary {
  background: linear-gradient(#567481 0 45%, #3a5663 46%);
  color: #d9f7f6;
  text-shadow: 0 2px #122b37;
  box-shadow:
    inset 0 0 0 2px #263d4b,
    var(--frame);
}
.btn.subtle {
  background: #263e4a;
  color: #c2dce0;
  font-size: 21px;
}
.btn.large {
  min-width: 240px;
  min-height: 62px;
  font-size: 36px;
}
.btn .ui-mark {
  width: 24px;
  height: 24px;
}
.icon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(150deg, #588da2, #254d63);
  border: 4px solid #81c1d1;
  border-top-color: #c2f2f3;
  border-radius: 9px;
  box-shadow:
    inset 0 0 0 2px #12384e,
    0 3px 0 #122b36,
    0 4px 6px #0008;
  font: 25px var(--font);
  color: #d9faff;
}
.icon-btn:hover {
  filter: brightness(1.2);
}
.icon-btn .ui-mark {
  width: 29px;
  height: 29px;
}
.text-button {
  background: none;
  color: #d7f5f5;
  padding: 8px 10px;
  font: 20px var(--font);
  text-shadow: 1px 2px #102c3e;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.wrap {
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.4px;
  color: #9cdbea;
}
.description {
  color: #d0e3e3;
  margin: 8px 0 20px;
  line-height: 1.6;
}
.error {
  color: #ffba94;
}
.separator {
  border: 0;
  border-top: 1px solid #66848c;
  margin: 20px 0;
}
.portrait {
  display: block;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}
.portrait-alden {
  background-image: url("./assets/art-v4/alden.webp");
  background-position: center 16%;
}
.portrait-mira {
  background-image: url("./assets/art-v4/mira.webp");
  background-position: center 16%;
}
.portrait-thane {
  background-image: url("./assets/art-v4/thane.webp");
  background-position: center 16%;
}
/* Title screen */
.home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url("./assets/art-v4/campaign.webp") center/cover no-repeat;
  overflow: hidden;
  padding: 50px 20px 100px;
}
.home-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    #0b233b26,
    #0b233b00 25%,
    #071b2e66 65%,
    #071b2ef0
  );
  box-shadow: inset 0 0 180px #052036aa;
  pointer-events: none;
}
.home-corner {
  position: absolute;
  top: 20px;
  right: 20px;
}
.game-logo {
  position: relative;
  text-align: center;
  transform: rotate(-3deg);
  filter: drop-shadow(0 9px 0 #153243) drop-shadow(0 10px 18px #0008);
  margin: 0 auto 28px;
}
.logo-crown {
  display: block;
  height: 84px;
}
.logo-crown .ui-mark {
  width: 88px;
  height: 88px;
}
.game-logo h1 {
  font: clamp(70px, 10vw, 140px) / 0.82 var(--font);
  letter-spacing: 3px;
  color: #ffe58c;
  -webkit-text-stroke: 4px #1b3544;
  paint-order: stroke fill;
  text-shadow: 3px 5px #b57832;
}
.game-logo h1 span {
  display: block;
  font-size: 0.43em;
  letter-spacing: 2px;
  line-height: 1.4;
  color: #d9f6f3;
  -webkit-text-stroke: 3px #173649;
  text-shadow: 2px 3px #518797;
}
.game-logo p {
  font: clamp(22px, 3vw, 34px) var(--font);
  letter-spacing: 5px;
  color: #ffeaa3;
  background: #193849;
  border: 3px solid #a0b9b6;
  display: inline-block;
  padding: 3px 25px;
  transform: rotate(3deg);
}
.home-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.home-actions .secondary {
  font-size: 23px;
}
.home-footer {
  position: absolute;
  bottom: 22px;
  text-align: center;
  font-size: 11px;
  color: #b8c9d0;
  line-height: 1.8;
}
.home-footer p {
  color: #dfd5ae;
  font-size: 12px;
}
/* The map is the menu; HTML flags remain fully keyboard accessible. */
.campaign-screen {
  position: relative;
  min-height: 100svh;
  background: #164559;
}
.campaign-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  height: 100svh;
  scrollbar-width: thin;
}
.campaign-map {
  position: relative;
  width: max(100%, calc(100svh * 16 / 9));
  height: 100svh;
  min-width: 900px;
  min-height: 506px;
  overflow: hidden;
}
.world-art {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.campaign-map:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 75px #082b3770;
  pointer-events: none;
}
.campaign-road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.world-hud {
  position: absolute;
  top: 17px;
  left: 19px;
  right: 19px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.world-hud > * {
  pointer-events: auto;
}
.star-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d2535dc;
  border-radius: 6px;
  padding: 4px 14px 4px 5px;
  font: 29px var(--font);
  color: #fff8d8;
}
.star-count .ui-mark {
  width: 39px;
  height: 39px;
}
.world-title {
  text-align: center;
  font: 29px var(--font);
  color: #fff4c8;
  text-shadow: 2px 3px #163a48;
  letter-spacing: 2px;
}
.world-title small {
  display: block;
  font-size: 16px;
  letter-spacing: 3px;
  color: #a6e3ea;
}
.world-label {
  position: absolute;
  font: clamp(18px, 2vw, 30px) var(--font);
  color: #e9e7bd;
  text-shadow:
    2px 2px #1e3d35,
    -1px -1px #1e3d35;
  pointer-events: none;
  letter-spacing: 2px;
  opacity: 0.86;
}
.forest-label {
  left: 12%;
  top: 69%;
}
.frost-label {
  left: 44%;
  top: 72%;
}
.ash-label {
  left: 77%;
  top: 73%;
}
.mission {
  position: absolute;
  translate: -50% -75%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  padding: 0;
  width: 86px;
  z-index: 2;
  filter: drop-shadow(0 3px 1px #172b3266);
}
.mission:active:not(:disabled) {
  translate: -50% -73%;
}
.mission-stars {
  display: flex;
  gap: 1px;
  position: relative;
  z-index: 2;
  justify-content: center;
  transform: rotate(-4deg);
  margin-bottom: 2px;
}
.mission-stars i,
.brief-stars i {
  display: block;
  opacity: 0.24;
  filter: grayscale(1);
}
.mission-stars .earned,
.brief-stars .earned {
  opacity: 1;
  filter: none;
}
.mission-stars .ui-mark {
  width: 22px;
  height: 22px;
}
.mission-flag {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(110deg, #56c4ed, #1983b7 65%, #15547b);
  width: 45px;
  height: 53px;
  border: 3px solid #142d39;
  outline: 2px solid #a4e1e4;
  clip-path: polygon(0 0, 100% 0, 94% 78%, 50% 100%, 6% 78%);
  box-shadow: inset 0 0 0 3px #a2e1e6;
  transform: rotate(-8deg);
}
.mission-flag .ui-mark {
  width: 25px;
  height: 25px;
}
.mission-flag em {
  position: absolute;
  right: 2px;
  bottom: 7px;
  font: 14px var(--font);
  color: white;
  text-shadow: 1px 1px #0b2e3c;
}
.mission:after {
  content: "";
  position: absolute;
  top: 70px;
  width: 4px;
  height: 13px;
  background: #eedb9f;
  border: 2px solid #343935;
  z-index: -1;
}
.mission.current .mission-flag {
  background: linear-gradient(110deg, #f76b4d, #c53735);
  box-shadow: inset 0 0 0 3px #ffe89b;
}
.mission.current {
  filter: drop-shadow(0 0 6px #fff59b);
  animation: flag-call 2s ease-in-out infinite;
}
.mission.locked {
  opacity: 0.63;
}
.mission.locked .mission-flag {
  background: #5c656b;
  outline-color: #7f989c;
}
.mission-name {
  position: absolute;
  top: 86px;
  white-space: nowrap;
  font: 18px var(--font);
  color: #fff4d0;
  background: #123244e6;
  padding: 2px 9px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.mission:hover .mission-name,
.mission:focus-visible .mission-name,
.mission.current .mission-name {
  opacity: 1;
}
.world-nav {
  position: absolute;
  bottom: 46px;
  left: 50%;
  translate: -50%;
  display: flex;
  gap: 25px;
  align-items: end;
  z-index: 3;
}
.world-menu-button {
  background: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  min-width: 84px;
  transition: transform 0.15s;
}
.world-menu-button:hover {
  transform: translateY(-5px);
}
.menu-medallion {
  height: 83px;
  width: 83px;
  overflow: hidden;
  border: 5px solid #86d8e4;
  border-top-color: #cefbf7;
  border-radius: 50%;
  background: radial-gradient(at 35% 20%, #44a9cb, #1c526b);
  box-shadow:
    0 0 0 3px #133e51,
    inset 0 0 0 3px #246c8a,
    0 6px 9px #052a3b90;
  display: grid;
  place-items: center;
}
.menu-medallion > .ui-mark {
  width: 58px;
  height: 58px;
}
.menu-medallion > img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}
.menu-medallion .portrait {
  width: 100%;
  height: 145%;
}
.world-menu-button b {
  font: 24px var(--font);
  color: #d6fbf4;
  text-shadow:
    2px 3px #12394a,
    -1px -1px #12394a;
  letter-spacing: 1px;
  margin-top: 5px;
}
.world-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.world-bottom:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18px;
  right: -18px;
  bottom: -9px;
  height: 160px;
  background: linear-gradient(transparent, #092b3be8);
  pointer-events: none;
}
.difficulty-control {
  background: #1a3949da;
  border: 2px solid #80a7b1;
  border-radius: 6px;
  padding: 5px 9px;
  min-height: 36px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #cbeaf0;
  font-size: 12px;
  text-shadow: 1px 1px #0c2d3a;
}
.difficulty-control select,
select {
  border: 2px solid #779ca9;
  background: #203e50;
  color: #e0faff;
  padding: 6px 10px;
  border-radius: 6px;
  min-height: 36px;
}
.resume-link {
  color: #ffe58b;
}
.world-bottom .text-button {
  font-size: 18px;
}
/* Shared forged-steel panels. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #061b2ac9;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 24px;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}
.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100svh - 80px);
  overflow: auto;
  padding: 28px;
  border: 8px solid #6c929e;
  border-top-color: #a4c8d0;
  border-bottom-color: #416779;
  border-radius: 24px;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 90px,
      #708e9110 90px 93px,
      transparent 93px 155px
    ),
    linear-gradient(135deg, #23343b, #172a33);
  box-shadow:
    0 0 0 3px #162c3a,
    inset 0 0 0 3px #162c3a,
    0 15px 45px #0009;
  scrollbar-width: thin;
  scrollbar-color: #648a96 #203745;
}
.modal.wide {
  width: min(1000px, 100%);
}
.modal-head:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 7px;
  background: radial-gradient(
      circle at 4px 3px,
      #a3c7cf 0 2px,
      #153745 2px 3px,
      transparent 3px
    )
    0 0/70px 7px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  border-bottom: 3px solid #5c7d89;
  padding: 0 50px 10px;
  margin-bottom: 22px;
}
.modal-head h2 {
  background: linear-gradient(#7599a6 0 12%, #456977 13%);
  padding: 12px 42px 6px;
  clip-path: polygon(9% 0, 91% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
  font-size: 36px;
  color: #70e2f5;
  -webkit-text-stroke: 1.5px #142d39;
  paint-order: stroke fill;
  text-shadow: 1px 3px #142d39;
  text-align: center;
}
.modal-head .icon-btn {
  position: absolute;
  right: -15px;
  top: -15px;
  border-color: #9abcc5;
  background: #446674;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs button {
  background: #1c3442;
  border: 2px solid #6f929d;
  border-radius: 8px;
  color: #bed6db;
  padding: 9px 15px;
  min-height: 44px;
  font: 21px var(--font);
}
.tabs button.active {
  border-color: #ffee82;
  box-shadow: 0 0 8px #ffde5d75;
  color: #fff4bb;
  background: #4f6971;
}
.tabs button:hover:not(:disabled) {
  border-color: #c8f5f2;
}
.modal-briefing {
  padding: 0 0 20px;
  overflow: auto;
}
.modal-briefing .modal-head {
  padding: 14px 58px 12px;
  margin: 0;
  border-bottom: 0;
}
.modal-briefing .modal-head h2 {
  color: #b4ed78;
  font-size: 31px;
}
.modal-briefing .modal-head .icon-btn {
  right: 6px;
  top: 6px;
  z-index: 2;
}
.mission-art {
  position: relative;
  margin: 0 8px;
  border: 3px solid #132d3c;
  border-radius: 12px;
  overflow: hidden;
}
.brief-map {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center 42%;
}
.brief-stars {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50%;
  display: flex;
  gap: 5px;
  padding: 5px 18px 7px;
  border-radius: 0 0 20px 20px;
  background: #233f4dea;
  border: 3px solid #6c929e;
  border-top: 0;
}
.brief-stars .ui-mark {
  width: 34px;
  height: 34px;
}
.brief-story {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #092b2bd6;
  padding: 15px 22px;
  font: 20px/1.35 var(--font);
  letter-spacing: 0.5px;
  color: #f3f6d5;
}
.brief-controls {
  display: flex;
  gap: 20px;
  padding: 18px 22px;
}
.brief-controls .tabs {
  flex-direction: column;
  min-width: 100px;
}
.brief-controls .tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  font-size: 18px;
}
.brief-controls .tabs .ui-mark {
  width: 29px;
  height: 29px;
}
.brief-details {
  flex: 1;
  min-width: 0;
}
.brief-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  font: 21px var(--font);
  color: #dcf4e8;
}
.brief-stats .ui-mark {
  width: 24px;
  height: 24px;
}
.enemy-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}
.enemy-line > b {
  font: 17px var(--font);
  color: #8ab8c2;
}
.enemy-line > span {
  position: relative;
  background: #142c37;
  border: 1px solid #466574;
  border-radius: 5px;
  padding: 2px;
}
.enemy-line img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}
.enemy-line > span > span {
  display: none;
}
.unlock-note {
  font-size: 11px;
  color: #e5d7a4;
  margin-top: 7px;
}
.brief-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  justify-content: space-between;
}
.brief-hero {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  padding: 0;
}
.brief-hero > .portrait {
  width: 48px;
  height: 55px;
  border: 3px solid #88bbca;
  border-radius: 6px;
}
.brief-hero > span:last-child {
  font: 20px var(--font);
  text-align: left;
}
.brief-hero small {
  display: block;
  font:
    11px "Trebuchet MS",
    sans-serif;
  color: var(--muted);
}
.fight-button {
  min-width: 166px;
  font-size: 35px;
  border-color: #b8e3eb;
  box-shadow:
    0 0 0 3px #173d4e,
    0 5px 0 #142f40,
    0 0 15px #daf86065;
}
/* Heroes and permanent training. */
.hero-roster {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.roster-button {
  position: relative;
  width: 90px;
  height: 97px;
  border: 4px solid #6b919f;
  border-radius: 8px;
  background: #12303e;
  padding: 0;
}
.roster-button > .portrait {
  height: 100%;
  border-radius: 3px;
}
.roster-button > span:not(.portrait) {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #102d3ce0;
  font: 19px var(--font);
  text-align: center;
}
.roster-button.selected {
  border-color: #ffdf6c;
  box-shadow: 0 0 10px #ffde6b66;
}
.roster-button > em {
  position: absolute;
  top: -9px;
  left: 2px;
  right: 2px;
  background: #356f6a;
  color: #d6ffc6;
  font: 11px "Trebuchet MS";
  border: 1px solid #b3d3aa;
  border-radius: 3px;
}
.roster-button > .ui-mark {
  position: absolute;
  right: 1px;
  top: 3px;
  width: 24px;
  height: 24px;
}
.hero-roster > p {
  margin-left: auto;
  font: 24px var(--font);
  color: #a7d9e1;
  line-height: 1.2;
  text-align: right;
}
.hero-roster > p span {
  font:
    12px "Trebuchet MS",
    sans-serif;
  color: #a3bac5;
}
.hero-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 26px;
}
.hero-art {
  position: relative;
  min-height: 375px;
  border: 5px solid #658793;
  border-top-color: #b1ced3;
  box-shadow:
    inset 0 0 0 2px #0f293a,
    0 0 0 2px #142e3d;
  border-radius: 11px;
  overflow: hidden;
}
.hero-art > .portrait {
  position: absolute;
  inset: 0;
  background-position: center top;
}
.hero-level {
  position: absolute;
  top: 10px;
  left: 10px;
  font: 40px/0.9 var(--font);
  text-align: center;
  background: #122d3dda;
  padding: 6px 10px;
  border: 2px solid #a6c3be;
  border-radius: 8px;
  color: #ffdf7a;
}
.hero-level small {
  display: block;
  font: 10px sans-serif;
  letter-spacing: 1px;
  color: #dbe6d8;
}
.hero-art-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #0b2335 40%);
  padding: 40px 18px 14px;
}
.hero-art-name h3 {
  font-size: 47px;
  color: #ffe299;
  text-shadow: 2px 3px #182b37;
}
.hero-art-name span {
  font: 20px var(--font);
  color: #c3e8ea;
}
.hero-information > h3 {
  font-size: 31px;
  color: #e8efcd;
  margin: 4px 0 15px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  border-block: 2px solid #54717d;
  padding: 10px 0;
  margin-bottom: 16px;
}
.hero-stats > div {
  display: grid;
  grid-template-columns: 31px auto;
  align-items: center;
  column-gap: 5px;
}
.hero-stats .ui-mark {
  grid-row: 1/3;
  width: 29px;
  height: 29px;
}
.hero-stats b {
  font: 26px var(--font);
}
.hero-stats small {
  font-size: 10px;
  color: #a7c2c8;
}
.hero-skill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
}
.hero-skill > .ui-mark {
  padding: 7px;
  border: 3px solid #718c9c;
  background: #142e41;
  width: 51px;
  height: 51px;
  border-radius: 10px;
}
.hero-skill h4 {
  font-size: 23px;
  color: #a0e3e9;
  margin-bottom: 3px;
}
.hero-skill p {
  font-size: 13px;
  line-height: 1.5;
  color: #d2e0dd;
}
.hero-skill small {
  display: block;
  font-size: 10px;
  color: #a5b6bd;
  margin-top: 4px;
}
.hero-experience {
  font-size: 11px;
  color: #bad0d3;
  margin: 16px 0;
}
.xp-bar,
.track {
  height: 8px;
  border: 2px solid #0e2c3b;
  background: #132c3a;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}
.xp-bar span,
.track i {
  display: block;
  height: 100%;
  background: linear-gradient(#b5eb7f, #56af52);
}
.hero-select {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.hero-select .btn {
  font-size: 24px;
  flex: 1;
  padding: 9px;
}
.upgrade-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  color: #b8d0d7;
  font-size: 13px;
}
.upgrade-tree {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.upgrade-track {
  text-align: center;
  border-right: 1px solid #476370;
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.upgrade-track:last-child {
  border: 0;
  padding: 0;
}
.upgrade-emblem {
  width: 84px;
  height: 84px;
  border: 4px solid #6f9eae;
  border-radius: 50%;
  background: radial-gradient(#5d8a91, #1d3a4d);
  box-shadow: 0 0 0 2px #0e2a3b;
}
.upgrade-emblem img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.upgrade-track h3 {
  font-size: 23px;
  color: #dcf1db;
  margin: 12px 0 6px;
  min-height: 48px;
}
.upgrade-track p {
  font-size: 11px;
  color: #adc4cd;
  min-height: 64px;
  line-height: 1.4;
}
.rank-chain {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  position: relative;
  margin: 10px 0 20px;
}
.rank-chain:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  translate: -50%;
  background: #122c3c;
  border-inline: 1px solid #6f919b;
}
.rank-node {
  position: relative;
  border: 3px solid #547582;
  box-shadow: 0 2px 0 #132b38;
  border-radius: 8px;
  background: #1b3345;
  color: #7693a0;
  display: grid;
  place-items: center;
  font: 22px var(--font);
  width: 42px;
  height: 42px;
}
.rank-node.trained {
  background: #3a756b;
  border-color: #b3d99d;
}
.rank-node.next {
  border-color: #d7c571;
  color: #f6e5a7;
}
.rank-node .ui-mark {
  width: 29px;
  height: 29px;
}
.upgrade-track .btn {
  font-size: 19px;
  min-height: 40px;
  padding: 7px 9px;
  border-width: 3px;
}
.upgrade-track .btn .ui-mark {
  width: 19px;
  height: 19px;
}
.upgrade-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
}
.upgrade-footer > span {
  margin-right: auto;
}
.upgrade-footer .btn {
  font-size: 22px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.guide-entry {
  background: #172f3dd9;
  border: 2px solid #52727e;
  border-radius: 9px;
  padding: 18px;
  overflow: hidden;
}
.guide-entry h3 {
  font-size: 27px;
  color: #9ee4e7;
  margin-bottom: 8px;
}
.guide-entry p {
  font-size: 13px;
  margin: 7px 0;
  color: #cfddda;
}
.tower-portrait {
  width: 78px;
  height: 90px;
  object-fit: contain;
  float: left;
  margin: 0 15px 8px 0;
}
.guide-entry .stats {
  font-size: 11px;
  color: #e3dba4;
}
.settings-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #52717d;
}
.settings-row p,
.setting-info {
  font-size: 12px;
  color: #b1cbd2;
  margin: 5px 0;
}
.settings-row .btn {
  font-size: 21px;
}
.setting-info {
  margin: 15px 0;
}
textarea {
  display: block;
  width: 100%;
  height: 90px;
  border: 2px solid #658b9a;
  border-radius: 6px;
  background: #112d3e;
  padding: 10px;
  color: #def3f5;
  margin-top: 5px;
}
.result-stars {
  text-align: center;
  font-size: 60px;
  color: #ffdf6d;
  filter: drop-shadow(0 3px #94652d);
  letter-spacing: 8px;
}
.result-title {
  text-align: center;
  font-size: 30px;
}
.result-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 25px;
}
.result-stat-grid > div {
  text-align: center;
  background: #17313f;
  border: 2px solid #547782;
  border-radius: 7px;
  padding: 12px 5px;
}
.result-stat-grid b {
  display: block;
  font: 29px var(--font);
  color: #ffe493;
}
.result-stat-grid span {
  font-size: 10px;
  color: #aac2ca;
}
.damage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  margin-top: 10px;
}
.damage-row > span {
  width: 110px;
}
.damage-row .track {
  flex: 1;
}
.damage-row > b {
  width: 45px;
  text-align: right;
}
/* Battlefield, uninterrupted from edge to edge. */
body:has(.battle-screen) {
  background: #081b24;
}
.battle-screen {
  position: relative;
  width: min(100vw, calc(100svh * 5 / 3));
  margin: auto;
  min-height: 0;
}
.battle-layout,
.battle-main,
.battle-board {
  position: relative;
}
.battle-board {
  width: 100%;
  aspect-ratio: 5/3;
  overflow: hidden;
}
#battle-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.battle-top {
  position: absolute;
  inset: 14px 17px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  pointer-events: none;
  z-index: 3;
}
.battle-top > * {
  pointer-events: auto;
}
.battle-counters {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.resource-row {
  display: flex;
  gap: 18px;
  background: #0d2631da;
  padding: 3px 14px 3px 5px;
  border-radius: 5px;
}
.counter {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 65px;
  color: #fff8dd;
  font: 27px var(--font);
  text-shadow: 2px 2px #142c37;
}
.counter .ui-mark {
  width: 29px;
  height: 29px;
}
.counter b {
  font-weight: 400;
}
.wave-counter {
  font-size: 23px;
  background: #0d2631da;
  padding: 1px 10px 1px 5px;
  border-radius: 4px;
  min-width: 94px;
}
.wave-counter .ui-mark {
  width: 23px;
  height: 23px;
}
.battle-tools {
  display: flex;
  gap: 9px;
}
.battle-tools .icon-btn {
  width: 43px;
  height: 43px;
  min-width: 43px;
  border-width: 3px;
  font-size: 24px;
}
.battle-tools .ui-mark {
  width: 27px;
  height: 27px;
}
.battle-title {
  margin: 0 0 0 auto;
  padding: 5px 12px;
  color: #ecf7d6;
  text-shadow: 1px 2px #163749;
  font: 21px var(--font);
  opacity: 0;
  transition: opacity 0.2s;
}
.battle-top:hover .battle-title {
  opacity: 1;
}
.control-bar {
  position: absolute;
  left: 20px;
  bottom: 27px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 3;
}
.ability {
  width: 65px;
  height: 65px;
  border: 4px solid #a9d6df;
  border-bottom-color: #577a92;
  border-radius: 11px;
  background: linear-gradient(135deg, #366886, #122e4a);
  box-shadow:
    inset 0 0 0 2px #1c425b,
    0 0 0 2px #123245,
    0 5px 0 #152d3c,
    0 6px 9px #0b243b88;
  position: relative;
  padding: 7px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.ability:hover:not(:disabled) {
  border-color: #e2ffff;
  filter: brightness(1.1);
}
.ability > .ui-mark {
  width: 47px;
  height: 47px;
}
.ability.active {
  border-color: #fff18c;
  box-shadow:
    0 0 0 2px #495c31,
    0 0 15px #ffed7f,
    inset 0 0 10px #6eb3a8;
}
.ability:disabled {
  filter: brightness(0.78) saturate(0.55);
}
.ability kbd {
  position: absolute;
  top: -9px;
  left: -7px;
  padding: 1px 4px;
  border: 1px solid #b3cad1;
  background: #1a3849;
  color: #e2f2e8;
  font: 11px var(--font);
  border-radius: 3px;
  z-index: 2;
}
.hero-portrait-button {
  width: 81px;
  height: 94px;
  border-radius: 25px 25px 13px 13px;
  padding: 0;
  margin-right: 7px;
}
.hero-portrait-button > .portrait {
  border-radius: 20px 20px 8px 8px;
  overflow: hidden;
}
.hero-hp-track {
  position: absolute;
  bottom: 1px;
  left: 4px;
  right: 4px;
  height: 9px;
  background: #112c3c;
  border: 2px solid #adcbd2;
  border-radius: 3px;
  z-index: 2;
}
.hero-hp-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(#b6fb6b, #4ca84b);
}
.hero-level-plaque {
  position: absolute;
  left: -6px;
  bottom: -4px;
  z-index: 3;
  background: #25394a;
  border: 2px solid #a7ccd1;
  border-radius: 3px;
  font: 17px var(--font);
  width: 25px;
}
.power-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: 190px;
  background: #143445f5;
  border: 2px solid #9cbdc6;
  border-radius: 7px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 5px 15px #0008;
  transition: opacity 0.15s;
  text-align: left;
  z-index: 10;
}
.power-tooltip b {
  display: block;
  font: 22px var(--font);
  color: #f8e6a2;
}
.power-tooltip small {
  display: block;
  font-size: 11px;
  color: #c8dce1;
  line-height: 1.4;
  margin-top: 3px;
}
.ability:hover .power-tooltip,
.ability:focus-visible .power-tooltip {
  visibility: visible;
  opacity: 1;
}
.cooldown {
  position: absolute;
  inset: 0;
  background: #0a2337bd;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font: 29px var(--font);
  color: #e2f6ff;
  text-shadow: 2px 2px #092239;
  z-index: 1;
}
.crossed-swords {
  position: relative;
  display: block;
  width: 49px;
  height: 49px;
}
.crossed-swords .ui-mark {
  position: absolute;
  inset: 0;
  width: 49px;
  height: 49px;
}
.crossed-swords .ui-mark:last-child {
  transform: scaleX(-1);
}
.wave-call {
  position: absolute;
  bottom: 30px;
  right: 26px;
  z-index: 3;
  background: radial-gradient(at 40% 20%, #dc623c, #94372f);
  border: 4px solid #edc572;
  border-top-color: #fff0a8;
  box-shadow:
    0 0 0 3px #463831,
    inset 0 0 0 3px #622f29,
    0 5px 0 #302f2e,
    0 5px 12px #0007;
  color: #fff3ce;
  border-radius: 50%;
  width: 77px;
  height: 77px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  animation: wave-call 2.4s ease-in-out infinite;
}
.wave-call > .ui-mark {
  width: 47px;
  height: 47px;
}
.wave-call b {
  position: absolute;
  bottom: -17px;
  white-space: nowrap;
  font: 22px var(--font);
  text-shadow:
    2px 2px #273036,
    -1px -1px #273036;
  color: #fff5b8;
}
.wave-call small {
  position: absolute;
  top: -31px;
  right: -10px;
  min-width: 125px;
  max-width: 180px;
  white-space: nowrap;
  font:
    12px "Trebuchet MS",
    sans-serif;
  color: #f9f1cb;
  padding: 4px 7px;
  background: #132d32db;
  border-radius: 4px;
  pointer-events: none;
}
.wave-call:disabled {
  animation: none;
  filter: brightness(0.8) saturate(0.6);
}
.wave-preview {
  position: absolute;
  top: 94px;
  left: 17px;
  background: #142e3dde;
  border: 1px solid #84a49c65;
  border-radius: 5px;
  width: 174px;
  z-index: 3;
  padding: 0;
  box-shadow: 0 2px 5px #17333355;
}
.wave-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  background: none;
  padding: 6px 8px;
  width: 100%;
  color: #eddfab;
  font: 15px var(--font);
}
.wave-heading > span:first-child {
  font-size: 13px;
  color: #b4dce1;
  white-space: nowrap;
}
.wave-heading b {
  display: none;
}
.wave-heading > span:last-child {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
}
.wave-preview.expanded {
  width: 238px;
}
.wave-preview.expanded .wave-heading {
  flex-wrap: wrap;
}
.wave-preview.expanded .wave-heading b {
  display: block;
  order: 3;
  width: 100%;
  font: 21px var(--font);
  color: #fff0b6;
}
.wave-units {
  display: none;
  padding: 0 9px 8px;
  gap: 8px;
  flex-wrap: wrap;
}
.wave-preview.expanded .wave-units {
  display: flex;
}
.wave-units > span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1px;
}
.wave-units img {
  width: 31px;
  height: 34px;
  object-fit: contain;
}
.wave-units b {
  font: 20px var(--font);
}
.wave-units small {
  position: absolute;
  left: 2px;
  bottom: -3px;
  font: 9px var(--font);
  background: #354a59;
  border-radius: 2px;
  padding: 0 3px;
}
.wave-preview p {
  font-size: 11px;
  color: #c8d9d4;
  margin: 0 9px 10px;
  line-height: 1.5;
}
.battle-hint {
  position: absolute;
  bottom: 3px;
  left: 20px;
  right: 20px;
  pointer-events: none;
  text-align: center;
  font-size: 10px;
  color: #eef4d2;
  text-shadow:
    1px 1px #183c31,
    0 1px 5px #183c31;
}
.battle-hint strong {
  background: #123039c9;
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  font-weight: 400;
}
.portrait-help {
  display: none;
}
.boss-strip {
  position: absolute;
  top: 30px;
  left: 30%;
  right: 23%;
  z-index: 3;
  background: #392c42e8;
  border: 2px solid #ba9697;
  border-radius: 6px;
  padding: 5px 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}
.boss-strip strong {
  font: 21px var(--font);
  color: #ffcab0;
}
.boss-strip progress {
  flex: 1;
  min-width: 70px;
  height: 9px;
  accent-color: #e36962;
}
.boss-strip span {
  font-size: 10px;
  color: #e3bdbe;
}
/* Radial construction and specialization; the center stays transparent. */
#inspector {
  position: absolute;
  z-index: 5;
  isolation: isolate;
}
#inspector.radial-inspector {
  width: 208px;
  height: 208px;
  pointer-events: none;
}
.radial-menu {
  position: relative;
  width: 208px;
  height: 208px;
  pointer-events: none;
}
.radial-menu:before {
  content: "";
  position: absolute;
  inset: 38px;
  border: 10px solid #244456d9;
  border-top-color: #7595a3e8;
  border-left-color: #55778ae8;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #102b3bd9,
    inset 0 0 0 3px #102b3bd9,
    0 4px 4px #142b3d66;
  pointer-events: none;
}
.radial-option {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  width: 62px;
  height: 61px;
  padding: 3px;
  border: 3px solid #a6c2cb;
  border-bottom-color: #527287;
  border-radius: 14px;
  background: radial-gradient(at 40% 15%, #547d8a, #233f52 80%);
  box-shadow:
    0 0 0 2px #142b3b,
    0 4px 0 #142e3b;
  pointer-events: auto;
  display: grid;
  place-items: center;
  transition: filter 0.15s;
}
.radial-option:active:not(:disabled) {
  translate: -50% -47%;
}
.radial-option:hover:not(:disabled),
.radial-option:focus-visible {
  border-color: #fff2a2;
  filter: brightness(1.15);
  z-index: 5;
}
.radial-option > img {
  width: 56px;
  height: 59px;
  object-fit: contain;
  margin-top: -12px;
  filter: drop-shadow(1px 2px 0 #112d3b);
}
.radial-option > .ui-mark {
  width: 40px;
  height: 40px;
  margin-top: -4px;
}
.radial-option > strong {
  position: absolute;
  bottom: -8px;
  left: 50%;
  translate: -50%;
  min-width: 43px;
  padding: 1px 5px;
  background: #143142;
  border: 2px solid #809aa2;
  border-radius: 4px;
  color: #ffe482;
  font: 20px/1.05 var(--font);
  text-shadow: 1px 1px #3b2b24;
}
.radial-option:disabled > strong {
  color: #f3aaa0;
}
.radial-close {
  position: absolute;
  left: 88px;
  top: 95px;
  width: 32px;
  height: 32px;
  border: 2px solid #bdd9d8;
  border-radius: 50%;
  background: #244657ed;
  pointer-events: auto;
  opacity: 0.9;
  padding: 6px;
  box-shadow: 0 0 0 2px #122a38;
}
.radial-close .ui-mark {
  width: 16px;
  height: 16px;
}
.radial-tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  translate: -50%;
  width: 170px;
  padding: 7px 9px;
  font:
    12px/1.4 "Trebuchet MS",
    sans-serif;
  background: #153342f5;
  color: #e6f1df;
  border: 2px solid #91b0b8;
  border-radius: 6px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 3px 8px #0006;
}
.radial-option:hover .radial-tooltip,
.radial-option:focus-visible .radial-tooltip {
  visibility: visible;
  opacity: 1;
}
.skill-ranks {
  position: absolute;
  top: -11px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #b9ef71;
  background: #163346;
  border-radius: 3px;
  line-height: 1.2;
}
.selection-info {
  position: absolute;
  left: 50%;
  translate: -35%;
  bottom: 27px;
  z-index: 4;
  background: #0e2a36eb;
  border: 2px solid #7d9ba688;
  border-radius: 7px;
  padding: 8px 13px;
  width: 300px;
  box-shadow: 0 3px 9px #16314566;
}
.selection-info h3 {
  font: 22px var(--font);
  color: #fff3c4;
}
.selection-info h3 small {
  font: 10px "Trebuchet MS";
  color: #adc6d1;
  margin-left: 6px;
}
.selection-info p {
  font-size: 11px;
  line-height: 1.4;
  color: #cbdad8;
  margin: 3px 0;
}
.selection-stats {
  display: flex;
  gap: 15px;
  align-items: center;
  font: 16px var(--font);
  color: #bfe6e1;
  margin-top: 3px;
}
.selection-stats .ui-mark {
  width: 20px;
  height: 20px;
}
.target-choice {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  margin-top: 4px;
  color: #a9c3ca;
}
.target-choice select {
  font: 12px "Trebuchet MS";
  padding: 2px 6px;
  min-height: 25px;
  border-width: 1px;
}
#soldier-state {
  font-size: 10px;
  color: #b5c8cf;
}
.enemy-inspector {
  width: 210px;
  padding: 13px;
  background: #1b394aef;
  border: 4px solid #89a7af;
  border-radius: 13px;
  box-shadow: var(--frame);
  text-align: center;
}
.enemy-inspect-icon img {
  height: 66px;
  width: 70px;
  object-fit: contain;
}
.enemy-inspector h2 {
  font-size: 24px;
  color: #ffdf9c;
  margin: 0 0 8px;
}
.inspect-stats {
  display: flex;
  justify-content: center;
  gap: 9px;
  font-size: 10px;
  color: #c4d7d7;
}
.inspect-stats b {
  display: block;
  font: 21px var(--font);
  color: #eff5e4;
}
.enemy-inspector p {
  font-size: 10px;
  margin: 7px 0;
  color: #c1d3d6;
}
.enemy-inspector .btn {
  font-size: 20px;
  padding: 6px 10px;
  min-height: 38px;
}
.menu-close {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 29px;
  height: 29px;
  padding: 5px;
  background: #1e3d4c;
  border: 1px solid #91b3ba;
  border-radius: 5px;
}
.menu-close .ui-mark {
  height: 17px;
  width: 17px;
}
.loading {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background: radial-gradient(ellipse, #244b5b, #0b2334);
}
.loading h1 {
  font-size: 45px;
  color: #e3eebc;
}
.loading p {
  color: #aacbd6;
}
.sigil {
  font-size: 65px;
  color: #9be5f2;
}
.loading-track {
  width: 220px;
  height: 8px;
  border: 2px solid #7c9aa5;
  border-radius: 6px;
  background: #183545;
  overflow: hidden;
  margin: 15px 0;
}
.loading-track i {
  display: block;
  height: 100%;
  width: 45%;
  background: #8fd9f0;
  animation: gather 1.3s ease-in-out infinite alternate;
}
#toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  background: #18394bf5;
  color: #fff0c9;
  border: 3px solid #88acb7;
  border-radius: 9px;
  box-shadow: 0 5px 16px #0007;
  padding: 11px 18px;
  max-width: min(90vw, 460px);
  font-size: 14px;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes gather {
  to {
    transform: translateX(125%);
  }
}
@keyframes flag-call {
  50% {
    filter: drop-shadow(0 0 10px #fff79b);
  }
}
@keyframes wave-call {
  50% {
    box-shadow:
      0 0 0 3px #463831,
      inset 0 0 0 3px #622f29,
      0 5px 0 #302f2e,
      0 0 15px #ffe87799;
  }
}
@media (min-aspect-ratio: 5/3) {
  body:has(.battle-screen) {
    display: grid;
    min-height: 100svh;
    align-items: center;
  }
}
@media (max-width: 1000px) {
  .modal {
    padding: 22px;
  }
  .hero-detail {
    gap: 18px;
  }
  .hero-art {
    min-height: 355px;
  }
  .upgrade-tree {
    gap: 8px;
  }
  .upgrade-track {
    padding-right: 7px;
  }
  .upgrade-emblem {
    width: 68px;
    height: 68px;
  }
  .upgrade-emblem img {
    width: 65px;
    height: 65px;
  }
  .upgrade-track h3 {
    font-size: 20px;
  }
  .upgrade-track p {
    font-size: 10px;
  }
  .control-bar {
    left: 14px;
    bottom: 22px;
    gap: 9px;
  }
  .ability {
    width: 55px;
    height: 55px;
    border-width: 3px;
  }
  .ability > .ui-mark {
    width: 39px;
    height: 39px;
  }
  .hero-portrait-button {
    width: 69px;
    height: 80px;
  }
  .crossed-swords,
  .crossed-swords .ui-mark {
    width: 41px;
    height: 41px;
  }
  .selection-info {
    width: 270px;
    translate: -20%;
    bottom: 23px;
  }
  .wave-call {
    width: 65px;
    height: 65px;
    right: 20px;
    bottom: 27px;
  }
  .wave-call b {
    font-size: 19px;
  }
  .battle-top {
    top: 10px;
    left: 12px;
    right: 12px;
  }
  .battle-title {
    display: none;
  }
  .wave-preview {
    left: 12px;
    top: 86px;
  }
  .wave-heading {
    padding: 3px 7px;
  }
  .modal-briefing {
    padding: 0 0 18px;
  }
  .brief-map {
    height: 230px;
  }
}
@media (max-width: 700px) {
  .world-nav {
    gap: 16px;
    bottom: 66px;
  }
  .menu-medallion {
    width: 66px;
    height: 66px;
    border-width: 4px;
  }
  .menu-medallion > .ui-mark {
    width: 46px;
    height: 46px;
  }
  .menu-medallion > img {
    width: 58px;
    height: 58px;
  }
  .world-menu-button {
    min-width: 62px;
  }
  .world-menu-button b {
    font-size: 19px;
  }
  .world-title {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .world-title small {
    font-size: 13px;
  }
  .world-hud {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .star-count {
    font-size: 24px;
    padding-right: 8px;
    gap: 4px;
  }
  .star-count .ui-mark {
    width: 31px;
    height: 31px;
  }
  .world-bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    bottom: 8px;
  }
  .world-bottom:before {
    height: 190px;
  }
  .world-bottom .difficulty-control {
    font-size: 11px;
  }
  .modal-backdrop {
    padding: 15px 8px;
    align-items: flex-start;
  }
  .modal {
    max-height: calc(100svh - 30px);
    padding: 18px 13px;
    border-width: 6px;
    border-radius: 17px;
    margin: auto 0;
  }
  .modal-head {
    padding: 0 42px 15px;
    margin-bottom: 16px;
  }
  .modal-head h2 {
    font-size: 29px;
  }
  .modal-head .icon-btn {
    right: -8px;
    top: -9px;
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .hero-roster {
    gap: 10px;
    margin-bottom: 17px;
  }
  .roster-button {
    width: 73px;
    height: 83px;
  }
  .hero-roster > p {
    display: none;
  }
  .hero-detail {
    grid-template-columns: 1fr 1.45fr;
    gap: 14px;
  }
  .hero-art {
    min-height: 380px;
  }
  .hero-information > h3 {
    font-size: 25px;
  }
  .hero-art-name h3 {
    font-size: 37px;
  }
  .hero-art-name span {
    font-size: 16px;
  }
  .hero-stats {
    gap: 3px;
  }
  .hero-stats > div {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-stats .ui-mark {
    display: none;
  }
  .hero-stats b {
    font-size: 22px;
  }
  .hero-skill {
    gap: 7px;
  }
  .hero-skill > .ui-mark {
    display: none;
  }
  .hero-skill h4 {
    font-size: 21px;
  }
  .hero-skill p {
    font-size: 11px;
  }
  .hero-select {
    gap: 8px;
  }
  .hero-select .btn {
    font-size: 21px;
    padding: 8px 10px;
  }
  .hero-level {
    font-size: 29px;
    padding: 5px;
  }
  .upgrade-tree {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 10px;
  }
  .upgrade-track:nth-child(3) {
    border: 0;
  }
  .upgrade-track h3 {
    min-height: 23px;
  }
  .upgrade-track p {
    min-height: 42px;
    max-width: 120px;
  }
  .rank-chain {
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0 12px;
    max-width: 120px;
  }
  .rank-chain:before {
    display: none;
  }
  .rank-node {
    width: 29px;
    height: 29px;
    font-size: 16px;
    border-width: 2px;
    border-radius: 5px;
  }
  .rank-node .ui-mark {
    width: 21px;
    height: 21px;
  }
  .upgrade-footer {
    gap: 9px;
    flex-wrap: wrap;
  }
  .upgrade-footer > span {
    width: 100%;
  }
  .upgrade-footer .btn {
    font-size: 20px;
  }
  .upgrade-intro {
    font-size: 11px;
    gap: 10px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-entry {
    padding: 15px;
  }
  .modal-briefing {
    padding: 0 0 18px;
  }
  .modal-briefing .modal-head h2 {
    font-size: 25px;
  }
  .brief-map {
    height: 215px;
  }
  .brief-story {
    font-size: 16px;
    padding: 12px;
  }
  .brief-controls {
    padding: 14px 12px;
    gap: 12px;
  }
  .brief-controls .tabs {
    min-width: 80px;
  }
  .brief-controls .tabs button {
    font-size: 16px;
    padding: 5px;
  }
  .brief-controls .tabs .ui-mark {
    width: 23px;
    height: 23px;
  }
  .brief-stats {
    gap: 8px;
    font-size: 17px;
    flex-wrap: wrap;
  }
  .brief-stats .ui-mark {
    width: 19px;
    height: 19px;
  }
  .brief-details .small {
    font-size: 11px;
  }
  .brief-footer {
    padding: 0 13px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .brief-footer .difficulty-control {
    font-size: 11px;
  }
  .fight-button {
    min-width: 130px;
    font-size: 30px;
    margin-left: auto;
  }
  .enemy-line {
    gap: 5px;
  }
  .enemy-line img {
    width: 27px;
    height: 29px;
  }
  .result-stat-grid {
    gap: 7px;
    grid-template-columns: repeat(2, 1fr);
  }
  .home-footer {
    bottom: 17px;
  }
  .game-logo h1 {
    -webkit-text-stroke: 3px #1b3544;
  }
  .game-logo h1 span {
    -webkit-text-stroke: 2px #1b3544;
  }
  .world-title {
    display: none;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .battle-screen {
    width: 100%;
    min-height: 100svh;
    padding-top: 66px;
    background: linear-gradient(#173c4f, #0e293a);
  }
  .battle-top {
    top: -56px;
    left: 9px;
    right: 9px;
  }
  .battle-counters {
    flex-direction: row;
    gap: 7px;
    align-items: center;
  }
  .resource-row {
    gap: 10px;
    padding: 4px;
  }
  .counter {
    min-width: 45px;
    font-size: 22px;
    gap: 2px;
  }
  .counter .ui-mark {
    width: 23px;
    height: 23px;
  }
  .wave-counter {
    font-size: 20px;
    min-width: 62px;
    padding: 5px;
  }
  .wave-counter .ui-mark {
    width: 19px;
    height: 19px;
  }
  .battle-tools {
    gap: 5px;
  }
  .battle-tools .icon-btn {
    width: 39px;
    height: 39px;
    min-width: 39px;
  }
  .fullscreen-button {
    display: none;
  }
  .battle-board {
    box-shadow: 0 4px 0 #071e2c;
  }
  .battle-main {
    padding-bottom: 260px;
  }
  .wave-preview {
    top: calc(60vw + 96px);
    left: 12px;
    width: calc(100% - 24px);
    border-color: #658a975c;
    background: #1c3c4f;
  }
  .wave-heading {
    padding: 6px 10px;
  }
  .wave-heading b {
    display: block;
    font-size: 17px;
    margin-left: auto;
    color: #f4e2ab;
  }
  .wave-preview.expanded {
    width: calc(100% - 24px);
  }
  .wave-preview.expanded .wave-heading b {
    order: 0;
    width: auto;
    font-size: 17px;
  }
  .control-bar {
    top: calc(60vw + 18px);
    left: 14px;
    bottom: auto;
    gap: 9px;
  }
  .ability {
    width: 49px;
    height: 49px;
    padding: 4px;
    border-width: 3px;
    border-radius: 8px;
  }
  .ability > .ui-mark {
    width: 37px;
    height: 37px;
  }
  .hero-portrait-button {
    width: 58px;
    height: 65px;
    border-radius: 16px 16px 8px 8px;
    margin-right: 3px;
  }
  .hero-portrait-button > .portrait {
    border-radius: 12px 12px 5px 5px;
  }
  .crossed-swords,
  .crossed-swords .ui-mark {
    width: 38px;
    height: 38px;
  }
  .wave-call {
    top: calc(60vw + 18px);
    bottom: auto;
    right: 17px;
    width: 55px;
    height: 55px;
    border-width: 3px;
    padding: 7px;
  }
  .wave-call > .ui-mark {
    width: 34px;
    height: 34px;
  }
  .wave-call b {
    font-size: 15px;
    bottom: -19px;
  }
  .wave-call small {
    display: none;
  }
  .selection-info {
    bottom: auto;
    top: calc(60vw + 147px);
    left: 12px;
    right: 12px;
    width: auto;
    translate: 0;
    z-index: 3;
    padding: 8px 12px;
    border-color: #668b99;
    background: #17394b;
  }
  .selection-info h3 {
    font-size: 23px;
  }
  .selection-info p {
    font-size: 12px;
  }
  .selection-info .target-choice {
    position: absolute;
    right: 10px;
    bottom: 8px;
  }
  .selection-info .target-choice select {
    min-height: 31px;
  }
  .selection-info .selection-stats {
    padding-right: 85px;
    font-size: 14px;
    gap: 8px;
  }
  .battle-hint {
    bottom: auto;
    top: calc(60vw + 256px);
    font-size: 11px;
    left: 12px;
    right: 12px;
  }
  .portrait-help {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #84a8b9;
    padding: 35px 24px 20px;
  }
  .boss-strip {
    top: 3px;
    left: 20%;
    right: 3%;
    padding: 3px 6px;
  }
  .boss-strip strong {
    font-size: 18px;
  }
  .boss-strip span {
    display: none;
  }
  .radial-tooltip {
    display: none;
  }
  .power-tooltip {
    width: 150px;
  }
  .hero-roster {
    justify-content: center;
  }
  .hero-detail {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 270px;
    max-height: 270px;
    width: 100%;
  }
  .hero-art > .portrait {
    height: 400px;
    background-size: cover;
  }
  .hero-art-name {
    padding: 30px 18px 10px;
  }
  .hero-information > .eyebrow,
  .hero-information > h3 {
    display: none;
  }
  .hero-stats {
    margin-bottom: 10px;
  }
  .hero-stats > div {
    grid-template-columns: 29px auto;
    text-align: left;
  }
  .hero-stats .ui-mark {
    display: block;
  }
  .hero-skill > .ui-mark {
    display: block;
  }
  .hero-information .hero-select {
    position: sticky;
    bottom: -18px;
    background: #213c4d;
    padding: 10px 0;
  }
  .hero-experience {
    margin: 10px 0;
  }
  .hero-art-name h3 {
    font-size: 42px;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .world-hud {
    top: 10px;
    left: 12px;
    right: 12px;
  }
  .world-nav {
    bottom: 36px;
    gap: 20px;
  }
  .menu-medallion {
    width: 59px;
    height: 59px;
    border-width: 3px;
  }
  .menu-medallion > .ui-mark {
    width: 43px;
    height: 43px;
  }
  .menu-medallion > img {
    width: 54px;
    height: 54px;
  }
  .world-menu-button {
    min-width: 60px;
  }
  .world-menu-button b {
    font-size: 18px;
    margin-top: 2px;
  }
  .world-title {
    font-size: 21px;
  }
  .world-title small {
    display: none;
  }
  .world-bottom {
    bottom: 4px;
  }
  .world-bottom .text-button {
    font-size: 16px;
  }
  .world-bottom .difficulty-control {
    font-size: 10px;
  }
  .difficulty-control select {
    min-height: 29px;
    padding: 3px 7px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .modal {
    max-height: calc(100svh - 28px);
    padding: 18px;
  }
  .modal-head {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }
  .modal-head h2 {
    font-size: 27px;
  }
  .modal-head .icon-btn {
    top: -7px;
    right: -7px;
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  .modal-briefing {
    padding: 0 0 16px;
    max-width: 750px;
  }
  .brief-map {
    height: 135px;
  }
  .brief-story {
    font-size: 15px;
    padding: 7px 12px;
  }
  .brief-controls {
    padding: 12px 18px;
    gap: 16px;
  }
  .brief-controls .tabs {
    flex-direction: row;
    min-width: 80px;
    align-content: start;
    max-width: 95px;
  }
  .brief-controls .tabs button {
    font-size: 15px;
    min-height: 32px;
    width: 100%;
    padding: 2px 5px;
  }
  .brief-controls .tabs .ui-mark {
    width: 22px;
    height: 22px;
  }
  .brief-footer {
    padding: 0 18px;
  }
  .brief-stats {
    font-size: 18px;
  }
  .enemy-line {
    margin: 6px 0;
  }
  .enemy-line img {
    height: 25px;
    width: 25px;
  }
  .brief-footer .btn {
    min-height: 41px;
    font-size: 27px;
    padding: 6px 16px;
  }
  .brief-hero > .portrait {
    width: 40px;
    height: 45px;
  }
  .battle-top {
    top: 7px;
    left: 8px;
    right: 8px;
  }
  .resource-row {
    gap: 12px;
    padding: 1px 8px 1px 3px;
  }
  .counter {
    font-size: 22px;
    min-width: 49px;
  }
  .counter .ui-mark {
    width: 24px;
    height: 24px;
  }
  .wave-counter {
    font-size: 19px;
    padding: 0 8px 0 4px;
    min-width: 79px;
  }
  .wave-counter .ui-mark {
    width: 19px;
    height: 19px;
  }
  .battle-tools {
    gap: 6px;
  }
  .battle-tools .icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-width: 3px;
    font-size: 21px;
  }
  .battle-tools .ui-mark {
    width: 23px;
    height: 23px;
  }
  .wave-preview {
    top: 70px;
    left: 8px;
    width: 148px;
  }
  .wave-heading {
    font-size: 14px;
    padding: 2px 6px;
  }
  .wave-heading > span:first-child {
    font-size: 12px;
  }
  .control-bar {
    bottom: 19px;
    left: 10px;
    gap: 8px;
  }
  .ability {
    width: 47px;
    height: 47px;
    padding: 4px;
  }
  .ability > .ui-mark {
    width: 35px;
    height: 35px;
  }
  .hero-portrait-button {
    width: 56px;
    height: 66px;
    margin-right: 3px;
  }
  .crossed-swords,
  .crossed-swords .ui-mark {
    width: 36px;
    height: 36px;
  }
  .hero-level-plaque {
    font-size: 14px;
    width: 22px;
  }
  .wave-call {
    bottom: 23px;
    right: 17px;
    width: 56px;
    height: 56px;
    padding: 7px;
    border-width: 3px;
  }
  .wave-call > .ui-mark {
    width: 37px;
    height: 37px;
  }
  .wave-call b {
    font-size: 17px;
  }
  .wave-call small {
    font-size: 10px;
    top: -25px;
    min-width: 105px;
  }
  .selection-info {
    bottom: 20px;
    width: 235px;
    left: 50%;
    translate: -30%;
    padding: 6px 9px;
  }
  .selection-info h3 {
    font-size: 18px;
  }
  .selection-info p {
    font-size: 10px;
  }
  .selection-stats {
    font-size: 13px;
    gap: 10px;
  }
  .selection-stats .ui-mark {
    width: 17px;
    height: 17px;
  }
  .selection-info h3 small {
    font-size: 8px;
  }
  .target-choice select {
    min-height: 22px;
    padding: 0 4px;
  }
  .battle-hint {
    bottom: 1px;
    font-size: 8px;
  }
  .radial-tooltip {
    max-width: 150px;
    font-size: 10px;
    padding: 5px;
  }
  .hero-roster {
    margin-bottom: 15px;
  }
  .hero-art {
    min-height: 330px;
  }
  .home {
    padding-top: 25px;
    padding-bottom: 60px;
  }
  .logo-crown {
    height: 40px;
  }
  .logo-crown .ui-mark {
    height: 47px;
    width: 47px;
  }
  .game-logo {
    margin-bottom: 15px;
  }
  .game-logo h1 {
    font-size: 75px;
  }
  .game-logo p {
    font-size: 20px;
    letter-spacing: 3px;
  }
  .home-actions {
    gap: 10px;
  }
  .home-actions .btn.large {
    min-height: 45px;
    font-size: 28px;
  }
  .home-actions .secondary {
    min-height: 36px;
    font-size: 21px;
  }
  .home-footer {
    bottom: 9px;
    font-size: 9px;
  }
  .home-footer p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* The codex presents real tower tiers; difficulty choices map to simulation rules. */
.enemy-name {
  font-size: 10px;
  padding: 4px 6px !important;
  color: #d6e7d7;
}
.difficulty-control strong {
  color: #fff0ac;
  font: 18px var(--font);
}
.difficulty-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.difficulty-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  background: #2f4c59;
  border: 4px solid #779ba8;
  border-radius: 12px;
  padding: 12px 16px 36px;
  box-shadow: inset 0 0 0 2px #172e3b;
}
.difficulty-card.selected {
  border-color: #e4e6a1;
  box-shadow: 0 0 12px #a4db8166;
}
.difficulty-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 190px;
  background: radial-gradient(#45636a, #112b38);
  border: 2px solid #a7bfc0;
  border-radius: 6px;
  margin-bottom: 14px;
}
.difficulty-art img {
  width: 90%;
  height: 95%;
  object-fit: contain;
}
.difficulty-card h3 {
  font-size: 31px;
  color: #d6f4f0;
}
.difficulty-card p {
  font-size: 13px;
  color: #b7d8de;
  line-height: 1.5;
  margin-top: 10px;
}
.difficulty-selected {
  position: absolute;
  bottom: 10px;
  color: #b4ec7b;
  font: 18px var(--font);
}
.tower-roster {
  display: flex;
  gap: 12px;
  background: #142d39;
  border: 3px solid #678996;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 22px;
}
.tower-roster-button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  background: #2b4a5b;
  border: 3px solid #7897a0;
  border-radius: 7px;
  padding: 4px 7px;
  font: 21px var(--font);
  color: #caeaf0;
}
.tower-roster-button.selected,
.tower-tiers button.selected,
.tower-branches button.selected {
  border-color: #ffe283;
  box-shadow: 0 0 8px #ffe76d66;
}
.tower-roster-button img {
  width: 48px;
  height: 56px;
  object-fit: contain;
}
.tower-detail {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}
.tower-showcase {
  background: radial-gradient(
    ellipse at 50% 50%,
    #7e9c8c,
    #284f5b 57%,
    #102d3f
  );
  border: 5px solid #809fa8;
  border-radius: 11px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 0 0 2px #122d3b;
}
.tower-showcase > img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 12px 8px #092a3888);
}
.tower-showcase h3 {
  font-size: 31px;
  text-align: center;
  color: #ffebaa;
  margin: 14px 0 4px;
}
.tower-showcase > span {
  color: #bee1e2;
  font-size: 12px;
}
.tower-information > h3 {
  font-size: 34px;
  color: #ffdf80;
  margin: 7px 0;
}
.tower-information > p {
  font-size: 13px;
  color: #c8d7d5;
  margin-bottom: 15px;
}
.tower-information > h4 {
  font-size: 21px;
  color: #a6e4ed;
  margin-bottom: 10px;
}
.tower-tiers {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.tower-tiers button {
  flex: 1;
  border: 3px solid #648797;
  border-radius: 7px;
  background: #163545;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 18px var(--font);
}
.tower-tiers img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}
.tower-tiers small {
  font: 10px "Trebuchet MS";
  color: #e1d4a2;
  margin-top: 3px;
}
.tower-branches {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.tower-branches button {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: #163545;
  border: 3px solid #648797;
  border-radius: 7px;
  font: 18px var(--font);
  text-align: left;
}
.tower-branches img {
  width: 49px;
  height: 56px;
  object-fit: contain;
}
.tower-branches small {
  display: block;
  font: 10px "Trebuchet MS";
  color: #dfcf9b;
  margin-top: 5px;
}
.catalog-skills > div {
  display: flex;
  gap: 10px;
  margin-top: 11px;
}
.catalog-skills h4 {
  font-size: 21px;
  color: #a7dfec;
}
.catalog-skills p {
  font-size: 12px;
  color: #c4d7d9;
  margin: 3px 0;
}
.catalog-skills small {
  font-size: 10px;
  color: #dccea3;
}
.catalog-skills .ui-mark {
  width: 36px;
  height: 36px;
  padding: 4px;
  background: #1e4358;
  border: 2px solid #7aa0b0;
  border-radius: 7px;
}
.modal-towers .hero-stats {
  margin: 17px 0;
}
.modal-towers .hero-stats > div {
  grid-template-columns: 29px auto;
}
@media (max-width: 700px) {
  .modal-head h2 {
    padding: 9px 18px 5px;
  }
  .difficulty-cards {
    gap: 10px;
  }
  .difficulty-card {
    padding: 6px 8px 32px;
    border-width: 3px;
  }
  .difficulty-art {
    height: 125px;
    margin-bottom: 10px;
  }
  .difficulty-card h3 {
    font-size: 24px;
  }
  .difficulty-card p {
    font-size: 11px;
  }
  .difficulty-selected {
    font-size: 16px;
  }
  .tower-roster {
    gap: 7px;
    padding: 8px;
    margin-bottom: 16px;
  }
  .tower-roster-button {
    flex-direction: column;
    font-size: 16px;
    padding: 4px;
  }
  .tower-roster-button img {
    height: 47px;
    width: 44px;
  }
  .tower-detail {
    grid-template-columns: 1fr 1.6fr;
    gap: 13px;
  }
  .tower-showcase {
    padding: 12px;
    min-height: 300px;
  }
  .tower-showcase > img {
    height: 200px;
  }
  .tower-showcase h3 {
    font-size: 24px;
  }
  .tower-information > h3 {
    font-size: 28px;
  }
  .tower-tiers {
    gap: 6px;
  }
  .tower-tiers img {
    width: 45px;
    height: 50px;
  }
  .tower-branches {
    gap: 6px;
    flex-wrap: wrap;
  }
  .tower-branches button {
    font-size: 17px;
    min-width: 120px;
  }
  .tower-branches img {
    height: 44px;
    width: 38px;
  }
  .tower-information .hero-stats .ui-mark {
    display: none;
  }
  .tower-information .hero-stats > div {
    grid-template-columns: 1fr;
  }
  .tower-information .hero-stats b {
    font-size: 22px;
  }
  .catalog-skills p {
    font-size: 11px;
  }
  .difficulty-control {
    font-size: 11px;
    min-height: 34px;
  }
  .difficulty-control strong {
    font-size: 17px;
  }
}
@media (max-width: 450px) {
  .tower-detail {
    grid-template-columns: 1fr;
  }
  .tower-showcase {
    min-height: 220px;
    position: relative;
    padding: 10px;
  }
  .tower-showcase > img {
    height: 180px;
  }
  .tower-showcase h3 {
    font-size: 27px;
    margin: 5px 0;
  }
  .difficulty-cards {
    grid-template-columns: 1fr;
  }
  .difficulty-card {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 3px 12px;
    text-align: left;
    padding: 8px 12px 22px;
    align-items: center;
  }
  .difficulty-art {
    grid-row: 1/3;
    width: 95px;
    height: 105px;
    margin: 0;
  }
  .difficulty-card p {
    margin: 0;
  }
  .difficulty-selected {
    bottom: 7px;
    right: 12px;
  }
  .difficulty-card h3 {
    font-size: 29px;
  }
  .hero-art > .portrait {
    background-position: center 15%;
  }
  .hero-roster .portrait,
  .hero-portrait-button .portrait,
  .brief-hero .portrait {
    background-position: center 15%;
  }
}
@media (min-width: 1900px) {
  .world-nav {
    scale: 1.35;
    transform-origin: bottom center;
  }
  .world-hud {
    zoom: 1.25;
  }
  .world-bottom {
    zoom: 1.2;
  }
  .mission {
    scale: 1.25;
  }
  .battle-top,
  .control-bar,
  .wave-preview,
  .wave-call {
    zoom: 1.2;
  }
  .selection-info {
    zoom: 1.15;
  }
}
@media (min-width: 1001px) and (min-height: 700px) {
  .modal-towers {
    padding: 22px;
    max-width: 1040px;
  }
  .modal-towers .modal-head {
    margin-bottom: 16px;
    padding-bottom: 6px;
  }
  .modal-towers .tower-roster {
    padding: 8px;
    margin-bottom: 18px;
  }
  .modal-towers .tower-information > .hero-stats {
    margin: 12px 0;
    padding: 7px 0;
  }
  .modal-towers .tower-tiers img {
    height: 52px;
  }
  .modal-towers .tower-branches {
    margin: 9px 0;
  }
  .modal-towers .tower-showcase {
    min-height: 340px;
  }
  .modal-towers .tower-detail {
    gap: 22px;
  }
  .modal-towers .row:last-child {
    margin-top: 12px !important;
  }
}
