@font-face {
  font-family: Montserrat;
  src: url("/assets/ui/montserrat.woff2") format("woff2");
  font-display: swap;
}
:root {
  --arena-blue: #174bab;
  --arena-deep: #12365b;
  --arena-paper: #f4f7fc;
  --arena-gold: #ffd44f;
  --arena-mint: #92e4cc;
  --arena-ink: #17344f;
}
.arena-page {
  margin: 0;
  background: var(--arena-paper);
  color: var(--arena-ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
.arena-page h1,
.arena-page h2,
.arena-page h3 {
  color: var(--arena-ink);
}
.arena-page .attack-button {
  display: block;
}
.arena-page .attack-button small {
  font-weight: 500;
}
.arena-page * {
  box-sizing: border-box;
}
.arena-page [hidden] {
  display: none !important;
}
.arena-page button,
.arena-page select {
  font: inherit;
}
.arena-page button,
.arena-page select,
.arena-page a {
  touch-action: manipulation;
}
.arena-page button {
  cursor: pointer;
}
.arena-page button:disabled {
  cursor: default;
  opacity: 0.55;
}
.arena-page :focus-visible {
  outline: 3px solid #e2a600;
  outline-offset: 4px;
}
.arena-page a {
  color: var(--arena-blue);
}
.arena-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 16px max(24px, calc((100vw - 1250px) / 2));
  background: #fff;
  border-bottom: 1px solid #d9e2ed;
}
.arena-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--arena-deep) !important;
}
.arena-header #gpb-conta {
  margin-left: auto;
}
.arena-layout {
  max-width: 1250px;
  margin: auto;
  padding: 32px 24px 20px;
}
.arena-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.arena-title h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
  font-weight: 900;
}
.arena-title p {
  margin: 0;
  color: #526b80;
}
.connection {
  border-radius: 24px;
  background: #e1e9f3;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.connection.connected {
  background: #cbf1e6;
  color: #125640;
}
.arena-notice:empty {
  display: none;
}
.arena-notice {
  padding: 12px 18px;
  border-left: 5px solid #dcae25;
  background: #fff2c7;
  color: #604900;
}
.gate,
.entry {
  padding: 35px;
  background: white;
  border: 1px solid #cbd7e5;
  border-radius: 16px;
}
.entry {
  display: flex;
  align-items: center;
  gap: 36px;
}
.entry h2 {
  margin-top: 0;
}
.entry select {
  margin: 0 12px;
  padding: 10px;
  border: 1px solid #9fb2ca;
  border-radius: 8px;
}
.primary,
.arena-page #retry {
  display: inline-block;
  padding: 13px 24px;
  background: var(--arena-blue);
  color: white !important;
  text-decoration: none;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
}
.arena-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: stretch;
}
.arena-stage {
  border-radius: 22px;
  background: var(--arena-deep);
  overflow: hidden;
  color: white;
  position: relative;
  border: 1px solid #244d77;
}
.stage-top {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0f2d4b;
  font-size: 12px;
  font-weight: 600;
}
.boss-health {
  padding: 22px 26px 0;
  position: relative;
  z-index: 1;
}
.boss-health > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
  font-size: 13px;
}
.boss-health progress {
  display: block;
  width: 100%;
  height: 14px;
  margin: 10px 0 8px;
  appearance: none;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #47637c;
}
.boss-health progress::-webkit-progress-bar {
  background: #47637c;
}
.boss-health progress::-webkit-progress-value {
  background: var(--arena-gold);
  transition: width 0.15s;
}
.boss-health progress::-moz-progress-bar {
  background: var(--arena-gold);
}
.boss-health small {
  font-size: 10px;
  color: #b8cce1;
}
.battlefield {
  height: 300px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stadium {
  position: absolute;
  inset: 30px -70px -120px;
  border-radius: 50%;
  background: #275986;
  transform: perspective(600px) rotateX(38deg);
  border: 18px solid #326c9d;
  z-index: -1;
}
.stadium span {
  position: absolute;
  border: 2px solid #497ba3;
  border-radius: 50%;
  inset: 20px;
}
.stadium span:nth-child(2) {
  inset: 45px;
}
.stadium span:nth-child(3) {
  inset: 75px;
}
.fighter {
  position: absolute;
  left: 8%;
  bottom: 25px;
  width: 175px;
  text-align: center;
  z-index: 2;
}
.fighter > span {
  display: block;
  max-width: 190px;
  overflow-wrap: anywhere;
  background: #0d2a47db;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  margin-top: 12px;
}
.fighter #fighter-avatar {
  height: 175px;
}
.fighter .gpb-avatar {
  margin: auto;
}
.boss {
  position: absolute;
  right: 7%;
  bottom: 20px;
  width: 180px;
  transition: filter 0.2s;
}
.boss img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 0 #0b2d4e60);
}
.boss > span {
  display: block;
  text-align: center;
  background: #35597c;
  color: #d4e4f6;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 9px;
}
.boss.shielded:before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 3px solid #92e4cc;
  border-radius: 45%;
  background: #92e4cc0d;
  box-shadow: 0 0 20px #92e4cc33;
}
.boss.stunned {
  filter: grayscale(0.8);
  transform: rotate(8deg);
}
.attack-trail {
  position: absolute;
  left: 30%;
  top: 56%;
  width: 30%;
  height: 9px;
  border-radius: 10px;
  background: var(--arena-gold);
  opacity: 0;
  z-index: 3;
}
.impact {
  position: absolute;
  right: 23%;
  top: 10%;
  font-size: 30px;
  font-weight: 900;
  color: var(--arena-gold);
  opacity: 0;
}
.battlefield.strike .fighter {
  animation: fighter-attack 0.25s ease-out;
}
.battlefield.strike .attack-trail {
  animation: trail 0.25s ease-out;
}
.battlefield.strike .impact {
  animation: impact 0.35s ease-out;
}
.attack-zone {
  text-align: center;
  padding: 4px 26px 24px;
}
.attack-zone p {
  font-size: 12px;
  min-height: 19px;
  margin: 0 0 10px;
  color: #d2e1ee;
}
.attack-button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: var(--arena-gold);
  color: #17344f;
  padding: 15px 12px;
  box-shadow: 0 5px 0 #bc9225;
}
.attack-button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #bc9225;
}
.attack-button span {
  display: block;
  font-weight: 900;
  font-size: 18px;
}
.attack-button small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.challenge {
  padding: 25px;
  background: white;
  border: 1px solid #d2deeb;
  border-radius: 14px;
  min-width: 0;
}
.challenge-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.challenge-heading h2 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
}
.shield-icon {
  font-size: 42px;
  line-height: 1;
  color: #1d64af;
}
.challenge #waiting {
  color: #587086;
  font-size: 14px;
}
.source-state {
  border-top: 1px solid #dce5ee;
  padding-top: 20px;
  margin-top: 30px;
}
.power-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #566d82;
}
.challenge blockquote {
  margin: 20px 0;
  padding-left: 17px;
  border-left: 3px solid #90b0d1;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.challenge #question {
  font-size: 13px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.answers button {
  border: 1px solid #b7cade;
  background: #eef4fb;
  color: #153c67;
  border-radius: 7px;
  padding: 10px 7px;
  font-size: 12px;
  font-weight: 700;
}
.answers button:hover:not(:disabled) {
  background: #d7e8f9;
}
.answers button.selected {
  background: #d6efdf;
  border-color: #2e7950;
}
.challenge #source {
  display: inline-block;
  font-size: 12px;
  margin-top: 15px;
}
.challenge #shield-progress,
.challenge #answer-status {
  font-size: 12px;
}
.challenge #reveal h3 {
  color: #176749;
}
.challenge #reveal p {
  font-size: 13px;
}
.event-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 24px 0;
  background: #cddae8;
  border: 1px solid #cddae8;
  border-radius: 12px;
  overflow: hidden;
}
.event-summary > div {
  display: flex;
  flex-direction: column;
  padding: 19px 22px;
  background: #fff;
}
.event-summary span {
  font-size: 11px;
  color: #577086;
}
.event-summary strong {
  font-size: 27px;
  line-height: 1.4;
  color: var(--arena-deep);
}
.ranking {
  display: flex;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid #cbd8e6;
}
.ranking h2 {
  font-size: 19px;
  margin: 0;
}
.ranking p {
  font-size: 12px;
  max-width: 300px;
  color: #5b7186;
}
.ranking ol {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ranking li {
  padding: 11px 17px;
  border-left: 4px solid #1c5da0;
  background: #e4edf7;
  min-width: 110px;
}
.ranking li strong {
  display: block;
}
.ranking li small {
  display: block;
  font-size: 10px;
}
.end {
  background: #e0eee7;
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
}
.end button {
  background: var(--arena-blue);
  color: white;
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
}
.end article {
  padding: 12px 0;
  border-top: 1px solid #b1cbbb;
}
.end article p {
  max-width: 75ch;
}
.arena-footer {
  font-size: 11px;
  color: #61778c;
  padding: 24px 0;
}
.arena-footer p {
  max-width: 100ch;
}
.arena-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-layout {
  max-width: 1000px;
}
.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}
.admin-controls button,
.queue-card button {
  border: 1px solid #a6bed5;
  background: white;
  color: #174bab;
  padding: 9px 14px;
  border-radius: 6px;
}
.queue-card {
  background: white;
  border: 1px solid #cbd9e6;
  padding: 24px;
  margin: 16px 0;
  border-radius: 12px;
}
.queue-card h3 {
  margin: 0;
  font-size: 15px;
}
.queue-card p {
  overflow-wrap: anywhere;
}
.queue-card .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.queue-card small {
  color: #5b7084;
}
.admin-layout pre {
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #e3ebf5;
  padding: 12px;
  font-size: 11px;
}
@keyframes fighter-attack {
  50% {
    transform: translateX(14px) rotate(-5deg);
  }
}
@keyframes trail {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(45px);
  }
}
@keyframes impact {
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-25px);
  }
}
@media (max-width: 850px) {
  .arena-columns {
    grid-template-columns: 1fr;
  }
  .arena-title {
    align-items: flex-start;
  }
  .arena-title p {
    font-size: 12px;
  }
  .arena-header {
    padding: 14px 20px;
    gap: 14px;
  }
  .arena-header > a:not(.arena-brand) {
    display: none;
  }
  .arena-brand span {
    font-size: 12px;
    max-width: 90px;
  }
  .arena-layout {
    padding: 23px 16px;
  }
  .challenge {
    padding: 22px;
  }
  .battlefield {
    height: 275px;
  }
  .ranking {
    display: block;
  }
  .entry {
    gap: 10px;
    padding: 22px;
    flex-wrap: wrap;
  }
  .entry select {
    margin: 10px 8px;
  }
  .entry #entry-avatar {
    margin: auto;
  }
  .event-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .connection {
    font-size: 10px;
    padding: 7px 9px;
  }
  .fighter {
    left: 5%;
    width: 150px;
  }
  .fighter #fighter-avatar {
    height: 155px;
    transform: scale(0.88);
    transform-origin: bottom center;
  }
  .boss {
    right: 5%;
    width: 155px;
  }
  .arena-title h1 {
    font-size: 32px;
  }
  .boss-health {
    padding: 20px 18px 0;
  }
  .stage-top {
    padding: 14px 18px;
  }
  .attack-zone {
    padding: 5px 18px 24px;
  }
  .event-summary > div {
    padding: 14px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .arena-page * {
    animation: none !important;
    transition: none !important;
  }
}
