:root {
  --bg-space: #050814;
  --panel: #0f1733;
  --panel-2: #090e22;
  --panel-border: #2b3c6e;
  --cyan: #38bdf8;
  --gold: #fbbf24;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #a855f7;
  --rarity-common: #94a3b8;
  --rarity-rare: #38bdf8;
  --rarity-epic: #c084fc;
  --rarity-legendary: #fb923c;
  --rarity-cosmic: #f43f5e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

input {
  user-select: text;
  -webkit-user-select: text;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #192656 0%, #050814 95%);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: white;
}

.hidden { display: none !important; }

.app {
  width: 100%;
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 8px;
  position: relative;
}

.app.shake { animation: screenShake 0.28s ease-out; }
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(7px, -3px); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(4px, 2px); }
}

/* ==================== HUD SUPERIOR ==================== */
.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}

.stat-box {
  background: rgba(15, 23, 51, 0.92);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  padding: 5px 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-value.gold { color: var(--gold); }
.stat-value.combo { color: var(--cyan); }
.stat-value.pop { animation: pop 0.45s ease-out; }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.42); color: #fde047; }
  100% { transform: scale(1); }
}

.icon-btn {
  background: #17234a;
  border: 2px solid #3b5396;
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:active { transform: scale(0.93); }

/* ==================== BARRA DE WAVE / CHEFE ==================== */
.phase-bar-wrap {
  background: #0d142e;
  border: 2px solid var(--panel-border);
  border-radius: 999px;
  height: 27px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.phase-bar-wrap.boss-bar {
  border-color: #f43f5e;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.45);
}
.phase-bar-wrap.boss-crit {
  border-color: #fde047;
  animation: critPulseBar 0.7s infinite alternate;
}
@keyframes critPulseBar {
  from { box-shadow: 0 0 12px rgba(244, 63, 94, 0.5); }
  to { box-shadow: 0 0 24px rgba(250, 204, 21, 0.9); }
}
.phase-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  transition: width 0.25s ease-out;
}
.phase-bar-wrap.boss-bar .phase-bar-fill {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}
.phase-bar-wrap.boss-crit .phase-bar-fill {
  background: linear-gradient(90deg, #dc2626, #f59e0b, #fde047);
}
.phase-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 900;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
  padding: 0 12px;
}

/* ==================== ARENA PANORÂMICA ==================== */
.arena {
  flex: 1;
  min-height: 175px;
  background: #050814;
  border: 3px solid #2b3c6e;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 18px 50px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.85);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.arena.danger-flash { animation: dangerPulse 0.55s infinite alternate; }
.arena.paused-error { border-color: #f59e0b; box-shadow: inset 0 0 38px rgba(245, 158, 11, 0.35); }
.arena.frozen { border-color: #67e8f9; box-shadow: inset 0 0 48px rgba(34, 211, 238, 0.4); }
.arena.boss-arena { border-color: #f43f5e; }
.arena.boss-crit-arena { border-color: #fde047; box-shadow: inset 0 0 50px rgba(244, 63, 94, 0.45); }

@keyframes dangerPulse {
  from { border-color: #ef4444; box-shadow: inset 0 0 25px rgba(239,68,68,0.35); }
  to   { border-color: #fbbf24; box-shadow: inset 0 0 55px rgba(239,68,68,0.75); }
}

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.arena-top-badges {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  width: 96%;
  pointer-events: none;
}

.badge-pill {
  font-weight: 900;
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: 999px;
  display: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.55);
}
.badge-pill.visible { display: inline-flex; align-items: center; gap: 5px; }
.crit-badge { background: linear-gradient(90deg, #991b1b, #b45309); border: 2px solid #fde047; color: #fef08a; animation: pop 0.7s infinite alternate; }
.pause-badge { background: #b45309; border: 2px solid #fde047; color: #fef08a; }
.freeze-badge { background: #0e7490; border: 2px solid #67e8f9; color: #cffafe; }
.focus-badge { background: #4c1d95; border: 2px solid #c4b5fd; color: #ede9fe; }
.mode-badge { background: #065f46; border: 2px solid #34d399; color: #d1fae5; }

/* Esquadrão (Esquerda) */
.squad-side {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fighter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-svg {
  width: 138px;
  height: 134px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.65));
}
.pilot-tag {
  margin-top: -2px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #38bdf8;
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
}
.hero-hp-hud {
  width: 132px;
  margin-top: 4px;
  text-align: center;
}
.hero-hp-track {
  width: 100%;
  height: 11px;
  background: #0f172a;
  border: 1.5px solid #64748b;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}
.hero-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  transition: width 0.2s ease-out, background 0.2s;
}
.hero-hp-fill.warn { background: linear-gradient(90deg, #d97706, #fde047); }
.hero-hp-fill.low  { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.hero-hp-text {
  font-size: 10.5px;
  font-weight: 900;
  color: #e2e8f0;
  margin-top: 2px;
  text-shadow: 0 1px 3px #000;
}

.allies-strip {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 5px;
  max-height: 175px;
  overflow-y: auto;
}
.ally-mini-card {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.86);
  border: 1.5px solid #3b5396;
  border-radius: 11px;
  padding: 2px 7px 2px 3px;
  position: relative;
}
.ally-mini-card svg { width: 34px; height: 32px; flex-shrink: 0; }
.ally-info { font-size: 9.8px; line-height: 1.15; white-space: nowrap; }
.ally-info b { color: #7dd3fc; display: block; max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
.ally-info span { color: #fde047; font-weight: 800; }

/* Formação de Waves / Rivais até 10 (Direita) */
.wave-side {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 12px;
  align-items: center;
  justify-content: end;
}
.wave-side.many-rivals {
  grid-template-columns: repeat(3, auto);
  gap: 5px 8px;
}
.wave-side.many-rivals .enemy-svg { width: 64px; height: 64px; }
.wave-side.many-rivals .enemy-hud { width: 88px; }
.wave-side.single-enemy {
  grid-template-columns: auto;
}
.enemy-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.enemy-unit.targeted {
  border-color: rgba(253, 224, 71, 0.85);
  background: radial-gradient(circle, rgba(250, 204, 21, 0.14) 0%, transparent 72%);
}
.target-reticle {
  position: absolute;
  top: -8px;
  right: -4px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.enemy-svg {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.7));
}
.enemy-svg.boss {
  width: 142px;
  height: 142px;
}
.enemy-unit.boss-unit {
  grid-row: span 2;
}
.enemy-hud {
  width: 108px;
  text-align: center;
  margin-top: 2px;
}
.enemy-unit.boss-unit .enemy-hud { width: 148px; }
.enemy-name {
  font-size: 10.5px;
  font-weight: 900;
  color: #fecdd3;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-bar-bg {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}
.hp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.2s ease-out;
}
.hp-bar-fill.boss-hp {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}
.shield-pip-tag {
  font-size: 9.5px;
  font-weight: 900;
  color: #e9d5ff;
  background: #6b21a8;
  padding: 1px 6px;
  border-radius: 999px;
  margin-top: 2px;
  display: inline-block;
}
.attack-bar-bg {
  width: 100%;
  height: 6px;
  background: #0f172a;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 3px;
}
.attack-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, #ef4444);
  transition: width 0.08s linear;
}

.hero-idle { animation: floatBot 2.5s ease-in-out infinite; }
.enemy-idle { animation: floatEnemy 2.1s ease-in-out infinite; }
[data-rig-idle="1"].hero-idle,
[data-rig-idle="1"].enemy-idle,
.pvp-rival-unit.enemy-idle {
  animation: none;
}
.pvp-rival-unit svg.enemy-svg {
  transform: scaleX(-1);
}
@keyframes floatBot {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes floatEnemy {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}
.recoil { animation: recoilHit 0.22s ease-out !important; }
@keyframes recoilHit {
  0% { transform: translateX(0) scale(1); }
  40% { transform: translateX(13px) scale(0.92); filter: brightness(1.9); }
  100% { transform: translateX(0) scale(1); }
}
.hero-shoot { animation: heroShoot 0.2s ease-out !important; }
@keyframes heroShoot {
  0% { transform: translateX(0); }
  35% { transform: translateX(-7px) scale(1.05); }
  100% { transform: translateX(0); }
}
.hero-hurt { animation: heroHurt 0.35s ease-out !important; }
@keyframes heroHurt {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-5deg); filter: brightness(1.8); }
  75% { transform: translateX(8px) rotate(4deg); }
}

.speech-bubble {
  position: absolute;
  bottom: 97%;
  left: 50%;
  transform: translateX(-40%) translateY(6px);
  background: white;
  color: #0f172a;
  padding: 4px 11px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  opacity: 0;
  transition: all 0.2s;
  pointer-events: none;
  z-index: 9;
}
.speech-bubble.show { opacity: 1; transform: translateX(-40%) translateY(0); }

.float-popup {
  position: absolute;
  font-weight: 900;
  font-size: 18px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95);
  pointer-events: none;
  z-index: 10;
  animation: floatUp 0.95s ease-out forwards;
}
@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.82); }
  25% { opacity: 1; transform: translate(-50%, -15px) scale(1.18); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(0.95); }
}

/* Emotes & Poderes na Arena */
.emotes-bar {
  position: absolute;
  bottom: 44px;
  left: 14px;
  z-index: 7;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.emote-chip {
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid #38bdf8;
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.emote-chip:active { transform: scale(0.92); }

.powerups-bar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 96%;
  justify-content: center;
}
.pwr-btn {
  background: #1e293b;
  border: 2px solid #475569;
  color: white;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pwr-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.pwr-btn.super-btn {
  position: relative;
  overflow: hidden;
  background: #1e1b4b;
  border-color: #6366f1;
  min-width: 165px;
  justify-content: center;
}
.pwr-btn.super-btn.ready {
  background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
  border-color: #fde047;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
  animation: superPulse 0.75s infinite alternate;
}
@keyframes superPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.super-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: rgba(56, 189, 248, 0.36);
  transition: width 0.25s;
  pointer-events: none;
}
.super-label { position: relative; z-index: 1; }

/* ==================== PAINEL DA PERGUNTA ==================== */
.question-panel {
  background: linear-gradient(135deg, #172554, #2e1065);
  border: 3px solid #38bdf8;
  border-radius: 20px;
  padding: 8px 14px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.question-panel.error-mode {
  background: linear-gradient(135deg, #7f1d1d, #451a03);
  border-color: #fbbf24;
}
.question-panel.golden-mode {
  background: linear-gradient(135deg, #713f12, #581c87);
  border-color: #fde047;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.35);
}
.question-text {
  font-size: clamp(28px, 5.2vw, 44px);
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.55);
}
.feedback-banner {
  min-height: 20px;
  font-size: 13.5px;
  font-weight: 800;
  margin-top: 2px;
  color: #fde047;
}
.speed-tag {
  position: absolute;
  top: 7px;
  right: 10px;
  background: #0f172a;
  border: 2px solid #fde047;
  color: #fde047;
  font-weight: 900;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  opacity: 0;
  transition: all 0.2s;
}
.speed-tag.visible { opacity: 1; }
.q-left-tag {
  position: absolute;
  top: 7px;
  left: 10px;
  background: #4c1d95;
  border: 2px solid #c4b5fd;
  color: #ede9fe;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  display: none;
}
.q-left-tag.visible { display: block; }
.q-left-tag.golden {
  background: #854d0e;
  border-color: #fde047;
  color: #fef08a;
}

.visual-hint-box {
  display: none;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1.5px solid #fbbf24;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.visual-hint-box.visible { display: flex; }
.dot-matrix { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.dot-row { display: flex; gap: 5px; }
.dot-cell {
  width: clamp(8px, 2vw, 12px);
  height: clamp(8px, 2vw, 12px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7dd3fc, #0284c7);
}
.dot-row.alt .dot-cell {
  background: radial-gradient(circle at 35% 35%, #fde047, #d97706);
}

/* ==================== BOTÕES DE RESPOSTA & KEYPAD ==================== */
.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .answers-grid { grid-template-columns: repeat(4, 1fr); }
}
.ans-btn {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border: none;
  border-bottom: 6px solid #1e3a8a;
  color: white;
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 900;
  padding: 14px 8px;
  min-height: 58px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.35);
}
.ans-btn:active:not(:disabled) { transform: translateY(4px); border-bottom-width: 2px; }
.ans-btn.correct { background: linear-gradient(180deg, #22c55e, #16a34a) !important; border-bottom-color: #14532d !important; }
.ans-btn.wrong { background: linear-gradient(180deg, #ef4444, #b91c1c) !important; border-bottom-color: #7f1d1d !important; opacity: 0.45; cursor: not-allowed; }
.ans-btn.eliminated { opacity: 0.18; pointer-events: none; filter: grayscale(1); }
.ans-btn.hint { animation: hintGlow 0.65s infinite alternate; }
@keyframes hintGlow {
  from { box-shadow: 0 0 0 0 rgba(251,191,36,0.95); }
  to   { box-shadow: 0 0 0 9px rgba(251,191,36,0.28); }
}

.keypad-wrap {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  flex-shrink: 0;
}
.key-btn {
  background: #1e293b;
  border: none;
  border-bottom: 4px solid #0f172a;
  color: white;
  font-size: 22px;
  font-weight: 900;
  padding: 12px 0;
  min-height: 52px;
  border-radius: 14px;
  cursor: pointer;
}
.key-btn.ok-btn { background: #16a34a; border-bottom-color: #14532d; font-size: 16px; }
.key-btn.clear-btn { background: #dc2626; border-bottom-color: #7f1d1d; }

/* ==================== MODAIS / OVERLAYS ==================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 19, 0.93);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.modal {
  background: linear-gradient(180deg, #111a3a 0%, #0b1129 100%);
  border: 3px solid #3b5396;
  border-radius: 24px;
  padding: 18px 20px;
  width: 100%;
  max-width: 540px;
  text-align: center;
  box-shadow: 0 24px 65px rgba(0,0,0,0.75);
  max-height: 95dvh;
  overflow-y: auto;
}
.modal-wide { max-width: 780px; }
.modal-xl { max-width: 960px; }

.modal h1 { font-size: clamp(20px, 3vw, 26px); color: var(--gold); margin-bottom: 4px; }
.modal p { color: #cbd5e1; font-size: 13.5px; margin-bottom: 10px; line-height: 1.4; }

.modal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.16);
  border: 1.5px solid #38bdf8;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

/* Passaporte PIN */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
  margin-bottom: 10px;
}
@media (max-width: 650px) {
  .auth-grid { grid-template-columns: 1fr; }
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.space-input {
  width: 100%;
  background: #070b1c;
  border: 2px solid #38bdf8;
  border-radius: 14px;
  padding: 12px 14px;
  color: white;
  font-size: 18px;
  font-weight: 900;
  outline: none;
}
.space-input.code-big {
  text-align: center;
  letter-spacing: 6px;
  font-size: 24px;
}
.starter-skins-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.skin-pick {
  background: #162044;
  border: 2px solid #2b3c6e;
  color: white;
  border-radius: 10px;
  padding: 8px 4px;
  font-weight: 800;
  cursor: pointer;
}
.skin-pick.active { border-color: #fde047; background: #1e3a8a; }
.auth-hero-preview {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.pin-dots span {
  width: 42px;
  height: 46px;
  border-radius: 12px;
  background: #070b1c;
  border: 2px solid #3b5396;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #38bdf8;
}
.pin-dots span.filled {
  border-color: #fde047;
  color: #fde047;
  background: #172554;
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.pin-key {
  background: #17234a;
  border: none;
  border-bottom: 4px solid #090e22;
  color: white;
  font-size: 20px;
  font-weight: 900;
  padding: 11px 0;
  border-radius: 12px;
  cursor: pointer;
}
.pin-key:active { transform: translateY(2px); }
.pin-key.pin-clear { background: #991b1b; }
.pin-key.pin-go { background: #15803d; font-size: 15px; }
.auth-error {
  min-height: 20px;
  color: #fca5a5;
  font-weight: 800;
  font-size: 13px;
  margin: 4px 0;
}
.recent-pilots {
  background: #080d21;
  border: 1px solid #283a6e;
  border-radius: 14px;
  padding: 8px 10px;
  margin-bottom: 10px;
  text-align: left;
}
.recent-pilots-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.pilot-quick-chip {
  background: #172554;
  border: 1.5px solid #38bdf8;
  color: white;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
}

/* Hangar Principal */
.hangar-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #080d21;
  border: 1.5px solid #263769;
  border-radius: 16px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.pilot-badge-card {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.rank-chip {
  background: #2563eb;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 900;
}
.stars-inline { color: #fde047; font-weight: 900; }
.bolts-inline { color: #fbbf24; font-weight: 900; }
.lan-banner {
  font-size: 12px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.25);
  border: 1px dashed #38bdf8;
  padding: 4px 10px;
  border-radius: 999px;
}
.mini-action-btn {
  background: #1e293b;
  border: 1.5px solid #475569;
  color: #e2e8f0;
  padding: 6px 11px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.hangar-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  text-align: left;
}
@media (max-width: 720px) {
  .hangar-main-grid { grid-template-columns: 1fr; }
}
.hangar-pedestal-card {
  background: radial-gradient(circle at 50% 38%, #1e3a8a 0%, #080d21 78%);
  border: 2px solid #38bdf8;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hangar-equip-summary {
  font-size: 12px;
  color: #bae6fd;
  font-weight: 800;
  text-align: center;
}
.hangar-secondary-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.planet-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
}

/* Botões Padrão */
.config-section {
  background: #080d21;
  border: 1.5px solid #243463;
  border-radius: 16px;
  padding: 11px;
  margin-bottom: 10px;
  text-align: left;
}
.config-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.mode-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 7px;
}
.pill-btn {
  background: #162146;
  border: 2px solid #2b3c6e;
  color: #cbd5e1;
  padding: 9px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.pill-btn.active {
  background: #2563eb;
  border-color: #7dd3fc;
  color: white;
}
.tables-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.num-toggle {
  background: #162146;
  border: 2px solid #2b3c6e;
  color: #94a3b8;
  padding: 8px 0;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14.5px;
  cursor: pointer;
}
.num-toggle.selected {
  background: #10b981;
  border-color: #6ee7b7;
  color: #052e16;
}
.primary-btn {
  width: 100%;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border: none;
  border-bottom: 5px solid #b45309;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  padding: 13px;
  border-radius: 16px;
  cursor: pointer;
}
.primary-btn:active { transform: translateY(3px); border-bottom-width: 2px; }
.shop-open-btn {
  width: 100%;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  border: none;
  border-bottom: 5px solid #4c1d95;
  color: white;
  font-size: 15px;
  font-weight: 900;
  padding: 11px;
  border-radius: 14px;
  cursor: pointer;
}
.multi-open-btn {
  width: 100%;
  background: linear-gradient(180deg, #06b6d4, #0284c7);
  border: none;
  border-bottom: 5px solid #075985;
  color: white;
  font-size: 15.5px;
  font-weight: 900;
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  margin-top: 8px;
}

/* ==================== OFICINA 6 ABAS ==================== */
.bolts-pill-big {
  background: #1e293b;
  border: 2px solid #fbbf24;
  color: #fde047;
  font-size: 18px;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 999px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 14px;
  text-align: left;
}
@media (max-width: 760px) {
  .shop-layout { grid-template-columns: 1fr; }
}
.shop-pedestal {
  background: radial-gradient(circle at 50% 35%, #1e3a8a 0%, #080d21 80%);
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.shop-preview-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(6, 182, 212, 0.2);
  border: 1.5px solid #22d3ee;
  border-radius: 11px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  color: #cffafe;
}
.shop-preview-banner.hidden { display: none; }
.shop-preview-banner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-reset-btn {
  background: #0f172a;
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.shop-preview-hint {
  font-size: 10.5px;
  font-weight: 800;
  color: #93c5fd;
  text-align: center;
  line-height: 1.25;
}
.shop-preview-hint.hidden { display: none; }
.shop-preview-levels {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.shop-preview-levels.hidden { display: none; }
.lvl-preview-pill {
  background: #0f172a;
  border: 1.5px solid #334155;
  color: #cbd5e1;
  border-radius: 9px;
  padding: 4px 2px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.lvl-preview-pill small {
  font-size: 8.5px;
  font-weight: 800;
  color: #94a3b8;
  margin-top: 1px;
}
.lvl-preview-pill.active {
  background: #0e7490;
  border-color: #67e8f9;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}
.lvl-preview-pill.active small { color: #fef08a; }
.stats-bars-card {
  width: 100%;
  background: rgba(8, 13, 33, 0.9);
  border-radius: 12px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}
.stat-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 6px;
}
.stat-bar-row b {
  min-width: 54px;
  text-align: right;
  white-space: nowrap;
}
.stat-delta {
  font-size: 10.5px;
  font-weight: 900;
  margin-left: 3px;
}
.stat-delta.up { color: #4ade80; }
.stat-delta.down { color: #fbbf24; }
.sbar-track { height: 8px; background: #1e293b; border-radius: 999px; overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 999px; transition: width 0.25s; }
.sbar-fill.orange { background: #f59e0b; }
.sbar-fill.green { background: #22c55e; }
.sbar-fill.cyan { background: #38bdf8; }
.fair-note { font-size: 10px; color: #94a3b8; text-align: center; margin-top: 3px; }

.shop-tabs-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 9px;
}
@media (min-width: 820px) {
  .shop-tabs-6 { grid-template-columns: repeat(6, 1fr); }
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 9px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.shop-card {
  background: #090f26;
  border: 2px solid #2b3c6e;
  border-radius: 15px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}
.shop-card:hover { transform: translateY(-1px); }
.shop-card.previewing {
  border-color: #22d3ee !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.52) !important;
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.25) 0%, #090f26 100%);
}
.preview-chip {
  font-size: 9px;
  font-weight: 900;
  background: #06b6d4;
  color: #082f49;
  padding: 1px 6px;
  border-radius: 999px;
}
.shop-card.rarity-common { border-color: #475569; }
.shop-card.rarity-rare { border-color: #0284c7; }
.shop-card.rarity-epic { border-color: #9333ea; }
.shop-card.rarity-legendary { border-color: #ea580c; box-shadow: 0 0 12px rgba(234, 88, 12, 0.2); }
.shop-card.rarity-cosmic { border-color: #f43f5e; box-shadow: 0 0 16px rgba(244, 63, 94, 0.32); }
.shop-card.rarity-celestial { border-color: #22d3ee; background: linear-gradient(180deg, #0b1b3d 0%, #090f26 100%); box-shadow: 0 0 18px rgba(34, 211, 238, 0.32); }
.shop-card.rarity-mythic {
  border-color: #fde047;
  background: linear-gradient(160deg, #2e1065 0%, #450a0a 55%, #090f26 100%);
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.42);
}
.shop-card.equipped { background: rgba(22, 163, 74, 0.16); border-color: #22c55e !important; }

.shop-card-top { display: flex; justify-content: space-between; align-items: center; }
.rarity-tag { font-size: 9.5px; font-weight: 900; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; }
.rarity-tag.common { background: #334155; color: #e2e8f0; }
.rarity-tag.rare { background: #0369a1; color: #e0f2fe; }
.rarity-tag.epic { background: #6b21a8; color: #f3e8ff; }
.rarity-tag.legendary { background: #9a3412; color: #ffedd5; }
.rarity-tag.cosmic { background: linear-gradient(90deg, #db2777, #7c3aed); color: #fef08a; }
.rarity-tag.celestial { background: linear-gradient(90deg, #0284c7, #06b6d4); color: #fef08a; border: 1px solid #67e8f9; }
.rarity-tag.mythic { background: linear-gradient(90deg, #dc2626, #f59e0b, #a855f7); color: #ffffff; border: 1px solid #fde047; }

.challenge-req-box {
  margin-top: 5px;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px dashed #fde047;
  color: #fef08a;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

.shop-card-title { font-size: 13px; font-weight: 900; color: white; }
.shop-card-desc { font-size: 11px; color: #cbd5e1; line-height: 1.3; }
.lvl-pips { display: flex; gap: 4px; align-items: center; }
.lvl-pips span { width: 14px; height: 5px; border-radius: 3px; background: #1e293b; }
.lvl-pips span.on { background: #fbbf24; }
.shop-card-actions { display: flex; gap: 5px; margin-top: 2px; }
.shop-act-btn {
  flex: 1;
  border: none;
  border-radius: 9px;
  padding: 7px 6px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
}
.shop-act-btn.buy { background: #fbbf24; color: #0f172a; }
.shop-act-btn.equip { background: #0284c7; color: white; }
.shop-act-btn.equipped { background: #16a34a; color: white; cursor: default; }
.shop-act-btn.upg { background: #8b5cf6; color: white; }
.shop-act-btn.preview-btn {
  flex: 0 0 auto;
  padding: 7px 9px;
  background: #0e7490;
  border: 1.5px solid #67e8f9;
  color: #ecfeff;
}
.shop-act-btn.preview-btn.active {
  background: #22d3ee;
  color: #082f49;
}
.shop-act-btn.locked {
  opacity: 0.62;
  background: #334155 !important;
  color: #cbd5e1 !important;
  border: 1px dashed #64748b !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
.shop-act-btn.challenge {
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  color: #ffffff;
  border: 1.5px solid #fde047;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

/* ==================== MULTIPLAYER LOBBY ==================== */
.multi-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .multi-split { grid-template-columns: 1fr; }
}
.join-code-row { display: flex; gap: 8px; align-items: center; }
.open-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 175px;
  overflow-y: auto;
  margin-top: 6px;
}
.open-room-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111c40;
  border: 1.5px solid #38bdf8;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12.5px;
}
.room-code-highlight {
  background: #1e293b;
  border: 2px solid #fde047;
  color: #fde047;
  padding: 2px 12px;
  border-radius: 12px;
  letter-spacing: 4px;
}
.lobby-pedestals-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0;
}

/* ==================== AMIGOS ONLINE, CONVITES 1-TOQUE & EMOTES VISUAIS ==================== */
.online-friends-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(6, 95, 70, 0.36), rgba(15, 23, 51, 0.88));
  border: 1.5px solid #34d399;
  border-radius: 15px;
  padding: 7px 11px;
  margin-bottom: 11px;
  text-align: left;
}
.online-bar-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #6ee7b7;
  white-space: nowrap;
}
.online-friends-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}
.empty-online-msg {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
}
.friend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0d1838;
  border: 1.5px solid #38bdf8;
  border-radius: 999px;
  padding: 3px 6px 3px 8px;
  font-size: 12px;
  font-weight: 800;
}
.friend-pill svg { width: 26px; height: 25px; }
.friend-act-btn {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.friend-act-btn.join-now {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  color: #052e16;
  animation: superPulse 0.85s infinite alternate;
}
.friend-act-btn.invite-now {
  background: #fbbf24;
  color: #0f172a;
}

.mp-big-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-mode-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #111c40;
  border: 2px solid #2b3c6e;
  border-radius: 14px;
  padding: 9px 11px;
  color: white;
  cursor: pointer;
}
.mp-mode-card.active {
  background: linear-gradient(90deg, #1d4ed8, #4c1d95);
  border-color: #fde047;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.3);
}
.mp-mode-icon { font-size: 26px; }
.mp-mode-card b { display: block; font-size: 13.5px; color: #fef08a; }
.mp-mode-card small { font-size: 11px; color: #cbd5e1; line-height: 1.25; }

.arena-invite-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 8;
  background: #065f46;
  border: 1.5px solid #34d399;
  color: #ecfdf5;
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.arena-invite-btn span {
  background: #fbbf24;
  color: #0f172a;
  padding: 0 5px;
  border-radius: 999px;
  margin-left: 3px;
}
.arena-friends-popover {
  position: absolute;
  top: 38px;
  right: 10px;
  z-index: 12;
  width: 255px;
  background: rgba(9, 15, 38, 0.96);
  border: 2px solid #34d399;
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.75);
}
.popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #6ee7b7;
  margin-bottom: 6px;
}
.arena-friends-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 135px;
  overflow-y: auto;
}

.invite-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(94vw, 560px);
  background: linear-gradient(90deg, #1e3a8a, #581c87, #065f46);
  border: 3px solid #fde047;
  border-radius: 20px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(250, 204, 21, 0.55);
  animation: inviteBounce 0.6s ease-out;
}
@keyframes inviteBounce {
  0% { transform: translate(-50%, -60px) scale(0.9); opacity: 0; }
  70% { transform: translate(-50%, 5px) scale(1.03); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
.invite-toast-left { display: flex; align-items: center; gap: 9px; text-align: left; }
.invite-toast-title { font-size: 15px; font-weight: 900; color: #fef08a; }
.invite-toast-sub { font-size: 12px; font-weight: 800; color: #bae6fd; }
.invite-toast-actions { display: flex; gap: 6px; align-items: center; }
.invite-accept-btn {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  border: none;
  border-bottom: 4px solid #14532d;
  color: #052e16;
  font-weight: 900;
  font-size: 13.5px;
  padding: 9px 13px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.invite-dismiss-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #64748b;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 11.5px;
  padding: 8px 9px;
  border-radius: 10px;
  cursor: pointer;
}

/* Emotes Virais Visuais */
.emote-chip.emote-special {
  border-color: #fde047;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  color: #fef08a;
}
.visual-emote-fx {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: emotePopOut 1.85s ease-out forwards;
}
@keyframes emotePopOut {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.4); }
  18% { opacity: 1; transform: translate(-50%, -65%) scale(1.18); }
  78% { opacity: 1; transform: translate(-50%, -82%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -105%) scale(0.85); }
}
.emote-67-digits {
  display: inline-flex;
  gap: 5px;
  font-size: 34px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 0 14px #f43f5e, 0 3px 6px #000;
}
.emote-67-digits .d6 { animation: seesaw6 0.34s ease-in-out infinite alternate; display: inline-block; }
.emote-67-digits .d7 { animation: seesaw7 0.34s ease-in-out infinite alternate; display: inline-block; color: #38bdf8; }
@keyframes seesaw6 { from { transform: translateY(-9px) rotate(-8deg); } to { transform: translateY(8px) rotate(6deg); } }
@keyframes seesaw7 { from { transform: translateY(8px) rotate(8deg); } to { transform: translateY(-9px) rotate(-6deg); } }

.emote-aura-ring {
  padding: 6px 13px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168,85,247,0.92), rgba(244,63,94,0.85));
  border: 2.5px solid #fde047;
  box-shadow: 0 0 26px #c084fc, 0 0 42px #fde047;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}
.aura-glow-burst {
  animation: auraHeroPulse 1.5s ease-out;
}
@keyframes auraHeroPulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  40% { filter: drop-shadow(0 0 22px #c084fc) drop-shadow(0 0 32px #fde047) brightness(1.3); }
}
.emote-cinema-box {
  background: #020617;
  border-top: 4px solid #fde047;
  border-bottom: 4px solid #fde047;
  color: #fef08a;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.7);
}
.emote-banner-tag {
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
  display: inline-block;
}
.pedestal-slot {
  background: radial-gradient(circle at 50% 35%, #172554 0%, #080d21 82%);
  border: 2px solid #2b3c6e;
  border-radius: 16px;
  padding: 10px 8px;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.pedestal-slot.ready { border-color: #22c55e; }
.pedestal-slot.empty { border-style: dashed; color: #64748b; font-weight: 800; font-size: 12px; }
.lobby-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

/* ==================== MAPA DE DOMÍNIO & RANKING ==================== */
.mastery-matrix {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.m-cell {
  background: #0c132c;
  border: 1px solid #243463;
  border-radius: 8px;
  padding: 6px 2px;
  font-size: 10.5px;
  font-weight: 900;
  text-align: center;
}
.m-cell.mastered { background: #065f46; border-color: #34d399; color: #d1fae5; }
.m-cell.training { background: #581c87; border-color: #fbbf24; color: #fef08a; }

.ranking-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.ranking-list, .podium-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 360px;
  overflow-y: auto;
}
.rk-row {
  display: grid;
  grid-template-columns: 38px 52px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #090f26;
  border: 1.5px solid #243463;
  border-radius: 14px;
  padding: 6px 12px;
  text-align: left;
}
.rk-row.me { border-color: #fde047; background: rgba(250, 204, 21, 0.1); }
.rk-pos { font-size: 18px; font-weight: 900; color: #fbbf24; text-align: center; }
.rk-metric { font-size: 14px; font-weight: 900; color: #38bdf8; text-align: right; }

/* Estatísticas / Resultado */
.wave-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.wave-stat-card {
  background: #080d21;
  border: 2px solid #2b3c6e;
  border-radius: 14px;
  padding: 10px 6px;
}
.wave-stat-card.hits { border-color: #22c55e; }
.wave-stat-card.bolts { border-color: #fbbf24; }
.wave-stat-card.acc { border-color: #38bdf8; }
.wave-stat-num { font-size: 23px; font-weight: 900; }
.wave-stat-lbl { font-size: 10.5px; font-weight: 800; color: #94a3b8; text-transform: uppercase; }
.stars-banner { font-size: 32px; letter-spacing: 6px; }
.review-list {
  background: #080d21;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 9px;
  margin: 8px 0;
  font-size: 13px;
  color: #fde047;
}
.link-btn {
  background: none; border: none; color: #7dd3fc; text-decoration: underline;
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.empty-hint { color: #64748b; font-size: 12px; text-align: center; padding: 14px; }

/* Ajustes para Tablets menores / Telas baixas */
@media (max-height: 680px) {
  .app { gap: 5px; padding: 6px 10px; }
  .hero-svg { width: 108px; height: 104px; }
  .enemy-svg { width: 78px; height: 78px; }
  .enemy-svg.boss { width: 112px; height: 112px; }
  .ans-btn { padding: 10px 6px; min-height: 48px; }
  .question-panel { padding: 6px 10px; }
}

/* ==================== SCI-FI NEON + ARCADE VISUAL OVERHAUL ==================== */
.stat-box {
  background: linear-gradient(180deg, rgba(17, 27, 62, 0.95) 0%, rgba(9, 14, 34, 0.95) 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(125, 211, 252, 0.16);
}
.stat-value.gold {
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
}
.stat-value.combo {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.boss-alert-banner {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(180, 83, 9, 0.96), rgba(88, 28, 135, 0.96));
  border: 2.5px solid #fde047;
  color: #fef08a;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.75), 0 0 40px rgba(253, 224, 71, 0.45);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.arena.frozen-vignette {
  border-color: #67e8f9;
  box-shadow:
    inset 0 0 62px rgba(34, 211, 238, 0.48),
    inset 0 0 22px rgba(236, 254, 255, 0.35),
    0 0 20px rgba(34, 211, 238, 0.28);
}

/* Estados Elementais Persistentes (Gelo, Fogo, Elétrico e Vácuo) */
.status-frozen {
  border-color: rgba(103, 232, 249, 0.9) !important;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24) 0%, rgba(8, 51, 68, 0.14) 68%, transparent 100%);
  filter: drop-shadow(0 0 12px #67e8f9) saturate(1.2) brightness(1.1);
}
.status-frozen .enemy-svg {
  filter: drop-shadow(0 0 11px #67e8f9) hue-rotate(-8deg) brightness(1.12);
}

.status-burning {
  border-color: rgba(251, 146, 60, 0.9) !important;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, rgba(124, 45, 18, 0.12) 70%, transparent 100%);
  animation: statusBurningPulse 0.62s ease-in-out infinite alternate;
}
@keyframes statusBurningPulse {
  from { box-shadow: 0 0 10px rgba(249, 115, 22, 0.45); filter: drop-shadow(0 0 8px #fb923c); }
  to   { box-shadow: 0 0 22px rgba(253, 224, 71, 0.72); filter: drop-shadow(0 0 14px #fde047) brightness(1.12); }
}

.status-shocked {
  border-color: rgba(192, 132, 252, 0.92) !important;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.24) 0%, rgba(34, 211, 238, 0.12) 70%, transparent 100%);
  animation: statusShockedJitter 0.24s steps(2, end) infinite;
}
@keyframes statusShockedJitter {
  0%   { box-shadow: 0 0 12px rgba(192, 132, 252, 0.65); filter: drop-shadow(-1px 0 9px #22d3ee); }
  50%  { box-shadow: 0 0 20px rgba(34, 211, 238, 0.8); filter: drop-shadow(1px 0 12px #fde047) brightness(1.14); }
  100% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.7); filter: drop-shadow(0 0 10px #c084fc); }
}

.status-void_mark {
  border-color: rgba(168, 85, 247, 0.92) !important;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.42) 0%, rgba(244, 63, 94, 0.16) 65%, transparent 100%);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.65), inset 0 0 16px rgba(2, 6, 23, 0.85);
  animation: statusVoidHalo 0.95s ease-in-out infinite alternate;
}
@keyframes statusVoidHalo {
  from { filter: drop-shadow(0 0 9px #7c3aed); }
  to   { filter: drop-shadow(0 0 16px #f43f5e) contrast(1.12); }
}

/* Scanner 50/50 Glitch Out nas alternativas eliminadas */
.ans-btn.scanner-glitch-out {
  animation: scannerGlitchOut 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes scannerGlitchOut {
  0%   { opacity: 1; transform: scale(1) skewX(0deg); filter: hue-rotate(0deg) brightness(1.6); }
  35%  { opacity: 0.75; transform: scale(0.98) translateX(-5px) skewX(-8deg); filter: drop-shadow(0 0 10px #4ade80); }
  70%  { opacity: 0.4; transform: scale(0.95) translateX(4px) skewX(6deg); }
  100% { opacity: 0.18; transform: scale(0.94); filter: grayscale(1); }
}

/* Reator Rive / Canvas no botão Super Raio */
.super-rive-canvas {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pwr-btn.super-btn.ready .super-rive-canvas,
.super-rive-canvas[data-super-active="1"] {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 6px #fde047);
}

/* Pedestal 3D Atropos & Brilho Holográfico nas Relíquias Celestial / Mítica */
.shop-atropos-card {
  width: 175px;
  height: 164px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-atropos-inner {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.22) 0%, rgba(8, 13, 33, 0.35) 75%);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.shop-card.rarity-celestial,
.shop-card.rarity-mythic {
  position: relative;
  overflow: hidden;
}
.shop-card.rarity-celestial::after,
.shop-card.rarity-mythic::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  transform: rotate(24deg);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(253, 224, 71, 0.24) 50%,
    rgba(103, 232, 249, 0.16) 65%,
    transparent 100%
  );
  animation: holoCardSheen 4.2s ease-in-out infinite;
}
@keyframes holoCardSheen {
  0%, 35% { left: -85%; }
  75%, 100% { left: 155%; }
}

@media (prefers-reduced-motion: reduce) {
  .status-burning,
  .status-shocked,
  .status-void_mark,
  .ans-btn.scanner-glitch-out,
  .shop-card.rarity-celestial::after,
  .shop-card.rarity-mythic::after {
    animation: none !important;
  }
}
