/* Battle canvas, HUD, side panel and pause overlay. */

.battle-screen {
  display: grid;
  max-width: 1060px;
  width: min(100%, 1060px);
}

.battle-screen .hud {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.battle-screen .hud > div {
  min-width: 0;
  text-align: center;
  width: 20%;
}

.battle-screen .label {
  display: block;
  line-height: 1.2;
  margin-bottom: 3px;
}

.battle-screen .hud strong {
  display: block;
  min-height: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-screen .stage-wrap {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.battle-screen canvas {
  display: block;
  height: 100%;
  touch-action: none;
  width: 100%;
}

.battle-screen .overlay {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  padding: clamp(16px, 4vw, 34px);
  position: absolute;
  text-align: center;
  z-index: 10;
}

.battle-screen .overlay h1 {
  line-height: 1;
  margin: 0 0 12px;
}

.battle-screen .overlay p {
  line-height: 1.7;
  margin: 0 0 18px;
}

.battle-screen.game-shell {
  gap: 10px;
  margin: 0 auto;
}

.battle-screen .hud {
  background:
  linear-gradient(180deg, rgba(25, 38, 52, 0.96), rgba(10, 18, 29, 0.96));
  border: 1px solid rgba(91, 127, 164, 0.55);
  box-shadow:
  inset 0 1px 0 rgba(255, 255, 255, 0.08),
  0 16px 44px rgba(0, 0, 0, 0.26);
  min-height: 76px;
  padding: 8px;
}

.battle-screen .hud > div {
  background:
  linear-gradient(180deg, rgba(35, 50, 66, 0.98), rgba(22, 34, 48, 0.98));
  border: 1px solid rgba(116, 154, 194, 0.22);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 58px;
  padding: 8px 10px;
}

.battle-screen .label {
  color: #b7d7ff;
  font-size: 12px;
}

.battle-screen .hud strong {
  color: #ffffff;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(67, 200, 255, 0.28);
}

.battle-screen:not(.select-mode) .hud {
  border-radius: 6px;
  box-shadow:
  inset 0 1px 0 rgba(255, 255, 255, 0.06),
  0 12px 36px rgba(0, 0, 0, 0.24);
}

.battle-screen:not(.select-mode) .hud > div {
  box-shadow: none;
  min-width: 0;
  position: relative;
}

.battle-screen:not(.select-mode) .hud > div + div {
  border-left: 1px solid rgba(126, 166, 208, 0.16);
}

.battle-screen:not(.select-mode) .hud .label {
  color: rgba(183, 215, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 5px;
}

.battle-screen:not(.select-mode) .hud strong {
  color: #ffffff;
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1;
  min-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 16px rgba(67, 200, 255, 0.22);
}

.battle-screen:not(.select-mode) .hud-hp-cell,
.battle-screen:not(.select-mode) .hud-boss-cell {
  padding-bottom: 12px;
}

.battle-screen .hud-bar {
  bottom: 3px;
  left: 8px;
  position: absolute;
  right: 8px;
}

.battle-screen .hud-bar > span {
  background: linear-gradient(90deg, #42d6b5, #9bffcb);
  display: block;
  height: 100%;
  transition: width 0.18s ease;
  width: 0;
}

.battle-screen .hud-bar.boss > span {
  background: linear-gradient(90deg, #ff6b8a, #ffd166);
}

.battle-screen .stage-wrap {
  background:
  radial-gradient(circle at 72% 50%, rgba(67, 200, 255, 0.08), transparent 28%),
  linear-gradient(90deg, rgba(4, 14, 27, 0.95), rgba(9, 17, 31, 0.98));
  border-color: rgba(91, 127, 164, 0.36);
  border-radius: 6px;
}

.battle-screen .weapon-slot,
.battle-screen .item-slot {
  color: #cfe2f3;
}

.battle-screen .weapon-copy {
  display: grid;
  gap: 2px;
}

.battle-screen .item-slot.active {
  box-shadow: 0 0 18px rgba(66, 214, 181, 0.16);
}

.battle-screen .item-slot.recent strong {
  color: #42f0cf;
}

.battle-screen .pause-actions {
  width: 100%;
}

.battle-screen .pause-actions button {
  min-width: 120px;
}

.battle-screen .overlay {
  background:
  linear-gradient(180deg, rgba(5, 11, 19, 0.72), rgba(8, 15, 26, 0.92)),
  repeating-linear-gradient(90deg, rgba(67, 200, 255, 0.055) 0 1px, transparent 1px 118px);
}

.battle-screen .overlay h1 {
  letter-spacing: 0;
}

.battle-screen .overlay p {
  max-width: 720px;
}

.battle-screen .overlay.busy-overlay {
  cursor: wait;
}

.battle-screen .overlay.busy-overlay #chapterSelect,
.battle-screen .overlay.busy-overlay #startButton {
  display: none;
}

.battle-screen .overlay.busy-overlay p {
  color: #e5f6ff;
  font-size: clamp(15px, 1.8vw, 20px);
  max-width: 760px;
}

.battle-screen .overlay:not(.hidden) {
  background:
  radial-gradient(circle at 50% 19%, rgba(66, 214, 181, 0.18), transparent 18%),
  radial-gradient(circle at 80% 70%, rgba(255, 209, 102, 0.09), transparent 22%),
  linear-gradient(180deg, rgba(4, 10, 18, 0.76), rgba(6, 13, 23, 0.96)),
  repeating-linear-gradient(90deg, rgba(67, 200, 255, 0.052) 0 1px, transparent 1px 118px);
}

.battle-screen .overlay:not(.hidden)::before,
.battle-screen .overlay:not(.hidden)::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.battle-screen .overlay:not(.hidden)::before {
  border: 1px solid rgba(66, 214, 181, 0.2);
  border-left: 0;
  border-right: 0;
  height: 48%;
  left: 8%;
  opacity: 0.54;
  top: 27%;
  width: 84%;
}

.battle-screen .overlay:not(.hidden)::after {
  background:
  linear-gradient(90deg, transparent, rgba(66, 214, 181, 0.16), transparent),
  linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.12), transparent);
  height: 1px;
  left: 18%;
  opacity: 0.95;
  top: 72%;
  width: 64%;
}

.battle-screen .overlay h1,
.battle-screen .overlay p,
.battle-screen .overlay #startButton {
  position: relative;
  z-index: 1;
}

.battle-screen .overlay h1 {
  background: linear-gradient(180deg, #ffffff 0%, #dfefff 68%, #91b8db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(42px, 5.5vw, 72px);
  margin-bottom: 8px;
  text-shadow: none;
}

.battle-screen .overlay p {
  color: #cfe2f3;
  font-size: 15px;
  margin-bottom: 20px;
}

.battle-screen #startButton {
  background:
  linear-gradient(180deg, #4ef0ca 0%, #32c9b4 100%);
  border: 1px solid rgba(200, 255, 240, 0.52);
  border-radius: 8px;
  box-shadow:
  0 16px 34px rgba(66, 214, 181, 0.24),
  inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #06211f;
  font-size: 17px;
  min-height: 46px;
  min-width: 136px;
  padding: 0 22px;
}

.battle-screen #startButton:hover {
  filter: brightness(1.08);
}

@media (max-height: 760px) and (min-width: 900px) {
  .battle-screen .hud {
    min-height: 72px;
  }

  .battle-screen .stage-wrap {
    max-height: calc(100vh - 124px);
  }
}

@media (max-width: 900px) {
  .battle-screen .battle-side-panel {
    transform: scale(0.86);
    transform-origin: top left;
  }
}

@media (max-width: 720px) {
  .battle-screen .hud {
    gap: 5px;
  }

  .battle-screen .hud > div {
    padding: 6px 5px;
  }
}

.battle-screen:not(.select-mode) .hud > div {
  width: auto !important;
  writing-mode: horizontal-tb;
}

.battle-screen:not(.select-mode) .hud .label,
.battle-screen:not(.select-mode) .hud strong {
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.battle-screen.overlay-active .battle-side-panel {
  display: none !important;
}

.battle-screen {
  gap: 10px;
}

.battle-screen:not(.select-mode) .hud {
  background: linear-gradient(180deg, rgba(7, 18, 30, 0.94), rgba(4, 10, 18, 0.92));
  border-color: rgba(90, 139, 188, 0.42);
  display: grid;
  gap: 0;
  grid-template-columns: 104px 92px minmax(280px, 1fr) minmax(260px, 0.9fr) 146px;
  min-height: 64px;
  padding: 0;
}

.battle-screen:not(.select-mode) .hud > div {
  align-content: center;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(114, 155, 194, 0.24);
  border-radius: 0;
  display: grid;
  min-height: 64px;
  padding: 8px 12px;
  text-align: left;
}

.battle-screen:not(.select-mode) .hud > div:first-child {
  border-left: 0;
}

.battle-screen .hud-pause-button {
  cursor: pointer;
  min-height: 34px;
}

.battle-screen .weapon-slot.active {
  background: linear-gradient(90deg, rgba(66, 240, 207, 0.14), rgba(4, 14, 24, 0.48));
}

.battle-screen .overlay.pause-overlay {
  padding-top: 42px;
}

.battle-screen .overlay.pause-overlay h1 {
  letter-spacing: 0;
}

.battle-screen .pause-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .battle-screen:not(.select-mode) .hud {
    grid-template-columns: 80px 70px minmax(180px, 1fr) minmax(160px, 0.8fr) 112px;
  }
}

.battle-screen:not(.select-mode) .stage-wrap {
  background:
  radial-gradient(circle at 82% 42%, rgba(70, 48, 120, 0.18), transparent 34%),
  linear-gradient(90deg, rgba(2, 18, 30, 0.98), rgba(7, 18, 34, 0.98));
  border: 1px solid rgba(75, 132, 184, 0.32);
  border-radius: 8px;
  max-height: calc(100vh - 28px);
}

.battle-screen .battle-cockpit-hud {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(126, 181, 226, 0.26);
  display: grid;
  gap: 0;
  padding: 0;
  position: absolute;
  z-index: 8;
}

.battle-screen .battle-cockpit-hud > div {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(126, 181, 226, 0.16);
  border-radius: 0;
  display: grid;
  min-width: 0;
  text-align: left;
  width: auto;
}

.battle-screen .battle-cockpit-hud > div:first-child {
  border-left: 0;
}

.battle-screen .battle-cockpit-hud .label {
  font-weight: 900;
  margin: 0 0 2px;
}

.battle-screen .battle-cockpit-hud strong {
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  min-height: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-screen .battle-cockpit-hud .hud-hp-cell,
.battle-screen .battle-cockpit-hud .hud-boss-cell {
  align-content: center;
}

.battle-screen .hud-bar {
  border: 1px solid rgba(126, 181, 226, 0.13);
  display: block;
  overflow: hidden;
  width: 100%;
}

.battle-screen .hud-bar span {
  display: block;
  height: 100%;
  transition: width 0.16s ease;
}

.battle-screen .hud-status-cell {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
}

.battle-screen .hud-status-cell .label,
.battle-screen .hud-status-cell strong {
  grid-column: 1;
}

.battle-screen .hud-pause-button {
  align-self: center;
  border: 1px solid rgba(94, 231, 255, 0.5);
  color: #e9fbff;
  font-weight: 900;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  padding: 0 12px;
}

.battle-screen .hud-pause-button:hover {
  background: rgba(66, 240, 207, 0.18);
  border-color: rgba(190, 255, 247, 0.86);
}

.battle-screen.overlay-active:not(.select-mode) .battle-side-panel {
  display: none;
}

.battle-screen .battle-side-panel {
  display: grid;
  pointer-events: none;
  position: absolute;
  z-index: 7;
}

.battle-screen .weapon-panel,
.battle-screen .item-panel,
.battle-screen .active-skill-panel {
  backdrop-filter: blur(14px);
  border: 1px solid rgba(94, 231, 255, 0.23);
}

.battle-screen .panel-kicker {
  display: block;
  font-weight: 950;
}

.battle-screen .weapon-slots,
.battle-screen .item-slots {
  display: grid;
}

.battle-screen .weapon-slot,
.battle-screen .item-slot {
  border: 1px solid rgba(126, 181, 226, 0.18);
  display: grid;
  gap: 2px 7px;
}

.battle-screen .weapon-mark {
  align-items: center;
  background: var(--weapon-color, #42d6b5);
  color: #061018;
  display: grid;
  font-weight: 950;
  grid-row: 1 / span 2;
  justify-content: center;
}

.battle-screen .weapon-copy {
  min-width: 0;
}

.battle-screen .weapon-copy strong,
.battle-screen .item-slot strong {
  color: #ffffff;
  display: block;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-screen .weapon-copy em,
.battle-screen .item-slot span {
  color: rgba(215, 235, 250, 0.74);
  display: block;
  font-style: normal;
  margin-top: 2px;
}

.battle-screen .weapon-charge {
  background: rgba(0, 0, 0, 0.48);
  display: block;
  grid-column: 1 / -1;
  margin-top: 3px;
  overflow: hidden;
}

.battle-screen .weapon-charge span {
  background: var(--weapon-color, #42d6b5);
  display: block;
  height: 100%;
}

.battle-screen .item-slot.active {
  background: linear-gradient(90deg, rgba(66, 240, 207, 0.16), rgba(6, 14, 24, 0.62));
  border-color: rgba(66, 240, 207, 0.46);
}

.battle-screen .active-skill-button {
  border: 1px solid rgba(255, 209, 102, 0.42);
  color: #f7fbff;
  text-align: left;
  width: 100%;
}

.battle-screen .active-skill-button strong,
.battle-screen .active-skill-button span,
.battle-screen .active-skill-button em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-screen .active-skill-button strong {
  line-height: 1.12;
}

.battle-screen .active-skill-button em {
  font-style: normal;
  font-weight: 900;
}

.battle-screen .overlay.pause-overlay {
  align-items: center;
  background:
  radial-gradient(circle at 50% 18%, rgba(94, 231, 255, 0.18), transparent 30%),
  rgba(1, 6, 12, 0.72);
  backdrop-filter: blur(5px);
  justify-content: center;
  padding: 0;
}

.battle-screen .overlay.pause-overlay h1 {
  color: #eefbff;
  font-size: 58px;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(94, 231, 255, 0.32);
}

.battle-screen .overlay.pause-overlay p {
  color: rgba(228, 242, 252, 0.84);
  margin-bottom: 22px;
}

.battle-screen .overlay.pause-overlay #startButton {
  display: none;
}

.battle-screen .pause-actions {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
}

.battle-screen .pause-actions button {
  background: rgba(13, 27, 43, 0.92);
  border: 1px solid rgba(139, 178, 216, 0.34);
  border-radius: 9px;
  color: #e7f4ff;
  font-size: 17px;
  font-weight: 900;
  min-height: 58px;
}

.battle-screen .pause-actions button:first-child {
  background: linear-gradient(180deg, rgba(66, 240, 207, 0.95), rgba(22, 184, 173, 0.95));
  border-color: rgba(205, 255, 249, 0.78);
  color: #04131b;
}

.battle-screen .overlay.pause-overlay .pause-actions button {
  background: linear-gradient(180deg, #17344f, #0b1e32) !important;
  border-color: rgba(170, 220, 255, 0.64) !important;
  box-shadow: 0 0 18px rgba(94, 231, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  filter: none !important;
  font-size: 18px !important;
  opacity: 1 !important;
  text-shadow: 0 0 10px rgba(94, 231, 255, 0.34);
}

.battle-screen .overlay.pause-overlay .pause-actions button:first-child {
  background: linear-gradient(180deg, #57f5de, #16b6aa) !important;
  border-color: rgba(205, 255, 249, 0.9) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22), 0 0 10px rgba(255, 255, 255, 0.28);
}

.battle-screen.game-shell {
  display: block;
  max-width: 1600px;
  width: min(100%, 1600px);
}

.battle-screen:not(.select-mode) .stage-wrap {
  border-color: rgba(87, 184, 233, 0.34);
  box-shadow:
  0 28px 86px rgba(0, 0, 0, 0.5),
  inset 0 0 0 1px rgba(173, 244, 255, 0.055),
  inset 0 0 64px rgba(30, 181, 225, 0.045);
}

.battle-screen .battle-cockpit-hud {
  align-items: center;
  background:
  linear-gradient(90deg, rgba(2, 10, 18, 0.82), rgba(5, 20, 34, 0.64) 42%, rgba(2, 10, 18, 0.78)),
  linear-gradient(180deg, rgba(123, 215, 255, 0.08), transparent);
  border-color: rgba(107, 201, 247, 0.34);
  border-radius: 3px;
  box-shadow:
  0 14px 36px rgba(0, 0, 0, 0.34),
  inset 0 0 0 1px rgba(210, 248, 255, 0.045),
  inset 0 -1px 0 rgba(255, 209, 102, 0.1);
  clip-path: polygon(10px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 10px), 0 8px);
  grid-template-columns: 82px 72px minmax(230px, 1fr) minmax(220px, 0.86fr) 136px;
  left: 16px;
  min-height: 52px;
  right: 16px;
  top: 13px;
}

.battle-screen .battle-cockpit-hud > div {
  border-left-color: rgba(126, 218, 255, 0.16);
  min-height: 52px;
  padding: 7px 11px;
}

.battle-screen .battle-cockpit-hud .label {
  color: rgba(148, 213, 255, 0.9);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.battle-screen .battle-cockpit-hud strong {
  color: rgba(246, 252, 255, 0.96);
  font-size: 22px;
  text-shadow: 0 0 14px rgba(94, 231, 255, 0.22);
}

.battle-screen .battle-cockpit-hud .hud-hp-cell,
.battle-screen .battle-cockpit-hud .hud-boss-cell {
  padding-bottom: 6px;
}

.battle-screen .battle-cockpit-hud .hud-hp-cell strong,
.battle-screen .battle-cockpit-hud .hud-boss-cell strong {
  font-size: 22px;
}

.battle-screen .hud-bar {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(126, 218, 255, 0.1);
  height: 3px;
  margin-top: 5px;
}

.battle-screen .hud-bar span {
  background: linear-gradient(90deg, #35e2d1, #d3fff6);
  box-shadow: 0 0 12px rgba(83, 242, 221, 0.38);
}

.battle-screen .hud-bar.boss span {
  background: linear-gradient(90deg, #ff5570, #ffd166);
  box-shadow: 0 0 12px rgba(255, 100, 116, 0.34);
}

.battle-screen .hud-pause-button {
  background: rgba(3, 15, 25, 0.9);
  border-color: rgba(107, 220, 255, 0.52);
  border-radius: 4px;
  font-size: 13px;
  height: 32px;
  min-width: 48px;
}

.battle-screen .battle-side-panel {
  bottom: auto;
  gap: 9px;
  grid-template-rows: auto auto auto;
  left: 16px;
  top: 78px;
  width: 126px;
}

.battle-screen .weapon-panel,
.battle-screen .item-panel,
.battle-screen .active-skill-panel {
  background:
  linear-gradient(135deg, rgba(4, 19, 33, 0.78), rgba(1, 8, 15, 0.62)),
  linear-gradient(180deg, rgba(94, 231, 255, 0.055), transparent);
  border-color: rgba(95, 203, 247, 0.28);
  border-radius: 3px;
  box-shadow:
  0 16px 32px rgba(0, 0, 0, 0.24),
  inset 0 0 0 1px rgba(220, 250, 255, 0.035),
  inset 0 0 24px rgba(70, 202, 242, 0.045);
  clip-path: polygon(8px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 8px);
  padding: 8px;
}

.battle-screen .item-panel {
  align-self: start;
}

.battle-screen .panel-kicker {
  color: #ffd166;
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.battle-screen .weapon-slots,
.battle-screen .item-slots {
  gap: 6px;
}

.battle-screen .weapon-slot,
.battle-screen .item-slot {
  background:
  linear-gradient(90deg, rgba(8, 28, 44, 0.72), rgba(3, 12, 21, 0.6));
  border-color: rgba(123, 218, 255, 0.18);
  border-radius: 3px;
  box-shadow: inset 2px 0 0 var(--weapon-color, rgba(94, 231, 255, 0.5));
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 46px;
  padding: 6px;
}

.battle-screen .weapon-slot.active {
  border-color: color-mix(in srgb, var(--weapon-color) 58%, white 14%);
  box-shadow:
  0 0 14px color-mix(in srgb, var(--weapon-color) 20%, transparent),
  inset 2px 0 0 var(--weapon-color);
}

.battle-screen .weapon-mark {
  border-radius: 3px;
  font-size: 15px;
  height: 24px;
  width: 24px;
}

.battle-screen .weapon-copy strong,
.battle-screen .item-slot strong {
  font-size: 11px;
}

.battle-screen .weapon-copy em,
.battle-screen .item-slot span {
  font-size: 9px;
}

.battle-screen .weapon-charge {
  height: 3px;
}

.battle-screen .active-skill-panel {
  pointer-events: auto;
}

.battle-screen .active-skill-button {
  --active-skill-progress: 0%;
  align-items: center;
  background:
  linear-gradient(135deg, rgba(12, 34, 50, 0.92), rgba(4, 12, 22, 0.92));
  border-color: rgba(255, 209, 102, 0.42);
  border-radius: 3px;
  box-shadow: inset 0 0 22px rgba(255, 209, 102, 0.055);
  clip-path: polygon(7px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  display: grid;
  gap: 1px 8px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 58px;
  overflow: hidden;
  padding: 7px;
  position: relative;
}

.battle-screen .active-skill-button::before {
  background:
  radial-gradient(circle, rgba(255, 246, 199, 0.9) 0 18%, rgba(255, 209, 102, 0.44) 19% 31%, transparent 32%),
  conic-gradient(from -90deg, rgba(255, 209, 102, 0.95) var(--active-skill-progress), rgba(71, 94, 110, 0.42) 0);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.28);
  content: "";
  grid-row: 1 / span 3;
  height: 34px;
  width: 34px;
}

.battle-screen .active-skill-button strong,
.battle-screen .active-skill-button span,
.battle-screen .active-skill-button em {
  grid-column: 2;
  position: relative;
  z-index: 1;
}

.battle-screen .active-skill-button strong {
  color: #fff4bd;
  font-size: 11px;
}

.battle-screen .active-skill-button span {
  color: rgba(230, 245, 255, 0.78);
  font-size: 9px;
}

.battle-screen .active-skill-button em {
  color: #68ecff;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.battle-screen .active-skill-button.ready {
  border-color: rgba(255, 220, 126, 0.72);
  box-shadow:
  0 0 16px rgba(255, 209, 102, 0.18),
  inset 0 0 22px rgba(255, 209, 102, 0.075);
}

.battle-screen .active-skill-button:disabled {
  border-color: rgba(116, 152, 172, 0.26);
  opacity: 0.76;
}

@media (max-width: 900px) {
  .battle-screen .battle-cockpit-hud {
    grid-template-columns: 66px 58px minmax(146px, 1fr) minmax(132px, 0.8fr) 104px;
    left: 10px;
    min-height: 48px;
    right: 10px;
    top: 10px;
  }

  .battle-screen .battle-cockpit-hud > div {
    min-height: 48px;
    padding: 6px 8px;
  }

  .battle-screen .battle-cockpit-hud strong,
  .battle-screen .battle-cockpit-hud .hud-hp-cell strong,
  .battle-screen .battle-cockpit-hud .hud-boss-cell strong {
    font-size: 18px;
  }

  .battle-screen .battle-side-panel {
    left: 10px;
    top: 68px;
    width: 116px;
  }
}
