/* ===================== Design tokens ===================== */
:root {
  --bg-0: #0d0a1f;
  --bg-1: #18123a;
  --glass: rgba(22, 16, 52, 0.55);
  --glass-strong: rgba(18, 12, 44, 0.82);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #f4f1ff;
  --muted: #b5acd9;
  --primary: hsl(28, 100%, 58%);
  --primary-2: hsl(12, 92%, 55%);
  --accent: hsl(178, 80%, 48%);
  --accent-2: hsl(200, 85%, 52%);
  --danger: hsl(352, 88%, 60%);
  --good: hsl(140, 70%, 50%);
  --p0: hsl(200, 95%, 60%);
  --p1: hsl(352, 92%, 63%);
  --radius: 14px;
  --font-title: 'Lilita One', 'Outfit', system-ui, sans-serif;
  --font: 'Outfit', system-ui, -apple-system, Segoe UI, sans-serif;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; }

#game {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: linear-gradient(#2a1d5c, #e78a6a);
}

/* ===================== Screens ===================== */
.screen {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  padding: 12px calc(16px + var(--safe-r)) 12px calc(16px + var(--safe-l));
  z-index: 20;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 140, 60, .28), transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(40, 220, 210, .22), transparent 55%),
    linear-gradient(rgba(13, 10, 31, .55), rgba(13, 10, 31, .85)),
    url('assets/bg.jpg');
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
}
.screen.active { display: flex; animation: fadeIn .35s ease; }
.screen.overlay { background: rgba(8, 5, 22, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 30; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }

.menu-wrap { text-align: center; animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1); }

.logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(30px, 8vh, 64px);
  line-height: .9;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 0 #6b2a0c, 0 8px 24px rgba(0,0,0,.5);
}
.logo span {
  display: block;
  font-size: 1.45em;
  background: linear-gradient(180deg, #ffe08a 10%, var(--primary) 55%, var(--primary-2) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #6b2a0c) drop-shadow(0 10px 18px rgba(255, 110, 40, .45));
  animation: logoFloat 3.5s ease-in-out infinite;
}
@keyframes logoFloat { 50% { transform: translateY(-4px) rotate(-1deg); } }

/* Badge "Beta version" em vermelho com efeito arcade neon */
.logo-beta-badge {
  position: absolute;
  right: -16px;
  bottom: 0px;
  transform: rotate(-10deg);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 4px;
  background: radial-gradient(ellipse at center top, rgba(255, 30, 60, 0.35) 0%, rgba(26, 2, 8, 0.94) 100%);
  border: 1.5px solid #ff2b4c;
  border-radius: 6px;
  color: #ff3355;
  font-family: var(--font-title, 'Lilita One', cursive, sans-serif);
  font-size: clamp(11px, 2.3vh, 14px);
  font-weight: 900;
  letter-spacing: 1.2px;
  white-space: nowrap;
  text-shadow: 0 0 6px #ff0033, 0 0 14px rgba(255, 0, 51, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 14px rgba(255, 35, 65, 0.6), inset 0 0 10px rgba(255, 35, 65, 0.25), 0 4px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  user-select: none;
  z-index: 5;
  animation: betaBadgePulse 2.4s ease-in-out infinite;
  overflow: hidden;
}

.logo-beta-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2b4c;
  box-shadow: 0 0 8px #ff1744, 0 0 14px #ff1744;
  animation: betaDotBlink 1.2s ease-in-out infinite alternate;
}

.logo-beta-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  animation: betaSheen 3.2s ease-in-out infinite;
}

@keyframes betaBadgePulse {
  0%, 100% {
    transform: rotate(-10deg) scale(1);
    box-shadow: 0 0 12px rgba(255, 35, 65, 0.55), inset 0 0 8px rgba(255, 35, 65, 0.25), 0 4px 10px rgba(0, 0, 0, 0.6);
    border-color: #ff2b4c;
  }
  50% {
    transform: rotate(-10deg) scale(1.04);
    box-shadow: 0 0 22px rgba(255, 35, 65, 0.9), 0 0 32px rgba(255, 10, 40, 0.45), inset 0 0 12px rgba(255, 35, 65, 0.4), 0 4px 12px rgba(0, 0, 0, 0.7);
    border-color: #ff5270;
  }
}

@keyframes betaDotBlink {
  from { opacity: 0.5; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.2); }
}

@keyframes betaSheen {
  0%, 60% { left: -70%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

.tagline {
  color: #ffe0b3;
  margin: 10px 0 16px;
  font-size: clamp(11px, 2.5vh, 14px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 170, 50, 0.3);
}

.menu-buttons { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 260px; }
.menu-wrap .menu-buttons { width: min(340px, 80vw); margin: 0 auto; }

.btn {
  position: relative;
  padding: clamp(9px, 2.4vh, 14px) 22px;
  border-radius: 999px;
  font-weight: 800; font-size: clamp(14px, 3vh, 17px);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 18px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .12s ease, filter .2s ease, box-shadow .2s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { background: linear-gradient(180deg, #ffb35c, var(--primary) 45%, var(--primary-2)); border-color: rgba(255, 210, 160, .6); text-shadow: 0 1px 2px rgba(120, 40, 0, .6); box-shadow: 0 6px 22px rgba(255, 100, 40, .45), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.accent { background: linear-gradient(180deg, #6ff2e6, var(--accent) 45%, var(--accent-2)); border-color: rgba(170, 255, 250, .6); color: #062a33; box-shadow: 0 6px 22px rgba(30, 210, 220, .4), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.ghost { background: rgba(255,255,255,.06); }
.btn:disabled { opacity: .45; pointer-events: none; }

.link-btn { margin-top: 12px; color: var(--muted); text-decoration: underline; font-size: 14px; }

.panel {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: clamp(12px, 3vh, 22px) clamp(16px, 3vw, 28px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-height: 100%;
  overflow-y: auto;
  width: min(460px, 100%);
  animation: popIn .4s cubic-bezier(.2, 1.3, .4, 1);
  touch-action: pan-y;
}
.panel.wide { width: min(860px, 100%); }
.panel.center { text-align: center; }
.panel h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(20px, 5vh, 30px); letter-spacing: 1px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row-buttons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.panel.center .menu-buttons { margin-top: 14px; }

/* ----- Mobile cards ----- */
.mobile-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mcard {
  position: relative;
  padding: 8px 10px 10px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border: 2px solid rgba(255,255,255,.1);
  text-align: left;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.mcard:hover { transform: translateY(-3px); }
.mcard.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 140, 50, .25), 0 10px 30px rgba(255, 120, 40, .3); }
.mcard canvas { width: 100%; height: clamp(54px, 15vh, 96px); display: block; }
.mcard h3 { font-family: var(--font-title); font-weight: 400; font-size: 20px; letter-spacing: .5px; }
.mcard p { font-size: 11.5px; color: var(--muted); line-height: 1.25; min-height: 2.5em; margin-bottom: 4px; }
.stat { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.stat i { display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.stat i b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 4px; }

.sel-extra { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: rgba(255,255,255,.07); border-radius: 999px; padding: 3px; border: 1px solid var(--glass-border); }
.seg button { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); transition: all .2s; }
.seg button.on { background: linear-gradient(180deg, #ffb35c, var(--primary-2)); color: #fff; }

/* ----- Online ----- */
#on-choose { display: flex; flex-direction: column; gap: 12px; }
.join-row { display: flex; gap: 8px; }
.join-row input {
  flex: 1; min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.3);
  color: #fff;
  font: 800 20px var(--font);
  letter-spacing: 6px; text-align: center; text-transform: uppercase;
  outline: none;
  user-select: text; -webkit-user-select: text;
}
.join-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40, 220, 210, .25); }
.room-code {
  font-family: var(--font-title);
  font-size: clamp(36px, 10vh, 56px);
  letter-spacing: 10px;
  text-align: center;
  margin: 6px 0;
  color: #ffe08a;
  text-shadow: 0 0 24px rgba(255, 180, 60, .6);
}
.help-list { list-style: none; display: grid; gap: 7px; font-size: 14px; color: #e3ddff; }
.help-list li::before { content: '✦ '; color: var(--primary); }

/* ===================== HUD ===================== */
#hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
#hud > * { pointer-events: auto; }

.hud-top {
  position: absolute; top: 6px; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r));
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start;
  pointer-events: none;
}
.hud-team-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  pointer-events: none;
  width: 100%;
  max-width: 220px;
}
.hud-team-cards.right {
  align-items: flex-end;
  margin-left: auto;
}
.player-card {
  justify-self: start;
  width: 220px;
  max-width: 100%;
  padding: 5px 10px 6px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .3s, border-color .3s;
}
.player-card.right { justify-self: end; text-align: right; }
.player-card.turn { border-color: rgba(255, 220, 120, .8); box-shadow: 0 0 16px rgba(255, 200, 80, .45); }
.pc-name { font-weight: 800; font-size: 12px; display: block; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pc0 .pc-name { color: var(--p0); }
#pc1 .pc-name { color: var(--p1); }
.hp-bar { height: 9px; border-radius: 6px; background: rgba(0,0,0,.45); overflow: hidden; }
.hp-fill { height: 100%; width: 100%; border-radius: 6px; transition: width .5s ease; }
#pc0-hp { background: linear-gradient(90deg, #2a7cff, var(--p0)); }
#pc1-hp { background: linear-gradient(90deg, #ff3a6a, #ff8a5b); margin-left: auto; }

.hud-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wind {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  font-weight: 800;
}
.wind-arrow { display: inline-block; color: var(--accent); font-size: 16px; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); text-shadow: 0 0 10px rgba(40, 220, 210, .8); }
.wind-val { min-width: 18px; text-align: center; font-size: 15px; }
.wind-current { display: flex; align-items: center; gap: 6px; }
.wind-history { display: flex; align-items: center; gap: 4px; opacity: 0.55; transform: scale(0.85); transform-origin: left center; border-left: 1px solid var(--glass-border); padding-left: 6px; margin-left: 2px; }
.turn-info { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.35); }
.timer { min-width: 22px; text-align: center; font-weight: 800; color: #ffe08a; }
.timer.low { color: var(--danger); animation: pulse .5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.25); } }

/* Weather Track HUD */
.weather-hud {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 16, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 2px 8px 2px 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  user-select: none;
}
.wh-active {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
  border-radius: 999px;
  padding: 1px 7px 1px 5px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  transition: all .25s ease;
}
.wh-active.wh-force { background: rgba(255, 200, 0, 0.25); border-color: #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.wh-active.wh-tornado { background: rgba(56, 189, 248, 0.25); border-color: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.4); }
.wh-active.wh-black { background: rgba(147, 51, 234, 0.3); border-color: #a855f7; box-shadow: 0 0 8px rgba(168, 85, 247, 0.4); }
.wh-active.wh-thunder { background: rgba(0, 229, 255, 0.25); border-color: #00e5ff; box-shadow: 0 0 8px rgba(0, 229, 255, 0.4); }
.wh-badge { font-size: 8px; font-weight: 800; background: rgba(255,255,255,0.22); color: #fff; padding: 1px 4px; border-radius: 4px; letter-spacing: 0.5px; }
.wh-icon { font-size: 13px; line-height: 1; }
.wh-name { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; color: #fff; font-family: var(--font-title); }
.wh-turns { font-size: 9px; font-weight: 800; color: #ffd700; background: rgba(0,0,0,0.5); padding: 1px 5px; border-radius: 999px; margin-left: 1px; }
.wh-next-box { display: flex; align-items: center; gap: 4px; padding-left: 2px; }
.wh-arrow { font-size: 9px; color: #94a3b8; }
.wh-next-list { display: flex; align-items: center; gap: 3px; }
.wh-next-item {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  opacity: 0.85;
  transition: transform .2s;
}
.wh-next-item:hover { transform: scale(1.15); opacity: 1; }

#minimap {
  position: absolute; top: 62px; right: calc(8px + var(--safe-r));
  width: 150px; height: 68px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(10, 8, 30, .45);
  pointer-events: none;
}
/* Barra de Controles Rápidos do HUD (Pausa, Centralizar Câmera, Áudio) */
.hud-controls-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  margin: 2px 0;
  z-index: 30;
}
.icon-btn {
  position: static;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  pointer-events: auto;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
#btn-pause { position: static; }
#btn-center { position: static; font-size: 16px; }
.hud-bgm-wrap {
  position: relative;
  top: auto;
  left: auto;
  z-index: 45;
}
.hud-bgm-wrap .icon-btn {
  position: static;
  font-size: 14px;
}
#btn-hud-bgm.muted { opacity: 0.55; filter: grayscale(1); }

.hud-bottom {
  position: absolute; bottom: calc(6px + var(--safe-b)); left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.hud-bottom > * { pointer-events: auto; }
.hud-bottom.disabled { opacity: .45; }
.hud-bottom.disabled .ctl, .hud-bottom.disabled .fire-btn, .hud-bottom.disabled .shot-btn { pointer-events: none; }

.pad { display: flex; gap: 10px; align-items: flex-end; }
.ctl {
  width: clamp(54px, 15vh, 70px); height: clamp(54px, 15vh, 70px);
  border-radius: 50%;
  font-size: 22px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(255,255,255,.06) 60%), var(--glass);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .08s, background .15s;
}
.ctl.small { width: clamp(42px, 11.5vh, 54px); height: clamp(42px, 11.5vh, 54px); font-size: 16px; }
.ctl.pressed, .ctl:active { transform: scale(.92); background: radial-gradient(circle at 35% 30%, rgba(255, 220, 160, .5), rgba(255, 140, 50, .25) 60%), var(--glass); }
.angle-pad { display: flex; flex-direction: column; gap: 8px; }

.fire-btn {
  width: clamp(76px, 22vh, 104px); height: clamp(76px, 22vh, 104px);
  border-radius: 50%;
  font-family: var(--font-title); font-size: clamp(18px, 5vh, 24px); letter-spacing: 1px;
  color: #fff; text-shadow: 0 2px 0 #7a1d05;
  background: radial-gradient(circle at 35% 28%, #ffd38a, var(--primary) 45%, #c02a0c 100%);
  border: 3px solid rgba(255, 230, 180, .7);
  box-shadow: 0 0 0 5px rgba(255, 120, 40, .2), 0 10px 26px rgba(255, 80, 20, .55);
  transition: transform .1s;
}
.fire-btn.charging { transform: scale(.93); animation: fireGlow .35s infinite alternate; }
@keyframes fireGlow { to { box-shadow: 0 0 0 10px rgba(255, 160, 40, .35), 0 0 40px rgba(255, 120, 20, .9); } }

.center-panel {
  flex: 1; max-width: 420px;
  padding: 6px 12px 8px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-row { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.angle-val { font-weight: 800; font-size: 17px; color: #fff; min-width: 32px; }
.angle-last { font-size: 11.5px; color: #ffd27a; font-weight: 800; min-width: 24px; margin-left: 2px; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.mini-bar { position: relative; flex: 1; height: 13px; border-radius: 7px; background: rgba(0,0,0,.4); overflow: hidden; }
.mini-bar > div { height: 100%; width: 100%; background: linear-gradient(90deg, #f7c843, #8fe05a); transition: width .1s; }
.mini-bar span { position: absolute; inset: 0; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px #000; }

.power-bar {
  position: relative;
  height: 18px;
  border-radius: 9px;
  background: rgba(0,0,0,.5);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  cursor: crosshair;
  touch-action: manipulation;
  transition: border-color .15s, box-shadow .15s;
}
.power-bar:hover {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}
.power-fill { height: 100%; width: 0; background: linear-gradient(90deg, #ffe066, #ff9a3c 50%, #ff3d3d); box-shadow: 0 0 12px rgba(255, 120, 40, .8); pointer-events: none; }
.power-last { position: absolute; top: -2px; bottom: -2px; width: 3px; left: 0; background: #fff; box-shadow: 0 0 6px #fff; border-radius: 2px; opacity: 0; transition: left .2s; pointer-events: none; }
.power-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.25) calc(10% - 1px) 10%); pointer-events: none; }

.shot-row { display: flex; gap: 6px; }
.shot-btn {
  position: relative; overflow: hidden;
  flex: 1; height: 28px; border-radius: 9px;
  font-weight: 800; font-size: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-border);
  transition: all .15s;
}
.shot-btn.active { background: linear-gradient(180deg, #ffb35c, var(--primary-2)); border-color: #ffd5a0; box-shadow: 0 0 12px rgba(255, 120, 40, .5); }
.shot-btn.ss i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), #fff); transition: width .4s; }
.shot-btn.ss.locked { opacity: .5; }
.shot-btn.ss.ready:not(.active) { animation: ssReady 1s infinite alternate; }
@keyframes ssReady { to { box-shadow: 0 0 14px rgba(40, 230, 220, .8); border-color: var(--accent); } }

.toast {
  position: absolute; top: 38%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  font-family: var(--font-title); font-size: clamp(26px, 8vh, 46px); letter-spacing: 1px;
  color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 30px rgba(255, 160, 60, .8);
  opacity: 0; pointer-events: none;
  white-space: nowrap;
  transition: opacity .25s, transform .35s cubic-bezier(.2, 1.6, .4, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.result-title { font-size: clamp(34px, 10vh, 54px) !important; background: linear-gradient(180deg, #ffe08a, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-title.lose { background: linear-gradient(180deg, #d7d2ff, #7a6fb5); -webkit-background-clip: text; background-clip: text; }

/* ===================== GUNTOUR ROOM LOBBY ===================== */
.online-name-box { margin-bottom: 14px; text-align: left; }
.gb-input-nick { width: 100%; margin-top: 5px; padding: 10px 14px; background: rgba(0,0,0,.5); border: 1px solid var(--glass-border); border-radius: 8px; color: #fff; font-family: var(--font); font-size: 15px; font-weight: 600; outline: none; }
.gb-input-nick:focus { border-color: var(--primary); }

.gb-room-window {
  width: min(1120px, 98vw);
  max-width: 1120px;
  height: min(680px, 96vh);
  background: linear-gradient(180deg, #182346 0%, #0d1226 100%);
  border: 2px solid #365099;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,.7), inset 0 0 15px rgba(45, 85, 185, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* Topbar */
.gb-room-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: linear-gradient(180deg, #273b75 0%, #152249 100%);
  border-bottom: 2px solid #3a55a4;
  gap: 10px;
  flex-shrink: 0;
}
.gb-room-weather {
  display: flex;
  gap: 6px;
  background: rgba(8, 12, 28, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}
.gb-w-icon {
  font-size: 15px;
  opacity: 0.35;
  filter: grayscale(0.85);
  transition: all .2s cubic-bezier(.3, 1.4, .5, 1);
  cursor: pointer;
  user-select: none;
  padding: 1px 3px;
  border-radius: 4px;
}
.gb-w-icon:hover {
  opacity: 0.8;
  transform: scale(1.15);
}
.gb-w-icon.active {
  opacity: 1;
  filter: drop-shadow(0 0 6px #00e5ff) grayscale(0);
  transform: scale(1.2);
  background: rgba(0, 229, 255, 0.15);
}
.gb-w-icon#gb-weather-thor {
  cursor: default;
}

.gb-room-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gb-meta-line { display: flex; align-items: center; gap: 10px; }
.gb-meta-title { font-family: var(--font-title); font-size: 16px; color: #ffe680; letter-spacing: 0.5px; }
.gb-code-box {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.4); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255, 215, 0, 0.4);
}
.gb-code-lbl { font-size: 10px; font-weight: 800; color: #aaa; }
.gb-code-val { font-family: var(--font-title); font-size: 15px; color: #ffd700; letter-spacing: 1px; }
.gb-btn-copy { font-size: 11px; font-weight: 700; padding: 2px 6px; background: rgba(255,215,0,.2); color: #ffe57f; border: 1px solid #ffd700; border-radius: 4px; cursor: pointer; }
.gb-btn-copy:hover { background: rgba(255,215,0,.4); }

.gb-meta-options { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #c4d1f2; }
.gb-opt-group { display: flex; align-items: center; gap: 5px; }
.gb-opt-group label { font-weight: 700; color: #9bb1e6; }
.gb-select { background: #0c142b; border: 1px solid #365099; color: #fff; padding: 3px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; outline: none; }
.gb-tag-opt { background: #1c2c5c; padding: 2px 6px; border-radius: 4px; font-weight: 800; color: #62d8ff; border: 1px solid #2d4588; }

.gb-room-topright {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.btn-room-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border: 1.5px solid #ef4444;
  color: #ffffff !important;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}
.btn-room-close:hover {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border-color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  transform: scale(1.03);
}
.gb-badge-server { font-size: 10px; font-weight: 800; color: #4de086; background: rgba(16, 75, 40, .4); border: 1px solid #28a75a; padding: 3px 8px; border-radius: 4px; }

/* Main Room Layout */
.gb-room-main {
  flex: 1;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  min-height: 0;
  overflow: hidden;
}

/* Team Panels (A and B) */
.gb-team-panel {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  background: rgba(12, 18, 38, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.gb-team-header {
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.team-a-header { background: linear-gradient(90deg, #8a1d2e, #4a1019); color: #ffb8c3; border-bottom: 2px solid #b8283f; }
.team-b-header { background: linear-gradient(90deg, #1b3d82, #102148); color: #b8d2ff; border-bottom: 2px solid #2b5bc7; }

.gb-slots-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  overflow-y: auto;
}

/* Slot Styling (GunTour Chevrons) */
.gb-slot {
  height: 60px;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  transition: all .2s;
  overflow: hidden;
}
.team-a-slot {
  background: linear-gradient(90deg, #44111a 0%, #611825 70%, #7d1c2e 100%);
  border: 1.5px solid #a8263d;
}
.team-b-slot {
  background: linear-gradient(270deg, #0e1e44 0%, #17316b 70%, #1f4294 100%);
  border: 1.5px solid #2e5dc4;
}

.gb-slot-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 4px 8px;
}
.gb-slot-inner.occupied { justify-content: flex-start; gap: 8px; }
.gb-slot-canvas-wrap {
  width: 68px;
  height: 48px;
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gb-slot-canvas-wrap canvas { width: 100%; height: 100%; }

.gb-slot-details { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.gb-slot-name-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.gb-slot-crown { font-size: 12px; line-height: 1; flex-shrink: 0; }
.gb-slot-rank { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.gb-slot-rank .gb-rank-icon-img,
.gb-slot-rank-icon { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important; object-fit: contain; vertical-align: middle; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)); }
.gb-slot-name { font-weight: 800; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-slot-me { font-size: 9px; font-weight: 700; color: #ffd700; background: rgba(255,215,0,0.2); padding: 1px 4px; border-radius: 3px; flex-shrink: 0; }

.gb-slot-subline { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #c4d0ec; }
.gb-slot-mob { font-weight: 700; color: #ffd27d; }
.gb-slot-ping { font-weight: 800; color: #38ef7d; font-size: 9px; }

.gb-slot-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gb-slot-badge { font-family: var(--font-title); font-size: 11px; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.5px; }
.gb-slot-badge.ready { background: #167a3a; color: #62ff9f; border: 1px solid #2de26f; box-shadow: 0 0 8px rgba(45, 226, 111, 0.4); }
.gb-slot-badge.waiting { background: #614d10; color: #ffd56b; border: 1px solid #c29d2b; }
.gb-slot-badge.host { background: #66410e; color: #ffe685; border: 1px solid #f0a526; }

/* Empty Slot */
.gb-slot-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gb-btn-join-slot {
  width: 90%;
  padding: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 5px;
  color: #c0cde8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
}
.gb-btn-join-slot:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffd700;
  color: #fff;
  transform: scale(1.02);
}
.gb-slot-locked { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0.35; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #7f8fa6; }

/* Center Panel (Start & Quick Controls) */
.gb-center-panel {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gb-btn-start {
  width: 82px;
  height: 82px;
  background: radial-gradient(circle at 35% 25%, #d146db 0%, #891eb3 60%, #520b75 100%);
  border: 3px solid #ff77f3;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(209, 70, 219, 0.6), inset 0 2px 4px rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.gb-btn-start:hover { transform: scale(1.06); box-shadow: 0 0 24px rgba(255, 119, 243, 0.85); }
.gb-btn-start:active { transform: scale(0.96); }
.gb-start-f5 { font-size: 10px; font-weight: 800; color: #ffd700; text-shadow: 0 1px 2px #000; }
.gb-start-txt { font-family: var(--font-title); font-size: 17px; color: #ffff55; letter-spacing: 1px; text-shadow: 0 2px 0 #4a0052, 0 0 6px #ffea00; }
.gb-start-chick { font-size: 16px; margin-top: -2px; }

.gb-btn-start.is-ready {
  background: radial-gradient(circle at 35% 25%, #2ad581 0%, #158b4f 60%, #0a542e 100%);
  border-color: #55ffaa;
  box-shadow: 0 0 15px rgba(42, 213, 129, 0.6);
}
.gb-btn-start.is-ready .gb-start-txt { color: #fff; text-shadow: 0 2px 0 #053b1e; }

.gb-quick-bar { display: flex; flex-direction: column; gap: 8px; width: 100%; align-items: center; }
.gb-qbtn {
  width: 74px;
  padding: 5px 6px;
  background: linear-gradient(180deg, #2d427d 0%, #182650 100%);
  border: 1px solid #4a68b5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: all .15s;
}
.gb-qbtn:hover { background: linear-gradient(180deg, #3d59a8 0%, #203572 100%); border-color: #ffd700; transform: translateY(-1px); }
.qbtn-f { font-size: 9px; font-weight: 800; color: #ffd700; }
.qbtn-icon { font-size: 12px; }
.qbtn-text { font-size: 11px; font-weight: 800; color: #fff; }

/* Sidebar (Mobile Stats & Item Selection) */
.gb-room-sidebar {
  width: 270px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gb-side-card {
  background: rgba(14, 21, 45, 0.7);
  border: 1px solid #2a3c74;
  border-radius: 8px;
  padding: 8px 10px;
}
.gb-card-title {
  font-family: var(--font-title);
  font-size: 12px;
  color: #ffd27a;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-align: left;
}
.gb-card-subtitle {
  font-size: 10px;
  font-weight: 800;
  color: #9ab0e6;
  margin: 6px 0 3px;
  text-align: left;
}

.gb-side-canvas-box {
  width: 100%;
  height: 60px;
  background: rgba(0,0,0,0.35);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.gb-side-canvas-box canvas { width: 100%; height: 100%; }

.gb-stat-list { display: flex; flex-direction: column; gap: 3px; }
.gb-stat-row { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: #c4d0ec; }
.gb-stat-lbl { width: 78px; display: inline-flex; align-items: center; gap: 4px; text-align: left; white-space: nowrap; }
.gb-stat-icon { width: 13px; height: 13px; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.gb-stat-bar { flex: 1; height: 9px; background: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.gb-stat-fill { height: 100%; width: 50%; border-radius: 3px; transition: width .2s; }
#stat-atk { background: linear-gradient(90deg, #ff7b00, #ff2a2a); }
#stat-def { background: linear-gradient(90deg, #2a94ff, #00d4ff); }
#stat-dest { background: linear-gradient(90deg, #c47c38, #ffb049); }
#stat-hp { background: linear-gradient(90deg, #2cd960, #a0ff3a); }
#stat-spd { background: linear-gradient(90deg, #d442ff, #ff73e6); }

/* Equipped Items */
.gb-equipped-row { display: flex; gap: 6px; justify-content: flex-start; margin-bottom: 6px; }
.gb-equipped-row .item-slot {
  width: 38px; height: 38px;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid #2d4588;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  cursor: pointer; transition: all .15s;
  box-sizing: border-box;
}
.gb-equipped-row .item-slot:hover { border-color: #ffd700; transform: scale(1.05); }
.gb-equipped-row .item-slot.filled { background: rgba(255,255,255,0.08); border-color: #4a68b5; }
.gb-equipped-row .item-slot.item2-slot { border-color: #e040fb; }
.gb-equipped-row .item-slot.item2-slot.filled { border-color: #ff54a2; background: rgba(224, 64, 251, 0.15); }

.gb-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 6px; }
.gb-pgrid .item-btn {
  width: 100%; height: 36px;
  background: rgba(14, 21, 45, 0.9);
  border: 1.5px solid #2d4588;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  cursor: pointer; transition: all .15s;
  padding: 2px;
  box-sizing: border-box;
}
.gb-pgrid .item-btn:hover { border-color: #00e5ff; background: rgba(24, 40, 85, 1); transform: translateY(-1px); }
.gb-pgrid .item-btn.i2 { border-color: #7b1fa2; }
.gb-pgrid .item-btn.i2:hover { border-color: #e040fb; }

.item-icon {
  width: 26px; height: 26px;
  max-width: 90%; max-height: 90%;
  display: block; margin: auto;
  pointer-events: none;
}
.item-txt { font-weight: 800; font-size: 11px; color: #fff; }

/* Room Footer (Chat) */
.gb-room-footer {
  padding: 6px 12px 8px;
  background: #0f162e;
  border-top: 1.5px solid #253768;
  flex-shrink: 0;
}
.gb-chat-container { display: flex; flex-direction: column; gap: 4px; }
.gb-room-chat-log {
  height: 52px;
  max-height: 52px;
  overflow-y: auto;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gb-chat-tag-team-a { color: #ff546e; font-weight: 800; }
.gb-chat-tag-team-b { color: #4da6ff; font-weight: 800; }
.gb-chat-tag-sys { color: #ffd700; font-weight: 800; }
.gb-chat-tag-me { color: #55ff99; font-weight: 800; }

.gb-room-footer .chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.gb-room-footer .chat-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  height: 32px;
  box-sizing: border-box;
  transition: border-color .2s;
}
.gb-room-footer .chat-input-row input:focus {
  border-color: #3b82f6;
  background: rgba(0, 0, 0, 0.65);
}
.gb-room-footer .chat-input-row input::placeholder {
  color: #718096;
}
.gb-room-footer .chat-input-row button {
  height: 32px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-height: 700px) {
  .gb-room-window {
    height: 98vh;
  }
  .gb-slot {
    height: 52px;
  }
  .gb-slot-canvas-wrap {
    width: 58px;
    height: 40px;
  }
  .gb-room-chat-log {
    height: 40px;
    max-height: 40px;
  }
}

/* Mobile Selector Modal */
.gb-mobile-modal-panel {
  width: min(880px, 96vw);
  max-width: 880px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px;
}
.gb-modal-cards-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}
.highlight-pulse {
  animation: hlPulse 1.2s ease-out;
}
@keyframes hlPulse {
  0%, 100% { box-shadow: none; border-color: #2a3c74; }
  30%, 70% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.95); border-color: #00e5ff; }
}

/* ===================== HUD ADDITIONS ===================== */
.turn-order { display: flex; gap: 4px; margin-top: 4px; padding-bottom: 12px; }
.to-icon { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; background: #333; opacity: 0.6; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.to-delay-text { position: absolute; bottom: -13px; left: -50%; width: 200%; text-align: center; font-size: 9px; font-weight: 800; color: #ffd27a; text-shadow: 0 1px 2px #000; pointer-events: none; }
.to-icon.active { opacity: 1; border-color: #fff; transform: scale(1.1); }
.combat-log { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; visibility: hidden !important; pointer-events: none !important; }
.item-bar { display: flex; gap: 4px; margin-left: auto; }
.item-use-btn {
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 2px;
}
.item-use-btn .item-icon { width: 22px; height: 22px; }
.item-use-btn.used { opacity: 0.3; pointer-events: none; }
.item-use-btn.active { border-color: var(--primary); box-shadow: 0 0 8px var(--primary); }

/* ===================== Habilidades dos Avatares & Passar Turno ===================== */
.skill-btn {
  position: relative;
  width: 32px; height: 30px; border-radius: 6px;
  background: linear-gradient(180deg, #ff9e42, #d83a15);
  border: 1px solid rgba(255, 230, 160, 0.6);
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(255, 140, 40, 0.45);
  cursor: pointer; transition: all .15s;
  user-select: none;
}
.skill-btn:active { transform: scale(0.92); }
.skill-btn.used {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none; opacity: 0.4; cursor: not-allowed;
}
.skill-badge {
  position: absolute; top: -5px; right: -5px;
  background: #00e5ff; color: #000;
  font-size: 8px; font-weight: 900;
  padding: 1px 3px; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  pointer-events: none;
}
.skill-btn.used .skill-badge {
  background: #555; color: #aaa;
}

.pass-btn {
  width: 44px; height: 30px; border-radius: 6px;
  background: linear-gradient(180deg, #3f5573, #212d3d);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-family: Outfit, sans-serif;
  font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  user-select: none;
}
.pass-btn:hover { background: linear-gradient(180deg, #4f6b91, #2b3a4f); }
.pass-btn:active { transform: scale(0.92); }

.wind-lock {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 900;
  color: #ffd27a; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 210, 120, 0.4);
  border-radius: 4px; padding: 1px 4px;
  margin-left: 4px;
  animation: windLockPulse 1.5s infinite alternate;
}
.wind-lock.hidden { display: none; }
@keyframes windLockPulse {
  to { border-color: #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
}

/* Modais de Habilidades */
.skill-modal {
  position: fixed; inset: 0;
  background: rgba(10, 8, 22, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 120;
  padding: 16px;
  animation: modalFadeIn .2s ease;
}
.skill-modal.hidden { display: none; }
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.skill-modal-content {
  background: linear-gradient(180deg, #221e38 0%, #161326 100%);
  border: 2px solid #ffaa44;
  border-radius: 14px;
  padding: 20px 24px;
  width: 100%; max-width: 380px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(255,160,50,0.3);
  color: #fff;
}
.skill-modal-content h3 {
  margin: 0 0 6px 0; font-family: 'Lilita One', sans-serif;
  font-size: 20px; letter-spacing: 0.5px; color: #ffd27a;
}
.skill-modal-content p {
  margin: 0 0 14px 0; font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.3;
}
.skill-target-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px; max-height: 190px; overflow-y: auto;
}
.skill-target-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-family: Outfit, sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .15s;
}
.skill-target-btn:hover {
  background: rgba(255, 170, 60, 0.25); border-color: #ffaa44;
  transform: translateX(3px);
}
.skill-modal-cancel {
  padding: 8px 18px; border-radius: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #ddd; font-family: Outfit, sans-serif; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all .15s;
}
.skill-modal-cancel:hover { background: rgba(255,255,255,0.18); color: #fff; }

.wind-picker-dir { display: flex; gap: 10px; margin: 12px 0; }
.wind-dir-btn {
  flex: 1; padding: 10px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-family: Outfit, sans-serif; font-weight: 800; font-size: 13px;
  cursor: pointer; transition: all .15s;
}
.wind-dir-btn.active {
  background: linear-gradient(180deg, #ffaa33, #e66a00);
  border-color: #ffd27a; box-shadow: 0 0 10px rgba(255, 170, 50, 0.5);
}
.wind-picker-slider-wrap {
  display: flex; flex-direction: column; gap: 6px; margin: 12px 0;
  font-size: 13px; font-weight: 700; text-align: left;
}
.wind-picker-slider-wrap input[type=range] {
  width: 100%; accent-color: #ffaa33; cursor: pointer;
}
.wind-preview-box {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px 0 16px 0; font-size: 24px; font-weight: 900; color: #ffd27a;
}
.wind-preview-arrow { display: inline-block; transition: transform .2s; }
.skill-modal-actions { display: flex; gap: 10px; }
.skill-modal-confirm {
  flex: 1; padding: 10px 14px; border-radius: 8px;
  background: linear-gradient(180deg, #38d662, #188636);
  border: none; color: #fff; font-family: Outfit, sans-serif;
  font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}
.skill-modal-confirm:hover { background: linear-gradient(180deg, #48ea74, #219d42); }

/* ===================== Rotate hint ===================== */
#rotate-hint { display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg-0); flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: var(--muted); font-weight: 600; }
.phone-icon { width: 50px; height: 86px; border: 4px solid var(--primary); border-radius: 10px; animation: rot 2s ease-in-out infinite; }
@keyframes rot { 0%, 20% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

@media (orientation: portrait) and (max-width: 820px) {
  #rotate-hint { display: flex; }
}

@media (max-height: 380px) {
  .mcard p { display: none; }
  .center-panel { gap: 4px; padding: 4px 10px 6px; }
  #minimap { top: 56px; width: 120px; height: 54px; }
  .icon-btn { top: 56px; }
}
@media (max-width: 640px) {
  .mobile-cards { gap: 6px; }
  .mcard { padding: 6px; }
}

/* ===================== CATEGORIZED MOBILES MODAL (GUNTOUR STYLE) ===================== */
.gb-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 2px solid #2d4588;
  padding-bottom: 8px;
}
.gb-modal-title {
  font-family: var(--font-title);
  color: #00e5ff;
  font-size: 20px;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.gb-modal-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid #253b75;
  flex-shrink: 0;
  background: inherit;
  z-index: 10;
}
.gb-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 820px) {
  .gb-cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
  }
  .gb-cat-mobiles {
    gap: 4px;
    padding: 4px;
  }
  .gb-mob-cell {
    padding: 4px 2px;
  }
  .gb-mob-cell canvas {
    width: 72px;
    height: 42px;
  }
  .gb-mob-cell-name {
    font-size: 11px;
  }
  .gb-btn-rnd {
    font-size: 13px;
    padding: 8px 14px;
  }
}

@media (max-width: 900px) {
  .gb-room-main {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 14px;
  }
  .gb-room-sidebar {
    min-width: 260px;
    flex-shrink: 0;
  }
  .gb-team-panel {
    min-width: 230px;
    flex-shrink: 0;
  }
  .gb-center-panel {
    flex-shrink: 0;
  }
  .palette-grid.gb-pgrid {
    gap: 5px;
  }
  .palette-grid.gb-pgrid .item-btn {
    min-height: 38px;
    font-size: 11px;
    font-weight: 800;
  }
}

@media (max-width: 820px), (max-height: 500px) {
  .hud-bottom {
    gap: 6px;
    bottom: calc(4px + var(--safe-b));
    left: calc(4px + var(--safe-l));
    right: calc(4px + var(--safe-r));
  }
  .ctl {
    width: clamp(44px, 12vh, 58px);
    height: clamp(44px, 12vh, 58px);
    font-size: 18px;
  }
  .ctl.small {
    width: clamp(36px, 9.5vh, 46px);
    height: clamp(36px, 9.5vh, 46px);
    font-size: 14px;
  }
  .fire-btn {
    width: clamp(66px, 17vh, 86px);
    height: clamp(66px, 17vh, 86px);
    font-size: clamp(15px, 3.8vh, 20px);
  }
  .center-panel {
    padding: 4px 8px 6px;
    gap: 4px;
    max-width: 360px;
  }
  .power-bar {
    height: 16px;
  }
  .shot-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .item-use-btn {
    width: 28px;
    height: 28px;
  }
  .skill-btn, .pass-btn {
    height: 28px;
  }
  .combat-log {
    display: none !important;
    height: 0 !important;
  }
}
.gb-cat-col {
  background: rgba(18, 30, 60, 0.85);
  border: 1.5px solid #2d4785;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gb-cat-header {
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.gb-cat-col.dano .gb-cat-header { background: linear-gradient(180deg, #992222, #5a1414); }
.gb-cat-col.suporte .gb-cat-header { background: linear-gradient(180deg, #1b7a4f, #0e442c); }
.gb-cat-col.tank .gb-cat-header { background: linear-gradient(180deg, #2d5a9c, #16305a); }
.gb-cat-col.escavacao .gb-cat-header { background: linear-gradient(180deg, #9c601a, #57330a); }
.gb-cat-col.utilidade .gb-cat-header { background: linear-gradient(180deg, #7c2eb0, #461466); }

/* --- Suporte para 6 colunas quando GM está presente --- */
.gb-cat-grid.has-gm {
  grid-template-columns: repeat(6, 1fr) !important;
}
.gb-mobile-modal-panel.has-gm {
  width: min(1080px, 98vw) !important;
  max-width: 1080px !important;
}
.gb-gm-title-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 8px;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  display: inline-block;
}
@media (max-width: 980px) {
  .gb-cat-grid.has-gm {
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)) !important;
  }
}

.gb-cat-col.legendary-gm {
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(138, 63, 252, 0.25) !important;
  background: linear-gradient(180deg, rgba(38, 18, 58, 0.95), rgba(18, 12, 32, 0.98)) !important;
}
.gb-cat-col.legendary-gm .gb-cat-header {
  background: linear-gradient(180deg, #d4af37, #800080) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px #000, 0 0 10px #ffd700 !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
}
.gb-cat-col.legendary-gm .gb-cat-mobiles {
  gap: 12px;
}
.gb-mob-cell.gm-legendary-card {
  border: 2px solid #a855f7 !important;
  background: linear-gradient(145deg, rgba(45, 18, 70, 0.95), rgba(20, 10, 35, 0.98)) !important;
}
.gb-mob-cell.gm-legendary-card:hover {
  border-color: #ffd700 !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.6), inset 0 0 8px rgba(255, 215, 0, 0.25) !important;
  transform: translateY(-2px);
}
.gb-mob-cell.gm-legendary-card.selected {
  border-color: #ff007f !important;
  box-shadow: 0 0 22px rgba(255, 0, 127, 0.75), inset 0 0 12px rgba(255, 215, 0, 0.35) !important;
}
.gb-mob-cell.gm-legendary-card .gb-mob-cell-role {
  color: #ffd700 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.gb-cat-mobiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
.gb-mob-cell {
  background: rgba(10, 18, 38, 0.9);
  border: 2px solid #263b6d;
  border-radius: 8px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.gb-mob-cell:hover {
  border-color: #00e5ff;
  transform: translateY(-2px);
  background: rgba(18, 32, 68, 1);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25);
}
.gb-mob-cell.selected {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4), 0 4px 14px rgba(255, 215, 0, 0.3);
}
.gb-mob-cell canvas {
  width: 90px;
  height: 52px;
  display: block;
}
.gb-mob-cell-name {
  font-family: var(--font-title);
  font-size: 13px;
  color: #fff;
  margin-top: 4px;
}
.gb-mob-cell-role {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ===================== TEAM LIVES & HUD EXTRAS ===================== */
.team-lives-header {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.team-lives-header.team-a {
  background: rgba(255, 40, 60, 0.25);
  border: 1px solid rgba(255, 40, 60, 0.5);
  color: #ff94a5;
}
.team-lives-header.team-b {
  background: rgba(40, 120, 255, 0.25);
  border: 1px solid rgba(40, 120, 255, 0.5);
  color: #8ac0ff;
}
.lives-hearts {
  font-size: 9px;
  letter-spacing: 1px;
}
.pc-status-tag {
  font-size: 9.5px;
  font-weight: 800;
  min-height: 11px;
  margin-top: 2px;
}
.pc-status-tag.waiting { color: #ffd27a; }
.pc-status-tag.ko { color: #ff4d4d; }

/* SS Cooldown Badge */
.shot-btn.ss { position: relative; }
.shot-btn.ss[data-cd]::after {
  content: attr(data-cd);
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff2a2a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  border: 1.5px solid #fff;
}

/* Item 2 Locked Badge */
#item-btn-3.locked {
  position: relative;
  opacity: 0.75;
}
.item2-lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #ffd27a;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  pointer-events: none;
}
.item2-lock-dmg {
  font-size: 7px;
  font-family: var(--font-body);
  color: #ffffff;
  line-height: 1;
  margin-top: 1px;
}

/* ===================== COIN FLIP MODAL (CARA OU COROA) ===================== */
.coin-flip-overlay {
  z-index: 120;
  pointer-events: none;
  background: rgba(6, 4, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.coin-flip-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  perspective: 1200px;
  max-width: 90vw;
}
.coin-flip-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.coin-badge {
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}
.coin-title {
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 24px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.6), 0 4px 8px rgba(0,0,0,0.8);
  margin: 0;
  letter-spacing: 1px;
}
.coin-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.coin-stage {
  width: 130px;
  height: 130px;
  perspective: 1200px;
  margin: 8px 0;
}
.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  transition: transform 2.2s cubic-bezier(0.15, 0.85, 0.35, 1.05);
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.4), inset 0 0 8px rgba(0,0,0,0.6);
}

/* Front - Team A (Red) */
.coin-front {
  background: radial-gradient(circle at 35% 35%, #ff5252 0%, #dc2626 55%, #7f1d1d 100%);
  border: 5px solid #fecaca;
  transform: rotateY(0deg);
}

/* Back - Team B (Blue) */
.coin-back {
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0284c7 55%, #0c4a6e 100%);
  border: 5px solid #bae6fd;
  transform: rotateY(180deg);
}

.coin.landed-a {
  box-shadow: 0 0 35px #ef4444, 0 0 65px rgba(239, 68, 68, 0.6);
  animation: coinGlowA 1s infinite alternate;
}
.coin.landed-b {
  box-shadow: 0 0 35px #0ea5e9, 0 0 65px rgba(14, 165, 233, 0.6);
  animation: coinGlowB 1s infinite alternate;
}

@keyframes coinGlowA {
  0% { transform: rotateY(1800deg) scale(1.15); box-shadow: 0 0 25px #ef4444; }
  100% { transform: rotateY(1800deg) scale(1.22); box-shadow: 0 0 50px #ff6b6b, 0 0 80px rgba(239, 68, 68, 0.8); }
}

@keyframes coinGlowB {
  0% { transform: rotateY(1980deg) scale(1.15); box-shadow: 0 0 25px #0ea5e9; }
  100% { transform: rotateY(1980deg) scale(1.22); box-shadow: 0 0 50px #38bdf8, 0 0 80px rgba(14, 165, 233, 0.8); }
}

.coin-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.coin-icon {
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(0,0,0,0.7);
  line-height: 1;
}
.coin-label {
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 11px;
  color: #ffffff;
  margin-top: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.coin-desc {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: 0.95;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.coin-result {
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.coin-result.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.coin-winner-team {
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 18px;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.coin-winner-team.team-a {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.95));
  border: 2px solid #f87171;
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
}
.coin-winner-team.team-b {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.9), rgba(3, 105, 161, 0.95));
  border: 2px solid #38bdf8;
  color: #fff;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.7);
}

.coin-winner-desc {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  background: rgba(15, 23, 42, 0.65);
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-height: 480px) {
  .coin-stage { width: 90px; height: 90px; margin: 4px 0; }
  .coin-title { font-size: 18px; }
  .coin-icon { font-size: 26px; }
  .coin-label { font-size: 9px; }
  .coin-desc { font-size: 8px; }
  .coin-winner-team { font-size: 14px; padding: 6px 16px; }
  .coin-winner-desc { font-size: 12px; padding: 3px 12px; }
  .coin-flip-container { gap: 8px; }
}

/* ===================== AVATAR SELECTOR MODAL & BADGES ===================== */
.gb-avatar-modal-panel {
  width: min(760px, 94vw);
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
}

.gb-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 12px 6px;
}

@media (max-width: 680px) {
  .gb-avatar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gb-avatar-cell {
  background: rgba(14, 20, 38, 0.95);
  border: 2px solid #263b6d;
  border-radius: 10px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}

.gb-avatar-cell:hover {
  border-color: #00e5ff;
  transform: translateY(-3px);
  background: rgba(22, 36, 70, 0.98);
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.3);
}

.gb-avatar-cell.selected {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.14);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5), 0 6px 18px rgba(255, 215, 0, 0.35);
}

.gb-avatar-cell-img-wrap {
  width: 100px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(60, 90, 160, 0.25) 0%, rgba(10, 15, 30, 0.7) 70%);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gb-avatar-cell-img {
  max-width: 92px;
  max-height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  transition: transform .18s ease;
}

.gb-avatar-cell:hover .gb-avatar-cell-img {
  transform: scale(1.06);
}

.gb-avatar-cell-name {
  font-family: var(--font-title);
  font-size: 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
}

.gb-avatar-cell-desc {
  font-size: 10px;
  color: #8faec9;
  margin-top: 4px;
  text-align: center;
  line-height: 1.25;
}

.gb-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.gb-side-change-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.gb-side-change-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: scale(1.04);
}

.gb-slot-avatar-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 4px;
}

/* ===================== EPIC DIRECT-ON-SCREEN ARCADE EFFECTS ===================== */
#epic-banner-overlay,
.epic-banner-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Base effect wrapper: sem caixas, sem bordas, sem fundo! */
.epic-effect {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

/* Título principal gigante diretamente na tela */
.epic-title-main {
  font-family: 'Lilita One', cursive, sans-serif;
  font-size: clamp(52px, 11vw, 92px);
  letter-spacing: 5px;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

/* Subtítulo de dano / abate */
.epic-sub-badge {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 3.8vw, 28px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.85));
}

/* ---------------- 1. NICE SHOT (BOUNCE ELÁSTICO & DOURADO) ---------------- */
.epic-effect-nice {
  animation: epicNiceBounce 3.2s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.epic-effect-nice .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #fff7a0 25%, #ffd700 55%, #ff9e00 85%, #b36b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 0 #804000) drop-shadow(0 9px 0 #3d1f00) drop-shadow(0 0 35px rgba(255, 215, 0, 0.9));
}

.epic-effect-nice .epic-sub-badge {
  color: #ffe680;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.8);
}

.epic-starburst {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 235, 120, 0.45) 0%, rgba(255, 200, 0, 0.2) 40%, rgba(255, 180, 0, 0) 70%);
  border-radius: 50%;
  animation: starburstPulse 1.2s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes epicNiceBounce {
  0% { transform: scale(0.08) rotate(-9deg); opacity: 0; }
  22% { transform: scale(1.36) rotate(3deg); opacity: 1; }
  38% { transform: scale(0.88) rotate(-2deg); }
  52% { transform: scale(1.12) rotate(1deg); }
  66% { transform: scale(0.98) rotate(0deg); }
  85% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1.18) translateY(-40px); opacity: 0; }
}

@keyframes starburstPulse {
  from { transform: scale(0.85); opacity: 0.6; }
  to { transform: scale(1.25); opacity: 0.95; }
}

/* ---------------- 2. SUPER SHOT (FOGO ARDENTE & EMBERS) ---------------- */
.epic-effect-super {
  animation: epicSuperSlam 3.3s cubic-bezier(0.12, 0.95, 0.28, 1.1) forwards;
}

.epic-effect-super .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #ffff55 20%, #ff8800 45%, #ff2200 75%, #880000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 0 #550000) drop-shadow(0 10px 0 #220000) drop-shadow(0 0 25px #ff3300) drop-shadow(0 0 65px #ff7700);
  animation: textFireFlicker 0.14s infinite alternate;
}

.epic-effect-super .epic-sub-badge {
  color: #ffaa33;
  text-shadow: 0 0 20px #ff3b00, 0 0 35px #ff8800;
}

@keyframes textFireFlicker {
  0% { filter: drop-shadow(0 5px 0 #550000) drop-shadow(0 0 22px #ff4400) drop-shadow(0 -5px 45px #ff8800) drop-shadow(0 0 70px #ff0000); }
  100% { filter: drop-shadow(0 5px 0 #550000) drop-shadow(0 0 34px #ff5500) drop-shadow(0 -10px 65px #ffaa00) drop-shadow(0 0 95px #ff2200); }
}

@keyframes epicSuperSlam {
  0% { transform: scale(2.6); opacity: 0; filter: blur(12px); }
  18% { transform: scale(0.94); opacity: 1; filter: blur(0); }
  28% { transform: scale(1.08); }
  42% { transform: scale(1); }
  85% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15) translateY(-35px); opacity: 0; }
}

/* Efeito de Fogo Vivo com Partículas e Labaredas */
.epic-fire-container {
  position: absolute;
  inset: -60px -40px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.epic-flame-particle {
  position: absolute;
  bottom: 25px;
  border-radius: 50% 50% 30% 30%;
  background: radial-gradient(circle, #fff799 0%, #ff7700 45%, #ff1100 75%, rgba(200, 0, 0, 0) 100%);
  filter: blur(2px);
  opacity: 0.9;
  animation: flameRise linear infinite;
}

@keyframes flameRise {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.7;
    transform: translateY(-80px) scale(1.2) rotate(15deg);
  }
  100% {
    transform: translateY(-130px) scale(0.4) rotate(-20deg);
    opacity: 0;
  }
}

/* ---------------- 3. DOUBLE KILL (IMPACTO METÁLICO BRUTAL & FAÍSCAS SANGRENTAS) ---------------- */
.epic-effect-double {
  animation: epicDoubleSlamAggressive 3.3s cubic-bezier(0.15, 0.9, 0.22, 1.2) forwards;
}

.epic-double-skulls {
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 0 25px #ff0044) drop-shadow(0 4px 10px rgba(0,0,0,0.8));
  animation: doubleSkullsClash 0.75s cubic-bezier(0.18, 0.9, 0.2, 1.25) forwards, skullsHover 1.1s ease-in-out 0.75s infinite alternate;
  margin-bottom: 2px;
  z-index: 3;
}

@keyframes doubleSkullsClash {
  0% { transform: scale(3.8) translateY(-40px); opacity: 0; filter: blur(12px) drop-shadow(0 0 50px #ff0000); }
  50% { transform: scale(0.84); opacity: 1; filter: blur(0); }
  75% { transform: scale(1.18); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes skullsHover {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-7px) scale(1.09); }
}

.epic-effect-double .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #ffccd5 18%, #ff1744 48%, #990022 78%, #38000c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 #4a000e) drop-shadow(0 12px 0 #240007) drop-shadow(0 0 45px rgba(255, 23, 68, 0.98)) drop-shadow(0 0 90px rgba(255, 0, 43, 0.8));
  animation: doubleTitlePulse 0.14s infinite alternate;
}

@keyframes doubleTitlePulse {
  0% { filter: drop-shadow(0 6px 0 #4a000e) drop-shadow(0 0 38px #ff1744) drop-shadow(0 0 75px #ff0033); }
  100% { filter: drop-shadow(0 6px 0 #4a000e) drop-shadow(0 0 55px #ff0055) drop-shadow(0 0 100px #ff1744); }
}

.epic-effect-double .epic-sub-badge {
  color: #ff99aa;
  text-shadow: 0 0 20px rgba(255, 23, 68, 0.95), 0 0 35px #ff0033;
}

@keyframes epicDoubleSlamAggressive {
  0% { transform: scale(3.6) translateY(-85px); opacity: 0; filter: blur(14px); }
  16% { transform: scale(0.88) translateY(8px); opacity: 1; filter: blur(0); }
  28% { transform: scale(1.15) translateY(-4px); }
  40% { transform: scale(0.96); }
  52% { transform: scale(1.04); }
  65% { transform: scale(1); }
  86% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.22) translateY(-35px); opacity: 0; }
}

/* Partículas de Faíscas Sanguíneas do Double Kill */
.epic-spark-container {
  position: absolute;
  inset: -70px -50px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.epic-spark-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ff5577 40%, #ff0033 75%, rgba(180, 0, 30, 0) 100%);
  filter: drop-shadow(0 0 8px #ff0044);
  animation: sparkBurst linear forwards;
}

@keyframes sparkBurst {
  0% { transform: translate(0, 0) scale(1.1); opacity: 1; }
  75% { opacity: 0.9; }
  100% { transform: var(--burst-trans) scale(0.2); opacity: 0; }
}

/* Corte de Lâmina no Meio da Tela (Screen Slash) */
.epic-screen-slash {
  position: fixed;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 7px;
  background: linear-gradient(90deg, rgba(255,0,50,0) 0%, rgba(255,255,255,1) 35%, rgba(255,30,80,1) 50%, rgba(255,255,255,1) 65%, rgba(255,0,50,0) 100%);
  box-shadow: 0 0 30px #ff0044, 0 0 60px #ff2200;
  transform: translateY(-50%) rotate(-24deg);
  pointer-events: none;
  z-index: 999;
  animation: slashSlice 0.38s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes slashSlice {
  0% { transform: translateY(-50%) rotate(-24deg) scaleX(0.05); opacity: 0; }
  25% { opacity: 1; }
  55% { transform: translateY(-50%) rotate(-24deg) scaleX(1.15); opacity: 1; }
  100% { transform: translateY(-50%) rotate(-24deg) scaleX(1.45); opacity: 0; }
}

.epic-screen-flash-red {
  position: fixed;
  inset: 0;
  background: rgba(255, 15, 50, 0.5);
  pointer-events: none;
  z-index: 998;
  animation: epicFlashRed 0.35s ease-out forwards;
}

@keyframes epicFlashRed {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------------- 4. TRIPLE KILL (TEMPESTADE DE RAIOS & PLASMA VIOLETA NEON) ---------------- */
.epic-effect-triple {
  animation: epicTripleZap 3.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

.epic-triple-thunder-crest {
  font-size: 50px;
  line-height: 1;
  filter: drop-shadow(0 0 25px #c084fc);
  animation: thunderPulse 0.14s infinite alternate;
  margin-bottom: 2px;
  z-index: 3;
}

@keyframes thunderPulse {
  0% { transform: scale(0.95) rotate(-2deg); filter: drop-shadow(0 0 20px #a855f7); }
  100% { transform: scale(1.1) rotate(2deg); filter: drop-shadow(0 0 40px #e9d5ff) drop-shadow(0 0 60px #c084fc); }
}

.epic-effect-triple .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #f3e8ff 15%, #c084fc 45%, #7c3aed 75%, #3b0764 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 #3b0764) drop-shadow(0 11px 0 #1e0338) drop-shadow(0 0 45px #c084fc) drop-shadow(0 0 85px #7c3aed);
  animation: electricZapExtreme 0.1s infinite alternate;
}

@keyframes electricZapExtreme {
  0% { transform: translate(0, 0) skewX(-1deg); filter: drop-shadow(0 6px 0 #3b0764) drop-shadow(0 0 35px #a855f7) drop-shadow(0 0 60px #8b5cf6); }
  100% { transform: translate(1px, -1px) skewX(1deg); filter: drop-shadow(0 6px 0 #3b0764) drop-shadow(0 0 55px #c084fc) drop-shadow(0 0 90px #a855f7); }
}

.epic-effect-triple .epic-sub-badge {
  color: #f3e8ff;
  text-shadow: 0 0 25px #a855f7, 0 0 45px #c084fc;
}

@keyframes epicTripleZap {
  0% { transform: scale(0.12) rotate(-6deg); opacity: 0; filter: blur(10px); }
  16% { transform: scale(1.35) skewX(-6deg); opacity: 1; filter: blur(0); }
  28% { transform: scale(0.92) skewX(4deg); }
  40% { transform: scale(1.08) skewX(-2deg); }
  52% { transform: scale(1) skewX(0); }
  85% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.22) translateY(-32px); opacity: 0; }
}

/* Partículas de Plasma Elétrico do Triple Kill */
.epic-plasma-container {
  position: absolute;
  inset: -70px -50px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.epic-plasma-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #c084fc 45%, #7c3aed 80%, rgba(124, 58, 237, 0) 100%);
  box-shadow: 0 0 14px #c084fc, 0 0 25px #7c3aed;
  animation: plasmaOrbit linear infinite;
}

@keyframes plasmaOrbit {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0.3; }
  50% { transform: var(--plasma-trans) scale(1.35); opacity: 1; }
  100% { transform: translate(0, 0) scale(0.5); opacity: 0.2; }
}

.epic-screen-flash-lightning {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.75) 0%, rgba(124, 58, 237, 0.55) 50%, rgba(220, 240, 255, 0.85) 100%);
  pointer-events: none;
  z-index: 998;
  animation: lightningStrobe 0.4s ease-out forwards;
}

@keyframes lightningStrobe {
  0% { opacity: 1; }
  20% { opacity: 0.3; }
  45% { opacity: 0.95; }
  70% { opacity: 0.4; }
  100% { opacity: 0; }
}

.epic-lightning-arc {
  position: absolute;
  width: 4px;
  background: #ffffff;
  box-shadow: 0 0 15px #c084fc, 0 0 35px #a855f7, 0 0 60px #8b5cf6;
  pointer-events: none;
  z-index: 67;
  animation: lightningArcFade 0.45s ease-out forwards;
}

@keyframes lightningArcFade {
  0% { opacity: 1; transform: scaleY(0.2); }
  20% { opacity: 1; transform: scaleY(1); }
  40% { opacity: 0.35; }
  60% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* ---------------- 5. FULL TEAM WIPE (COROA IMPERIAL & CHUVA DE OURO) ---------------- */
.epic-effect-wipe {
  animation: epicWipeGrand 3.6s cubic-bezier(0.18, 0.9, 0.3, 1.15) forwards;
}

.epic-crown-crest {
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.8));
  animation: crownHover 1.2s ease-in-out infinite alternate;
  margin-bottom: 2px;
}

@keyframes crownHover {
  from { transform: translateY(0) scale(0.96); }
  to { transform: translateY(-8px) scale(1.08); }
}

.epic-effect-wipe .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #fffbe6 20%, #ffd700 50%, #b8860b 80%, #594200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 #594200) drop-shadow(0 12px 0 #2b1f00) drop-shadow(0 0 45px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 85px rgba(255, 180, 0, 0.8));
}

.epic-effect-wipe .epic-sub-badge {
  color: #ffecb3;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
}

@keyframes epicWipeGrand {
  0% { transform: scale(0.15) translateY(60px); opacity: 0; }
  22% { transform: scale(1.25) translateY(-8px); opacity: 1; }
  35% { transform: scale(0.96) translateY(0); }
  48% { transform: scale(1.04); }
  60% { transform: scale(1); }
  88% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1.18) translateY(-35px); opacity: 0; }
}

/* SCREEN FLASH (SUPER SHOT) */
.epic-screen-flash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
  z-index: 998;
  animation: epicFlash 0.35s ease-out forwards;
}
@keyframes epicFlash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* VIGNETTE PULSE (TRIPLE KILL / WIPE) */
.epic-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 997;
  animation: epicVignetteFade 3.2s ease-out forwards;
}
.epic-vignette-triple {
  box-shadow: inset 0 0 120px rgba(168, 85, 247, 0.75);
}
.epic-vignette-wipe {
  box-shadow: inset 0 0 140px rgba(255, 215, 0, 0.85);
}
@keyframes epicVignetteFade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* ---------------- 6. KILLING SPREE (ÁTOMO ELÉTRICO CIANO & 2 ABATES) ---------------- */
.epic-effect-spree {
  animation: epicSpreeEnter 3.3s cubic-bezier(0.18, 0.9, 0.3, 1.2) forwards;
}

.epic-spree-atom-crest {
  font-size: 50px;
  line-height: 1;
  filter: drop-shadow(0 0 25px #00e5ff) drop-shadow(0 0 50px rgba(0, 229, 255, 0.8));
  animation: atomSpin 3.5s linear infinite, crestPulse 1.1s ease-in-out infinite alternate;
  margin-bottom: 2px;
  z-index: 3;
}

@keyframes atomSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes crestPulse {
  0% { transform: scale(0.94); }
  100% { transform: scale(1.1); }
}

.epic-effect-spree .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #bbf7fe 18%, #00e5ff 48%, #0099cc 78%, #00364d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 #00364d) drop-shadow(0 11px 0 #001f2e) drop-shadow(0 0 45px rgba(0, 229, 255, 0.95)) drop-shadow(0 0 90px rgba(0, 180, 230, 0.7));
  animation: spreeGlowPulse 0.15s infinite alternate;
}

@keyframes spreeGlowPulse {
  0% { filter: drop-shadow(0 6px 0 #00364d) drop-shadow(0 0 35px #00e5ff) drop-shadow(0 0 70px #0099cc); }
  100% { filter: drop-shadow(0 6px 0 #00364d) drop-shadow(0 0 55px #70f3ff) drop-shadow(0 0 100px #00e5ff); }
}

.epic-effect-spree .epic-sub-badge {
  color: #c7f8fe;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.95), 0 0 35px #0099cc;
}

@keyframes epicSpreeEnter {
  0% { transform: scale(0.12) rotate(-8deg); opacity: 0; filter: blur(12px); }
  18% { transform: scale(1.32) rotate(2deg); opacity: 1; filter: blur(0); }
  30% { transform: scale(0.92) rotate(-1deg); }
  42% { transform: scale(1.08) rotate(0deg); }
  56% { transform: scale(1); }
  86% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.2) translateY(-32px); opacity: 0; }
}

.epic-spree-container {
  position: absolute;
  inset: -70px -50px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.epic-spree-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #00e5ff 45%, #0088b3 80%, rgba(0, 136, 179, 0) 100%);
  box-shadow: 0 0 14px #00e5ff, 0 0 28px #00b4d8;
  animation: spreePhotonPulse linear infinite;
}

@keyframes spreePhotonPulse {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.3; }
  50% { transform: var(--spree-trans) scale(1.3); opacity: 1; }
  100% { transform: translate(0, 0) scale(0.5); opacity: 0.2; }
}

.epic-screen-flash-cyan {
  position: fixed;
  inset: 0;
  background: rgba(0, 229, 255, 0.42);
  pointer-events: none;
  z-index: 998;
  animation: epicFlashCyan 0.36s ease-out forwards;
}

@keyframes epicFlashCyan {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------------- 7. UNSTOPPABLE (CHAMAS MAGENTA/VIOLETA & 3 ABATES) ---------------- */
.epic-effect-unstoppable {
  animation: epicUnstoppableSlam 3.4s cubic-bezier(0.14, 0.95, 0.24, 1.15) forwards;
}

.epic-unstoppable-crest {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 30px #e024c3) drop-shadow(0 0 60px rgba(186, 24, 224, 0.85));
  animation: rageShake 0.1s infinite alternate;
  margin-bottom: 2px;
  z-index: 3;
}

@keyframes rageShake {
  0% { transform: translate(-1px, 0) scale(1); }
  100% { transform: translate(1px, -1px) scale(1.04); }
}

.epic-effect-unstoppable .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #fed7fa 16%, #f43f5e 42%, #c026d3 70%, #580874 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 #580874) drop-shadow(0 12px 0 #2e033d) drop-shadow(0 0 45px rgba(244, 63, 94, 0.98)) drop-shadow(0 0 95px rgba(192, 38, 211, 0.85));
  animation: unstoppablePulse 0.12s infinite alternate;
}

@keyframes unstoppablePulse {
  0% { filter: drop-shadow(0 6px 0 #580874) drop-shadow(0 0 38px #f43f5e) drop-shadow(0 0 75px #c026d3); }
  100% { filter: drop-shadow(0 6px 0 #580874) drop-shadow(0 0 58px #fb7185) drop-shadow(0 0 110px #e879f9); }
}

.epic-effect-unstoppable .epic-sub-badge {
  color: #fbcfe8;
  text-shadow: 0 0 25px rgba(244, 63, 94, 0.95), 0 0 45px #c026d3;
}

@keyframes epicUnstoppableSlam {
  0% { transform: scale(3.5) translateY(-60px); opacity: 0; filter: blur(14px); }
  17% { transform: scale(0.9) translateY(6px); opacity: 1; filter: blur(0); }
  29% { transform: scale(1.16) translateY(-3px); }
  42% { transform: scale(0.97); }
  55% { transform: scale(1.03); }
  68% { transform: scale(1); }
  87% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.22) translateY(-36px); opacity: 0; }
}

.epic-screen-flash-magenta {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.6) 0%, rgba(192, 38, 211, 0.45) 55%, rgba(88, 8, 116, 0.6) 100%);
  pointer-events: none;
  z-index: 998;
  animation: epicFlashMagenta 0.38s ease-out forwards;
}

@keyframes epicFlashMagenta {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------------- 8. DOMINATING (SUPERNOVA SOLAR DOURADA & 4+ ABATES) ---------------- */
.epic-effect-dominating {
  animation: epicDominatingGrand 3.5s cubic-bezier(0.16, 0.92, 0.26, 1.18) forwards;
}

.epic-dominating-crest {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 0 35px #ffd700) drop-shadow(0 0 75px rgba(255, 68, 0, 0.9));
  animation: dominatingCrown 1.0s ease-in-out infinite alternate;
  margin-bottom: 2px;
  z-index: 3;
}

@keyframes dominatingCrown {
  0% { transform: scale(0.92) translateY(0); filter: drop-shadow(0 0 25px #ffd700); }
  100% { transform: scale(1.12) translateY(-8px); filter: drop-shadow(0 0 50px #ffea00) drop-shadow(0 0 85px #ff3300); }
}

.epic-effect-dominating .epic-title-main {
  background: linear-gradient(180deg, #ffffff 0%, #fff7a0 14%, #ffb700 38%, #ff3b00 72%, #680000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 7px 0 #520000) drop-shadow(0 14px 0 #290000) drop-shadow(0 0 50px rgba(255, 183, 0, 0.98)) drop-shadow(0 0 100px rgba(255, 59, 0, 0.9));
  animation: dominatingFireStorm 0.1s infinite alternate;
}

@keyframes dominatingFireStorm {
  0% { filter: drop-shadow(0 7px 0 #520000) drop-shadow(0 0 42px #ffb700) drop-shadow(0 0 80px #ff3b00); }
  100% { filter: drop-shadow(0 7px 0 #520000) drop-shadow(0 0 65px #ffd700) drop-shadow(0 0 120px #ff1100); }
}

.epic-effect-dominating .epic-sub-badge {
  color: #fff1b8;
  text-shadow: 0 0 28px rgba(255, 183, 0, 0.95), 0 0 55px #ff3b00;
}

@keyframes epicDominatingGrand {
  0% { transform: scale(2.8) rotate(-4deg); opacity: 0; filter: blur(16px); }
  18% { transform: scale(0.92) rotate(1deg); opacity: 1; filter: blur(0); }
  30% { transform: scale(1.2) rotate(0deg); }
  44% { transform: scale(0.96); }
  58% { transform: scale(1.04); }
  72% { transform: scale(1); }
  88% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1.24) translateY(-38px); opacity: 0; }
}

.epic-screen-flash-gold {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 235, 120, 0.75) 0%, rgba(255, 160, 0, 0.55) 45%, rgba(255, 50, 0, 0.45) 85%);
  pointer-events: none;
  z-index: 998;
  animation: epicFlashGold 0.42s ease-out forwards;
}

@keyframes epicFlashGold {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* CONFETTI (FULL TEAM WIPE) */
.epic-confetti-particle {
  position: absolute;
  width: 11px;
  height: 11px;
  top: -20px;
  pointer-events: none;
  z-index: 58;
  animation: epicConfettiFall linear forwards;
}
@keyframes epicConfettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.2; }
}

/* ===================== BGM Volume Controls ===================== */
.bgm-control-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.bgm-control-bar:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.bgm-control-bar.in-panel {
  background: rgba(10, 8, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-bgm-mute {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform .12s, filter .2s, opacity .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.btn-bgm-mute:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}
.btn-bgm-mute:active {
  transform: scale(0.94);
}
.btn-bgm-mute.muted {
  opacity: 0.55;
  filter: grayscale(1);
}

.bgm-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.bgm-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.bgm-label-text {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: #c4d1f2;
}
.bgm-vol-val {
  font-family: var(--font-title);
  color: #6ff2e6;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(111, 242, 230, 0.5);
}

/* Custom Range Slider */
.bgm-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
  transition: background .2s;
}
.bgm-slider:hover {
  background: rgba(255, 255, 255, 0.3);
}
.bgm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b2fcf6, var(--accent) 70%, #087d8c 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(111, 242, 230, 0.85), 0 2px 5px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.bgm-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(111, 242, 230, 1), 0 2px 7px rgba(0, 0, 0, 0.6);
}
.bgm-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b2fcf6, var(--accent) 70%, #087d8c 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(111, 242, 230, 0.85), 0 2px 5px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

/* Compact version for Lobby */
.bgm-control-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 10, 36, 0.7);
  border: 1px solid var(--glass-border);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-bgm-mute.small {
  width: 26px;
  height: 26px;
  min-width: 26px;
  font-size: 13px;
}
.bgm-slider.compact {
  width: 75px;
  height: 5px;
}
.bgm-slider.compact::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
}
.bgm-slider.compact::-moz-range-thumb {
  width: 14px;
  height: 14px;
}
.bgm-vol-val.compact {
  font-size: 11px;
  min-width: 28px;
  text-align: right;
  color: #6ff2e6;
}

/* HUD BGM Popover */
.hud-bgm-popover {
  position: absolute;
  top: 44px;
  left: 0;
  background: rgba(14, 10, 36, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(111, 242, 230, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  animation: hudBgmPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
@keyframes hudBgmPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hud-bgm-popover-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-bgm-mute-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s, filter .2s;
  color: #fff;
}
.btn-bgm-mute-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}
.btn-bgm-mute-icon.muted {
  opacity: 0.55;
  filter: grayscale(1);
}
.bgm-slider.hud-slider {
  width: 90px;
  height: 5px;
}
.bgm-slider.hud-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
}
.bgm-slider.hud-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
}
.bgm-vol-val.hud-val {
  font-size: 12px;
  min-width: 30px;
  text-align: right;
  color: #6ff2e6;
  font-family: var(--font-title);
}

/* ========================================================
   CARD DE NOTIFICAÇÃO ELEGANTE DE USO DE ITEM (ITEM 1 E 2)
   ======================================================== */
.item-notif-card {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  min-width: 270px;
  max-width: 90vw;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.96), rgba(28, 42, 68, 0.94));
  border: 1.5px solid rgba(255, 215, 0, 0.75);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 215, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.item-notif-card.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

.item-notif-card.level-2 {
  border-color: rgba(255, 75, 75, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(30, 15, 25, 0.96), rgba(50, 20, 35, 0.94));
}

.item-notif-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.item-notif-icon-box svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.item-notif-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.item-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-notif-user {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-notif-delay {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 1px 6px;
  border-radius: 999px;
}

.item-notif-card.level-2 .item-notif-delay {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.4);
}

.item-notif-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 17px;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.item-notif-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}

/* ==========================================================================
   LOBBY: PARTIDA EM ANDAMENTO & MODO ESPECTADOR
   ========================================================================== */
.gb-match-inprogress {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  background: linear-gradient(180deg, rgba(38, 22, 60, 0.95) 0%, rgba(18, 12, 34, 0.98) 100%);
  border: 2px solid rgba(255, 75, 110, 0.7);
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(255, 40, 80, 0.35);
  width: 100%;
  max-width: 120px;
  gap: 6px;
  animation: pulse-inprogress-border 2.2s infinite ease-in-out;
}

@keyframes pulse-inprogress-border {
  0%, 100% { border-color: rgba(255, 75, 110, 0.65); box-shadow: 0 0 12px rgba(255, 40, 80, 0.25); }
  50% { border-color: rgba(255, 130, 160, 0.95); box-shadow: 0 0 22px rgba(255, 40, 80, 0.55); }
}

.gb-match-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  color: #ff5e7e;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gb-live-dot {
  color: #ff3344;
  font-size: 10px;
  animation: live-blink 1s infinite alternate;
}

@keyframes live-blink {
  0% { opacity: 0.3; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.25); }
}

.gb-match-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.2;
}

.gb-btn-spectate {
  width: 100%;
  padding: 6px 4px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #00d2ff 0%, #0066eb 100%);
  border: 1.5px solid #8fe7ff;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 150, 255, 0.45);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.gb-btn-spectate:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 16px rgba(0, 190, 255, 0.75);
  background: linear-gradient(180deg, #38e0ff 0%, #1579ff 100%);
}

.gb-btn-spectate:active {
  transform: translateY(0) scale(0.97);
}

/* ==========================================================================
   HUD DO MODO ESPECTADOR
   ========================================================================== */
.hud-spectator-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: rgba(14, 18, 36, 0.94);
  border: 1.5px solid rgba(0, 229, 255, 0.6);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 229, 255, 0.3);
  z-index: 120;
  pointer-events: auto;
  max-width: 90vw;
}

.spectator-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: 0.8px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.live-dot-pulse {
  color: #ff3344;
  font-size: 13px;
  animation: live-blink 1s infinite alternate;
}

.spectator-live-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.btn-spectator-exit {
  background: rgba(255, 60, 60, 0.22);
  border: 1px solid rgba(255, 100, 100, 0.6);
  color: #ffb3b3;
  border-radius: 999px;
  padding: 5px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-spectator-exit:hover {
  background: rgba(255, 60, 60, 0.45);
  border-color: #ff6666;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.5);
}

@media (max-width: 600px) {
  .hud-spectator-bar {
    padding: 8px 14px;
    gap: 8px;
    bottom: 12px;
  }
  .spectator-live-desc {
    display: none;
  }
  .spectator-live-indicator {
    font-size: 11px;
  }
}

/* ======================================================== */
/* GUNBOUND CLASSIC CHANNEL LOBBY (GAME LIST SCREEN)         */
/* ======================================================== */
.gb-channel-window {
  width: min(1080px, 98vw);
  max-width: 1080px;
  height: min(650px, 95vh);
  background: linear-gradient(180deg, #3d68bc 0%, #1f428c 35%, #132759 100%);
  border: 2px solid #5d8ee8;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(93, 142, 232, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  position: relative;
}

/* Topbar: GAME LIST & Server Badge */
.gb-ch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: linear-gradient(180deg, #2a4c9c 0%, #173068 100%);
  border-bottom: 2px solid #4a78dd;
}

.gb-ch-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gb-ch-badge-icon {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.gb-ch-title {
  font-family: var(--font-title);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 2px 0 #0d1e44, 0 4px 8px rgba(0, 0, 0, 0.6);
}

.gb-ch-server-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 16, 38, 0.6);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-title);
}

.gb-ch-server-num {
  color: #ffd54f;
  font-size: 14px;
  font-weight: 900;
}

.gb-ch-server-name {
  color: #e3edff;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.gb-ch-status-dot {
  color: #00e676;
  font-size: 12px;
  text-shadow: 0 0 8px #00e676;
  animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Container & Grade 3x3 de Salas */
.gb-ch-rooms-container {
  flex: 1;
  min-height: 0;
  padding: 8px 12px 4px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.gb-ch-rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  height: 100%;
  width: 100%;
}

/* Empty Rooms Notice */
.gb-ch-empty-rooms {
  position: absolute;
  inset: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 48, 0.7);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

.gb-empty-icon {
  font-size: 38px;
  margin-bottom: 6px;
}

.gb-empty-title {
  font-family: var(--font-title);
  font-size: 17px;
  color: #ffe680;
  margin-bottom: 4px;
}

.gb-empty-desc {
  font-size: 12px;
  color: #a9c2f5;
  max-width: 360px;
}

/* Card de Sala GunBound Clássico */
.gb-room-card {
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: #fbf0e4;
  border: 1.5px solid #d49c68;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  user-select: none;
  position: relative;
}

.gb-room-card:hover {
  transform: translateY(-2px);
  border-color: #ff9800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.gb-room-card.selected {
  border-color: #ffe600;
  box-shadow: 0 0 0 2px #ffe600, 0 4px 16px rgba(255, 230, 0, 0.6);
}

.gb-room-card.empty {
  background: rgba(12, 24, 56, 0.35);
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  cursor: default;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.gb-room-card.empty:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.gb-rc-empty-label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
}

/* Header do Card */
.gb-rc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  background: linear-gradient(180deg, #ff6e30 0%, #db3912 100%);
  color: #ffffff;
  border-bottom: 1.5px solid #b32a08;
  font-family: var(--font-title);
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.gb-rc-num {
  font-weight: 900;
  color: #fff176;
  margin-right: 6px;
  font-size: 12px;
}

.gb-rc-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  font-size: 11px;
}

.gb-rc-header-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.gb-rc-lock {
  font-size: 11px;
}

.gb-rc-players {
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Body do Card */
.gb-rc-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: linear-gradient(180deg, #fff0f3 0%, #fedce3 100%);
  gap: 6px;
}

/* Status do Card: WAIT vs PLAYING */
.gb-rc-status {
  font-family: var(--font-title);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex: 1;
}

.gb-rc-status.wait {
  color: #ffeb3b;
  -webkit-text-stroke: 1.2px #7a3e00;
  text-shadow: 0 2px 0 #522800, 0 3px 6px rgba(0,0,0,0.4);
}

.gb-rc-status.playing {
  color: #00e5ff;
  -webkit-text-stroke: 1.2px #004d57;
  text-shadow: 0 2px 0 #002d33, 0 3px 6px rgba(0,0,0,0.4);
  font-size: clamp(12px, 1.6vw, 16px);
}

/* Thumbnail do Mapa */
.gb-rc-thumb {
  width: 76px;
  height: 38px;
  border-radius: 4px;
  border: 1.5px solid #8d623b;
  background: #2b1f16;
  overflow: hidden;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gb-rc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-rc-thumb-txt {
  font-family: var(--font-title);
  font-size: 8px;
  font-weight: 800;
  color: #ffd54f;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  text-transform: uppercase;
}

/* Cubo 3D de Modo */
.gb-rc-cube {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

.gb-rc-cube.solo {
  background: linear-gradient(135deg, #43a047 0%, #1b5e20 100%);
  border: 1px solid #81c784;
}

.gb-rc-cube.score {
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  border: 1px solid #64b5f6;
}

/* Barra Central de Ações & Filtros */
.gb-ch-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  background: rgba(12, 24, 56, 0.75);
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
}

/* Cubos Filtro */
.gb-ch-filters {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gb-cube-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  color: #cdd9ff;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.gb-cube-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.gb-cube-btn.active {
  background: #ff9800;
  border-color: #ffe082;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
}

.cube-face {
  font-family: var(--font-title);
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.35);
}

.cube-lbl {
  font-size: 10px;
}

/* Paginação com Setas Laranja */
.gb-ch-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gb-page-arrow {
  width: 26px;
  height: 24px;
  background: linear-gradient(180deg, #ff9800 0%, #e65100 100%);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 900;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #ffd54f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.12s ease;
}

.gb-page-arrow:hover {
  filter: brightness(1.15);
}

.gb-page-arrow:active {
  transform: scale(0.92);
}

.gb-page-num {
  font-family: var(--font-title);
  font-size: 12px;
  color: #ffe57f;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Ações Direitas (Criar, Ir, Código, Atualizar) */
.gb-ch-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gb-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.gb-btn-create {
  background: linear-gradient(180deg, #ff9800 0%, #e65100 100%);
  color: #ffffff;
  border: 1.5px solid #ffe082;
  box-shadow: 0 2px 6px rgba(230, 81, 0, 0.5);
}

.gb-btn-create:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.65);
}

.gb-btn-enter {
  background: linear-gradient(180deg, #00c853 0%, #1b5e20 100%);
  color: #ffffff;
  border: 1.5px solid #a5d6a7;
  box-shadow: 0 2px 6px rgba(27, 94, 32, 0.5);
}

.gb-btn-enter:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.65);
}

.gb-btn-direct {
  background: linear-gradient(180deg, #0288d1 0%, #01579b 100%);
  color: #ffffff;
  border: 1.5px solid #81d4fa;
}

.gb-btn-direct:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.gb-btn-refresh {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 12px;
}

.gb-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Barra Divisora Metálica com Seleção de Canais */
.gb-ch-divider-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  background: linear-gradient(180deg, #2d55a5 0%, #172c5a 100%);
  border-top: 2px solid #5a85dd;
  border-bottom: 2px solid #0d1b38;
}

.gb-div-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gb-div-chat-ico {
  font-size: 14px;
}

.gb-div-chat-title {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.gb-div-channels {
  display: flex;
  align-items: center;
  gap: 3px;
}

.gb-ch-lbl {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 900;
  color: #ffe082;
  margin-right: 4px;
}

.gb-ch-num {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.4);
  color: #8bb3f8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
}

.gb-ch-num:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.gb-ch-num.on {
  background: #ff9800;
  color: #ffffff;
  border-color: #ffe082;
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.8);
}

.gb-div-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gb-div-users-title {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.gb-div-users-count {
  font-family: var(--font-title);
  font-size: 12px;
  color: #ffd54f;
  font-weight: 900;
}

/* Metade Inferior: Chat (Esquerda) e Usuários Online (Direita) */
.gb-ch-bottom-area {
  flex: 1;
  min-height: 140px;
  max-height: 220px;
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: #0c1630;
}

/* Chat do Canal */
.gb-ch-chat-panel {
  flex: 1.8;
  display: flex;
  flex-direction: column;
  background: #080e20;
  border: 1px solid #233766;
  border-radius: 6px;
  overflow: hidden;
}

.gb-ch-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gb-chat-motd {
  color: #ffd700;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
  padding-bottom: 4px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gb-motd-line1 {
  color: #ffd700;
}

.gb-motd-line2 {
  color: #81c784;
}

.gb-ch-chat-msg {
  display: flex;
  align-items: baseline;
  gap: 5px;
  word-break: break-word;
}

.gb-ch-msg-rank {
  font-size: 12px;
}

.gb-ch-msg-user {
  font-weight: 800;
  color: #64b5f6;
}

.gb-ch-msg-text {
  color: #ffffff;
}

.gb-ch-chat-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: #0d1836;
  border-top: 1px solid #233766;
}

.gb-chat-prompt {
  font-size: 13px;
}

.gb-ch-chat-input-row input {
  flex: 1;
  background: #050a17;
  border: 1px solid #324c85;
  border-radius: 4px;
  padding: 4px 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.gb-ch-chat-input-row input:focus {
  border-color: #00b0ff;
}

.gb-btn-chat-send {
  background: #2196f3;
  color: #ffffff;
  border: 1px solid #64b5f6;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s ease;
}

.gb-btn-chat-send:hover {
  background: #1976d2;
}

/* Usuários Online do Canal */
.gb-ch-users-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #080e20;
  border: 1px solid #233766;
  border-radius: 6px;
  overflow: hidden;
}

.gb-ch-users-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gb-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #c4d4f8;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.12s ease;
}

.gb-user-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gb-user-rank-icon {
  font-size: 13px;
}

.gb-user-avatar-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
}

.gb-user-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.gb-user-status {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 800;
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
  white-space: nowrap;
}

.gb-user-status.in-room {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
  border-color: rgba(255, 152, 0, 0.3);
}

/* Rodapé GunBound com Ícones Clássicos */
.gb-ch-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 14px 8px 14px;
  background: linear-gradient(180deg, #1b2f63 0%, #0d1733 100%);
  border-top: 1.5px solid #375bb0;
}

.gb-foot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: #d0dcff;
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease, color 0.12s ease;
  user-select: none;
}

.gb-foot-btn .foot-icon {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gb-foot-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.gb-foot-btn:hover .foot-icon {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px #ffe082);
}

.gb-foot-btn:active {
  transform: translateY(0);
}

/* ======================================================== */
/* MODAIS / DIÁLOGOS GUNBOUND                               */
/* ======================================================== */
.gb-dialog-panel {
  background: linear-gradient(180deg, #1d2d5a 0%, #101a38 100%);
  border: 2px solid #4a75d4;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(74, 117, 212, 0.25);
  width: min(480px, 94vw);
  max-width: 480px;
  overflow: hidden;
  animation: popIn 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gb-dialog-panel.narrow {
  width: min(380px, 92vw);
  max-width: 380px;
}

.gb-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(180deg, #2a4385 0%, #182852 100%);
  border-bottom: 2px solid #3d64ba;
}

.gb-dialog-title {
  font-family: var(--font-title);
  font-size: 15px;
  color: #ffe680;
  letter-spacing: 0.5px;
}

.gb-dialog-x {
  background: none;
  border: none;
  color: #ff8080;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.gb-dialog-x:hover {
  color: #ff3344;
}

.gb-dialog-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gb-dialog-desc {
  font-size: 13px;
  color: #d0dcff;
  line-height: 1.4;
}

.gb-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Campos de Formulário nos Diálogos */
.gb-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gb-form-group label {
  font-size: 11px;
  font-weight: 800;
  color: #9bb1e6;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gb-form-row {
  display: flex;
  gap: 10px;
}

.gb-form-row .flex-1 {
  flex: 1;
}

.gb-input-text {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #365099;
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.gb-input-text:focus {
  border-color: #00b0ff;
  box-shadow: 0 0 8px rgba(0, 176, 255, 0.35);
}

.gb-input-select {
  background: #0c142b;
  border: 1px solid #365099;
  border-radius: 6px;
  padding: 8px 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.gb-seg-buttons {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #365099;
  border-radius: 6px;
  overflow: hidden;
}

.gb-seg-buttons button {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #a4badf;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gb-seg-buttons button.on {
  background: #ff9800;
  color: #ffffff;
  font-weight: 900;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
}

.gb-error-hint {
  font-size: 11px;
  color: #ff5252;
  font-weight: 700;
}

/* Modal Meu Perfil */
.profile-panel {
  width: min(440px, 94vw);
}

.profile-top-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

/* --- Estilos Oficiais das Patentes (Ícones SVG) --- */
.gb-rank-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

.gb-rank-icon-img.small {
  width: 16px;
  height: 16px;
}

.gb-rank-icon-img.large {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

.menu-auth-btn .auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-auth-btn .gb-rank-icon-img {
  width: 22px;
  height: 22px;
}

.ch-badge-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gb-user-rank-icon, .gb-ch-msg-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-nick-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-nick-display {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.profile-rank-name {
  font-family: var(--font-title);
  font-size: 14px;
  color: #ffd54f;
}

.profile-gp-val {
  font-family: var(--font-title);
  font-size: 12px;
  color: #81c784;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.prof-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.prof-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #9bb1e6;
  text-transform: uppercase;
}

.prof-stat-val {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.prof-stat-val.win { color: #00e676; }
.prof-stat-val.loss { color: #ff5252; }
.prof-stat-val.rate { color: #ffd54f; }

/* Modal Em Breve */
.cs-icon-stage {
  font-size: 48px;
  text-align: center;
  margin: 6px 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.cs-main-title {
  font-family: var(--font-title);
  font-size: 16px;
  color: #ffd54f;
  text-align: center;
  margin-bottom: 4px;
}

/* Responsividade Mobile para Channel Lobby */
@media (max-width: 768px) {
  .gb-channel-window {
    height: 98vh;
    border-radius: 8px;
  }
  .gb-ch-rooms-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 5px;
  }
  .gb-ch-rooms-grid > :nth-child(n+9) {
    display: none;
  }
  .gb-ch-action-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .gb-ch-bottom-area {
    min-height: 120px;
    max-height: 160px;
  }
  .gb-ch-users-panel {
    display: none; /* Em telas muito pequenas o chat ganha a largura toda */
  }
  .gb-ch-chat-panel {
    flex: 1;
  }
  .gb-div-channels {
    display: none;
  }
}

/* ======================================================== */
/* AUTENTICAÇÃO, CONTAS & BADGES DE JOGADOR (BACKEND)      */
/* ======================================================== */
.menu-auth-bar {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 50;
}

.btn.auth-btn {
  background: linear-gradient(180deg, #3d6be2, #214ba8 45%, #13337a);
  border-color: rgba(130, 180, 255, 0.7);
  color: #fff;
  box-shadow: 0 6px 20px rgba(25, 70, 170, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 10, 40, 0.7);
}

.btn.auth-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.menu-auth-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 30, 60, 0.85);
  border: 1px solid #4a75d4;
  border-radius: 20px;
  padding: 6px 14px;
  color: #ffe680;
  font-family: var(--font-title);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.menu-auth-btn:hover {
  background: rgba(30, 50, 100, 0.95);
  border-color: #6a95f8;
  transform: translateY(-1px);
}

.menu-auth-btn .auth-gold {
  color: #ffd700;
  font-weight: 700;
  margin-left: 4px;
}

.gb-ch-header-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gb-ch-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 18, 38, 0.7);
  border: 1px solid #3d64ba;
  border-radius: 16px;
  padding: 4px 10px;
  color: #d0dcff;
  font-family: var(--font-main);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gb-ch-user-badge:hover {
  background: rgba(30, 50, 100, 0.85);
  border-color: #6a95f8;
}

.ch-badge-nick {
  font-weight: 700;
  color: #ffe680;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-badge-gold {
  color: #ffd700;
  font-weight: 700;
  font-size: 11px;
}

/* Abas de Diálogos */
.gb-dialog-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid #2f4580;
}

.gb-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #8da4db;
  font-family: var(--font-title);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

.gb-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.gb-tab-btn.active {
  color: #ffe680;
  border-bottom-color: #ffd043;
  background: rgba(74, 117, 212, 0.2);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-username-tag {
  font-size: 11px;
  color: #8da4db;
  margin-top: 2px;
}

.profile-gold-val {
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  margin-top: 3px;
}

/* ======================================================== */
/* RESULT SCREEN (GUNBOUND CLASSIC AUTHENTIC MODAL)         */
/* ======================================================== */
.result-overlay {
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 24, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
}

.result-overlay.active {
  display: flex !important;
}

.gb-result-window {
  width: 860px;
  max-width: 96vw;
  background: #29b6f6;
  border-radius: 14px;
  border: 3px solid #b3e5fc;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 2px 4px rgba(255, 255, 255, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: resultPop 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.25);
}

@keyframes resultPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.gb-result-titlebar {
  background: linear-gradient(180deg, #4fc3f7, #0288d1 70%, #01579b);
  padding: 9px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0277bd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gb-result-title-text {
  font-family: 'Lilita One', 'Outfit', sans-serif;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gb-result-x {
  background: #e53935;
  border: 1.5px solid #ffcdd2;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.gb-result-x:hover {
  background: #d32f2f;
  transform: scale(1.08);
}

.gb-result-body {
  background: #e1f5fe;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 80vh;
  overflow-y: auto;
}

.gb-result-team-card {
  background: #ffffff;
  border-radius: 10px;
  border: 2.5px solid #0288d1;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
}

.gb-result-team-card.lose {
  border-color: #e53935;
}

.gb-result-team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gb-result-team-title.win {
  font-family: 'Lilita One', 'Outfit', sans-serif;
  font-size: 28px;
  color: #f59e0b;
  text-shadow: -1.5px -1.5px 0 #0288d1, 1.5px -1.5px 0 #0288d1, -1.5px 1.5px 0 #0288d1, 1.5px 1.5px 0 #0288d1, 0 3px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.5px;
  margin: 0;
}

.gb-result-team-title.lose {
  font-family: 'Lilita One', 'Outfit', sans-serif;
  font-size: 28px;
  color: #f59e0b;
  text-shadow: -1.5px -1.5px 0 #c62828, 1.5px -1.5px 0 #c62828, -1.5px 1.5px 0 #c62828, 1.5px 1.5px 0 #c62828, 0 3px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.5px;
  margin: 0;
}

.gb-result-mvp-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #ffd700;
  border-radius: 20px;
  padding: 4px 12px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.mvp-tag {
  background: #f59e0b;
  color: #000000;
  font-family: 'Lilita One', sans-serif;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.mvp-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mvp-rank-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.mvp-nick {
  color: #ffd700;
  font-weight: 700;
  font-size: 14px;
}

.gb-result-table-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.gb-result-total-bar {
  background: linear-gradient(90deg, #0288d1, #29b6f6);
  color: #ffffff;
  font-family: 'Lilita One', sans-serif;
  font-size: 14px;
  padding: 5px 14px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 1px;
}

.gb-result-total-bar.lose {
  background: linear-gradient(90deg, #c62828, #ef5350);
}

.gb-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background: #ffffff;
}

.gb-result-table thead tr {
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
}

.gb-result-table th, .gb-result-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.gb-result-table td.col-nick {
  text-align: left;
  font-weight: 700;
}

.res-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-rank-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.res-mobile-tag {
  font-size: 10px;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.res-nick-label {
  color: #0f172a;
}

.res-nick-label.is-me {
  color: #0284c7;
  font-weight: 900;
}

.val-pos {
  color: #0284c7;
  font-weight: 800;
}

.val-neg {
  color: #dc2626 !important;
  font-weight: 800;
}

.res-event-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin: 1px 2px;
}

.res-event-badge.mvp {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #facc15;
}

.res-event-badge.nice {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.res-event-badge.super {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde047;
}

.res-event-badge.double {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.res-event-badge.triple {
  background: #fae8ff;
  color: #86198f;
  border: 1px solid #f0abfc;
}

.res-event-badge.wipe {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.res-event-badge.fogo {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.gb-result-footer {
  background: #0288d1;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  border-top: 2px solid #0277bd;
}

.gb-result-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.res-note {
  font-size: 11px;
  color: #ffd700;
  font-weight: 600;
}

.res-countdown {
  font-size: 12px;
  color: #e0f2fe;
  font-weight: 700;
}

.gb-result-footer-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

#res-btn-return.disabled,
#res-btn-return:disabled {
  background: #64748b !important;
  color: #cbd5e1 !important;
  border-color: #475569 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  filter: grayscale(0.8) !important;
  transform: none !important;
  pointer-events: none !important;
}

.res-rank-img-gm {
  filter: drop-shadow(0 0 5px #ffd700);
}

/* =========================================================
   RANK EXCLUSIVO DE GAME MASTER (GM) & EFEITOS ESPECIAIS
   ========================================================= */
.gb-rank-icon-gm {
  filter: drop-shadow(0 0 6px #fbbf24) drop-shadow(0 0 12px rgba(251, 191, 36, 0.75));
  animation: gmBadgeGlow 2.5s ease-in-out infinite alternate;
}

@keyframes gmBadgeGlow {
  0% {
    filter: drop-shadow(0 0 4px #fbbf24) drop-shadow(0 0 10px rgba(217, 119, 6, 0.6));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 10px #fef08a) drop-shadow(0 0 18px rgba(217, 70, 239, 0.85));
    transform: scale(1.06);
  }
  100% {
    filter: drop-shadow(0 0 5px #fbbf24) drop-shadow(0 0 12px rgba(251, 191, 36, 0.75));
    transform: scale(1);
  }
}

.gm-tag {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 4px;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
  text-shadow: none;
  letter-spacing: 0.5px;
  display: inline-block;
  vertical-align: middle;
}

/* =========================================================
   JANELA FLUTUANTE DE CHAT & NOTIFICAÇÕES IN-GAME
   (MÓVEL, ARRASTÁVEL, MINIMIZÁVEL E MAXIMIZÁVEL)
   ========================================================= */
.hud-team-left-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  pointer-events: none;
  width: 100%;
  max-width: 220px;
}

.ingame-chat-wrap {
  position: absolute;
  top: 86px;
  left: calc(8px + var(--safe-l));
  width: min(300px, 36vw);
  background: rgba(12, 10, 26, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 1px rgba(255, 255, 255, 0.2) inset;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
  transition: width .2s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow .2s;
  user-select: none;
}

.ingame-chat-wrap.is-dragging {
  opacity: 0.94;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.8), 0 0 16px rgba(56, 189, 248, 0.5);
  border-color: rgba(56, 189, 248, 0.7);
  transition: none !important;
}

.ingame-chat-wrap:focus-within {
  background: rgba(12, 10, 26, 0.95);
  border-color: rgba(77, 171, 247, 0.6);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 12px rgba(77, 171, 247, 0.35);
}

/* Estado Maximizado */
.ingame-chat-wrap.is-maximized {
  width: clamp(360px, 48vw, 540px);
}

.ingame-chat-wrap.is-maximized .ingame-chat-log {
  height: clamp(180px, 38vh, 280px);
  max-height: clamp(180px, 38vh, 280px);
}

/* Estado Minimizado */
.ingame-chat-wrap.is-minimized {
  width: auto;
  min-width: 175px;
  max-width: 240px;
  border-color: rgba(255, 255, 255, 0.22);
}

.ingame-chat-wrap.is-minimized .ingame-chat-body {
  display: none !important;
}

.ingame-chat-wrap.is-minimized .ingame-chat-header {
  border-bottom: none;
}

/* Barra de Cabeçalho / Arraste */
.ingame-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(32, 24, 64, 0.95), rgba(16, 12, 36, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 8px;
  cursor: grab;
  touch-action: none;
  gap: 6px;
}

.ingame-chat-header:active {
  cursor: grabbing;
}

.ingame-chat-header.has-unread {
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.95), rgba(225, 29, 72, 0.6));
  border-bottom-color: rgba(255, 42, 133, 0.6);
  animation: chat-header-pulse 1.6s infinite ease-in-out;
}

@keyframes chat-header-pulse {
  0%, 100% { box-shadow: inset 0 0 6px rgba(255, 42, 133, 0.2); }
  50% { box-shadow: inset 0 0 14px rgba(255, 42, 133, 0.7); }
}

.ingame-chat-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.3px;
  pointer-events: none;
  white-space: nowrap;
}

.chat-drag-grip {
  color: #64748b;
  font-size: 11px;
  letter-spacing: -1px;
  opacity: 0.8;
}

.chat-unread-badge {
  background: linear-gradient(135deg, #ff2a85, #e11d48);
  color: #ffffff;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 16px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 42, 133, 0.75);
  animation: chat-badge-pop .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-unread-badge.hidden {
  display: none !important;
}

@keyframes chat-badge-pop {
  0% { transform: scale(0.4); }
  100% { transform: scale(1); }
}

.ingame-chat-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-btn-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10px;
  width: 20px;
  height: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all .15s;
}

.chat-btn-action:hover {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
}

.ingame-chat-body {
  display: flex;
  flex-direction: column;
  user-select: text;
}

.ingame-chat-log {
  height: 92px;
  max-height: 92px;
  overflow-y: auto;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  line-height: 1.35;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.ingame-chat-log::-webkit-scrollbar {
  width: 4px;
}
.ingame-chat-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.ingame-msg {
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Ícone de Patente no Chat In-Game estritamente compacto e inline */
.gb-chat-rank-icon,
.ingame-msg .gb-chat-rank-icon,
.ingame-msg .gb-rank-icon-img,
.ingame-msg img {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  object-fit: contain !important;
  vertical-align: -2px !important;
  display: inline-block !important;
  margin-right: 4px !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) !important;
}

.gb-chat-rank-icon.gb-rank-icon-gm,
.ingame-msg .gb-rank-icon-gm {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  filter: drop-shadow(0 0 4px #ffd700) !important;
}

.ingame-msg.sys {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 10.5px;
  line-height: 15px;
}

.ingame-msg.sys.gain {
  color: #38bdf8;
  border-left: 2.5px solid #38bdf8;
}

.ingame-msg.sys.loss {
  color: #ff6b6b;
  border-left: 2.5px solid #ff6b6b;
}

.ingame-msg.player {
  display: block;
  line-height: 16px;
  font-size: 11px;
}

.ingame-msg.player .chat-nick {
  font-weight: 800;
  color: #ffd27a;
  margin-right: 4px;
  display: inline;
}

.ingame-msg.player .chat-text {
  color: #f1f5f9;
  display: inline;
  word-break: break-word;
}

.ingame-chat-form {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  gap: 4px;
}

.ingame-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 11px;
  font-family: inherit;
  padding: 3px 2px;
}

.ingame-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-ingame-chat-send {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, color .15s;
}

.btn-ingame-chat-send:hover {
  color: #7dd3fc;
  transform: scale(1.15);
}

/* =========================================================
   MODAL DE AMIGOS & CHAT PRIVADO (PM)
   ========================================================= */
.friends-panel {
  width: min(520px, 94vw);
  max-width: 520px;
}

.friends-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
}

.friends-list-container {
  max-height: 240px;
  min-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.friends-empty {
  text-align: center;
  padding: 36px 16px;
  color: #8da4db;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  transition: background .2s, border-color .2s;
}

.friend-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.friend-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.friend-rank-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.friend-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-nick {
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-status {
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

.friend-status.online {
  color: #4ade80;
}

.friend-status.offline {
  color: #94a3b8;
}

.friend-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-friend-join {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #34d399;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.btn-friend-join:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.btn-friend-pm {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-friend-pm:hover {
  background: #38bdf8;
  color: #000000;
}

.btn-friend-del {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-friend-del:hover {
  background: #ef4444;
  color: #ffffff;
}

.friends-add-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.friends-add-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.friends-add-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  opacity: 0.6;
  pointer-events: none;
}

.friends-add-input-wrap input {
  width: 100%;
  padding-left: 30px;
}

.friends-tip-text {
  font-size: 11px;
  color: #8da4db;
  font-weight: 600;
  margin-top: 2px;
}

/* PM Chat Box */
.friend-pm-box {
  background: rgba(10, 8, 25, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-pm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #38bdf8;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-pm-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-pm-close:hover {
  color: #ffffff;
}

.friend-pm-history {
  height: 120px;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  padding: 4px;
}

.pm-bubble {
  max-width: 82%;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1.3;
}

.pm-bubble.me {
  background: #1e3a8a;
  color: #ffffff;
  align-self: flex-end;
}

.pm-bubble.them {
  background: #1e293b;
  color: #cbd5e1;
  align-self: flex-start;
}

.friend-pm-input-row {
  display: flex;
  gap: 6px;
}

/* Context Popover do Jogador na Sala */
.player-slot-popover {
  position: fixed;
  z-index: 9999;
  background: rgba(15, 12, 35, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.6);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
  animation: popoverFadeIn .15s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.popover-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.popover-name {
  font-weight: 800;
  font-size: 13px;
  color: #ffd27a;
}

.popover-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-popover-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn-popover-action:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.btn-popover-action.close {
  color: #94a3b8;
  text-align: center;
  margin-top: 2px;
}

/* =========================================================
   CONVITES DE AMIZADE & BADGE DE NOTIFICAÇÃO (BUDDY)
   ========================================================= */
.buddy-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.8);
  animation: chat-badge-pop 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 5;
}

.friend-requests-section {
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.38);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-requests-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffd54f;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.friend-requests-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 115px;
  overflow-y: auto;
}

.friend-req-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 213, 79, 0.3);
  border-radius: 6px;
  padding: 5px 8px;
}

.friend-req-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-req-accept {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 1px solid #4ade80;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.12s;
}

.btn-req-accept:hover {
  transform: scale(1.05);
}

.btn-req-reject {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.btn-req-reject:hover {
  background: #ef4444;
  color: #ffffff;
}

.gb-user-row {
  cursor: pointer;
  transition: background 0.15s;
}

.gb-user-row:hover {
  background: rgba(93, 142, 232, 0.25) !important;
}

/* =========================================================
   AVATAR SHOP — INTERFACE CLÁSSICA GUNBOUND
   ========================================================= */
.gb-shop-window {
  width: min(1080px, 98vw);
  max-width: 1080px;
  height: min(650px, 95vh);
  background: linear-gradient(180deg, #5d8ae2 0%, #3963be 45%, #24438e 100%);
  border: 2.5px solid #91b6ff;
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.8), inset 0 0 18px rgba(255, 255, 255, 0.25);
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  user-select: none;
}

/* --- COLUNA ESQUERDA (PREVIEW + MY AVATAR + EXIT/BUDDY) --- */
.gb-shop-left {
  background: linear-gradient(180deg, #4b74cb 0%, #2a4a96 65%, #1c3470 100%);
  border-right: 3px solid #162a5c;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.gb-shop-preview-card {
  background: linear-gradient(180deg, #7da1e8 0%, #587ec9 100%);
  border: 2px solid #1c356e;
  border-radius: 8px;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gb-shop-stage {
  position: relative;
  height: 94px;
  border-radius: 6px;
  border: 2px solid #1f376d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff9e44 0%, #ffd27d 48%, #38bdf8 52%, #1d4ed8 100%);
}

.gb-shop-stage canvas {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}

.gb-shop-stage-nick {
  position: absolute;
  bottom: 3px;
  right: 6px;
  z-index: 3;
  font-size: 11px;
  font-weight: 900;
  color: #fffbe6;
  text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, 0.9);
}

.gb-shop-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px 6px;
  background: rgba(19, 36, 78, 0.35);
  border-radius: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gb-sh-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
}

.gb-sh-stat .sh-ico {
  font-size: 11px;
}

.gb-sh-stat .sh-val {
  font-family: monospace;
  font-size: 11.5px;
  color: #f8fafc;
}

.gb-shop-balances {
  background: linear-gradient(180deg, #4366b3 0%, #2f4d91 100%);
  border: 1px solid #192f64;
  border-radius: 5px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gb-sh-bal-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.gb-sh-bal-row.cash .sh-bal-num,
.gb-sh-bal-row.cash .sh-bal-lbl {
  color: #7dd3fc;
}

.gb-sh-bal-row.gold .sh-bal-num,
.gb-sh-bal-row.gold .sh-bal-lbl {
  color: #fde047;
}

.gb-sh-bal-row .sh-bal-lbl {
  min-width: 38px;
  text-align: right;
  font-size: 11.5px;
}

/* --- MY AVATAR (INVENTÁRIO ESQUERDO) --- */
.gb-shop-myavatar-card {
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #32549e 0%, #1d3671 100%);
  border: 2px solid #10224d;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gb-shop-myavatar-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 0 #0c1b40;
  letter-spacing: 0.5px;
  padding-left: 2px;
}

.gb-shop-inv-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gb-sh-inv-tab {
  background: #1b3168;
  border: 1px solid #4c74c9;
  color: #9bb8f2;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
}

.gb-sh-inv-tab.active {
  background: #678ee0;
  color: #ffffff;
  border-color: #aac6ff;
}

.gb-sh-inv-count {
  margin-left: auto;
  font-family: var(--font-title);
  font-size: 13px;
  color: #fde047;
  padding-right: 4px;
}

.gb-shop-inv-slots {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(11, 22, 51, 0.55);
  border: 1px solid #0e1e46;
  border-radius: 5px;
  padding: 4px;
}

.gb-sh-inv-row {
  min-height: 26px;
  background: linear-gradient(180deg, #8ba9e6 0%, #6b8cd1 100%);
  border: 1px solid #284687;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #102352;
}

.gb-sh-inv-row.empty {
  color: rgba(16, 35, 82, 0.45);
  justify-content: center;
  font-weight: 700;
  font-size: 10.5px;
}

.gb-shop-inv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 2px;
}

.gb-sh-mini-filters {
  display: flex;
  gap: 2px;
}

.sh-mini-f {
  background: rgba(15, 28, 63, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 11px;
  cursor: pointer;
  color: #cbd5e1;
}

.sh-mini-f.active,
.sh-mini-f:hover {
  background: #4e79d4;
  border-color: #9ec0ff;
  color: #ffffff;
}

.gb-sh-inv-actions {
  display: flex;
  gap: 4px;
}

.gb-sh-inv-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #facc15 0%, #ca8a04 100%);
  border: 1px solid #fef08a;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
  font-size: 10px;
  font-weight: 900;
}

.gb-sh-inv-btn.delete {
  background: linear-gradient(180deg, #64748b 0%, #334155 100%);
  border-color: #94a3b8;
}

.gb-shop-left-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.gb-shop-left-bottom .gb-sh-nav-btn.exit {
  width: 100%;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
}

.gb-sh-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: linear-gradient(180deg, #3b63b8 0%, #1d3878 100%);
  border: 1.5px solid #82aaff;
  border-radius: 8px;
  padding: 4px 18px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, filter 0.12s;
}

.gb-sh-nav-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.gb-sh-nav-btn .sh-nav-ico {
  font-size: 18px;
}

.gb-sh-nav-btn .sh-nav-lbl {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* --- COLUNA DIREITA (VITRINE 3x3 AVATAR SHOP) --- */
.gb-shop-right {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 8px;
  min-height: 0;
  background: linear-gradient(180deg, #6794eb 0%, #4471cb 55%, #2c51a3 100%);
}

.gb-shop-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2px 0;
}

.gb-shop-main-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 0 #152c66, 0 4px 10px rgba(0, 0, 0, 0.55);
  letter-spacing: 1px;
  margin: 0;
}

.gb-shop-grid-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gb-shop-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 0;
}

.gb-shop-card {
  background: linear-gradient(180deg, #749be8 0%, #5279c7 100%);
  border: 2px solid #18316b;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.12s, border-color 0.12s;
}

.gb-shop-card:hover {
  border-color: #fde047;
  transform: translateY(-1px);
}

.gb-shop-card-top {
  background: linear-gradient(180deg, #3c65b8 0%, #26468c 100%);
  border-bottom: 1.5px solid #18316b;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #e2e8f0;
  text-shadow: 0 1px 2px #000;
}

.gb-shop-card-Art {
  flex: 1;
  margin: 5px 6px 3px 6px;
  background: #f8fafc;
  border: 1.5px solid #1e293b;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px;
}

.gb-shop-card-placeholder-ico {
  font-size: 28px;
  opacity: 0.35;
  filter: grayscale(0.4);
}

.gb-shop-card-placeholder-txt {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  margin-top: 2px;
  text-transform: uppercase;
}

.gb-shop-card-stats {
  position: absolute;
  bottom: 2px;
  right: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #334155;
  display: flex;
  gap: 5px;
}

.gb-shop-card-price {
  padding: 2px 8px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-title);
  font-size: 11px;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.gb-shop-card-price .p-cash {
  color: #bae6fd;
}

.gb-shop-card-price .p-gold {
  color: #fde047;
}

/* --- RODAPÉ DIREITO DA LOJA (CATEGORIAS + SETAS + GIFT/BUY/TRY) --- */
.gb-shop-right-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.gb-shop-cat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-sh-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
  border: 1.5px solid #78350f;
  border-radius: 8px;
  padding: 3px 12px;
  cursor: pointer;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s, filter 0.12s;
}

.gb-sh-cat-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(254, 240, 138, 0.85);
  transform: translateY(-2px);
}

.gb-sh-cat-btn .cat-ico {
  font-size: 16px;
}

.gb-sh-cat-btn .cat-lbl {
  font-family: var(--font-title);
  font-size: 11px;
}

.gb-shop-page-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px;
}

.gb-sh-arrow {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  border: 1.5px solid #fff7ed;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.gb-sh-arrow:hover {
  filter: brightness(1.15);
}

.gb-sh-page-txt {
  font-family: var(--font-title);
  font-size: 12px;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
}

.gb-shop-buy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 29, 66, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 5px 10px;
}

.gb-shop-empty-banner {
  font-size: 11.5px;
  font-weight: 700;
  color: #fde047;
  text-shadow: 0 1px 2px #000;
}

.gb-shop-buy-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gb-sh-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 7px;
  padding: 5px 12px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 12px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, filter 0.12s;
}

.gb-sh-action-btn.buy {
  background: linear-gradient(180deg, #f97316 0%, #c2410c 100%);
  border-color: #fed7aa;
}

.gb-sh-action-btn.gift {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
  border-color: #e9d5ff;
}

.gb-sh-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

@media (max-width: 820px) {
  .gb-shop-window {
    grid-template-columns: 230px 1fr;
  }
  .gb-shop-empty-banner {
    font-size: 10px;
  }
}

/* ========================================================
   MODAL DE ATUALIZAÇÃO OBRIGATÓRIA (VERSION MISMATCH)
   ======================================================== */
#scr-modal-update {
  z-index: 999999 !important;
  background: rgba(5, 3, 15, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  align-items: center;
  justify-content: center;
}

#scr-modal-update.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#btn-update-now:hover {
  transform: scale(1.02);
  filter: brightness(1.15);
}

#btn-update-now:active {
  transform: scale(0.98);
}



