#screen-battle {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: #05040f;
  box-shadow: none;
  z-index: 120;
  --battle-text: #f3e8cb;
  --battle-soft-gold: #e7cf9d;
  --battle-shadow: rgba(24, 12, 6, 0.92);
}

#screen-battle .battle-screen {
  --battle-stage-base-width: 2121.212px;
  --battle-stage-base-height: 1202.301px;
  --battle-fighter-width: 340px;
  --battle-fighter-side-offset: 438px;
  --battle-nameplate-width: 356px;
  --battle-team-panel-width: 374px;
  --battle-team-panel-top: 50%;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#screen-battle .battle-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

#screen-battle .battle-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--battle-stage-base-width);
  height: var(--battle-stage-base-height);
  transform: translate(0, 0) scale(1);
  transform-origin: top left;
  overflow: hidden;
  user-select: none;
  background: url('/assets/images/battle/bg_battle_arena.webp') center / 100% 100% no-repeat;
}

#screen-battle .battle-header {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#screen-battle .battle-mode-title {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 430px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 6;
}

#screen-battle .battle-mode-title__brand {
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 88px;
  line-height: 0.88;
  letter-spacing: 1px;
  color: #f2f3ff;
  text-shadow:
    0 3px 0 rgba(13, 18, 52, 0.88),
    0 10px 26px rgba(6, 8, 27, 0.9);
}

#screen-battle .battle-mode-title__mode {
  margin-top: 2px;
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 58px;
  line-height: 0.9;
  color: #f4de87;
  text-shadow:
    0 2px 0 rgba(57, 38, 4, 0.95),
    0 7px 20px rgba(0, 0, 0, 0.7);
}

#screen-battle .battle-clock {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 390px;
  aspect-ratio: 1257 / 314;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 48px 10px;
  background: url('/assets/images/battle/bg_battle_name_hp.webp') center / 100% 100% no-repeat;
  font-size: 22px;
  line-height: 1;
  color: var(--battle-text);
  text-shadow: 0 2px 0 var(--battle-shadow);
  z-index: 8;
}

#screen-battle .battle-clock__turn,
#screen-battle .battle-clock__timer {
  white-space: nowrap;
}

#screen-battle .battle-debug-id {
  display: none;
}

#screen-battle .battle-nameplate {
  position: absolute;
  top: 142px;
  width: var(--battle-nameplate-width);
  aspect-ratio: 1257 / 314;
  padding: 14px 46px 10px;
  background: url('/assets/images/battle/bg_battle_name_hp.webp') center / 100% 100% no-repeat;
  color: var(--battle-text);
  text-shadow: 0 2px 0 var(--battle-shadow);
  pointer-events: none;
  z-index: 5;
}

#screen-battle .battle-nameplate--me {
  left: calc(
    var(--battle-fighter-side-offset)
    + (var(--battle-fighter-width) / 2)
    - (var(--battle-nameplate-width) / 2)
  );
}

#screen-battle .battle-nameplate--enemy {
  right: calc(
    var(--battle-fighter-side-offset)
    + (var(--battle-fighter-width) / 2)
    - (var(--battle-nameplate-width) / 2)
  );
}

#screen-battle .battle-nameplate__title {
  font-size: 26px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#screen-battle .battle-nameplate__hp-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#screen-battle .battle-nameplate__hp-label {
  font-size: 19px;
  font-weight: 700;
  color: #ebd1a7;
}

#screen-battle .battle-nameplate__hp-track {
  position: relative;
  flex: 1;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(59, 24, 8, 0.9);
  overflow: hidden;
  background: linear-gradient(180deg, #5c3419, #362317);
}

#screen-battle .battle-nameplate__hp-track > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ba241f, #e1873b 58%, #f4de95);
}

#screen-battle .battle-nameplate__hp-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
  color: #fff1d0;
  text-shadow:
    0 1px 0 rgba(57, 27, 11, 0.98),
    0 -1px 0 rgba(57, 27, 11, 0.82),
    1px 0 0 rgba(57, 27, 11, 0.82),
    -1px 0 0 rgba(57, 27, 11, 0.82),
    0 0 6px rgba(255, 186, 116, 0.28);
  white-space: nowrap;
  pointer-events: none;
}

#screen-battle .battle-nameplate__hp-values,
#screen-battle .battle-nameplate__stats {
  display: none;
}

#screen-battle .battle-fighters {
  position: absolute;
  left: 0;
  right: 0;
  top: 258px;
  height: 438px;
}

#screen-battle .battle-fighter {
  position: absolute;
  bottom: 0;
  width: var(--battle-fighter-width);
  height: 410px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#screen-battle .battle-fighter--me {
  left: var(--battle-fighter-side-offset);
}

#screen-battle .battle-fighter--enemy {
  right: var(--battle-fighter-side-offset);
}

#screen-battle .battle-fighter__avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 160ms ease;
  filter: drop-shadow(0 18px 22px rgba(3, 2, 8, 0.84));
}

#screen-battle .battle-fighter__avatar.is-avatar-hidden,
#screen-battle .battle-fighter__avatar.is-avatar-loading {
  opacity: 0;
}

#screen-battle .battle-fighter__avatar.is-mirrored {
  transform: scaleX(-1);
}

#screen-battle .battle-equip-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#screen-battle .battle-equip-slot {
  --slot-size: 66px;
  position: absolute;
  width: var(--slot-size);
  height: var(--slot-size);
  border: none;
  border-radius: 10px;
  padding: 0;
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#screen-battle .battle-equip-slot.has-item {
  pointer-events: auto;
}

#screen-battle .battle-equip-slot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 224, 182, 0.22);
  box-shadow: inset 0 0 0 1px rgba(56, 34, 21, 0.44);
  pointer-events: none;
}

#screen-battle .battle-equip-slot.has-item::after {
  border-color: rgba(149, 210, 255, 0.54);
  box-shadow:
    inset 0 0 0 1px rgba(44, 118, 163, 0.54),
    0 0 10px rgba(71, 157, 224, 0.24);
}

#screen-battle .battle-equip-slot.is-blocked {
  filter: grayscale(0.38);
}

#screen-battle .battle-equip-slot__icon {
  --item-icon-size: 52px;
}

#screen-battle .battle-equip-slot__item {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: none;
}

#screen-battle .battle-equip-slot__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 14px;
  border-radius: 5px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(23, 115, 169, 0.84);
  pointer-events: none;
}

#screen-battle .battle-equip-slot--rightHand { background-image: url('/assets/images/inventory-slots/01_weapon.webp'); right: -6px; top: 60px; }
#screen-battle .battle-equip-slot--leftHand { background-image: url('/assets/images/inventory-slots/02_shield.webp'); right: -6px; top: 132px; }
#screen-battle .battle-equip-slot--head { background-image: url('/assets/images/inventory-slots/03_helmet.webp'); left: calc(50% - 33px); top: -2px; }
#screen-battle .battle-equip-slot--chest { background-image: url('/assets/images/inventory-slots/04_chest.webp'); left: -6px; top: 92px; }
#screen-battle .battle-equip-slot--hands { background-image: url('/assets/images/inventory-slots/05_gloves.webp'); left: -6px; top: 164px; }
#screen-battle .battle-equip-slot--belt { background-image: url('/assets/images/inventory-slots/06_belt.webp'); left: -6px; top: 236px; }
#screen-battle .battle-equip-slot--legs { background-image: url('/assets/images/inventory-slots/07_legs.webp'); left: -6px; top: 308px; }
#screen-battle .battle-equip-slot--boots { background-image: url('/assets/images/inventory-slots/08_boots.webp'); left: calc(50% - 33px); bottom: -2px; }
#screen-battle .battle-equip-slot--ring { background-image: url('/assets/images/inventory-slots/09_ring.webp'); right: -6px; top: 204px; }
#screen-battle .battle-equip-slot--ear { background-image: url('/assets/images/inventory-slots/10_amulet.webp'); right: -6px; top: 276px; }

#screen-battle .battle-popup-anchor {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 1px;
  height: 1px;
  transform: translateX(-50%);
  z-index: 9;
  pointer-events: none;
}

#screen-battle .battle-round-popup {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0);
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(28, 17, 10, 0.86);
  color: #f6ead1;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(6, 4, 2, 0.8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.44);
  animation: battle-popup-rise 1.1s ease-out forwards;
}

#screen-battle .battle-round-popup--damage {
  border-color: rgba(255, 161, 88, 0.55);
  color: #ffdc96;
}

#screen-battle .battle-round-popup--defense {
  border-color: rgba(145, 197, 255, 0.65);
  color: #bde2ff;
}

#screen-battle .battle-round-popup--critical {
  border-color: rgba(255, 87, 87, 0.72);
  color: #ffab80;
  background: rgba(56, 12, 12, 0.9);
}

#screen-battle .battle-round-popup--miss {
  border-color: rgba(224, 204, 157, 0.6);
  color: #f7efdc;
  background: rgba(44, 32, 18, 0.9);
}

@keyframes battle-popup-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.82);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1.04);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, -34px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -54px) scale(0.96);
  }
}

#screen-battle .battle-actions {
  position: absolute;
  left: 50%;
  bottom: 288px;
  width: 934px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 316px 270px 316px;
  align-items: end;
  gap: 16px;
  pointer-events: auto;
  z-index: 8;
}

#screen-battle .battle-zone-group {
  width: 316px;
  text-align: center;
}

#screen-battle .battle-zone-group__title {
  margin-bottom: 8px;
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 40px;
  letter-spacing: 0.3px;
  color: #f4e8cb;
  text-shadow: 0 2px 0 rgba(18, 9, 4, 0.9);
}

#screen-battle .battle-zone-group__buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

#screen-battle .battle-zone-btn {
  position: relative;
  width: 96px;
  border: none;
  background: transparent;
  color: #efe0bf;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  cursor: pointer;
  text-shadow: 0 2px 0 rgba(17, 8, 3, 0.95);
}

#screen-battle .battle-zone-btn::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translateX(-50%) scale(0.9);
  border-radius: 50%;
  border: 2px solid rgba(255, 233, 163, 0.2);
  background: radial-gradient(circle, rgba(255, 230, 152, 0.18), rgba(255, 200, 92, 0.04) 68%, transparent 75%);
  box-shadow:
    0 0 0 1px rgba(92, 52, 15, 0.45) inset,
    0 0 10px rgba(255, 214, 130, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#screen-battle .battle-zone-btn img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  transition: transform 0.18s ease, filter 0.18s ease;
}

#screen-battle .battle-zone-btn span {
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 18px;
  line-height: 1;
}

#screen-battle .battle-zone-btn:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 13px rgba(255, 211, 124, 0.56));
}

#screen-battle .battle-zone-btn.is-selected img {
  transform: translateY(-3px) scale(1.08);
  filter:
    drop-shadow(0 0 0 rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 20px rgba(255, 228, 160, 0.92))
    brightness(1.14)
    saturate(1.2);
}

#screen-battle .battle-zone-btn.is-selected::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  border-color: rgba(255, 233, 163, 0.86);
  box-shadow:
    0 0 0 2px rgba(92, 52, 15, 0.6) inset,
    0 0 20px rgba(255, 214, 130, 0.72);
}

#screen-battle .battle-zone-btn.is-selected span {
  color: #fff4cf;
  text-shadow:
    0 2px 0 rgba(22, 11, 5, 0.98),
    0 0 10px rgba(255, 220, 140, 0.68);
}

#screen-battle .battle-fight-col {
  width: 270px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#screen-battle .battle-fight-col .battle-fight-btn {
  margin-bottom: 30px;
}

#screen-battle .battle-fight-btn,
#screen-battle .battle-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 8px 0 0;
  min-width: 270px;
  height: 82px;
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 42px;
  letter-spacing: 0.4px;
  line-height: 1;
  color: #f8efdb;
  text-align: center;
  background: url('/assets/images/battle/bg_battle_name_hp.webp') center / 100% 100% no-repeat;
  text-shadow:
    0 2px 0 rgba(36, 16, 6, 0.95),
    0 0 18px rgba(255, 224, 156, 0.35);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

#screen-battle .battle-home-btn {
  min-width: 268px;
  height: 82px;
  font-size: 44px;
  margin-top: 2px;
}

#screen-battle .battle-fight-btn:hover:not(:disabled),
#screen-battle .battle-home-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

#screen-battle .battle-fight-btn:disabled {
  background-image: url('/assets/images/battle/bg_battle_name_hp.webp') !important;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: saturate(0.34) brightness(0.72);
  color: rgba(247, 238, 207, 0.9) !important;
}

#screen-battle .battle-hidden-inputs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#screen-battle .battle-chat {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 940px;
  height: 278px;
  transform: translateX(-50%);
  padding: 0 34px;
  border-style: solid;
  border-width: 24px 48px 32px;
  border-image: url('/assets/images/battle/bg_battle_chat.webp') 106 194 136 194 fill stretch;
  pointer-events: none;
  z-index: 7;
}

#screen-battle .battle-log {
  height: 100%;
  overflow: auto;
  pointer-events: auto;
  white-space: pre-wrap;
  font-family: 'Unna', serif;
  font-size: 18px;
  line-height: 1.15;
  color: #3a2517;
  text-shadow: 0 1px 0 rgba(255, 243, 212, 0.28);
  padding-right: 6px;
}

#screen-battle .battle-log::-webkit-scrollbar {
  width: 10px;
}

#screen-battle .battle-log::-webkit-scrollbar-thumb {
  background: rgba(84, 47, 25, 0.7);
  border-radius: 999px;
}

#screen-battle .battle-team-panels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#screen-battle .battle-team-panel {
  position: absolute;
  top: var(--battle-team-panel-top);
  width: var(--battle-team-panel-width);
  height: auto;
  padding: 16px 12px 10px;
  border-style: solid;
  border-width: 64px 18px 44px;
  border-image: url('/assets/images/battle/bg_battle_players.webp') 138 42 92 42 fill stretch;
  background: transparent;
  pointer-events: auto;
}

#screen-battle .battle-team-panel--ally {
  left: 12px;
}

#screen-battle .battle-team-panel--enemy {
  right: 12px;
}

#screen-battle .battle-team-panel__title {
  position: absolute;
  left: 20px;
  right: 20px;
  top: -18px;
  margin: 0;
  text-align: center;
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 22px;
  line-height: 1;
  color: #4d2410;
  text-shadow: 0 1px 0 rgba(252, 234, 194, 0.5);
}

#screen-battle .battle-team-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  max-height: none;
  overflow: visible;
}

#screen-battle .battle-team-member {
  min-height: 0;
  padding: 6px;
  border-radius: 12px;
  border: 2px solid rgba(101, 63, 37, 0.72);
  background: linear-gradient(180deg, rgba(70, 44, 26, 0.94), rgba(38, 24, 15, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 223, 164, 0.18);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

#screen-battle .battle-team-member.is-acting {
  border-color: rgba(255, 214, 128, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 229, 172, 0.26),
    0 0 14px rgba(255, 219, 142, 0.3);
}

#screen-battle .battle-team-member.is-dead {
  opacity: 0.62;
  filter: grayscale(0.9);
}

#screen-battle .battle-team-member__avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 222, 148, 0.44);
  flex: 0 0 auto;
  margin-top: 1px;
}

#screen-battle .battle-team-member__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#screen-battle .battle-team-member__meta {
  min-width: 0;
  flex: 1;
}

#screen-battle .battle-team-member__name {
  font-size: 13px;
  line-height: 1.05;
  color: #efe2c3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

#screen-battle .hp-display {
  font-size: 12px;
  line-height: 1;
  color: #f4da98;
}

#screen-battle .battle-team-member__hpbar {
  margin-top: 4px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #372012, #24160c);
  border: 1px solid rgba(255, 221, 164, 0.28);
  overflow: hidden;
}

#screen-battle .battle-team-member__hp-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ad2a28, #e28d43 55%, #f6d998);
}

#screen-battle .battle-team-member__skull {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 16px;
  opacity: 0;
}

#screen-battle .battle-team-member.is-dead .battle-team-member__skull {
  opacity: 1;
}

#screen-battle .battle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 33;
  background: rgba(6, 5, 12, 0.58);
}

#screen-battle .battle-overlay__panel {
  color: var(--battle-text);
  text-align: center;
  text-shadow: 0 2px 0 rgba(25, 13, 7, 0.92);
}

#screen-battle .battle-overlay__panel h3,
#screen-battle .battle-overlay__panel p {
  margin: 0;
}

#screen-battle .battle-overlay--waiting {
  z-index: 35;
}

#screen-battle .battle-overlay__panel--waiting {
  width: 720px;
  min-height: 286px;
  padding: 50px 66px 44px;
  border-style: solid;
  border-width: 48px 62px 52px;
  border-image: url('/assets/images/battle/bg_battle_result.webp') 116 128 116 128 fill stretch;
}

#screen-battle .battle-overlay__panel--waiting h3 {
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: 0.4px;
}

#screen-battle .battle-overlay__panel--waiting p {
  margin-top: 14px;
  font-size: 24px;
}

#screen-battle .battle-wait-hourglass {
  margin-top: 14px;
  font-size: 48px;
  animation: battle-hourglass-spin 1.45s ease-in-out infinite;
}

@keyframes battle-hourglass-spin {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#screen-battle .battle-overlay--dead {
  z-index: 36;
  background: rgba(8, 4, 6, 0.64);
}

#screen-battle .battle-overlay__panel--dead {
  width: 510px;
  min-height: 180px;
  padding: 36px 36px;
  border-radius: 24px;
  border: 2px solid rgba(255, 118, 116, 0.72);
  background: linear-gradient(180deg, rgba(80, 20, 20, 0.92), rgba(42, 10, 10, 0.94));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
}

#screen-battle .battle-overlay__panel--dead h3 {
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 52px;
  color: #ff9e8b;
}

#screen-battle .battle-overlay__panel--dead p {
  margin-top: 10px;
  font-size: 26px;
}

#screen-battle .battle-overlay--result {
  z-index: 40;
  background: rgba(4, 4, 12, 0.72);
  backdrop-filter: blur(2px);
}

#screen-battle .battle-result-board {
  position: relative;
  width: 760px;
  aspect-ratio: 999 / 604;
  padding: 92px 100px 78px;
  background: url('/assets/images/battle/bg_battle_result.webp') center / 100% 100% no-repeat;
  text-align: center;
  color: #f4e8cb;
  text-shadow: 0 2px 0 rgba(29, 14, 6, 0.95);
}

#screen-battle .battle-result-board__brand {
  position: absolute;
  left: 50%;
  top: -92px;
  width: 700px;
  aspect-ratio: 1257 / 314;
  transform: translateX(-50%) translateY(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 22px;
  background: url('/assets/images/battle/bg_battle_name_hp.webp') center / 100% 100% no-repeat;
  font-family: 'LuckiestGuyRU', 'Unna', serif;
  font-size: 96px;
  line-height: 0.9;
  color: #f8efda;
  letter-spacing: 1px;
}

#screen-battle .battle-result-board__content {
  display: grid;
  gap: 12px;
}

#screen-battle .battle-result-line {
  font-size: 54px;
  line-height: 1.04;
}

#screen-battle .battle-result-line--main {
  margin-bottom: 10px;
  font-size: 58px;
}

#screen-battle .battle-result-loot {
  margin-top: 2px;
  display: flex;
  justify-content: center;
}

#screen-battle .battle-result-loot__icon {
  --item-icon-size: 66px;
  border-radius: 10px;
}

#screen-battle .battle-result-loot__image {
  width: 100%;
  height: 100%;
}

#screen-battle .battle-overlay.hidden,
#screen-battle .battle-team-panels.hidden,
#screen-battle .battle-mode-title.hidden {
  display: none;
}
