.brawl-hud { display: grid; gap: 12px; }

.brawl-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.brawl-card {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 12px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.brawl-card strong { display: block; font-size: 16px; }
.brawl-card em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 8px;
}
.brawl-card small { color: #f7d117; font-weight: 800; font-size: 12px; }
.brawl-card.is-on { outline: 2px solid #f7d117; outline-offset: 2px; background: #003399; }
.brawl-card.is-lock { opacity: .48; cursor: not-allowed; }

.finger-opp-grid { display: grid; gap: 8px; margin-bottom: 12px; }
.finger-club {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.finger-club img { width: 40px; height: 40px; object-fit: contain; }
.finger-club strong, .finger-club em { display: block; }
.finger-club em { font-style: normal; color: var(--muted); font-size: 12px; }
.finger-club.is-on { outline: 2px solid rgba(247,209,23,.55); outline-offset: 2px; }
.finger-club.is-bjk.is-on { background: #111; color: #fff; }
.finger-club.is-gs.is-on { background: #c8102e; color: #f5c518; }
.finger-club.is-ts.is-on { background: #7a1530; color: #6bb3e0; }
.finger-club.is-fbn.is-on { background: #003399; color: #f7d117; }
.finger-club.is-fby.is-on { background: #f7d117; color: #003399; }
.finger-hint { color: var(--muted); margin: 0 0 14px; }
.finger-start, .finger-ghost {
  appearance: none;
  border: 0;
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.finger-start { background: #f7d117; color: #003399; width: 100%; }
.finger-start:disabled { opacity: .45; cursor: not-allowed; }
.finger-start.is-net { margin-bottom: 10px; background: #003399; color: #f7d117; box-shadow: inset 0 0 0 2px #f7d117; }
.finger-start.is-on { background: #7a1530; color: #fff; box-shadow: none; }
body.is-brawl { overflow-x: hidden; touch-action: manipulation; }
body.is-brawl .wrap,
body.is-brawl .panel,
body.is-brawl .hero-card { max-width: 100%; min-width: 0; }
.arena-net { display: grid; gap: 10px; margin: 0 0 14px; width: 100%; max-width: 100%; min-width: 0; }
.arena-net-label { margin: 0; color: #f7d117; font-size: 15px; font-weight: 800; }
.arena-net-pin {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 64px;
  border-radius: 18px;
  border: 3px solid #f7d117;
  background: #fff;
  color: #003399;
  font: 800 clamp(22px, 8vw, 36px)/1 Manrope, sans-serif;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 0 8px;
}
.arena-net-pin::placeholder { color: #9aa6c7; letter-spacing: 0.16em; }
.arena-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  touch-action: manipulation;
}
.arena-pad button {
  appearance: none;
  min-width: 0;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: #003399;
  color: #f7d117;
  font: 800 28px/1 Manrope, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.arena-pad button.is-clear {
  background: #f7d117;
  color: #003399;
  font-size: 16px;
}
.arena-pad button:active { transform: scale(.96); }
.brawl-wait {
  margin: 0;
  padding: 16px 20px;
  border-radius: 999px;
  background: #003399;
  color: #f7d117;
  font: 800 16px/1 Manrope, sans-serif;
}
.finger-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}

.brawl-match { display: grid; gap: 8px; }
.brawl-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
}
body.is-brawl-play {
  overflow: hidden;
  overscroll-behavior: none;
}
.brawl-stage {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 3 / 5;
  max-height: min(74dvh, 780px);
  border-radius: 22px;
  overflow: hidden;
  background: #07140c;
  box-shadow:
    inset 0 0 0 1px rgba(247,209,23,.4),
    inset 0 0 40px rgba(0,0,0,.35),
    0 22px 48px rgba(0,0,0,.42);
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
#arena { display: block; width: 100%; height: 100%; touch-action: none; }
.brawl-fs {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 8px;
  color: #fff;
  background: rgba(0,0,0,.45);
  cursor: pointer;
  touch-action: manipulation;
}
.brawl-fs svg { display: block; width: 100%; height: 100%; }
.brawl-fs:active { transform: scale(.94); }
.brawl-stage:fullscreen,
.brawl-stage:-webkit-full-screen,
.brawl-stage.is-fs {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}
.brawl-stage.is-fs {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.brawl-kick {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(0, 20, 80, .28);
}
.brawl-kick-go {
  appearance: none;
  border: 0;
  margin: 0;
  width: min(240px, 72%);
  height: 58px;
  border-radius: 999px;
  background: #f7d117;
  color: #003399;
  font: 800 20px/1 Manrope, sans-serif;
  letter-spacing: .02em;
  box-shadow: 0 8px 28px rgba(0, 20, 80, .35);
}
.brawl-end {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: rgba(8,12,20,.7);
  color: #fff;
  padding: 24px;
}
.brawl-end p {
  margin: 0;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: #f7d117;
}
.brawl-end strong { font-size: clamp(26px, 7vw, 40px); }
.finger-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.finger-overlay-actions .finger-start { width: auto; min-width: 120px; }
.is-hidden { display: none !important; }
body.is-brawl .wrap { gap: 14px; }
@media (max-width: 720px) {
  .brawl-cards { grid-template-columns: 1fr 1fr; }
}
