/* src/styles/main.css */
:root {
  --bg-0: #090312;
  --bg-1: #160823;
  --panel: rgba(18, 9, 35, 0.78);
  --panel-strong: rgba(16, 8, 30, 0.92);
  --line: rgba(255, 93, 214, 0.22);
  --line-strong: rgba(255, 122, 72, 0.38);
  --text: #f6efff;
  --muted: #cfb5eb;
  --accent: #ff8a3d;
  --accent-hot: #ff4fd8;
  --accent-cool: #985dff;
  --danger: #ff5b8f;
  --shadow: 0 24px 80px rgba(6, 0, 14, 0.68);
}
* {
  box-sizing: border-box;
}
html,
body,
#app,
#game-root,
#ui-root {
  width: 100%;
  height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
  color: var(--text);
  font-family:
    "Bahnschrift SemiCondensed",
    "Aptos",
    sans-serif;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(152, 93, 255, 0.28),
      transparent 18rem),
    radial-gradient(
      circle at 76% 22%,
      rgba(255, 79, 216, 0.2),
      transparent 18rem),
    radial-gradient(
      circle at 68% 78%,
      rgba(255, 138, 61, 0.22),
      transparent 16rem),
    linear-gradient(
      165deg,
      #06020f 0%,
      #120720 46%,
      #1e0b28 100%);
}
button,
input {
  font: inherit;
}
#app {
  position: relative;
}
#game-root,
#ui-root {
  position: absolute;
  inset: 0;
}
#ui-root {
  pointer-events: none;
}
#ui-root > * {
  pointer-events: auto;
}
#ui-root > .battle-shell {
  pointer-events: none;
}
#ui-root > .battle-shell > * {
  pointer-events: auto;
}
.screen {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 2rem;
}
.screen--title {
  position: relative;
  justify-items: start;
  padding-left: 8vw;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 74% 18%,
      rgba(255, 140, 86, 0.1),
      transparent 26rem),
    radial-gradient(
      circle at 82% 12%,
      rgba(126, 62, 255, 0.16),
      transparent 24rem),
    linear-gradient(
      180deg,
      #070111 0%,
      #10021f 40%,
      #170529 68%,
      #09020f 100%);
}
.title-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.title-scene::before,
.title-scene::after {
  content: "";
  position: absolute;
  inset: 0;
}
.title-scene::before {
  background:
    radial-gradient(
      circle at 68% 24%,
      rgba(255, 155, 79, 0.18),
      transparent 18rem),
    radial-gradient(
      circle at 78% 28%,
      rgba(255, 79, 216, 0.12),
      transparent 22rem),
    radial-gradient(
      circle at 56% 14%,
      rgba(127, 216, 255, 0.08),
      transparent 20rem);
  animation: title-aurora-drift 18s ease-in-out infinite alternate;
}
.title-scene::after {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      transparent 24%),
    radial-gradient(
      circle at 50% 120%,
      rgba(0, 0, 0, 0.58),
      transparent 42%);
  z-index: 6;
}
.title-scene__stars,
.title-scene__sun,
.title-scene__orb,
.title-scene__haze,
.title-scene__mountains,
.title-scene__grid {
  position: absolute;
}
.title-scene__stars {
  inset: 0;
  background:
    radial-gradient(
      circle at 9% 12%,
      rgba(255, 255, 255, 0.95) 0 0.08rem,
      transparent 0.1rem),
    radial-gradient(
      circle at 15% 24%,
      rgba(127, 216, 255, 0.78) 0 0.06rem,
      transparent 0.08rem),
    radial-gradient(
      circle at 22% 11%,
      rgba(255, 202, 118, 0.82) 0 0.08rem,
      transparent 0.1rem),
    radial-gradient(
      circle at 31% 21%,
      rgba(255, 255, 255, 0.86) 0 0.07rem,
      transparent 0.09rem),
    radial-gradient(
      circle at 42% 9%,
      rgba(206, 181, 235, 0.72) 0 0.06rem,
      transparent 0.08rem),
    radial-gradient(
      circle at 55% 17%,
      rgba(255, 255, 255, 0.82) 0 0.07rem,
      transparent 0.09rem),
    radial-gradient(
      circle at 64% 8%,
      rgba(127, 216, 255, 0.82) 0 0.06rem,
      transparent 0.08rem),
    radial-gradient(
      circle at 72% 21%,
      rgba(255, 255, 255, 0.88) 0 0.08rem,
      transparent 0.1rem),
    radial-gradient(
      circle at 83% 15%,
      rgba(255, 202, 118, 0.76) 0 0.08rem,
      transparent 0.1rem),
    radial-gradient(
      circle at 91% 27%,
      rgba(255, 255, 255, 0.92) 0 0.07rem,
      transparent 0.09rem);
  opacity: 0.65;
  animation: title-stars-twinkle 9s ease-in-out infinite alternate;
}
.title-scene__sun {
  top: 11%;
  right: 11%;
  width: min(31vw, 26rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 16%,
      rgba(255, 251, 214, 0.76),
      transparent 18%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 245, 176, 0.96) 0,
      rgba(255, 245, 176, 0.96) 0.8rem,
      rgba(255, 215, 109, 0.96) 0.8rem,
      rgba(255, 215, 109, 0.96) 1.35rem,
      rgba(255, 120, 62, 0.36) 1.35rem,
      rgba(255, 120, 62, 0.36) 1.7rem),
    linear-gradient(
      180deg,
      #fff1a0 0%,
      #ffd562 34%,
      #ff9f4b 66%,
      #ff5e57 100%);
  box-shadow: 0 0 38px rgba(255, 188, 90, 0.42), 0 0 120px rgba(255, 107, 73, 0.24);
  opacity: 0.92;
  z-index: 1;
  animation: title-sun-drift 10s ease-in-out infinite alternate;
}
.title-scene__sun::after {
  content: "";
  position: absolute;
  inset: 58% -12% -18%;
  background:
    linear-gradient(
      180deg,
      rgba(255, 129, 69, 0.32),
      transparent);
  filter: blur(30px);
}
.title-scene__orb {
  border-radius: 50%;
  animation: title-orb-drift 16s ease-in-out infinite alternate;
}
.title-scene__orb--one {
  top: 14%;
  right: 23%;
  width: min(18vw, 15rem);
  aspect-ratio: 1;
  background: rgba(176, 76, 255, 0.2);
  box-shadow: 0 0 80px rgba(176, 76, 255, 0.12);
  z-index: 0;
  animation-duration: 12s;
}
.title-scene__orb--two {
  top: 19%;
  right: 14%;
  width: min(24vw, 19rem);
  aspect-ratio: 1;
  background: rgba(15, 6, 32, 0.72);
  border: 1px solid rgba(126, 62, 255, 0.12);
  z-index: 2;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
.title-scene__haze {
  left: -8%;
  right: -8%;
  top: 33%;
  height: 28%;
  background:
    radial-gradient(
      circle at 70% 34%,
      rgba(255, 150, 78, 0.24),
      transparent 18rem),
    linear-gradient(
      180deg,
      rgba(255, 79, 216, 0) 0%,
      rgba(255, 79, 216, 0.12) 46%,
      rgba(255, 146, 67, 0.1) 62%,
      rgba(255, 79, 216, 0) 100%);
  filter: blur(26px);
  opacity: 0.7;
  z-index: 2;
  animation: title-haze-breathe 14s ease-in-out infinite;
}
.title-scene__mountains {
  left: -8%;
  right: -8%;
  transform-origin: center bottom;
}
.title-scene__mountains--far {
  bottom: 28%;
  height: 20%;
  background:
    linear-gradient(
      180deg,
      rgba(77, 34, 110, 0.82),
      rgba(19, 8, 37, 0.96));
  clip-path: polygon(0 100%, 0 77%, 8% 63%, 18% 76%, 29% 44%, 40% 71%, 50% 39%, 61% 73%, 72% 47%, 83% 70%, 92% 54%, 100% 72%, 100% 100%);
  opacity: 0.78;
  z-index: 3;
  animation: title-mountains-drift 20s ease-in-out infinite alternate;
}
.title-scene__mountains--near {
  bottom: 19%;
  height: 24%;
  background:
    linear-gradient(
      180deg,
      rgba(38, 11, 66, 0.96),
      rgba(8, 3, 18, 1));
  clip-path: polygon(0 100%, 0 69%, 7% 56%, 16% 80%, 28% 42%, 39% 68%, 51% 34%, 63% 72%, 75% 43%, 86% 74%, 100% 52%, 100% 100%);
  box-shadow: 0 -18px 30px rgba(255, 120, 62, 0.06);
  z-index: 4;
  animation: title-mountains-drift 14s ease-in-out infinite alternate-reverse;
}
.title-scene__grid {
  left: -12%;
  right: -12%;
  bottom: -28%;
  height: 56%;
  transform-origin: center top;
  transform: perspective(560px) rotateX(78deg);
  background:
    linear-gradient(
      180deg,
      rgba(255, 166, 88, 0.2),
      transparent 14%),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) 5rem,
      rgba(114, 69, 255, 0.34) 5rem,
      rgba(114, 69, 255, 0.34) 5.12rem),
    repeating-linear-gradient(
      180deg,
      rgba(255, 89, 192, 0.72) 0,
      rgba(255, 89, 192, 0.72) 0.16rem,
      rgba(0, 0, 0, 0) 0.16rem,
      rgba(0, 0, 0, 0) 3.4rem);
  border-top: 1px solid rgba(255, 193, 91, 0.82);
  -webkit-mask-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.96) 0%,
      rgba(0, 0, 0, 0.78) 56%,
      transparent 100%);
  mask-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.96) 0%,
      rgba(0, 0, 0, 0.78) 56%,
      transparent 100%);
  opacity: 0.92;
  z-index: 2;
  animation: title-grid-scroll 8s linear infinite;
}
.title-scene__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 2%,
      rgba(255, 176, 86, 0.28),
      transparent 18rem);
}
.hero-card,
.panel,
.overlay-card,
.battle-rail,
.battle-topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card {
  position: relative;
  z-index: 10;
  width: min(42rem, 100%);
  padding: 2.4rem;
  border-radius: 1.75rem;
  animation: rise-in 540ms ease;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 79, 216, 0.14),
      transparent 11rem),
    radial-gradient(
      circle at bottom left,
      rgba(255, 138, 61, 0.16),
      transparent 12rem),
    var(--panel);
  border-color: var(--line-strong);
}
.hero-logo {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.75rem 1.25rem 2.3rem;
  min-height: 13rem;
  border: 1px solid rgba(255, 138, 61, 0.3);
  border-radius: 1.25rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      180deg,
      rgba(6, 10, 28, 0.82),
      rgba(7, 8, 22, 0.44)),
    radial-gradient(
      circle at 50% 85%,
      rgba(255, 79, 216, 0.32),
      transparent 42%);
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: auto 8% 1.5rem;
  height: 0.2rem;
  background:
    linear-gradient(
      90deg,
      rgba(255, 79, 216, 0) 0%,
      rgba(255, 196, 88, 0.82) 28%,
      rgba(255, 121, 58, 0.94) 50%,
      rgba(255, 196, 88, 0.82) 72%,
      rgba(255, 79, 216, 0) 100%);
  box-shadow: 0 0 20px rgba(255, 158, 62, 0.55), 0 0 44px rgba(255, 79, 216, 0.28);
  z-index: 1;
}
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 11px);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
  z-index: 3;
}
.hero-logo__sun {
  position: absolute;
  left: 50%;
  top: 0.6rem;
  width: min(17rem, 74%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(255, 255, 230, 0.78),
      transparent 20%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 243, 173, 0.98) 0,
      rgba(255, 243, 173, 0.98) 0.55rem,
      rgba(255, 211, 102, 0.95) 0.55rem,
      rgba(255, 211, 102, 0.95) 0.95rem,
      rgba(255, 153, 56, 0.28) 0.95rem,
      rgba(255, 153, 56, 0.28) 1.15rem),
    linear-gradient(
      180deg,
      #fff7ab 0%,
      #ffd25e 34%,
      #ffad4d 64%,
      #ff6f3b 100%);
  box-shadow: 0 0 30px rgba(255, 187, 79, 0.62), 0 0 80px rgba(255, 122, 57, 0.35);
  opacity: 0.95;
  z-index: 0;
}
.hero-logo__title {
  position: relative;
  z-index: 2;
  margin: 3.1rem 0 0;
  font-size: clamp(3.1rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: transparent;
  background:
    linear-gradient(
      180deg,
      #ffe7ff 5%,
      #ff7ce7 35%,
      #ff4fd8 50%,
      #7fd8ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 12px rgba(255, 79, 216, 0.5), 0 0 28px rgba(87, 227, 255, 0.35);
}
.footer-note,
.commander-title,
.commander-rule,
.save-slot p,
.save-slot small,
.card-block p,
.option-row span,
.panel-footer span {
  color: var(--muted);
}
.menu-stack,
.options-list,
.slot-list,
.recruit-list,
.battle-actions,
.battle-topbar__funds {
  display: grid;
  gap: 0.85rem;
}
.title-run-stats {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 79, 216, 0.18);
  background: rgba(10, 5, 20, 0.72);
}
.title-run-stats p {
  margin: 0.2rem 0;
}
.menu-button,
.ghost-button,
.slot-card,
.commander-card,
.recruit-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}
.menu-button:hover,
.ghost-button:hover,
.slot-card:hover,
.commander-card:hover,
.recruit-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 61, 0.6);
  box-shadow: 0 0 24px rgba(255, 79, 216, 0.12);
}
.menu-button:disabled,
.ghost-button:disabled,
.slot-card:disabled,
.commander-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.menu-button {
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 79, 216, 0.22),
      rgba(255, 138, 61, 0.26));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-color: rgba(255, 138, 61, 0.34);
}
.menu-button--small,
.ghost-button--small {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
}
.menu-button--danger {
  background:
    linear-gradient(
      135deg,
      rgba(255, 91, 143, 0.32),
      rgba(255, 79, 216, 0.14));
}
.ghost-button {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(152, 93, 255, 0.08);
}
.panel {
  width: min(78rem, 100%);
  padding: 1.6rem;
  border-radius: 1.5rem;
  animation: rise-in 300ms ease;
  background:
    linear-gradient(
      180deg,
      rgba(255, 79, 216, 0.05),
      transparent 30%),
    var(--panel);
}
.panel--static {
  animation: none;
}
.panel--medium {
  width: min(56rem, 100%);
}
.panel-header,
.panel-footer,
.battle-topbar,
.save-slot,
.option-row,
.battle-topbar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #ffa95e;
  text-shadow: 0 0 16px rgba(255, 138, 61, 0.28);
}
.slot-picker,
.commander-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.slot-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.slot-card {
  text-align: left;
  padding: 1rem;
  border-radius: 1rem;
}
.slot-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}
.slot-card--active {
  border-color: rgba(255, 79, 216, 0.7);
  background:
    linear-gradient(
      135deg,
      rgba(152, 93, 255, 0.14),
      rgba(255, 79, 216, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.22);
}
.commander-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.commander-card {
  min-height: 13rem;
  padding: 1rem;
  border-radius: 1.2rem;
  text-align: left;
  border-color: color-mix(in srgb, var(--accent-hot) 42%, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(
      circle at top right,
      color-mix(in srgb, var(--accent) 24%, transparent),
      transparent 40%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent-hot) 12%, rgba(255, 255, 255, 0.03)),
      rgba(255, 255, 255, 0.02));
}
.commander-card--selected {
  outline: 2px solid rgba(255, 79, 216, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 79, 216, 0.35), 0 0 28px rgba(255, 79, 216, 0.18);
}
.commander-card--locked {
  filter: saturate(0.4);
}
.commander-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.commander-name {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.commander-status {
  color: #ff95e9;
  font-size: 0.8rem;
}
.commander-rule--active {
  color: var(--text);
}
.save-slot {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.save-slot:first-child {
  border-top: 0;
}
.save-slot__actions {
  display: flex;
  gap: 0.75rem;
}
.option-row {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.option-row:first-child {
  border-top: 0;
}
.option-row--toggle input {
  width: 1.1rem;
  height: 1.1rem;
}
.battle-shell {
  min-height: 100%;
}
.battle-topbar {
  display: grid;
  align-items: center;
  position: absolute;
  top: 1.25rem;
  left: 22rem;
  right: 22rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  background:
    linear-gradient(
      90deg,
      rgba(152, 93, 255, 0.08),
      rgba(255, 79, 216, 0.04) 45%,
      rgba(255, 138, 61, 0.08)),
    var(--panel);
}
.battle-topbar__funds {
  grid-auto-flow: column;
}
.battle-rail {
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 19rem;
  padding: 1rem;
  border-radius: 1.25rem;
  overflow-y: auto;
  background:
    linear-gradient(
      180deg,
      rgba(255, 79, 216, 0.05),
      rgba(255, 138, 61, 0.03) 60%,
      rgba(152, 93, 255, 0.04)),
    var(--panel);
}
.battle-rail:first-of-type {
  left: 1.25rem;
}
.battle-rail--right {
  right: 1.25rem;
}
.commander-panel,
.card-block {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 79, 216, 0.12);
  margin-bottom: 1rem;
}
.commander-panel {
  border-left: 4px solid var(--accent-hot);
  box-shadow: inset 0 0 24px rgba(255, 79, 216, 0.03);
}
.commander-funds {
  margin: 0.85rem 0 0;
  font-size: 1.15rem;
  color: #fff2bf;
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.26);
}
.meter__bar {
  margin-top: 0.35rem;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}
.meter__bar > div {
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--accent-hot),
      var(--accent),
      #ffd06a);
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.28);
}
.log-feed {
  display: grid;
  gap: 0.5rem;
  max-height: 20rem;
  overflow-y: auto;
}
.log-feed p {
  margin: 0;
  color: var(--muted);
}
.funds-panel {
  position: relative;
  min-width: 10rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 5, 20, 0.72);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.02);
  overflow: visible;
}
.funds-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.funds-panel strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.55rem;
  line-height: 1;
  color: #fff7d4;
}
.funds-panel--gaining strong {
  animation: funds-count-pulse 900ms ease;
}
.funds-panel__gain {
  position: absolute;
  right: 0.85rem;
  bottom: -0.45rem;
  display: block;
  color: #fff2bf;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.64), 0 0 22px rgba(255, 138, 61, 0.36);
  pointer-events: none;
  animation: funds-gain-rise 900ms ease forwards;
}
.funds-panel--player {
  border-color: rgba(255, 79, 216, 0.26);
  box-shadow: inset 0 0 24px rgba(255, 79, 216, 0.06), 0 0 24px rgba(255, 79, 216, 0.08);
}
.funds-panel--enemy {
  border-color: rgba(255, 138, 61, 0.26);
  box-shadow: inset 0 0 24px rgba(255, 138, 61, 0.06), 0 0 24px rgba(255, 138, 61, 0.08);
}
.selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.selection-section {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 79, 216, 0.12);
}
.selection-section--terrain strong {
  display: inline-block;
  margin-bottom: 0.25rem;
}
.selection-section--xp {
  margin-top: 0.75rem;
}
.meter--exp .meter__bar {
  height: 0.65rem;
}
.selection-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.selection-chip--player {
  border-color: rgba(255, 79, 216, 0.42);
  background: rgba(255, 79, 216, 0.14);
}
.selection-chip--enemy {
  border-color: rgba(255, 138, 61, 0.42);
  background: rgba(255, 138, 61, 0.14);
}
.selection-chip--neutral {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.12);
}
.recruit-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(
      135deg,
      rgba(152, 93, 255, 0.11),
      rgba(255, 79, 216, 0.08));
}
.battle-command-prompt {
  position: absolute;
  transform: none;
  z-index: 8;
  pointer-events: none;
}
.battle-command-prompt__card {
  min-width: 9rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 236, 202, 0.75);
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 232, 0.96),
      rgba(255, 238, 208, 0.92)),
    rgba(255, 248, 232, 0.94);
  box-shadow: 0 0 18px rgba(255, 138, 61, 0.16), 0 18px 36px rgba(5, 2, 14, 0.35);
  pointer-events: auto;
}
.battle-command-prompt__menu {
  display: grid;
  gap: 0.2rem;
}
.battle-command-prompt__action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #4d2454;
  font-family:
    "Bahnschrift SemiCondensed",
    "Aptos",
    sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}
.battle-command-prompt__action:hover {
  transform: translateX(2px);
  background: rgba(255, 141, 61, 0.18);
  color: #2f1534;
  box-shadow: none;
}
.battle-command-prompt__action::before {
  content: "\25b8";
  display: inline-block;
  width: 1rem;
  margin-right: 0.25rem;
  color: #ff7f3a;
}
.battle-command-prompt__action--capture {
  color: #7f2450;
}
.battle-command-prompt__action--capture::before {
  content: "\2605";
  color: #ff5fa3;
}
.battle-command-prompt__action--subtle {
  color: #694674;
}
.battle-command-prompt__card {
  min-width: 11.25rem;
  padding: 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 79, 216, 0.34);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 79, 216, 0.14),
      transparent 7rem),
    radial-gradient(
      circle at bottom right,
      rgba(255, 138, 61, 0.16),
      transparent 8rem),
    rgba(18, 8, 34, 0.94);
  box-shadow: 0 0 26px rgba(255, 79, 216, 0.14), 0 18px 36px rgba(5, 2, 14, 0.4);
}
.battle-command-prompt__header {
  display: grid;
  gap: 0.1rem;
  margin-bottom: 0.55rem;
}
.battle-command-prompt__header strong {
  color: #fff4d1;
  font-size: 1rem;
  line-height: 1.1;
}
.battle-command-prompt__menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.battle-command-prompt__action {
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}
.battle-command-prompt__action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 61, 0.46);
  background: rgba(255, 138, 61, 0.14);
  color: var(--text);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.1);
}
.battle-command-prompt__action::before {
  content: none;
}
.battle-command-prompt__action--primary {
  border-color: rgba(255, 138, 61, 0.34);
  background:
    linear-gradient(
      135deg,
      rgba(255, 138, 61, 0.2),
      rgba(255, 79, 216, 0.14)),
    rgba(255, 255, 255, 0.04);
  color: #fff2d8;
}
.battle-command-prompt__action--capture {
  border-color: rgba(255, 79, 216, 0.32);
  color: #ffd6f5;
}
.battle-command-prompt__action--subtle {
  color: var(--muted);
}
.battle-targeting-hint {
  position: absolute;
  top: 6.75rem;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(-50%);
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 138, 61, 0.3);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 79, 216, 0.16),
      transparent 6rem),
    rgba(12, 6, 25, 0.92);
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.12), 0 18px 36px rgba(5, 2, 14, 0.42);
}
.battle-targeting-hint__copy {
  display: grid;
  gap: 0.12rem;
}
.battle-targeting-hint__copy strong {
  color: #fff5d9;
}
.battle-targeting-hint__copy span {
  color: var(--muted);
  font-size: 0.88rem;
}
.battle-targeting-hint__cancel {
  white-space: nowrap;
}
.turn-banner {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  pointer-events: auto;
  animation: turn-banner-fade 1100ms ease forwards;
}
.turn-banner__card {
  min-width: min(24rem, calc(100vw - 3rem));
  padding: 1rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.12),
      transparent 10rem),
    rgba(10, 5, 20, 0.92);
  box-shadow: 0 0 32px rgba(255, 79, 216, 0.12), 0 24px 40px rgba(5, 2, 14, 0.44);
  animation: turn-banner-card 1100ms ease forwards;
}
.turn-banner--player .turn-banner__card {
  border-color: rgba(255, 79, 216, 0.4);
  box-shadow: 0 0 34px rgba(255, 79, 216, 0.18), 0 24px 40px rgba(5, 2, 14, 0.44);
}
.turn-banner--enemy .turn-banner__card {
  border-color: rgba(255, 138, 61, 0.42);
  box-shadow: 0 0 34px rgba(255, 138, 61, 0.18), 0 24px 40px rgba(5, 2, 14, 0.44);
}
.turn-banner__card h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.turn-banner--player .turn-banner__card h2 {
  color: #ffd8f6;
  text-shadow: 0 0 20px rgba(255, 79, 216, 0.28);
}
.turn-banner--enemy .turn-banner__card h2 {
  color: #ffe1c6;
  text-shadow: 0 0 20px rgba(255, 138, 61, 0.28);
}
.battle-overlay--level-up {
  z-index: 10;
  backdrop-filter: blur(10px);
  animation: overlay-fade-in 220ms ease forwards;
}
.overlay-card--level-up {
  width: min(26rem, calc(100vw - 2rem));
  animation: level-up-overlay-in 260ms ease forwards;
}
.battle-overlay--closing {
  animation: overlay-fade-out 220ms ease forwards;
}
.overlay-card--closing {
  animation: level-up-overlay-out 220ms ease forwards;
}
.level-up-stats {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
.level-up-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 79, 216, 0.18);
  background: rgba(255, 79, 216, 0.08);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: level-up-pop 420ms ease forwards;
}
.level-up-stat strong {
  color: #fff3bf;
  font-size: 1.15rem;
}
.level-up-stat small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.battle-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 79, 216, 0.12),
      transparent 30rem),
    rgba(5, 2, 14, 0.68);
}
.battle-overlay--pause {
  backdrop-filter: blur(8px);
}
.overlay-card {
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border-radius: 1.25rem;
  text-align: center;
  background:
    linear-gradient(
      180deg,
      rgba(255, 79, 216, 0.08),
      rgba(255, 138, 61, 0.04)),
    var(--panel);
}
.overlay-card--pause {
  width: min(36rem, calc(100vw - 2rem));
  text-align: left;
}
.options-list--compact {
  margin: 1rem 0 1.25rem;
}
.pause-warning {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 91, 143, 0.24);
  background: rgba(255, 91, 143, 0.08);
}
.pause-warning p {
  margin: 0 0 0.5rem;
}
.pause-warning p:last-child {
  margin-bottom: 0;
}
.debug-panel {
  margin: 0.75rem 0 1.1rem;
  padding: 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(111, 246, 255, 0.28);
  background: rgba(111, 246, 255, 0.06);
}
.debug-panel__hint {
  margin: 0.35rem 0 0.8rem;
  color: var(--muted);
}
.debug-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.debug-grid label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.debug-grid input,
.debug-grid select {
  border-radius: 0.5rem;
  border: 1px solid rgba(111, 246, 255, 0.35);
  background: rgba(8, 18, 31, 0.75);
  color: var(--text);
  padding: 0.35rem 0.4rem;
}
.footer-meta {
  display: grid;
  gap: 0.3rem;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes title-aurora-drift {
  from {
    transform: translate3d(-1rem, 0, 0) scale(1);
    opacity: 0.9;
  }
  to {
    transform: translate3d(1rem, 0.6rem, 0) scale(1.05);
    opacity: 1;
  }
}
@keyframes title-stars-twinkle {
  from {
    opacity: 0.42;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
  }
  to {
    opacity: 0.56;
    transform: scale(1.02);
  }
}
@keyframes title-sun-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1rem, 0.6rem, 0) scale(1.02);
  }
}
@keyframes title-orb-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(1.1rem, -0.75rem, 0);
  }
}
@keyframes title-haze-breathe {
  from {
    opacity: 0.5;
    transform: translate3d(0, 0, 0) scaleX(0.98);
  }
  50% {
    opacity: 0.75;
  }
  to {
    opacity: 0.6;
    transform: translate3d(0, 0.5rem, 0) scaleX(1.02);
  }
}
@keyframes title-mountains-drift {
  from {
    transform: translate3d(-1.5%, 0, 0);
  }
  to {
    transform: translate3d(1.5%, -1%, 0);
  }
}
@keyframes title-grid-scroll {
  from {
    background-position:
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      0 0,
      5rem 0,
      0 3.4rem;
  }
}
@keyframes level-up-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes overlay-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes overlay-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes level-up-overlay-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes level-up-overlay-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
@keyframes turn-banner-fade {
  0% {
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes turn-banner-card {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(1.02);
  }
}
@keyframes funds-gain-rise {
  0% {
    opacity: 0;
    transform: translateY(0.55rem) scale(0.92);
  }
  18% {
    opacity: 1;
  }
  76% {
    opacity: 1;
    transform: translateY(-1.25rem) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-1.7rem) scale(1.04);
  }
}
@keyframes funds-count-pulse {
  0% {
    color: #fff7d4;
    text-shadow: none;
  }
  42% {
    color: #fff2bf;
    text-shadow: 0 0 16px rgba(255, 209, 102, 0.46);
  }
  100% {
    color: #fff7d4;
    text-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .title-scene::before,
  .title-scene__stars,
  .title-scene__sun,
  .title-scene__orb,
  .title-scene__haze,
  .title-scene__mountains,
  .title-scene__grid,
  .funds-panel--gaining strong,
  .funds-panel__gain {
    animation: none;
  }
}
@media (max-width: 1280px) {
  .battle-topbar {
    left: 18rem;
    right: 18rem;
    grid-template-columns: minmax(0, 1fr);
  }
  .battle-rail {
    width: 15.5rem;
  }
}
@media (max-width: 1024px) {
  .screen--title {
    padding: 1.5rem;
    justify-items: center;
  }
  .title-scene__sun {
    top: 12%;
    right: -2.5rem;
    width: min(52vw, 20rem);
  }
  .title-scene__orb--one {
    right: 18%;
  }
  .title-scene__orb--two {
    right: 3%;
  }
  .title-scene__mountains--far {
    bottom: 30%;
    height: 17%;
  }
  .title-scene__mountains--near {
    bottom: 21%;
    height: 21%;
  }
  .title-scene__grid {
    bottom: -22%;
    height: 48%;
  }
  .hero-card {
    width: 100%;
  }
  .battle-topbar,
  .battle-rail {
    position: static;
    width: auto;
    margin: 1rem;
  }
  .battle-command-prompt {
    position: static;
    transform: none;
    margin: 0 1rem 1rem;
  }
  .battle-command-prompt__card {
    min-width: 0;
  }
  .battle-command-prompt__menu {
    grid-template-columns: 1fr;
  }
  .battle-targeting-hint {
    position: static;
    transform: none;
    margin: 0 1rem 1rem;
  }
}
/*# sourceMappingURL=main.css.map */
