.battle-sticky-header[hidden] { display: none; }
.battle-sticky-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: #f8faff;
  background: #0b1427;
  border-bottom: 1px solid #294c7c;
  box-shadow: 0 4px 24px #03091666;
  font-family: Manrope, sans-serif;
}
.battle-sticky-header-inner {
  box-sizing: border-box;
  max-width: 1924px;
  margin-inline: auto;
  padding: 12px clamp(16px, 4.2vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.battle-sticky-header-text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
}
.battle-sticky-header-text span { white-space: nowrap; }
.battle-sticky-header-button {
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid #a9e4ff9c;
  border-radius: 13px;
  background: linear-gradient(163deg,#52d5f4,#2668f6 78%);
  box-shadow: inset 0 0 12px #e4faff99,0 0 22px #258de34a;
  color: #04101e;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.4;
  text-decoration: none;
}
.battle-sticky-header-button:hover { filter: brightness(1.09); box-shadow: inset 0 0 14px #e4faffaa,0 0 26px #258de379; }
.battle-sticky-header-button:focus-visible { outline: 2px solid #ffab65; outline-offset: 3px; }
#tarify { scroll-margin-top: calc(var(--battle-sticky-header-height, 0px) + 16px); }
@media (max-width: 850px) {
  .battle-sticky-header { inset: auto 0 0; border-bottom: 0; border-top: 1px solid #294c7c; box-shadow: 0 -4px 24px #03091666; }
  html.battle-sticky-visible body { padding-bottom: var(--battle-sticky-header-height, 0px); }
  html.battle-sticky-visible { scroll-padding-bottom: calc(var(--battle-sticky-header-height, 0px) + 16px); }
  #tarify { scroll-margin-top: 16px; }
  .battle-sticky-header-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .battle-sticky-header-text { font-size: 14px; line-height: 1.4; text-align: center; text-wrap: balance; }
  .battle-sticky-header-button { min-height: 40px; padding: 8px 16px; }
}
