/* RUINROLL · 30-match-hud.css — In-match HUD: controls, abilities, score/time, minimap, zone war, feeds.
   Generated from the consolidated stylesheet stack; rule order inside this file is cascade order. */
#topHUD {
  pointer-events: none;
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  top: calc(env(safe-area-inset-top) + 5px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-right: 32px;
}
.score-rival .playerRow {
  justify-content: flex-end;
  text-align: right;
}
.score strong {
  display: block;
  font-size: clamp(21px,3.2vw,36px);
  color: #ffd75b;
  line-height: 1;
}
.score-rival strong {
  color: #6fdaff;
}
.timePanel {
  text-align: center;
  flex: 0 0 auto;
  transform: skew(-4deg);
}
.timePanel strong {
  display: block;
  font-size: clamp(25px,4.5vw,45px);
  line-height: 1;
  color: white;
  font-variant-numeric: tabular-nums;
}
.timePanel span {
  display: block;
  font-weight: 1000;
  font-size: clamp(9px,1vw,13px);
  color: #e0e8ff;
}
#missionHUD {
  pointer-events: none;
  position: absolute;
  left: 2.5%;
  z-index: 5;
  display: grid;
  gap: 3px;
}
#missionHUD>span {
  font-size: clamp(10px,1.15vw,13px);
  font-weight: 850;
}
#missionHUD small {
  position: absolute;
  right: 10px;
  bottom: 13px;
  font-size: 10px;
  font-weight: 900;
}
#missionHUD .progress {
  width: 80%;
}
#comboHUD {
  position: absolute;
  z-index: 4;
  text-align: right;
  pointer-events: none;
  text-shadow: 0 0 18px #ff5100,0 3px 4px #351006;
}
#arenaNotice {
  position: absolute;
  z-index: 5;
  top: 26%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #b34026d5;
  border: 1px solid #ffc273;
  padding: 9px 15px;
  border-radius: 18px;
  font-weight: 1000;
  font-size: clamp(10px,1.2vw,17px);
  text-shadow: 0 2px #632d14;
  pointer-events: none;
}
#abilityHint {
  position: absolute;
  z-index: 3;
  font-size: clamp(8px,1vw,13px);
  text-align: center;
  pointer-events: none;
}
#controls {
  position: absolute;
  z-index: 6;
  bottom: calc(env(safe-area-inset-bottom) + 7px);
  left: calc(env(safe-area-inset-left) + 16px);
  right: calc(env(safe-area-inset-right) + 16px);
  align-items: flex-end;
  justify-content: space-between;
}
#joystick {
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
}
#joystick:after {
  content: 'MOVE';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  font-size: 10px;
  color: #a4dfff;
  text-align: center;
  font-weight: 900;
  pointer-events: none;
}
.ability {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid #ffaf65;
  border-radius: 50%;
  width: clamp(50px,10.5vh,91px);
  height: clamp(50px,10.5vh,91px);
  background: radial-gradient(circle at 34% 27%,#fbb373,#d64b0d 64%,#7e250b);
  box-shadow: 0 0 17px #e3683f9c,inset 0 3px 10px #ffbe8190,0 4px #401d20;
  font-weight: 1000;
  text-shadow: 0 2px 4px #000a;
}
.ability span {
  line-height: 1;
}
.ability:disabled .cool {
  display: grid;
}
@media (max-height:420px) {
  .score strong {
    font-size: 21px;
  }
  .timePanel strong {
    font-size: 26px;
  }
  #missionHUD {
    top: 79px;
  }
  .ability {
    width: 53px;
    height: 53px;
  }
  #joystick {
    width: 99px;
    height: 99px;
  }
}
@media (max-width:680px) and (orientation:landscape) {
  #topHUD {
    left: 1%;
    right: 1%;
  }
  #missionHUD {
    top: 76px;
    left: 1%;
  }
  #controls {
    left: 8px;
    right: 8px;
  }
}
#controls {
  inset: 0;
  display: block;
  pointer-events: none;
}
#joystick {
  position: absolute;
}
.ability span {
  font-size: clamp(19px,5.1vh,38px);
}
#missionHUD {
  width: clamp(132px,22%,245px);
  padding: 6px 7px;
  top: calc(env(safe-area-inset-top) + 79px);
}
#abilityHint {
  right: 14%;
  left: 28%;
  bottom: 8px;
}
@media (max-height:430px) {
  .ability span {
    font-size: clamp(16px,4.5vh,25px);
  }
  #joystick {
    width: clamp(80px,23vh,108px);
    height: clamp(80px,23vh,108px);
  }
  #missionHUD {
    top: 74px;
    padding: 4px;
  }
  #missionHUD span {
    font-size: 10px;
  }
}
.timePanel {
  background: linear-gradient(145deg,#23446e,#261c55);
  border: 2px solid #f9dc9a;
  box-shadow: 0 5px 24px #162d5c70;
}
#missionHUD {
  border: 1.5px solid #c4e6ff;
  border-radius: 14px;
}
#joystick {
  border: 3px solid #e2fcffbb;
  background: radial-gradient(circle,#8292b89e,#182f57a3);
  box-shadow: 0 4px 30px #1f619775,inset 0 0 18px #a4e7ff65;
}
#btnFire {
  background: radial-gradient(circle,#b8fff1,#10a48c);
  border-color: #d9ff9d;
  box-shadow: 0 0 15px #40e1bf7d;
}
#btnDash {
  background: radial-gradient(circle,#ffe781,#d9a013);
}
#btnSmash {
  background: radial-gradient(circle,#ffdb6d,#ff6b1c);
}
#hudMusic {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 9px);
  transform: translateX(-50%);
  border: 1.5px solid #9cecff;
  color: white;
  font-size: clamp(15px,3vh,20px);
  font-weight: 900;
  background: linear-gradient(#1c678ebc,#152e5bd9);
  width: clamp(30px,6vh,42px);
  height: clamp(28px,6vh,40px);
  border-radius: 99px;
  box-shadow: 0 2px 10px #00496d88;
  touch-action: manipulation;
  cursor: pointer;
}
#hudMusic.hidden {
  display: none !important;
}
#finalCountdown {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  left: 50%;
  top: 20%;
  transform: translate(-50%,-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(5px,1.2vw,13px);
  padding: clamp(4px,1vh,11px) clamp(10px,2vw,24px);
  border: 2px solid #fff4a9;
  border-radius: 15px;
  background: linear-gradient(130deg,#8b1023eb,#e52e1edd,#96151deb);
  box-shadow: 0 0 24px #ff151aaa,0 5px 9px #42172c7a;
  white-space: nowrap;
  animation: warningGlow 1s ease-in-out infinite alternate;
}
#finalCountdown.hidden {
  display: none !important;
}
#finalCountdown .siren {
  font-size: clamp(15px,3.4vh,30px);
  animation: warningShake .25s infinite alternate;
}
#finalCountdown.tick strong {
  animation: finalNumber .16s ease-out;
}
#finalCountdown.critical {
  background: linear-gradient(130deg,#a51212,#fb2a20,#ce1917);
  border-color: #ffffaa;
  animation: warningGlow .42s ease-in-out infinite alternate;
}
@media (max-height:430px) {
  #finalCountdown {
    top: 22%;
    padding: 3px 10px;
    border-radius: 9px;
  }
  #finalCountdown .siren {
    font-size: 16px;
  }
  #hudMusic {
    bottom: 6px;
    width: 40px;
    height: 40px;
  }
}
#missionHUD {
  background: #102d54e8;
  backdrop-filter: blur(4px);
}
#comboHUD {
  top: 30%;
}
#abilityHint {
  font-weight: 600;
  color: #102b4ab0;
  text-shadow: 0 1px 3px #f9feff;
}
@media (max-height:440px) {
  #missionHUD {
    width: clamp(126px,20%,195px);
  }
  #comboHUD {
    top: 33%;
  }
}
#eventHud {
  position: absolute;
  border-radius: 24px;
  border: 2px solid #fff9;
  box-shadow: 0 6px 30px #162e5688;
  background: #b9374aee;
  color: white;
  font-weight: 1000;
  text-shadow: 0 2px 3px #0007;
  pointer-events: none;
  z-index: 10;
  animation: eventPulse .56s ease-in-out infinite alternate;
}
#controls #moveTouchZone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  z-index: 1;
  background: transparent;
  pointer-events: auto;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}
#controls #joystick {
  z-index: 2;
  width: clamp(106px,27vh,172px);
  height: clamp(106px,27vh,172px);
  touch-action: none !important;
}
#controls .actionButtons {
  z-index: 3;
}
#controls .ability,
#controls .ability.smash {
  width: clamp(46px,12vh,80px);
  height: clamp(46px,12vh,80px);
}
#controls .ability.smash {
  width: clamp(50px,12.6vh,85px);
  height: clamp(50px,12.6vh,85px);
}
@media (max-height:400px) {
  #controls #joystick {
    width: clamp(102px,27vh,128px);
    height: clamp(102px,27vh,128px);
  }
  #controls .ability,
  #controls .ability.smash {
    width: clamp(46px,11.5vh,53px);
    height: clamp(46px,11.5vh,53px);
  }
  #controls .ability.smash {
    width: clamp(49px,12.5vh,56px);
    height: clamp(49px,12.5vh,56px);
  }
}
#chaosHud {
  margin-top: 1px;
  color: #ffd77c;
  white-space: nowrap;
  letter-spacing: .3px;
  font-weight: 900;
  text-shadow: 0 1px #132b42;
}
#missionHUD {
  max-width: min(26vw,270px);
  font-size: clamp(9px,1.0vw,13px);
  white-space: nowrap;
}
#eventHud {
  max-height: 16vh !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
@media (max-height:480px) {
  #eventHud {
    max-height: 14vh !important;
    top: 22% !important;
  }
}
.timePanel {
  min-width: 0 !important;
  width: clamp(125px,17.5vw,220px) !important;
  border-radius: 18px !important;
  top: calc(env(safe-area-inset-top) + 4px) !important;
}
#chaosHud {
  font-size: clamp(8px,1vw,11px) !important;
  opacity: .77;
  margin: 0 !important;
}
#eventHud {
  top: 20% !important;
  max-width: 43vw !important;
  font-size: clamp(10px,1.5vw,17px) !important;
  min-height: 0 !important;
  padding: 7px 13px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#comboHUD {
  transform: scale(.80);
  transform-origin: right center;
  right: 12% !important;
}
#chaosHud {
  display: none !important;
}
.timePanel {
  padding: 4px 10px !important;
  min-height: 0 !important;
}
#bonusBtn {
  position: fixed !important;
  bottom: 12px !important;
  right: calc(12px + env(safe-area-inset-right,0px)) !important;
  width: 145px !important;
  height: 115px !important;
  border: 3px solid #ffe98a !important;
  background: linear-gradient(155deg,#ffe87d,#fa8f30 65%,#ca4933) !important;
  color: #132a48 !important;
  box-shadow: 0 0 13px #ffc74ba6,0 8px 0 #9a4324 !important;
  border-radius: 16px !important;
  padding: 38px 6px 8px !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  z-index: 99 !important;
  animation: rewardPulseV19 2.3s ease-in-out infinite !important;
}
#bonusBtn:before {
  content: '▶';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  position: absolute;
  top: 6px;
  left: calc(50% - 22px);
  height: 30px;
  width: 44px;
  background: #153c70;
  color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px #13264c;
}
@media (max-height:460px) {
  #bonusBtn {
    width: 104px !important;
    height: 78px !important;
    font-size: 9px !important;
    padding: 31px 5px 3px !important;
    bottom: 8px !important;
    right: 6px !important;
  }
  #bonusBtn:before {
    height: 23px;
    width: 34px;
    left: calc(50% - 17px);
    font-size: 18px;
    top: 5px;
  }
}
#controls.tutorialFocus {
  z-index: 115 !important;
  pointer-events: none;
}
#controls.tutorialFocus .tutorialTarget {
  pointer-events: auto;
  box-shadow: 0 0 0 6px #ffe66b9e,0 0 22px 15px #ffad3a9a !important;
  z-index: 119 !important;
  transform: scale(1.05);
  animation: tutorialPulse 1.15s ease-in-out infinite;
}
#controls.tutorialFocus .ability:not(.tutorialTarget) {
  opacity: .45;
}
#gameFeed {
  position: absolute;
  z-index: 13;
  left: max(12px,env(safe-area-inset-left));
  top: clamp(97px,20vh,123px);
  padding: 7px 12px;
  width: min(260px,25vw);
  min-width: 132px;
  border: 1px solid #75d9f699;
  border-radius: 12px;
  background: #10294cdb;
  color: #edffff;
  font: 850 clamp(10px,.95vw,13px) system-ui;
  box-shadow: 0 6px 15px #050c2540;
  pointer-events: none;
  transition: opacity .2s;
  line-height: 1.25;
}
#gameFeed.hidden {
  display: none !important;
}
#gameFeed strong {
  display: block;
  color: #9becfc;
  font-size: 9px;
  letter-spacing: 1.8px;
}
#btnFreeze {
  border-color: #9cfcff;
}
@media (max-width:810px) {
  #gameFeed {
    width: 170px;
    top: 98px;
    padding: 5px 8px;
  }
}
@media (max-height:420px) {
  #gameFeed {
    top: 79px;
  }
}
#btnFreeze {
  background: linear-gradient(135deg,#83e5ff 5%,#2c9fce 50%,#233e8e 100%);
  box-shadow: inset 0 0 12px #c2ffff88,0 0 12px #66d8ff44;
}
#btnFreeze small {
  font-size: 7px;
}
#bonusBtn {
  display: none !important;
}
.score-rival small {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timePanel {
  position: relative !important;
}
#pauseBtn {
  position: absolute !important;
  top: calc(100% + 7px) !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: 42px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 1px solid #9ddcff;
  border-radius: 12px;
  background: #122d50ed;
  box-shadow: 0 3px 10px #0005;
  pointer-events: auto;
  font-size: 19px !important;
  z-index: 12;
}
#topHUD {
  z-index: 8 !important;
}
#topHUD #pauseBtn {
  pointer-events: auto !important;
  touch-action: manipulation;
}
#controls .actionButtons {
  position: absolute !important;
  inset: auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto !important;
  display: grid !important;
  grid-template-columns: repeat(3,clamp(48px,8vh,76px));
  grid-template-rows: clamp(48px,8vh,76px) clamp(80px,15vh,132px);
  gap: 12px !important;
  width: auto !important;
  transform: none !important;
}
#controls .ability {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 2px solid #69dbff !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 15px #0d447d,0 0 9px #46ceff55;
  background: radial-gradient(circle at 35% 20%,#276890,#06172e) !important;
  touch-action: none;
}
#controls .ability span {
  font-size: clamp(23px,5vh,42px);
}
#controls .ability small {
  font-size: clamp(8px,1.5vh,12px);
  font-weight: 900;
}
#controls #btnDash {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  height: 85% !important;
}
#controls #btnSmash {
  grid-column: 2/4;
  grid-row: 2;
  justify-self: end;
  width: clamp(80px,15vh,132px) !important;
  border: 3px solid #ffe18a !important;
  background: radial-gradient(circle at 40% 25%,#a77413,#4e2b04) !important;
  box-shadow: 0 0 15px #ffbd36aa,inset 0 0 20px #ffbd3644;
}
#controls #btnSmash span {
  font-size: clamp(32px,7vh,60px);
}
#controls #btnSmash small {
  font-size: clamp(12px,2.5vh,21px);
}
#joystick {
  left: max(20px,env(safe-area-inset-left)) !important;
  bottom: max(20px,env(safe-area-inset-bottom)) !important;
  width: clamp(105px,23vh,190px) !important;
  height: clamp(105px,23vh,190px) !important;
}
#topHUD .score {
  width: clamp(150px,23vw,300px) !important;
  padding: 8px 12px !important;
}
#topHUD .score strong {
  font-size: clamp(25px,5vh,45px) !important;
}
#topHUD .timePanel {
  padding: 5px 22px !important;
  min-width: 130px !important;
}
#gameFeed {
  max-width: 40vw !important;
  font-size: 12px !important;
}
@media (max-height:440px) {
  #controls .actionButtons {
    gap: 8px !important;
    grid-template-columns: repeat(3,48px);
    grid-template-rows: 48px 84px;
  }
  #controls #btnSmash {
    width: 84px !important;
  }
  #topHUD .score {
    padding: 4px 8px !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  #controls .ability {
    animation: none !important;
  }
}
.ability.ready#btnSmash {
  animation: smashPulse 2s ease-in-out infinite;
}
#comboHUD[data-tier="hot"] #comboLabel {
  color: #ffe274;
  text-shadow: 0 2px 12px #ff7200,0 4px 4px #491b13;
}
#comboHUD[data-tier="legendary"] #comboLabel {
  color: #ffffff;
  text-shadow: 0 0 8px #ffe674,0 0 20px #ff4c2a,0 3px 5px #4d1634;
}
html:not(.lang-en) #joystick:after {
  content: var(--mbMove,'MOVE');
}
#hudMusic {
  margin-left: -58px !important;
}
html body #pauseBtn {
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  right: calc(100% + 8px) !important;
  transform: translateY(-50%) !important;
}
html body .ability small {
  font-size: clamp(10px,2.5vh,13px) !important;
  font-weight: 900 !important;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px #000,0 0 4px #000c !important;
}
html body #btnSmash small {
  font-size: clamp(13px,3vh,20px) !important;
}
html body #btnSmash .ammo {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 11px;
  background: #1b2a4a;
  border: 2px solid #ffe18a;
  color: #fff;
  font: 900 13px/18px system-ui,sans-serif;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
html body #btnSmash.empty {
  filter: grayscale(.85) brightness(.75);
}
html body #btnSmash::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(#ffe18a calc(var(--rech,1)*360deg),#ffffff22 0);
  -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  mask: radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
}
#zwHud {
  position: fixed;
  z-index: 9;
  left: 50%;
  transform: translateX(-50%);
  top: calc(env(safe-area-inset-top) + clamp(50px,14.5vh,70px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #08142cd0;
  border: 1px solid #3f6fa8;
  pointer-events: none;
  font-weight: 900;
  color: #fff;
  font-family: inherit;
}
#zwHud.hidden,
#zwAlert.hidden {
  display: none !important;
}
#zwHud .zwSide {
  display: flex;
  align-items: center;
  gap: 4px;
}
#zwHud .zwSide b {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  line-height: 1;
}
#zwHud .zwSide em {
  font-style: normal;
}
#zwHud .zwSide.blue em {
  color: #7cc0ff;
}
#zwHud .zwSide.red em {
  color: #ff8a8a;
}
#zwHud .zwSide i {
  position: relative;
  display: block;
  width: 22px;
  height: 7px;
  border-radius: 3px;
  background: #1d2a44;
  overflow: hidden;
}
#zwHud .zwSide i::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--hp,100%);
}
#zwHud .zwSide.blue i::after {
  background: #4d9bff;
}
#zwHud .zwSide.red i::after {
  background: #ff5560;
}
#zwHud .zwSide i.castle {
  width: 30px;
  height: 9px;
}
#zwHud .zwSide i.down {
  opacity: .35;
}
#zwHud .zwSide i.shield {
  box-shadow: 0 0 0 1.5px #9fe8ff;
}
#zwHud .zwHot {
  font-size: 16px;
  color: #ffd65a;
  line-height: 1;
}
#zwHud .zwHot[data-owner=blue] {
  color: #4d9bff;
}
#zwHud .zwHot[data-owner=red] {
  color: #ff5560;
}
#zwAlert {
  position: fixed;
  z-index: 9;
  left: 50%;
  transform: translateX(-50%);
  top: calc(env(safe-area-inset-top) + clamp(70px,21vh,98px));
  padding: 4px 12px;
  border-radius: 10px;
  background: #a3121fdd;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  animation: zwBlink .8s infinite alternate;
  pointer-events: none;
  white-space: nowrap;
}
html body #controls .actionButtons {
  --cx: calc(6px + var(--m)/2);
  --R: calc(var(--m)/2 + var(--u)*.5 + 12px);
  --R2: calc(var(--R) + var(--u) + 6px);
  display: block !important;
  position: absolute !important;
  inset: auto max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) auto !important;
  width: calc(var(--cx) + var(--R2) + var(--u)*.5 + 8px) !important;
  height: calc(var(--cx) + var(--R2) + var(--u)*.5 + 8px) !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0 !important;
  pointer-events: none;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
}
html body #controls #btnSmash,
html body #controls #btnDash,
html body #controls #btnGuard,
html body #controls #btnFire,
html body #controls #btnFreeze,
html body #controls #btnStrike {
  position: absolute !important;
  inset: auto !important;
  width: var(--u) !important;
  height: var(--u) !important;
  min-height: 0 !important;
  margin: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: auto !important;
  justify-self: auto !important;
  pointer-events: auto;
  border-radius: 50% !important;
  border: 2.5px solid var(--rim,#69dbff) !important;
  background: radial-gradient(circle at 50% 30%,var(--g1,#2a5d92),var(--g2,#0a1a33) 72%) !important;
  box-shadow: 0 3px 0 #04101f,0 0 12px var(--glow,#46ceff55),inset 0 2px 6px #ffffff33 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: visible;
  filter: none !important;
}
html body #controls #btnSmash span,
html body #controls #btnDash span,
html body #controls #btnGuard span,
html body #controls #btnFire span,
html body #controls #btnFreeze span,
html body #controls #btnStrike span {
  font-size: calc(var(--u)*.42) !important;
  line-height: 1;
  filter: drop-shadow(0 2px 2px #0008);
}
html body #controls #btnSmash small,
html body #controls #btnDash small,
html body #controls #btnGuard small,
html body #controls #btnFire small,
html body #controls #btnFreeze small,
html body #controls #btnStrike small {
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #fff !important;
}
html body #controls #btnSmash:disabled,
html body #controls #btnDash:disabled,
html body #controls #btnGuard:disabled,
html body #controls #btnFire:disabled,
html body #controls #btnFreeze:disabled,
html body #controls #btnStrike:disabled {
  background: conic-gradient(#020a18d8 var(--cooldown,0%),transparent 0),radial-gradient(circle at 50% 30%,var(--g1,#2a5d92),var(--g2,#0a1a33) 72%) !important;
}
html body #controls #btnSmash:disabled span,
html body #controls #btnDash:disabled span,
html body #controls #btnGuard:disabled span,
html body #controls #btnFire:disabled span,
html body #controls #btnFreeze:disabled span,
html body #controls #btnStrike:disabled span {
  opacity: .55;
}
html body #controls #btnSmash .cool,
html body #controls #btnDash .cool,
html body #controls #btnGuard .cool,
html body #controls #btnFire .cool,
html body #controls #btnFreeze .cool,
html body #controls #btnStrike .cool {
  font: 900 calc(var(--u)*.34) system-ui,sans-serif !important;
  background: transparent !important;
  text-shadow: 0 2px 3px #000;
}
html body #controls #btnSmash:active,
html body #controls #btnDash:active,
html body #controls #btnGuard:active,
html body #controls #btnFire:active,
html body #controls #btnFreeze:active,
html body #controls #btnStrike:active {
  transform: scale(.92);
}
html body #controls #btnFreeze small {
  font-size: clamp(6.5px,1.6vh,8.5px) !important;
}
html body #controls #btnSmash {
  width: var(--m) !important;
  height: var(--m) !important;
  right: 6px !important;
  bottom: 6px !important;
  --rim: #ffd96b;
  --g1: #ffbf3c;
  --g2: #9a3a06;
  --glow: #ffb43c88;
}
html body #controls #btnSmash span {
  font-size: calc(var(--m)*.4) !important;
}
html body #controls #btnSmash small {
  font-size: clamp(11px,3vh,16px) !important;
}
html body #controls #btnDash {
  right: calc(var(--cx) + var(--R) - var(--u)/2) !important;
  bottom: calc(var(--cx) - var(--u)/2) !important;
  --rim: #8fe3ff;
  --g1: #2b8fd6;
  --g2: #0a2a52;
}
html body #controls #btnGuard {
  right: calc(var(--cx) + var(--R)*.7071 - var(--u)/2) !important;
  bottom: calc(var(--cx) + var(--R)*.7071 - var(--u)/2) !important;
  --rim: #bff4ff;
  --g1: #3a6f9a;
  --g2: #0c2038;
  --glow: #9fe8ff66;
}
html body #controls #btnFire {
  right: calc(var(--cx) - var(--u)/2) !important;
  bottom: calc(var(--cx) + var(--R) - var(--u)/2) !important;
  --rim: #7dffd9;
  --g1: #1f9c86;
  --g2: #07302b;
}
html body #controls #btnFreeze {
  right: calc(var(--cx) + var(--R2)*.927 - var(--u)/2) !important;
  bottom: calc(var(--cx) + var(--R2)*.375 - var(--u)/2) !important;
  --rim: #9ff2ff;
  --g1: #2c8fc4;
  --g2: #0a2846;
}
html body #controls #btnStrike {
  right: calc(var(--cx) + var(--R2)*.42 - var(--u)/2) !important;
  bottom: calc(var(--cx) + var(--R2)*.9 - var(--u)/2) !important;
  --rim: #ff9b6b;
  --g1: #4a2a20;
  --g2: #170b08;
  --glow: #ff7a4a44;
}
html body #controls #btnStrike::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(#ff9b6b calc(var(--meter,0)*360deg),#ffffff22 0);
  -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  mask: radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
}
html body #controls #btnStrike:disabled {
  background: radial-gradient(circle at 50% 30%,#3a2c28,#120a08 72%) !important;
}
html body #controls #btnStrike:disabled span {
  opacity: .75;
}
html body #controls #btnStrike.ready {
  --rim: #ffe18a;
  --g1: #ff7a2e;
  --g2: #7a1d06;
  animation: bvStrikePulse 1s ease-in-out infinite alternate;
}
html body #controls #btnStrike.ready::before {
  background: conic-gradient(#ffe18a 360deg,#ffe18a 0);
}
body:not(.zwOn) #controls #btnStrike {
  display: none !important;
}
html body #controls #btnSmash::after {
  content: '' !important;
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg,#ffe066 0deg,#ff9a2e calc(var(--heat,0)*200deg),#ff3b2e calc(var(--heat,0)*360deg),#ffffff1c 0) !important;
  -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px)) !important;
  mask: radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px)) !important;
}
html body #controls #btnSmash .ammo {
  display: none !important;
}
html body #controls #btnSmash .heatTxt {
  position: absolute;
  left: 50%;
  top: 9%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 7px;
  font: 900 9.5px/13px system-ui,sans-serif;
  color: #fff;
  background: #c4321f;
  white-space: nowrap;
  pointer-events: none;
}
html body #controls #btnSmash .heatTxt:empty {
  display: none;
}
html body #controls #btnSmash.hot {
  --glow: #ff6a2e;
  --rim: #ff8a4a;
}
html body #controls #btnSmash.overheat {
  --rim: #ff4a3a;
  --g1: #7a1c12;
  --g2: #2a0805;
  animation: bvShake .12s linear infinite;
}
html body #controls #btnSmash.overheat .cool {
  color: #ffd0c4;
}
html body #controls #btnSmash.ready {
  animation: none;
}
#topHUD .hpRow {
  display: none;
  position: relative;
  height: 9px;
  margin-top: 3px;
  border-radius: 5px;
  background: #0a1526;
  box-shadow: inset 0 0 0 1px #ffffff26;
  overflow: hidden;
}
body.zwOn #topHUD .hpRow {
  display: block;
}
#topHUD .hpRow i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(#7af08f,#2fb14f);
  border-radius: 5px;
  transition: width .2s;
}
#topHUD .hpRow.rival i {
  background: linear-gradient(#ff8a8a,#d83a3f);
}
#topHUD .hpRow i.low {
  background: linear-gradient(#ff8a6a,#d8322a);
  animation: bvLow .5s infinite alternate;
}
#topHUD .hpRow b {
  position: absolute;
  inset: 0;
  font: 900 8px/9px system-ui,sans-serif;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}
#miniMap {
  position: fixed;
  z-index: 8;
  left: max(10px,calc(env(safe-area-inset-left) + 6px));
  width: clamp(92px,29vh,128px);
  height: clamp(92px,29vh,128px);
  border-radius: 50%;
  background: #0b1526;
  box-shadow: 0 0 0 3px #0b1830,0 0 0 5px #69dbff,0 4px 14px #0009;
  transition: width .2s,height .2s;
  touch-action: none;
  cursor: pointer;
}
#miniMap.full {
  width: clamp(150px,52vh,210px);
  height: clamp(150px,52vh,210px);
}
#miniMap.hidden {
  display: none !important;
}
#miniMap canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
#miniMap .mmTag {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 8px;
  background: #0b1830;
  border: 1.5px solid #69dbff;
  color: #bfeeff;
  font: 900 8.5px/12px system-ui,sans-serif;
  pointer-events: none;
}
#miniMap.danger {
  box-shadow: 0 0 0 3px #0b1830,0 0 0 5px #ff4a4a,0 0 18px #ff3a3a;
  animation: bvDanger .55s infinite alternate;
}
#miniMap.danger .mmTag {
  border-color: #ff5a5a;
  color: #fff;
  background: #a3121f;
}
body.zwOn #gameFeed {
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + 34px) !important;
  transform: translateX(-50%) !important;
  max-width: 44vw !important;
  text-align: center;
}
#koBanner {
  position: fixed;
  z-index: 12;
  left: 50%;
  top: 42%;
  transform: translate(-50%,-50%);
  padding: 10px 26px;
  border-radius: 16px;
  background: #0b1830e8;
  border: 2px solid #ff5a5a;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 6px 24px #000a;
}
#koBanner.hidden {
  display: none !important;
}
#koBanner b {
  display: block;
  font: 900 clamp(20px,6vh,30px)/1.1 system-ui,sans-serif;
  color: #ff6b6b;
  letter-spacing: .04em;
}
#koBanner em {
  font-style: normal;
  color: #ffe38a;
  font-size: 16px;
}
body.zwOn #comboHUD {
  display: none !important;
}
#miniMap {
  top: calc(env(safe-area-inset-top) + clamp(68px,20vh,88px));
}
html body #controls #btnSmash .heatTxt.n {
  top: auto;
  bottom: 6%;
  background: #0b1830d0;
  border: 1px solid #ffd96b;
  color: #ffe9a8;
  font-size: 10px;
  min-width: 18px;
  text-align: center;
}
#miniMap .mmTag {
  white-space: nowrap;
  letter-spacing: .03em;
}
#miniMap .mmTag[data-k=b] {
  background: #1d4fb0;
  border-color: #9fc8ff;
  color: #fff;
}
#miniMap .mmTag[data-k=r] {
  background: #b42d27;
  border-color: #ffb0aa;
  color: #fff;
}
#miniMap .mmTag[data-k=h] {
  background: #8a6200;
  border-color: #ffd65a;
  color: #fff;
}
#miniMap .mmTag[data-k=n] {
  background: #3a4458;
  border-color: #c9d3e3;
  color: #fff;
}
#miniMap .mmTag[data-k=d] {
  background: #a3121f;
  border-color: #ff8a8a;
  color: #fff;
}
#camViewBtn {
  position: fixed;
  z-index: 9;
  left: calc(max(10px,calc(env(safe-area-inset-left) + 6px)) + clamp(92px,29vh,128px) + 10px);
  top: calc(env(safe-area-inset-top) + clamp(68px,20vh,88px));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #69dbff;
  background: #0b1830d8;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  box-shadow: 0 3px 0 #04101f;
  touch-action: none;
}
#camViewBtn.hidden {
  display: none !important;
}
#camViewBtn span {
  font-size: 15px;
  line-height: 1;
}
#camViewBtn small {
  font: 900 7.5px/1 system-ui,sans-serif;
  letter-spacing: .04em;
  color: #bfeeff;
}
#camViewBtn[aria-pressed=true] {
  border-color: #ffd65a;
}
body.zwOn #gameFeed,
body:has(#miniMap:not(.hidden)) #gameFeed {
  left: max(10px,calc(env(safe-area-inset-left) + 6px)) !important;
  right: auto !important;
  transform: none !important;
  top: calc(env(safe-area-inset-top) + 47.5vh + 18px) !important;
  bottom: auto !important;
  max-width: min(200px,28vw) !important;
  text-align: left !important;
  padding: 4px 10px !important;
}
body.zwOn #gameFeed strong,
body:has(#miniMap:not(.hidden)) #gameFeed strong {
  font-size: 8px !important;
}
body.zwOn #gameFeed span,
body:has(#miniMap:not(.hidden)) #gameFeed span {
  font-size: 10.5px !important;
  line-height: 1.2;
}
html body #pauseBtn {
  width: 46px !important;
  height: 46px !important;
  font-size: 18px !important;
}
html body #topHUD .playerRow small {
  font-size: clamp(9.5px,2.5vh,12px) !important;
}
html body #controls #btnSmash small,
html body #controls #btnDash small,
html body #controls #btnGuard small,
html body #controls #btnFire small,
html body #controls #btnFreeze small,
html body #controls #btnStrike small {
  font-size: clamp(9.5px,2.4vh,12px) !important;
}
html body #zwAlert {
  top: calc(env(safe-area-inset-top) + clamp(50px,14.5vh,70px) + 58px) !important;
}
html body #controls #btnGuard.guardOn {
  box-shadow: 0 0 0 3px #e8fbff,0 0 22px 6px #9fe8ffcc !important;
  transform: scale(1.08);
}
html body #controls #btnGuard.guardOn .cool {
  color: #e8fbff;
}
body:has(#topHUD:not(.hidden))::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse 120% 95% at 50% 55%,transparent 62%,#0a0f2a55 100%);
}
html body #controls .actionButtons {
  --u: calc(clamp(48px,13.5vh,64px)*var(--bvBtn,1));
  --m: calc(clamp(78px,24vh,108px)*var(--bvBtn,1));
}
body.bvLeft #controls .actionButtons {
  inset: auto auto max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)) !important;
  scale: -1 1;
}
body.bvLeft #controls .actionButtons>button {
  scale: -1 1;
}
body.bvLeft #controls #moveTouchZone {
  left: 50% !important;
  right: 0 !important;
}
body.bvLeft #controls #joystick {
  left: auto !important;
  right: max(20px,env(safe-area-inset-right)) !important;
}
html body #controls #btnStrike:not(.cooling) .cool {
  display: none !important;
}
html body #controls #btnStrike.cooling .cool {
  display: grid !important;
}
html body #controls #btnStrike.cooling::before {
  background: conic-gradient(#8fe3ff calc(var(--meter,0)*360deg),#ffffff22 0);
}
html body #zwHud .zwSide i.castle {
  width: 34px;
  height: 26px;
  position: relative;
  overflow: visible;
}
html body #zwHud .zwSide i.castle::after {
  top: auto;
  bottom: -3px;
  height: 3px;
}
html body#rr-app.rr-ui #topHUD :is(.score,.timePanel) {
  background: linear-gradient(145deg,#122a40f0,#061321ed) !important;
  border: 2px solid #03060c !important;
  border-radius: 7px !important;
  box-shadow: inset 0 0 0 1px #4eacbf,3px 4px 0 #0008 !important;
}
html body#rr-app.rr-ui #topHUD strong {
  font-family: var(--mc-display) !important;
  text-shadow: 2px 2px 0 #000;
}
html body#rr-app.rr-ui :is(#topHUD,#zwHud,#controls,#camViewBtn,#hudMusic) {
  font-family: var(--mc-text) !important;
}
html body#rr-app.rr-ui #topHUD .emblem {
  font-size: 0 !important;
  width: clamp(24px,5vh,44px) !important;
  height: clamp(24px,5vh,44px) !important;
  background: center/contain no-repeat;
  display: block;
}
html body#rr-app.rr-ui #topHUD .score-you .emblem {
  background-image: url('../fx-assets/flame-red.webp');
}
html body#rr-app.rr-ui #topHUD .score-rival .emblem {
  background-image: url('../ui-assets/lab-freeze.webp');
}
html body#rr-app.rr-ui #topHUD :is(.progress,.healthBar) {
  border-color: #03060c !important;
  background: #040b16 !important;
}
html body#rr-app.rr-ui #controls .ability {
  border-color: var(--rim,#57cfe4) !important;
  box-shadow: 0 3px 0 #03060c,inset 0 0 0 2px #071525,inset 0 1px 2px #ffffff88 !important;
}
html body#rr-app.rr-ui #controls .ability small {
  font-family: var(--mc-text) !important;
  font-weight: 900 !important;
  text-shadow: 1px 1px 1px #000;
}
html body#rr-app.rr-ui #controls #btnSmash:not(.overheat) {
  --g1: #ffdc65;
  --g2: #bc6516;
  --rim: #ffe9a1;
}
html body#rr-app.rr-ui #controls .ability>span:first-child {
  font-size: 0 !important;
  width: 55%;
  height: 55%;
  background: center/contain no-repeat;
  pointer-events: none;
  flex: none;
}
html body#rr-app.rr-ui #controls #btnSmash>span:first-child {
  background-image: url('../ui-assets/lab-smash.webp');
}
html body#rr-app.rr-ui #controls #btnDash>span:first-child {
  background-image: url('../ui-assets/lab-dash.webp');
}
html body#rr-app.rr-ui #controls #btnFreeze>span:first-child {
  background-image: url('../ui-assets/lab-freeze.webp');
}
html body#rr-app.rr-ui #controls #btnFire>span:first-child {
  background-image: url('../ui-assets/lab-magnet.webp');
}
html body#rr-app.rr-ui #controls #btnGuard>span:first-child {
  background-image: url('../ui-assets/lab-block.webp');
}
html body#rr-app.rr-ui #controls #btnStrike>span:first-child {
  background-image: url('../ui-assets/icons/airstrike.webp');
}
html body#rr-app.rr-ui #joystick {
  border-color: #82d8e5 !important;
  background: radial-gradient(circle,#142e4966,#06162699) !important;
  box-shadow: inset 0 0 0 3px #071525 !important;
}
html body#rr-app.rr-ui :is(#pauseBtn,#hudMusic,#camViewBtn,#zwGoal,#zwAlert,#comboHUD,#gameFeed,#eventHud,#missionHUD) {
  font-family: var(--mc-text) !important;
  border-color: #3c7d94 !important;
  background-color: #071626e8 !important;
  border-radius: 6px !important;
}
html body #miniMap:not(.full) {
  top: calc(env(safe-area-inset-top) + clamp(86px,24.5vh,108px)) !important;
  width: clamp(84px,25vh,108px) !important;
  height: clamp(84px,25vh,108px) !important;
  left: max(14px,calc(env(safe-area-inset-left) + 10px)) !important;
}
html body #miniMap.full {
  top: calc(env(safe-area-inset-top) + clamp(86px,24.5vh,108px)) !important;
}
html body #camViewBtn {
  top: calc(env(safe-area-inset-top) + clamp(86px,24.5vh,108px)) !important;
  left: calc(max(14px,env(safe-area-inset-left) + 10px) + clamp(84px,25vh,108px) + 8px) !important;
}
html body.zwOn #gameFeed,
html body:has(#miniMap:not(.hidden)) #gameFeed {
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(env(safe-area-inset-bottom) + clamp(58px,16.5vh,72px)) !important;
  transform: translateX(-50%) !important;
  max-width: min(340px,40vw) !important;
  text-align: center !important;
}
html.lang-ar body.zwOn #gameFeed,
html.lang-ar body:has(#miniMap:not(.hidden)) #gameFeed {
  text-align: center !important;
}
html body#rr-app #gameFeed#gameFeed {
  position: fixed !important;
  z-index: 30 !important;
  left: max(12px,calc(env(safe-area-inset-left) + 8px)) !important;
  right: auto !important;
  top: calc(env(safe-area-inset-top) + clamp(86px,24.5vh,108px) + clamp(84px,25vh,108px) + 16px) !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: min(240px,29vw) !important;
  min-width: 0 !important;
  padding: 4px 9px 5px !important;
  border-radius: 10px !important;
  background: rgba(14,10,40,.38) !important;
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  backdrop-filter: blur(6px) saturate(1.2);
  border: 1px solid rgba(190,170,255,.22) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
  text-align: start !important;
  pointer-events: none !important;
  animation: rrRadioIn .25s ease-out;
}
html body#rr-app #gameFeed#gameFeed strong {
  display: block !important;
  margin: 0 0 1px !important;
  font: 800 8.5px/1.1 var(--mc-text) !important;
  letter-spacing: .05em !important;
  color: rgba(255,214,120,.78) !important;
  text-shadow: none !important;
}
html body#rr-app #gameFeed#gameFeed span {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 700 11px/1.25 var(--mc-text) !important;
  color: rgba(236,240,250,.9) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.55) !important;
}
html body#rr-app #gameFeed#gameFeed.hidden {
  display: none !important;
}
@media (max-height:360px) {
  html body#rr-app #gameFeed#gameFeed span {
    -webkit-line-clamp: 1;
  }
}
@media (prefers-reduced-motion:reduce) {
  html body#rr-app #gameFeed#gameFeed {
    animation: none;
  }
}
html:is(.lang-ar,.lang-hi) body#rr-app #gameFeed#gameFeed strong {
  letter-spacing: 0 !important;
  font-size: 10px !important;
}
body.obOn:is([data-ob=move],[data-ob=speed]) #controls :is(#btnSmash,#btnFreeze,#btnGuard,#btnFire,#btnStrike,#btnDash) {
  visibility: hidden !important;
}
body.obOn[data-ob=dash] #controls :is(#btnSmash,#btnFreeze,#btnGuard,#btnFire,#btnStrike) {
  visibility: hidden !important;
}
body.obOn[data-ob=smash] #controls :is(#btnFreeze,#btnGuard,#btnFire,#btnStrike) {
  visibility: hidden !important;
}
body.obOn[data-ob=frost] #controls :is(#btnGuard,#btnFire,#btnStrike) {
  visibility: hidden !important;
}
body.obOn[data-ob=block] #controls :is(#btnFire,#btnStrike) {
  visibility: hidden !important;
}
body.obOn:is([data-ob=magnet],[data-ob=tower]) #controls #btnStrike {
  visibility: hidden !important;
}
