/* ==========================================================
   DrawGamePlay — Fully Responsive Stylesheet (All Screen Sizes & RTL)
   Supported: 320px, 375px, 480px, 768px, 1024px, 1280px, 1440px, 1920px, 2560px
   Orientations: Portrait & Landscape
   ========================================================== */

:root {
  --bg-primary: #121528;
  --bg-card: #1c2142;
  --bg-card-border: #2d3466;
  --bg-input: #10132b;
  --accent-gold: #ffce3d;
  --accent-gold-shadow: #c99c1e;
  --accent-green: #2ecc71;
  --accent-green-shadow: #1e8749;
  --accent-blue: #3b82f6;
  --accent-blue-shadow: #1d4ed8;
  --accent-red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Roboto, Arial, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  max-width: 100dvw;
  overflow-x: hidden;
  font-family: var(--font-family);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(67, 97, 238, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 206, 61, 0.1) 0%, transparent 40%);
  color: var(--text-main);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Layout Direction: Always fixed to LTR like English for all menus, pages, and panels */
html, body {
  direction: ltr !important;
}



/* Utility Helpers */
.oculto {
  display: none !important;
}

/* Generic Screen Shell */
.tela {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  max-width: 100dvw;
  padding: clamp(8px, 2vh, 20px) clamp(8px, 2vw, 24px);
  padding-top: max(clamp(8px, 2vh, 20px), env(safe-area-inset-top, 0px));
  padding-bottom: max(clamp(8px, 2vh, 20px), env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(8px, 2vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(8px, 2vw, 24px), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* ==========================================================
   TELA INICIAL & CARDS
   ========================================================== */
.inicio-wrap {
  width: min(450px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.logo {
  margin-bottom: clamp(4px, 1vh, 8px);
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-img {
  width: 100%;
  max-width: clamp(230px, 68vw, 360px);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.tagline {
  font-size: clamp(11.5px, 2.5vw, 14px);
  font-weight: 900;
  letter-spacing: clamp(0.08em, 0.5vw, 0.16em);
  color: var(--accent-gold);
  margin-bottom: clamp(14px, 2.5vh, 22px);
  text-transform: uppercase;
}

.card {
  background: var(--bg-card);
  border: clamp(2px, 0.5vw, 3.5px) solid var(--bg-card-border);
  border-radius: clamp(20px, 4vw, 28px);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  width: 100%;
  position: relative;
}

.convite {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  font-weight: 800;
  font-size: clamp(13px, 2.5vw, 14.5px);
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.nick-row {
  display: flex;
  gap: clamp(6px, 2vw, 10px);
  margin-bottom: clamp(14px, 2.5vh, 18px);
  width: 100%;
}

#inp-nick {
  flex: 1;
  min-width: 0;
  background: var(--bg-input);
  border: 2px solid var(--bg-card-border);
  border-radius: clamp(12px, 2.5vw, 16px);
  padding: clamp(10px, 2.5vw, 13px) clamp(12px, 3vw, 18px);
  font-family: inherit;
  font-size: clamp(15px, 3vw, 17.5px);
  font-weight: 800;
  color: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#inp-nick:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(255, 206, 61, 0.2);
}

#inp-nick::placeholder {
  color: #64748b;
}

#lang-switch select {
  background: var(--bg-input);
  border: 2px solid var(--bg-card-border);
  border-radius: clamp(12px, 2.5vw, 16px);
  padding: 0 clamp(8px, 1.8vw, 12px);
  height: 100%;
  min-height: 44px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(13px, 2.6vw, 14.5px);
  color: white;
  cursor: pointer;
  outline: none;
}

.avatar-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 20px);
}

.avatar-wrap {
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s;
}

.avatar-wrap:hover {
  transform: scale(1.05);
}

#avatar-atual {
  width: clamp(76px, 18vw, 96px);
  height: clamp(76px, 18vw, 96px);
  font-size: clamp(42px, 10vw, 56px);
  background: #242b54;
  border: clamp(2.5px, 0.6vw, 3.5px) solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #3b82f6;
  width: clamp(26px, 6vw, 32px);
  height: clamp(26px, 6vw, 32px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 3vw, 15px);
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.avatar-customizer-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.av-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.av-nav-btn:hover {
  background: #3b82f6;
  border-color: #60a5fa;
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.av-nav-btn:active {
  transform: scale(0.92);
}

.av-random-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 210, 63, 0.15);
  border: 1.5px solid var(--accent-gold);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.av-random-btn:hover {
  background: var(--accent-gold);
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 6px 16px rgba(255, 210, 63, 0.45);
}

.av-random-btn:active {
  transform: scale(0.9) rotate(-15deg);
}

.pulse-glow {
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.85);
    transform: scale(1.02);
  }
}

.avatar-dica {
  font-size: clamp(12px, 2.5vw, 13.5px);
  font-weight: 800;
  color: #a5b4fc;
  margin-top: 8px;
}

.prog-home {
  background: rgba(255, 206, 61, 0.12);
  border: 1.5px solid rgba(255, 206, 61, 0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-weight: 800;
  font-size: clamp(12px, 2.4vw, 13px);
  color: var(--accent-gold);
  margin-bottom: 14px;
  display: inline-block;
}

/* ==========================================================
   BUTTONS (Touch-friendly & Fluid)
   ========================================================== */
.btn {
  font-family: inherit;
  font-weight: 900;
  font-size: clamp(15px, 3.2vw, 17px);
  letter-spacing: 0.03em;
  border: none;
  border-radius: clamp(14px, 3vw, 18px);
  padding: clamp(12px, 2.5vw, 15px) clamp(16px, 4vw, 24px);
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
}

.btn:active {
  transform: translateY(3px) !important;
}

.btn-jogar, .btn-primario {
  background: var(--accent-green);
  color: #0f361c;
  box-shadow: 0 5px 0 var(--accent-green-shadow);
  margin-bottom: 10px;
}

.btn-jogar:hover, .btn-primario:hover {
  filter: brightness(1.08);
}

.btn-jogar:active, .btn-primario:active {
  box-shadow: 0 2px 0 var(--accent-green-shadow);
}

.btn-secundario {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 5px 0 var(--accent-blue-shadow);
  margin-bottom: 8px;
}

.btn-secundario:hover {
  filter: brightness(1.08);
}

.btn-secundario:active {
  box-shadow: 0 2px 0 var(--accent-blue-shadow);
}

.btn-link {
  background: none;
  color: #94a3b8;
  box-shadow: none;
  font-size: clamp(13px, 2.5vw, 14.5px);
  font-weight: 800;
  text-decoration: underline;
  padding: 8px;
  min-height: 40px;
}

.btn-link:hover {
  color: white;
}

.btn-howto {
  margin-top: clamp(12px, 2vh, 18px);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(12.5px, 2.5vw, 14px);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}

.btn-howto:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.dead-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.1);
}

.dead-titulo {
  font-weight: 800;
  font-size: clamp(14px, 3vw, 16px);
  color: #fbbf24;
  margin-bottom: 12px;
}

.erro {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: clamp(13px, 2.6vw, 14px);
  margin-top: 10px;
}



/* ==========================================================
   CONFIG SCREEN
   ========================================================== */
.card-config {
  width: min(460px, 100%);
  margin: 0 auto;
}

.cfg-voltar {
  position: absolute;
  top: clamp(14px, 3vw, 20px);
  left: clamp(14px, 3vw, 20px);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: clamp(34px, 8vw, 38px);
  height: clamp(34px, 8vw, 38px);
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.cfg-voltar:hover {
  background: rgba(255, 255, 255, 0.2);
}

.perfil-ribbon {
  font-size: clamp(16px, 3.5vw, 19px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: clamp(14px, 2.5vh, 20px);
  text-transform: uppercase;
}

.cfg-secao {
  margin-bottom: 20px;
  text-align: left;
}

.col-titulo {
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cfg-linhas {
  background: var(--bg-input);
  border: 2px solid var(--bg-card-border);
  border-radius: clamp(14px, 3vw, 18px);
  padding: 4px 14px;
}

.cfg-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 2vw, 13px) 0;
  font-weight: 800;
  font-size: clamp(14px, 3vw, 15.5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cfg-linha:last-child {
  border-bottom: none;
}

.cfg-linha select {
  background: #232a56;
  border: 1.5px solid #3c4687;
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(13.5px, 2.8vw, 15px);
  padding: 6px 12px;
  min-height: 38px;
  outline: none;
}

.cfg-toggle {
  cursor: pointer;
  user-select: none;
}

.cfg-toggle input {
  display: none;
}

.card-config .perfil-ribbon {
  padding: 0 clamp(28px, 6vw, 40px);
}

.cfg-toggle .switch {
  width: 46px;
  height: 26px;
  background: #374151;
  border-radius: 14px;
  position: relative;
  display: inline-block;
  transition: background 0.2s;
  flex-shrink: 0;
  direction: ltr;
}

.cfg-toggle .switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cfg-toggle input:checked + .switch {
  background: var(--accent-green);
}

.cfg-toggle input:checked + .switch::after {
  transform: translateX(20px);
}

.cfg-nota {
  font-size: clamp(11.5px, 2.4vw, 12.5px);
  color: #94a3b8;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.45;
}

/* ==========================================================
   LOBBY SCREEN
   ========================================================== */
.card-lobby {
  width: min(620px, 100%);
  text-align: center;
  margin: 0 auto;
}

#lobby-titulo {
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
}

.lobby-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: clamp(11.5px, 2.4vw, 13px);
  font-weight: 800;
  color: #e2e8f0;
}

.lobby-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(85px, 22vw, 120px), 1fr));
  gap: clamp(8px, 2vw, 12px);
  margin-bottom: 18px;
  max-height: clamp(180px, 35vh, 280px);
  overflow-y: auto;
  padding: 4px;
}

.lobby-player {
  background: #141733;
  border: 2px solid var(--bg-card-border);
  border-radius: clamp(12px, 2.5vw, 18px);
  padding: clamp(10px, 2vw, 14px) 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.lobby-player .em {
  font-size: clamp(30px, 7vw, 38px);
  width: clamp(48px, 11vw, 58px);
  height: clamp(48px, 11vw, 58px);
  min-width: clamp(48px, 11vw, 58px);
  min-height: clamp(48px, 11vw, 58px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 6px;
  border-radius: 50%;
}

.lobby-player .nk {
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 900;
  color: white;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-player.off {
  opacity: 0.45;
}

.recon-label {
  font-size: 10.5px;
  color: #fbbf24;
  font-weight: 800;
  margin-top: 4px;
}

.aviso {
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 14px;
  min-height: 24px;
}

.aviso-spin {
  display: inline-block;
  animation: spin 2s linear infinite;
}

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

.pontinhos i {
  font-style: normal;
  animation: blink 1.4s infinite both;
}
.pontinhos i:nth-child(2) { animation-delay: .2s; }
.pontinhos i:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

.rabisco-box {
  background: #0f1226;
  border: 2px dashed #3a4382;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 16px;
}

.rabisco-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #818cf8;
  margin-bottom: 6px;
}

#rabisco-canvas {
  width: 100%;
  height: clamp(100px, 20vh, 160px);
  background: #ffffff;
  border-radius: 10px;
  display: block;
  touch-action: none;
}

.convidar-dica {
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* ==========================================================
   GAME SCREEN (TELA JOGO) - FLUID & RESPONSIVE
   ========================================================== */
#tela-jogo {
  padding: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Header */
#jogo-header {
  height: clamp(48px, 7vh, 58px);
  background: #181d3d;
  border-bottom: 3px solid #2a3366;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(8px, 2vw, 16px);
  flex-shrink: 0;
  gap: clamp(6px, 1.5vw, 12px);
  z-index: 20;
}

#hdr-rodada {
  font-weight: 900;
  font-size: clamp(12.5px, 2vw, 15px);
  color: var(--accent-gold);
  flex-shrink: 0;
}

#hdr-palavra {
  font-family: inherit;
  font-size: clamp(16px, 3.5vw, 26px);
  font-weight: 900;
  letter-spacing: clamp(0.08em, 0.3vw, 0.18em);
  color: white;
  text-align: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: isolate;
}
#hdr-palavra[dir="rtl"],
.palavra-mask[dir="rtl"] {
  direction: rtl !important;
  text-align: center;
}
#hdr-palavra[dir="ltr"],
.palavra-mask[dir="ltr"] {
  direction: ltr !important;
  text-align: center;
}

#hdr-timer {
  background: #0f1228;
  border: 2px solid #2d366a;
  border-radius: 12px;
  padding: clamp(4px, 1vw, 6px) clamp(8px, 1.8vw, 14px);
  font-weight: 900;
  font-size: clamp(13.5px, 2.5vw, 17px);
  color: #cbd5e1;
  flex-shrink: 0;
  text-align: center;
}

#hdr-timer.urgente {
  color: #ef4444;
  border-color: #ef4444;
  animation: pulse 0.5s infinite alternate;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
  flex-shrink: 0;
}

#btn-som, #btn-sair-header, .btn-hdr-action {
  background: #272f5e;
  border: 1.5px solid #3c478c;
  color: white;
  border-radius: 10px;
  width: clamp(32px, 5.5vw, 38px);
  height: clamp(32px, 5.5vw, 38px);
  font-size: clamp(13px, 2.2vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
#btn-som:hover, #btn-sair-header:hover, .btn-hdr-action:hover {
  background: #364182;
  transform: translateY(-1px);
}
#btn-sair-header {
  color: #ff6b6b;
  border-color: #7f2b3e;
}
#btn-sair-header:hover {
  background: #8b1d31;
  color: #fff;
}

/* Main Gameplay Area */
#jogo-main {
  flex: 1;
  display: flex;
  gap: clamp(8px, 1.5vw, 14px);
  padding: clamp(6px, 1.2vw, 12px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 0;
}

/* Left column: Players List (Desktop default) */
#painel-jogadores {
  width: clamp(170px, 16vw, 210px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

.pj {
  background: #1c2247;
  border: 2px solid #2d3770;
  border-radius: 14px;
  padding: clamp(6px, 1.2vw, 8px) clamp(8px, 1.5vw, 10px);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
  min-height: 44px;
  overflow: hidden;
}

.pj:hover {
  border-color: var(--accent-gold);
}

.pj.acertou {
  background: rgba(46, 204, 113, 0.18);
  border-color: #2ecc71;
}

.pj.off {
  opacity: 0.4;
}

.pj .em {
  font-size: clamp(20px, 2.5vw, 24px);
  width: clamp(32px, 3.2vw, 38px);
  height: clamp(32px, 3.2vw, 38px);
  min-width: clamp(32px, 3.2vw, 38px);
  min-height: clamp(32px, 3.2vw, 38px);
  max-width: clamp(32px, 3.2vw, 38px);
  max-height: clamp(32px, 3.2vw, 38px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.pj .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pj .nk {
  font-size: clamp(12px, 2vw, 13.5px);
  font-weight: 900;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pj .pt {
  font-size: clamp(11px, 1.8vw, 12px);
  font-weight: 800;
  color: var(--accent-gold);
}

.pj .badge {
  font-size: 16px;
  flex-shrink: 0;
}

/* Center column: Drawing Canvas & Tools */
#area-desenho {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

#canvas-wrap {
  position: relative;
  width: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3 !important;
  max-height: calc(100vh - 160px);
  background: white;
  border-radius: clamp(12px, 2.5vw, 20px);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3 !important;
  display: block;
  touch-action: none;
}

/* Tools Bar */
#barra-tools {
  width: 100%;
  max-width: min(920px, 100%);
  background: #181d3d;
  border: 2px solid #2c356b;
  border-radius: 16px;
  padding: 6px clamp(6px, 1.5vw, 12px);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

#cores {
  display: flex;
  gap: clamp(3px, 0.6vw, 6px);
  flex-wrap: nowrap !important;
  align-items: center;
  flex-shrink: 0;
}

.cor {
  width: clamp(22px, 3.5vw, 26px);
  height: clamp(22px, 3.5vw, 26px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.cor:hover {
  transform: scale(1.15);
}

.cor.ativa {
  transform: scale(1.25);
  border: 2.5px solid white;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.tool-wrap {
  position: relative;
  display: inline-flex;
}



.tam-popup, #tam-popup {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b2146;
  border: 2px solid #3b468a;
  border-radius: 14px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 100;
  min-width: 60px;
}

.tam-popup-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  text-align: center;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.tam-op {
  width: 100%;
  min-width: 52px;
  height: 32px;
  background: #262e60;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.tam-op:hover {
  background: #38448d;
}

.tam-op .tam-dot-shape {
  background: white;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.tam-op .tam-label {
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  margin-left: 4px;
  pointer-events: none;
}

.tam-op.ativa {
  background: var(--accent-gold);
}

.tam-op.ativa .tam-dot-shape {
  background: #1e2448;
}

.tam-op.ativa .tam-label {
  color: #1a1e38;
}

.tool {
  width: clamp(34px, 5vw, 38px);
  height: clamp(34px, 5vw, 38px);
  background: #252d5e;
  border: 2px solid #3c488f;
  border-radius: 10px;
  font-size: clamp(15px, 2.5vw, 17px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.tool.ativa {
  background: var(--accent-gold);
  border-color: var(--accent-gold-shadow);
  color: #1a1e38;
}

.tool.armado {
  background: #ef4444 !important;
  border-color: #dc2626 !important;
  animation: shake 0.2s infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  50% { transform: translate(-1px, -2px) rotate(-1deg); }
  100% { transform: translate(1px, -1px) rotate(1deg); }
}

/* Right column: Chat & Guesses */
#coluna-chat {
  width: clamp(230px, 22vw, 290px);
  flex-shrink: 0;
  background: #181d3d;
  border: 2px solid #2a3366;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
}

#chat-tabs {
  display: flex;
  border-bottom: 2px solid #2a3366;
  background: #141833;
}

.chat-tab {
  flex: 1;
  padding: 8px 10px;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(12.5px, 2vw, 13.5px);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-tab.ativa {
  color: var(--accent-gold);
  border-bottom: 3px solid var(--accent-gold);
  background: rgba(255, 206, 61, 0.08);
}

#chat-msgs, #chat-regs {
  flex: 1;
  padding: clamp(8px, 1.5vw, 12px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.msg {
  font-size: clamp(12.5px, 2vw, 13.5px);
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
  color: #e2e8f0;
  direction: auto;
  unicode-bidi: plaintext;
  text-align: start;
}

.msg bdi {
  unicode-bidi: isolate;
}

.msg .nk {
  font-weight: 900;
  color: #93c5fd;
  margin-inline-end: 4px;
}

.msg-sistema {
  color: #94a3b8;
  font-size: 11.5px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px 8px;
  direction: inherit;
}

.msg-acerto {
  color: #2ecc71;
  font-weight: 900;
  background: rgba(46, 204, 113, 0.15);
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  direction: inherit;
}

html[dir="rtl"] .msg {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .msg-sistema,
html[dir="rtl"] .msg-acerto,
html[dir="rtl"] .msg-quase {
  text-align: center;
}

.msg-quase {
  color: #facc15 !important;
  font-weight: 800 !important;
  background: rgba(250, 204, 21, 0.18) !important;
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.2) !important;
}

@keyframes clockWobbleLeft {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-10deg) scale(1.08); }
}
@keyframes clockWobbleRight {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg) scale(1.08); }
}
#hdr-timer.wobble-left { animation: clockWobbleLeft 0.22s ease !important; }
#hdr-timer.wobble-right { animation: clockWobbleRight 0.22s ease !important; }

.msg-time {
  color: #38bdf8;
}

.msg-registro {
  font-size: 11.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
}

#chat-form {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 2px solid #2a3366;
  background: #131733;
}

#chat-input {
  flex: 1;
  min-width: 0;
  background: #1d234a;
  border: 2px solid #333d78;
  border-radius: 12px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: clamp(13px, 2.2vw, 14px);
  font-weight: 800;
  color: white;
  outline: none;
  min-height: 42px;
  transition: border-color 0.2s;
}

#chat-input:focus {
  border-color: var(--accent-gold);
}

#chat-input.acertou-ph {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
}

#btn-convidar-jogo {
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  padding: 0 12px;
  min-height: 42px;
  cursor: pointer;
}

/* ==========================================================
   MODALS & OVERLAYS
   ========================================================== */
.modal {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 38, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: clamp(6px, 1.5vh, 16px) clamp(8px, 2vw, 20px);
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

#modal-escolha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

#modal-escolha h3 {
  font-size: clamp(13px, 3vh, 20px);
  font-weight: 900;
  color: white;
  margin: 0 0 clamp(6px, 1.4vh, 14px) 0;
  line-height: 1.2;
  text-align: center;
  max-width: 95%;
}

#opcoes-palavras {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: clamp(5px, 1.4vw, 12px);
  width: 100%;
  max-width: min(580px, 98%);
  margin: 0 0 clamp(8px, 1.6vh, 16px) 0;
  flex-shrink: 0;
}

#opcoes-palavras .btn-opcao-palavra,
#opcoes-palavras button {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.5vh, 6px);
  background: var(--accent-gold) !important;
  color: #221804 !important;
  border: none !important;
  border-radius: clamp(10px, 2.2vh, 16px) !important;
  padding: clamp(6px, 1.2vh, 12px) clamp(4px, 1vw, 10px) !important;
  min-height: clamp(38px, 9vh, 68px) !important;
  box-shadow: 0 clamp(2px, 0.5vh, 5px) 0 var(--accent-gold-shadow) !important;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  font-family: inherit;
  box-sizing: border-box;
}

#opcoes-palavras .btn-opcao-palavra:hover,
#opcoes-palavras button:hover {
  transform: translateY(-2px) scale(1.02);
}

#opcoes-palavras .btn-opcao-palavra:active,
#opcoes-palavras button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-gold-shadow) !important;
}

.btn-opcao-palavra .opt-word {
  flex: none;
  font-size: clamp(12px, 2.6vh, 17px);
  font-weight: 900;
  color: #221804;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.opt-badge {
  font-size: clamp(8.5px, 1.8vh, 11px);
  font-weight: 800;
  padding: clamp(1px, 0.3vh, 3px) clamp(6px, 1vw, 10px);
  border-radius: 999px;
  letter-spacing: 0.3px;
  line-height: 1.1;
  display: inline-block;
  white-space: nowrap;
}

.opt-badge.badge-easy {
  background: #16a34a;
  color: #ffffff;
}

.opt-badge.badge-medium {
  background: #d97706;
  color: #ffffff;
}

.opt-badge.badge-hard {
  background: #dc2626;
  color: #ffffff;
}

.btn-passar {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: clamp(4px, 0.8vh, 8px) clamp(12px, 2.5vw, 20px);
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(11px, 2.2vh, 13px);
  color: white;
  cursor: pointer;
  min-height: clamp(28px, 5.5vh, 36px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.btn-passar:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* Interstitial Modal */
.inter-titulo {
  font-size: clamp(18px, 4.5vh, 32px);
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: clamp(1px, 0.3vh, 4px);
}

.inter-sub {
  font-size: clamp(11.5px, 2.5vh, 15px);
  font-weight: 700;
  color: #cbd5e1;
}

.inter-arte {
  font-size: clamp(32px, 7.5vh, 60px);
  margin: clamp(4px, 1vh, 12px) 0;
}

.inter-info {
  font-size: clamp(12px, 2.5vh, 16px);
  font-weight: 800;
  color: white;
  margin-bottom: clamp(6px, 1.2vh, 12px);
}

.inter-info b {
  color: var(--accent-gold);
  font-size: clamp(14px, 3.2vh, 20px);
}

.inter-barra {
  width: min(280px, 80%);
  height: clamp(6px, 1.2vh, 10px);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

#inter-barra-fill, #podio-barra-fill {
  height: 100%;
  background: var(--accent-gold);
  width: 100%;
}

#modal-podio {
  overflow-y: auto;
  justify-content: flex-start;
  padding: clamp(8px, 1.8vh, 18px) clamp(8px, 2vw, 20px);
}

#podio-palco {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  margin: clamp(4px, 1vh, 12px) auto;
  width: 100%;
}

.podio-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.podio-av {
  font-size: clamp(18px, 4.2vh, 32px);
}

.podio-medal {
  width: clamp(18px, 3.5vh, 26px);
  height: clamp(18px, 3.5vh, 26px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(10px, 2vh, 14px);
  margin: 2px 0;
}

.podio-medal.ouro { background: #ffeaa7; color: #2d3436; }
.podio-medal.prata { background: #ffffff; color: #2d3436; }
.podio-medal.bronze { background: #ffeaa7; color: #2d3436; }

.podio-nome {
  font-size: clamp(10px, 2vh, 12px);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

#podio-resto {
  font-size: clamp(10.5px, 2.2vh, 13px);
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: clamp(2px, 0.6vh, 8px);
}

#podio-xp {
  font-size: clamp(11.5px, 2.4vh, 14px);
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: clamp(2px, 0.6vh, 6px);
}

/* Podium Action Buttons */
.podio-botoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 8px);
  margin: clamp(4px, 1vh, 10px) 0 clamp(3px, 0.6vh, 6px);
  width: 100%;
  max-width: 500px;
}

.podio-botoes .btn {
  flex: 1 1 clamp(85px, 26%, 140px);
  min-height: clamp(30px, 6vh, 40px);
  padding: clamp(4px, 0.8vh, 8px) clamp(6px, 1.2vw, 12px);
  font-size: clamp(10.5px, 2.1vh, 13px);
  font-weight: 900;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.podio-botoes .btn:hover {
  transform: translateY(-1px);
}

.podio-botoes .btn:active {
  transform: translateY(1px);
}

#btn-denovo {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 0 #059669, 0 6px 14px rgba(16, 185, 129, 0.35);
  border: none;
}
#btn-denovo:hover {
  background: #059669;
  box-shadow: 0 4px 0 #047857, 0 8px 18px rgba(16, 185, 129, 0.45);
}

#btn-podio-criar {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 0 #2563eb, 0 6px 14px rgba(59, 130, 246, 0.35);
  border: none;
}
#btn-podio-criar:hover {
  background: #2563eb;
  box-shadow: 0 4px 0 #1d4ed8, 0 8px 18px rgba(59, 130, 246, 0.45);
}

.btn-sair-podio {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.btn-sair-podio:hover {
  background: rgba(239, 68, 68, 0.32);
  color: white;
  border-color: #ef4444;
}

.btn-podio-link {
  margin-top: 4px;
  font-size: clamp(12px, 2.2vw, 13.5px);
  color: #cbd5e1;
  text-decoration: underline;
  opacity: 0.85;
}
.btn-podio-link:hover {
  opacity: 1;
  color: white;
}

.modal.tela-inter {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Modals Overlay */
.modal-fixo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: clamp(6px, 1.5vh, 16px) clamp(8px, 2vw, 18px);
  padding-top: max(clamp(6px, 1.5vh, 16px), env(safe-area-inset-top, 0px));
  padding-bottom: max(clamp(6px, 1.5vh, 16px), env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(8px, 2vw, 18px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(8px, 2vw, 18px), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.perfil-card {
  background: var(--bg-card);
  border: clamp(2px, 0.5vw, 3px) solid var(--bg-card-border);
  border-radius: clamp(16px, 3.5vh, 26px);
  padding: clamp(12px, 2.5vh, 24px) clamp(14px, 3vw, 26px);
  width: min(440px, 95vw);
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  box-sizing: border-box;
}

.fechar-x, #perfil-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(6px, 1.5vw, 8px);
  margin: clamp(12px, 2.5vh, 18px) 0;
}

#avatar-grid button {
  font-size: clamp(22px, 5vw, 28px);
  background: #252d5a;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: clamp(4px, 1vw, 6px);
  cursor: pointer;
  transition: transform 0.15s;
  min-height: 42px;
}

#avatar-grid button:hover {
  transform: scale(1.15);
}

#avatar-grid button.ativo {
  border-color: var(--accent-gold);
  background: rgba(255, 206, 61, 0.2);
}

.btn-perfil {
  background: #3b82f6;
  border: none;
  border-radius: 14px;
  color: white;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(13.5px, 2.8vw, 15px);
  padding: 12px 20px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
}

.btn-perfil.azul {
  background: #64748b;
}

.sair-texto {
  font-size: clamp(15px, 3vw, 17px);
  font-weight: 800;
  margin: 12px 0 clamp(14px, 2.5vh, 20px);
  color: white;
}

.sair-botoes {
  display: flex;
  gap: 10px;
}

#link-sala {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: white;
  font-family: monospace;
  font-size: clamp(12.5px, 2.5vw, 14px);
  margin: 12px 0;
  text-align: center;
  outline: none;
}

.share-icone, .afk-arte {
  font-size: clamp(44px, 10vw, 54px);
  margin-bottom: 6px;
}

.btn-whats-modal {
  background: #25d366;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: clamp(16px, 4vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 2px solid var(--accent-gold);
  color: white;
  padding: 9px clamp(16px, 4vw, 24px);
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(13px, 2.5vw, 14.5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  z-index: 2000;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Guess Hint Indicator */
.guess-hint {
  position: fixed;
  bottom: 74px;
  right: clamp(16px, 4vw, 60px);
  background: #ffce3d;
  color: #171b33;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: clamp(12px, 2.5vw, 13.5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 80;
  animation: bounce 1s infinite alternate;
}
.guess-hint[dir="rtl"] {
  direction: rtl !important;
}
.guess-hint[dir="ltr"] {
  direction: ltr !important;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* ==========================================================
   BREAKPOINTS & RESPONSIVE ADAPTATIONS
   ========================================================== */

/* 1. Large screens & 4K (1920px, 2560px) */
@media (min-width: 1920px) {
  #jogo-main {
    max-width: 1800px;
    gap: 20px;
    padding: 20px;
  }
  #painel-jogadores {
    width: 250px;
  }
  #coluna-chat {
    width: 340px;
  }
}

/* 2. Tablets & Small Laptops (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  #painel-jogadores {
    width: 160px;
  }
  #coluna-chat {
    width: 230px;
  }
}

/* 3. Mobile Phones Portrait (< 768px: 320px, 375px, 480px) */
@media (max-width: 767px) {
  #jogo-main {
    flex-direction: column;
    gap: 8px;
    padding: 6px;
    overflow-y: auto;
  }

  /* Player list becomes a compact horizontal scroll bar at the top */
  #painel-jogadores {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 4px;
    flex-shrink: 0;
  }

  .pj {
    min-width: clamp(105px, 28vw, 135px);
    flex-shrink: 0;
    padding: 5px 8px;
  }

  .pj .em {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }

  /* Canvas adapts to fit mobile viewport */
  #area-desenho {
    width: 100%;
    flex-shrink: 0;
    height: auto;
  }

  #canvas-wrap {
    width: auto;
    height: auto;
    max-width: 100%;
    aspect-ratio: 4 / 3 !important;
    max-height: 40vh;
    margin: 0 auto;
  }

  /* Toolbar strictly ONE row on mobile with horizontal smooth scroll */
  #barra-tools {
    padding: 6px 8px;
    gap: 5px;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  #cores {
    gap: 4px;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    width: auto;
    flex-shrink: 0;
  }

  .cor {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .tool {
    width: 38px;
    height: 38px;
  }

  /* Chat is at the bottom with fixed reasonable height */
  #coluna-chat {
    width: 100%;
    min-height: 150px;
    max-height: 28vh;
    flex-shrink: 0;
  }

  #chat-msgs {
    padding: 8px;
    gap: 4px;
  }

  #chat-form {
    padding: 6px;
  }

  #chat-input {
    min-height: 44px;
  }
}

/* 4. Mobile Landscape (Height < 520px) */
@media (max-height: 520px) and (orientation: landscape) {
  #jogo-header {
    height: 42px;
    padding: 0 8px;
  }

  #jogo-main {
    flex-direction: row;
    padding: 4px 8px;
    gap: 8px;
  }

  #painel-jogadores {
    width: 130px;
    gap: 4px;
  }

  .pj {
    padding: 4px 6px;
    min-height: 36px;
  }

  .pj .em {
    font-size: 20px;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
  }

  #canvas-wrap {
    max-height: calc(100vh - 105px);
    aspect-ratio: 4 / 3;
  }

  #barra-tools {
    margin-top: 4px;
    padding: 4px 8px;
  }

  .cor {
    width: 20px;
    height: 20px;
  }

  .tool {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  #coluna-chat {
    width: 190px;
  }

  #chat-input {
    min-height: 36px;
    padding: 4px 8px;
  }
}

/* ========================================================
   UPGRADE FEATURES STYLING
   - Top Bar Utility Actions (Night Mode & Fullscreen)
   - Night / Eye Protection Theme
   - Public Rooms Browser Modal & Cards
   - Enhanced Drawing Toolbar (24 Colors, Picker, Shapes, Redo)
   - Mobile Touchpad Mode ("Finger = Pencil")
   - Floating "+N" Score Badge Animations
======================================================== */

/* --- Top Bar Utility Actions --- */
.top-bar-actions {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 999;
}
body.em-jogo .top-bar-actions,
#tela-jogo:not(.oculto) ~ .top-bar-actions {
  display: none !important;
}

.cfg-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.cfg-custom-input {
  width: 100%;
  padding: 7px 10px;
  background: #0f1228;
  border: 2px solid #3c478c;
  border-radius: 8px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cfg-custom-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(254, 202, 87, 0.35);
}
.btn-top-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-top-action:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}
.btn-top-action:active {
  transform: scale(0.95);
}

/* --- Night / Eye Protection Theme --- */
body.night-mode {
  --bg-app: #0e1222;
  --bg-card: #181d33;
  --bg-card-border: #2b3355;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  background: radial-gradient(circle at top, #19203c 0%, #0d1121 100%);
  color: #e2e8f0;
}
body.night-mode .card,
body.night-mode .perfil-card {
  background: #181d33;
  border-color: #2b3355;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
body.night-mode #jogo-header {
  background: #14192d;
  border-bottom: 2px solid #28304f;
}
body.night-mode .pj {
  background: #1e2440;
  border-color: #323c63;
}
body.night-mode #barra-tools {
  background: #181d33;
  border-color: #2b3355;
}
body.night-mode #coluna-chat {
  background: #14192d;
  border-color: #28304f;
}

/* --- Public Rooms Browser Modal --- */
.salas-card {
  width: min(520px, 94vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.salas-header-row {
  display: flex;
  gap: 10px;
  margin: 14px 0 12px;
}
#inp-salas-search {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
#inp-salas-search:focus {
  border-color: #6366f1;
  background: rgba(255, 255, 255, 0.12);
}
.btn-salas-refresh {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.18);
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.btn-salas-refresh:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}
.salas-lista {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  padding-right: 4px;
}
.sala-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}
.sala-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.sala-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.sala-topo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sala-code {
  font-weight: 800;
  font-size: 17px;
  color: #fbbf24;
  letter-spacing: 1px;
}
.sala-lang {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}
.sala-theme {
  font-size: 12px;
  color: #cbd5e1;
}
.sala-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}
.sala-estado {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}
.sala-estado.estado-lobby {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.sala-estado.estado-drawing,
.sala-estado.estado-choosing {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}
.btn-entrar-sala {
  padding: 8px 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-entrar-sala:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.salas-vazio {
  padding: 30px;
  color: #94a3b8;
  font-size: 15px;
}

/* --- Enhanced Drawing Toolbar (7 Colors on Bar, 100 in Popup, Picker, Shapes) --- */
#cores {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap !important;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}
.tool-picker-btn {
  width: clamp(26px, 4vw, 34px);
  height: clamp(26px, 4vw, 34px);
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tool-picker-btn:hover {
  transform: scale(1.1);
}
.tool-picker-btn.ativa {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}
.tool.armado {
  background: #ef4444 !important;
  color: white !important;
  animation: pulseSkip 0.5s infinite alternate;
}
@keyframes pulseSkip {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

/* --- Mobile Touchpad Mode ("Finger = Pencil") - Placed OVER Chat with Transparency & 4:3 Aspect Ratio --- */
.touchpad-wrap {
  position: absolute;
  inset: 0;
  z-index: 50;
  container-type: size;
  background: rgba(15, 23, 42, 0.22); /* High transparency letting text underneath show through clearly */
  backdrop-filter: none !important; /* No blur so text under it is 100% readable */
  -webkit-backdrop-filter: none !important;
  border: 2px solid rgba(99, 102, 241, 0.45);
  border-radius: 18px;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}
.touchpad-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  gap: 6px;
  box-sizing: border-box;
}
.touchpad-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.touchpad-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.pad-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #e2e8f0;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}
.pad-ctrl-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.pad-ctrl-btn:active {
  transform: translateY(0);
}
.pad-btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
  flex-shrink: 0;
}
.pad-btn-icon {
  font-size: 12px;
  line-height: 1;
}

/* Touch Button States */
.pad-touch-btn.on {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
}
.pad-touch-btn.off {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
}

/* Ink Button States */
.pad-ink-btn.on {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.25);
}
.pad-ink-btn.off {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

/* Simulate Button */
.pad-sim-btn {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.55);
}
.pad-sim-btn.simulating {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #c4b5fd !important;
  animation: simPulse 0.8s infinite alternate ease-in-out;
}
@keyframes simPulse {
  from { box-shadow: 0 0 4px #8b5cf6; }
  to { box-shadow: 0 0 14px #a78bfa, 0 0 20px #8b5cf6; }
}

.fechar-touchpad {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 6px;
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.fechar-touchpad:hover {
  background: rgba(239, 68, 68, 0.7);
  color: #ffffff;
}

.touchpad-area {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: min(100%, calc((100cqh - 44px) * 4 / 3));
  height: auto;
  max-height: calc(100cqh - 44px);
  aspect-ratio: 4 / 3 !important; /* EXACT SAME FIXED ASPECT RATIO AS DRAWING BOX */
  margin: auto;
  background: rgba(30, 41, 59, 0.18); /* Transparent so underlying chat text is clearly visible */
  border: 2px dashed rgba(129, 140, 248, 0.65);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.touchpad-area:active {
  background: rgba(49, 46, 129, 0.32);
  border-color: #818cf8;
}
.touchpad-area.touch-off {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(15, 23, 42, 0.45) !important;
  cursor: not-allowed !important;
}
.touchpad-area.simulating {
  border-color: #a78bfa !important;
  background: rgba(76, 29, 149, 0.18) !important;
}

.touchpad-hint {
  font-size: 12px;
  font-weight: 700;
  color: #e0e7ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  opacity: 0.85;
  text-align: center;
  padding: 0 10px;
  transition: opacity 0.2s;
}

/* --- Visual Finger Touch & Movement Simulation --- */
.touchpad-finger-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}
.finger-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(129, 140, 248, 0.8);
  animation: fingerRipple 1.2s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
  pointer-events: none;
}
@keyframes fingerRipple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.finger-pad {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.65) 0%, rgba(99, 102, 241, 0.2) 75%, transparent 100%);
  border: 1.5px solid rgba(199, 210, 254, 0.9);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
  pointer-events: none;
}
.finger-icon {
  position: relative;
  z-index: 3;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
  transform: translate(2px, -3px);
  pointer-events: none;
}

.touchpad-status-overlay {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  pointer-events: none;
  z-index: 8;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Canvas Virtual Cursor Dot */
.touchpad-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 25;
  transition: opacity 0.15s ease;
}
.pad-dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}
.pad-dot-core {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #6366f1;
  transition: background 0.15s;
}
.pad-dot-badge {
  display: none !important;
}
.touchpad-dot.no-ink .pad-dot-ring {
  border: 2px dashed #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}
.touchpad-dot.no-ink .pad-dot-core {
  background: #f59e0b;
  opacity: 0.7;
}

/* Eraser Shape Preview Lens (Semi-Transparent with Dual-Contrast Ring) */
.eraser-cursor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 28;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.38);
  border: 1.5px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95), 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: left, top, width, height;
}

.eraser-cursor-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* While actively erasing (pointer down on canvas) */
.eraser-cursor.erasing {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ef4444;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95), 0 0 10px rgba(239, 68, 68, 0.45);
}

@media (max-height: 560px) {
  .touchpad-wrap {
    padding: 4px !important;
  }
  .touchpad-header {
    padding: 3px 4px !important;
    gap: 3px !important;
  }
  .touchpad-controls {
    gap: 3px !important;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
  }
  .pad-ctrl-btn {
    padding: 2px 4px !important;
    font-size: 9px !important;
    gap: 2px !important;
    letter-spacing: -0.2px;
  }
  .pad-btn-dot {
    width: 5px !important;
    height: 5px !important;
  }
  .pad-btn-icon {
    font-size: 10px !important;
  }
  .fechar-touchpad {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }
  .pad-sim-btn .pad-btn-text {
    display: none !important;
  }
  .touchpad-title {
    display: none !important;
  }
}

/* --- 100 Top Colors Custom Color Popup --- */
.popup-cores-wrap {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 11, 26, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  animation: fadeInColors 0.18s ease-out;
}
@keyframes fadeInColors {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.popup-cores-dialog {
  background: #181d3d;
  border: 2px solid #3c488f;
  border-radius: 20px;
  padding: 16px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popup-cores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup-cores-title {
  font-size: 16px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.popup-cores-fechar {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.popup-cores-fechar:hover {
  background: rgba(239, 68, 68, 0.6);
  color: #ffffff;
}
.grid-cores-100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  padding: 8px;
  background: #11142b;
  border-radius: 12px;
  border: 1px solid #2a3366;
}
.cor-100 {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
  box-sizing: border-box;
}
.cor-100:hover {
  transform: scale(1.28);
  z-index: 5;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  border-color: #ffffff;
}
.cor-100.ativa {
  outline: 2.5px solid #ffffff;
  outline-offset: 1px;
  transform: scale(1.15);
  z-index: 4;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
.popup-cores-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.popup-cores-current {
  display: flex;
  align-items: center;
  gap: 8px;
}
.popup-cores-preview {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.popup-cores-hex {
  font-size: 13px;
  font-family: monospace;
  font-weight: 700;
  color: #94a3b8;
}
.btn-custom-color {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #252d5e;
  border: 1.5px solid #3c488f;
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-custom-color:hover {
  background: #313b7a;
  transform: translateY(-1px);
}

/* --- Floating "+N" Score Badge Animations --- */
.pj {
  position: relative;
}
.score-pop {
  position: absolute;
  top: 0;
  right: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.6);
  pointer-events: none;
  z-index: 50;
  animation: scoreFloatUp 1.6s ease-out forwards;
}
@keyframes scoreFloatUp {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  20% {
    transform: translateY(-8px) scale(1.25);
    opacity: 1;
  }
  75% {
    transform: translateY(-20px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-32px) scale(0.9);
    opacity: 0;
  }
}

/* ==========================================================
   FEATURE EXPANSIONS: Streamer, Report ⚠, AFK, Pause & Tiers
   ========================================================== */

/* Report only shows when clicking on any player (no canvas floating button) */
.btn-reportar-desenho {
  display: none !important;
}
.btn-reportar-desenho.reported,
.btn-reportar-desenho:disabled {
  background: rgba(100, 116, 139, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.report-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
}

/* Banner de Alerta AFK do Desenhista */
.banner-afk-drawer {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(220, 38, 38, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid #fecaca;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
  animation: pulseAfk 0.8s infinite alternate ease-in-out;
  pointer-events: none;
}
@keyframes pulseAfk {
  from {
    transform: translateX(-50%) scale(0.98);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  }
  to {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 8px 26px rgba(239, 68, 68, 0.85);
  }
}

/* Modo Streamer */
.btn-hdr-action.streamer-active {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #c4b5fd !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.75);
}
.streamer-hidden {
  filter: blur(9px);
  user-select: none;
  transition: filter 0.2s ease;
}
.streamer-hidden:hover {
  filter: blur(0px);
}

/* Modal de Pausa por Desconexão (60s) */
.pausa-countdown-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(55px, 12vh, 85px);
  height: clamp(55px, 12vh, 85px);
  margin: clamp(6px, 1.5vh, 14px) auto;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
#pausa-countdown-num {
  font-size: clamp(24px, 5.5vh, 36px);
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
}

/* Difficulty Badges Hover and Glow */
.btn-opcao-palavra.diff-easy:hover {
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45) !important;
}
.btn-opcao-palavra.diff-medium:hover {
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.45) !important;
}
.btn-opcao-palavra.diff-hard:hover {
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45) !important;
}

/* Room Cards Avançados */
.sala-target {
  font-size: 12px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.sala-estado.estado-jogando {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

/* ==========================================================
   Player Profile & Feedback (Like / Dislike / Report Modal)
   ========================================================== */
.perfil-feedback-card {
  width: min(420px, 94vw);
  background: #151a3a;
  border: 3px solid #2e3875;
  border-radius: 24px;
  padding: 24px 20px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(99, 102, 241, 0.15);
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.perfil-user-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 16px;
}

.perfil-feedback-card .perfil-av {
  font-size: 58px;
  line-height: 1;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(15, 23, 42, 0) 70%);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(129, 140, 248, 0.3);
  margin-bottom: 8px;
}

.perfil-feedback-card .perfil-nick {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.perfil-score {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.perfil-feedback-section {
  background: rgba(10, 14, 30, 0.6);
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.perfil-feedback-hint {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 12px;
  line-height: 1.4;
}

.perfil-feedback-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}

.btn-feedback {
  flex: 1;
  border-radius: 16px;
  padding: 12px 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  min-height: 80px;
}

/* Like (👍) Button */
.btn-feedback-like {
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.btn-feedback-like:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-feedback-like.ativo {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #6ee7b7;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.55);
}

/* Dislike (👎) Button */
.btn-feedback-dislike {
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.btn-feedback-dislike:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.btn-feedback-dislike.ativo {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #fca5a5;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.55);
}

.feedback-icon {
  font-size: 22px;
  line-height: 1;
}

.feedback-label {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.feedback-counter {
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.btn-feedback-like.ativo .feedback-counter {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.btn-feedback-dislike.ativo .feedback-counter {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.perfil-votekick-status {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.perfil-actions-extra {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.btn-perfil-action {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 12px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-perfil-action:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.btn-perfil-action.ativo {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

/* ==========================================================
   GLOBAL RESPONSIVE ARCHITECTURE & VIEWPORT ADAPTATION
   Applies across ALL screens, modals, dialogs, cards, inputs, and tools.
   Ensures zero unwanted overflow, no clipped elements, and no dialog scroll.
   Tested resolutions:
   1920×1080, 1366×768, 1024×768, 768×1024, 430×932, 390×844, 844×390, 667×375
   ========================================================== */

/* 1. Global Safe-Area and Viewport Rules for Dialogs & Shells */
.modal-fixo, .popup-cores-wrap {
  padding: max(clamp(4px, 1.2vh, 16px), env(safe-area-inset-top, 0px))
           max(clamp(6px, 1.5vw, 18px), env(safe-area-inset-right, 0px))
           max(clamp(4px, 1.2vh, 16px), env(safe-area-inset-bottom, 0px))
           max(clamp(6px, 1.5vw, 18px), env(safe-area-inset-left, 0px));
}

/* 2. Short Viewports / Mobile Landscape (Height <= 560px or landscape with height <= 520px) */
@media (max-height: 560px), (max-height: 520px) and (orientation: landscape) {
  /* Screens and Container Shells */
  .tela {
    padding: clamp(3px, 0.8vh, 8px) clamp(6px, 1.5vw, 12px) !important;
    justify-content: center !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  /* Home Screen (tela-inicio) */
  .inicio-wrap {
    width: min(420px, 98%) !important;
    margin: 0 auto !important;
  }

  .logo {
    margin-bottom: clamp(1px, 0.4vh, 4px) !important;
  }

  .logo-img {
    max-height: clamp(32px, 7.5vh, 48px) !important;
    width: auto !important;
  }

  .tagline {
    font-size: clamp(9.5px, 2vh, 11.5px) !important;
    margin-bottom: clamp(3px, 0.8vh, 6px) !important;
    letter-spacing: 0.06em !important;
  }

  .card-inicio {
    padding: clamp(6px, 1.5vh, 12px) clamp(10px, 2.5vw, 18px) !important;
    border-radius: clamp(12px, 2.5vh, 18px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  }

  .convite {
    padding: 4px 8px !important;
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .nick-row {
    margin-bottom: clamp(4px, 1vh, 8px) !important;
    gap: 6px !important;
  }

  #inp-nick {
    padding: clamp(5px, 1vh, 8px) clamp(8px, 1.8vw, 12px) !important;
    font-size: clamp(12.5px, 2.4vh, 14.5px) !important;
    border-radius: 10px !important;
  }

  #lang-switch select {
    min-height: clamp(30px, 6.5vh, 38px) !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  .avatar-picker {
    margin-bottom: clamp(4px, 1vh, 8px) !important;
  }

  #avatar-atual {
    width: clamp(40px, 9vh, 56px) !important;
    height: clamp(40px, 9vh, 56px) !important;
    font-size: clamp(22px, 5vh, 32px) !important;
    border-width: 2px !important;
  }

  .avatar-edit {
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
  }

  .avatar-dica {
    font-size: clamp(9.5px, 1.8vh, 11px) !important;
    margin-top: 2px !important;
  }

  .btn {
    min-height: clamp(30px, 6.5vh, 38px) !important;
    padding: clamp(4px, 0.8vh, 7px) 12px !important;
    font-size: clamp(12px, 2.3vh, 14px) !important;
    border-radius: 10px !important;
  }

  .btn-jogar, .btn-primario {
    margin-bottom: clamp(3px, 0.7vh, 6px) !important;
    box-shadow: 0 3px 0 var(--accent-green-shadow) !important;
  }

  .btn-secundario {
    margin-bottom: clamp(3px, 0.6vh, 5px) !important;
    box-shadow: 0 3px 0 var(--accent-blue-shadow) !important;
  }

  .btn-howto {
    margin-top: clamp(3px, 0.6vh, 6px) !important;
    min-height: 26px !important;
    padding: 2px 10px !important;
    font-size: 11px !important;
  }

  /* Room Configuration Screen (tela-config) */
  .card-config {
    width: min(440px, 96%) !important;
    padding: clamp(10px, 2.4vh, 16px) clamp(12px, 2.5vw, 20px) clamp(6px, 1.4vh, 12px) !important;
    border-radius: clamp(12px, 2.5vh, 16px) !important;
  }

  .card-config .perfil-ribbon {
    font-size: clamp(11.5px, 2.4vh, 14px) !important;
    margin-top: 0 !important;
    margin-bottom: clamp(4px, 1vh, 8px) !important;
    padding: 0 clamp(32px, 8vw, 44px) !important;
  }

  .cfg-voltar {
    top: 8px !important;
    left: 8px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }

  .cfg-secao {
    margin-bottom: clamp(4px, 1vh, 8px) !important;
  }

  .col-titulo {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }

  .cfg-linhas {
    padding: 1px 8px !important;
    border-radius: 10px !important;
  }

  .cfg-linha {
    padding: clamp(2px, 0.5vh, 5px) 0 !important;
    font-size: clamp(11px, 2.2vh, 13px) !important;
  }

  .cfg-linha select {
    min-height: clamp(26px, 5vh, 32px) !important;
    padding: 2px 6px !important;
    font-size: clamp(10.5px, 2vh, 12.5px) !important;
    border-radius: 8px !important;
  }

  .cfg-toggle .switch {
    width: 36px !important;
    height: 18px !important;
  }

  .cfg-toggle .switch::after {
    width: 12px !important;
    height: 12px !important;
    top: 3px !important;
    left: 3px !important;
  }

  .cfg-toggle input:checked + .switch::after {
    transform: translateX(18px) !important;
  }

  .cfg-nota {
    font-size: 9.5px !important;
    margin-top: 2px !important;
    line-height: 1.15 !important;
  }

  #btn-nova-sala {
    min-height: clamp(30px, 6.5vh, 38px) !important;
    padding: clamp(3px, 0.7vh, 6px) 12px !important;
    font-size: clamp(11.5px, 2.3vh, 13.5px) !important;
  }

  /* Lobby Screen (tela-lobby) */
  .card-lobby {
    width: min(540px, 96%) !important;
    padding: clamp(6px, 1.4vh, 12px) clamp(10px, 2.5vw, 18px) !important;
    border-radius: clamp(12px, 2.5vh, 16px) !important;
  }

  #lobby-titulo {
    font-size: clamp(14px, 3vh, 18px) !important;
    margin-bottom: clamp(2px, 0.4vh, 4px) !important;
  }

  .lobby-chips {
    margin-bottom: clamp(3px, 0.6vh, 6px) !important;
    gap: 4px !important;
  }

  .chip {
    padding: 1px 8px !important;
    font-size: 10px !important;
  }

  .lobby-players {
    margin-bottom: clamp(4px, 0.8vh, 8px) !important;
    max-height: clamp(60px, 16vh, 110px) !important;
    gap: 4px !important;
    padding: 2px !important;
  }

  .lobby-player {
    padding: 3px 4px !important;
    border-radius: 8px !important;
  }

  .lobby-player .em {
    font-size: clamp(16px, 3.8vh, 24px) !important;
    margin-bottom: 1px !important;
  }

  .lobby-player .nk {
    font-size: 10px !important;
  }

  .aviso {
    font-size: 11px !important;
    margin-bottom: 4px !important;
    min-height: 16px !important;
  }

  .rabisco-box {
    padding: 3px !important;
    margin-bottom: clamp(3px, 0.7vh, 6px) !important;
    border-radius: 8px !important;
  }

  .rabisco-label {
    font-size: 10px !important;
    margin-bottom: 1px !important;
  }

  #rabisco-canvas {
    height: clamp(36px, 8vh, 65px) !important;
  }

  .convidar-dica {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  #btn-convidar, #btn-comecar {
    margin-bottom: 3px !important;
  }

  /* Game Screen (tela-jogo) */
  #jogo-header {
    height: clamp(34px, 6.2vh, 42px) !important;
    padding: 0 8px !important;
  }

  #hdr-rodada {
    font-size: clamp(10px, 2vh, 12px) !important;
    padding: 2px 6px !important;
  }

  #hdr-palavra {
    font-size: clamp(13px, 2.8vh, 18px) !important;
    letter-spacing: 0.05em !important;
  }

  #hdr-timer {
    font-size: clamp(11px, 2.2vh, 13px) !important;
    padding: 2px 6px !important;
  }

  #btn-som, #btn-sair-header, .btn-hdr-action {
    width: clamp(26px, 5vh, 32px) !important;
    height: clamp(26px, 5vh, 32px) !important;
    font-size: clamp(11px, 2vh, 13px) !important;
    border-radius: 8px !important;
  }

  #jogo-main {
    flex-direction: row !important;
    padding: 3px 6px !important;
    gap: 6px !important;
  }

  #painel-jogadores {
    width: clamp(105px, 13vw, 130px) !important;
    gap: 4px !important;
  }

  .pj {
    padding: 3px 5px !important;
    min-height: 32px !important;
    gap: 5px !important;
    border-radius: 8px !important;
  }

  .pj .em {
    font-size: clamp(16px, 3.5vh, 20px) !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }

  .pj .nk {
    font-size: clamp(10px, 2vh, 11.5px) !important;
  }

  .pj .pt {
    font-size: 9.5px !important;
  }

  #canvas-wrap {
    max-height: calc(100vh - 84px) !important;
    max-height: calc(100dvh - 84px) !important;
    aspect-ratio: 4 / 3 !important;
  }

  #barra-tools {
    margin-top: 3px !important;
    padding: 3px 6px !important;
    gap: 4px !important;
  }

  .cor {
    width: clamp(16px, 3.2vh, 20px) !important;
    height: clamp(16px, 3.2vh, 20px) !important;
  }

  .tool, .tool-picker-btn {
    width: clamp(26px, 5vh, 30px) !important;
    height: clamp(26px, 5vh, 30px) !important;
    font-size: 13px !important;
    border-radius: 6px !important;
  }

  #coluna-chat {
    width: clamp(200px, 24vw, 245px) !important;
  }

  #chat-tabs {
    min-height: 26px !important;
  }

  .chat-tab {
    padding: 3px 6px !important;
    font-size: 11px !important;
  }

  #chat-msgs, #chat-regs {
    padding: 4px !important;
    gap: 2px !important;
    font-size: 11.5px !important;
  }

  .chat-msg {
    padding: 2px 6px !important;
    border-radius: 6px !important;
  }

  #chat-form {
    padding: 3px 4px !important;
  }

  #chat-input {
    min-height: clamp(28px, 5.5vh, 34px) !important;
    padding: 3px 6px !important;
    font-size: 11.5px !important;
  }

  /* Universal Floating Modals (.perfil-card, #modal-howto, #modal-avatar, #modal-sair, #modal-compartilhar, #modal-salas) */
  .modal-fixo {
    padding: clamp(3px, 1vh, 8px) !important;
  }

  .perfil-card {
    padding: clamp(6px, 1.5vh, 12px) clamp(10px, 2vw, 18px) !important;
    border-radius: clamp(12px, 2.5vh, 18px) !important;
    max-height: calc(100vh - 10px) !important;
    max-height: calc(100dvh - 10px) !important;
    width: min(440px, 94vw) !important;
  }

  .perfil-ribbon {
    font-size: clamp(10px, 2.4vh, 12.5px) !important;
    padding: 2px clamp(8px, 2vw, 14px) !important;
    margin-top: clamp(-14px, -2vh, -8px) !important;
    margin-bottom: clamp(3px, 0.8vh, 6px) !important;
    letter-spacing: 0.5px !important;
  }

  .fechar-x, #perfil-fechar, #howto-fechar, #salas-fechar, #avatar-fechar, #compartilhar-fechar {
    position: absolute !important;
    top: 5px !important;
    right: 6px !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  .afk-arte, .share-icone {
    font-size: clamp(24px, 5.5vh, 36px) !important;
    margin: clamp(1px, 0.4vh, 4px) 0 !important;
  }

  .sair-texto {
    font-size: clamp(11.5px, 2.3vh, 13.5px) !important;
    margin: clamp(3px, 0.8vh, 6px) 0 !important;
  }

  .sair-botoes {
    gap: 6px !important;
  }

  .btn-perfil {
    min-height: clamp(28px, 6vh, 36px) !important;
    padding: clamp(3px, 0.7vh, 6px) 12px !important;
    font-size: clamp(11px, 2.2vh, 13px) !important;
    border-radius: 8px !important;
    margin-top: 3px !important;
  }

  #avatar-grid {
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 3px !important;
    margin: clamp(4px, 1vh, 8px) 0 !important;
  }

  #avatar-grid button {
    min-height: clamp(26px, 5.5vh, 34px) !important;
    font-size: clamp(15px, 3.2vh, 20px) !important;
    padding: 1px !important;
    border-radius: 6px !important;
  }

  .howto-passos {
    gap: clamp(2px, 0.5vh, 4px) !important;
    font-size: clamp(10.5px, 2vh, 12px) !important;
  }

  /* Public Rooms Modal (modal-salas) */
  .salas-card {
    width: min(500px, 95vw) !important;
    padding: clamp(5px, 1.2vh, 10px) clamp(8px, 1.8vw, 14px) !important;
  }

  .salas-header-row {
    margin-bottom: 5px !important;
    gap: 5px !important;
  }

  #inp-salas-search {
    padding: 3px 8px !important;
    min-height: 28px !important;
    font-size: 11.5px !important;
  }

  .btn-salas-refresh {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 12px !important;
  }

  .salas-lista {
    max-height: clamp(110px, 38vh, 190px) !important;
    gap: 5px !important;
  }

  .sala-item {
    padding: 4px 6px !important;
    gap: 5px !important;
  }

  .sala-info .sala-nome {
    font-size: 11.5px !important;
  }

  .sala-chips {
    gap: 3px !important;
  }

  .sala-chip {
    font-size: 9.5px !important;
    padding: 1px 5px !important;
  }

  .btn-entrar-sala {
    padding: 3px 8px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
  }

  /* 100 Top Colors Popup (#popup-cores-100) */
  .popup-cores-wrap {
    padding: 6px !important;
  }

  .popup-cores-dialog {
    padding: clamp(4px, 1vh, 8px) clamp(8px, 1.5vw, 14px) !important;
    gap: clamp(3px, 0.6vh, 6px) !important;
    max-height: calc(100vh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 12px !important;
    width: min(600px, 94vw) !important;
    max-width: 600px !important;
    margin: auto !important;
    box-sizing: border-box !important;
  }

  .popup-cores-title {
    font-size: 12px !important;
  }

  .popup-cores-fechar {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }

  .grid-cores-100 {
    grid-template-columns: repeat(20, 1fr) !important;
    gap: 2.5px !important;
    padding: 3px 4px !important;
    border-radius: 8px !important;
    max-height: calc(100dvh - 76px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .cor-100 {
    border-radius: 3px !important;
    border-width: 1px !important;
    aspect-ratio: 1.1 !important;
    min-height: 0 !important;
  }

  .popup-cores-footer {
    padding-top: 1px !important;
  }

  .popup-cores-preview {
    width: 18px !important;
    height: 18px !important;
  }

  .popup-cores-hex {
    font-size: 10.5px !important;
  }

  .btn-custom-color {
    padding: 2.5px 8px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
  }

  /* Player Profile Feedback Modal (#modal-perfil) */
  .perfil-card.perfil-feedback-card {
    max-height: calc(100vh - 8px) !important;
    max-height: calc(100dvh - 8px) !important;
    overflow-y: hidden !important;
    padding: clamp(5px, 1.2vh, 10px) clamp(10px, 2.5vw, 18px) clamp(4px, 1vh, 8px) !important;
  }

  .perfil-feedback-card .perfil-user-header {
    margin: clamp(1px, 0.3vh, 3px) 0 clamp(2px, 0.5vh, 4px) !important;
    gap: clamp(1px, 0.2vh, 2px) !important;
  }

  .perfil-feedback-card .perfil-av {
    width: clamp(30px, 7.5vh, 42px) !important;
    height: clamp(30px, 7.5vh, 42px) !important;
    font-size: clamp(18px, 4.5vh, 26px) !important;
    margin-bottom: 1px !important;
    border-width: 1.5px !important;
  }

  .perfil-feedback-card .perfil-nick {
    font-size: clamp(11.5px, 2.8vh, 14px) !important;
    margin-bottom: 1px !important;
    line-height: 1.1 !important;
  }

  .perfil-score {
    font-size: clamp(8.5px, 2vh, 10px) !important;
    padding: 1px 6px !important;
    border-radius: 6px !important;
  }

  .perfil-feedback-section {
    padding: clamp(3px, 0.9vh, 6px) clamp(6px, 1.8vw, 10px) !important;
    margin-bottom: clamp(2px, 0.5vh, 4px) !important;
    border-radius: 10px !important;
  }

  .perfil-feedback-hint {
    font-size: clamp(9px, 2vh, 10.5px) !important;
    margin: 0 0 clamp(2px, 0.5vh, 4px) !important;
    line-height: 1.15 !important;
  }

  .perfil-feedback-row {
    gap: clamp(4px, 1.2vw, 8px) !important;
  }

  .btn-feedback {
    min-height: clamp(34px, 8.5vh, 44px) !important;
    padding: clamp(2px, 0.6vh, 4px) clamp(4px, 1.2vw, 8px) !important;
    border-radius: 10px !important;
    gap: 2px !important;
  }

  .feedback-icon {
    font-size: clamp(13px, 2.8vh, 16px) !important;
  }

  .feedback-label {
    font-size: clamp(9px, 2vh, 10.5px) !important;
    line-height: 1.05 !important;
  }

  .feedback-counter {
    padding: 1px 5px !important;
    border-radius: 6px !important;
    font-size: clamp(8px, 1.8vh, 9.5px) !important;
  }

  .perfil-votekick-status {
    margin-top: clamp(2px, 0.5vh, 3px) !important;
    padding: clamp(2px, 0.4vh, 3px) clamp(4px, 1vw, 8px) !important;
    font-size: clamp(8.5px, 1.8vh, 9.5px) !important;
    border-radius: 6px !important;
    gap: 4px !important;
  }

  .vk-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .perfil-actions-extra {
    margin-top: clamp(1px, 0.4vh, 3px) !important;
  }

  .btn-perfil-action {
    padding: clamp(2px, 0.5vh, 4px) clamp(8px, 2vw, 14px) !important;
    font-size: clamp(9px, 2vh, 10.5px) !important;
    border-radius: 6px !important;
  }

  /* Anti-AFK Modal (#modal-afk) */
  .afk-card {
    padding: clamp(8px, 1.8vh, 14px) clamp(10px, 2.5vw, 18px) !important;
    border-radius: 12px !important;
    max-width: min(340px, 92vw) !important;
  }
}

/* ========================================================
   HOME FOOTER & LEGAL MODALS (PRIVACY, TERMS, CONTACT)
   AdSense & H5 Games Ads Compliance
======================================================== */
.home-footer {
  margin-top: clamp(10px, 2vh, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 420px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-link {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}

.footer-link:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.08);
}

.footer-sep {
  color: #475569;
  font-size: 10px;
}

.footer-copy {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}

/* Legal Modals Content Styling */
.legal-card {
  max-width: min(520px, 92vw) !important;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-body {
  margin: 14px 0;
  overflow-y: auto;
  text-align: start;
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  padding: 0 4px;
}

.legal-body h4 {
  color: #fbbf24;
  margin: 12px 0 4px;
  font-size: 13.5px;
  font-weight: 800;
}

.legal-body p {
  margin: 0 0 8px;
}

.contact-email-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0;
  font-weight: 800;
  color: #93c5fd;
  text-align: center;
  font-family: monospace;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SEO & ACCESSIBILITY UTILITIES
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-seo-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  padding: 8px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.footer-seo-link {
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-seo-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.home-seo-summary {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  text-align: start;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.home-seo-summary h2 {
  font-size: 14px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.home-seo-summary p {
  margin-bottom: 6px;
}

.home-seo-summary p:last-child {
  margin-bottom: 0;
}





/* Quick 5-Language Switcher Pills on Home Page */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.5vw, 8px);
  justify-content: center;
  align-items: center;
  margin: 10px 0 16px;
  width: 100%;
}

.lang-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: clamp(12px, 2.4vw, 13.5px);
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  outline: none;
  user-select: none;
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 206, 61, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.lang-pill.active {
  background: rgba(255, 206, 61, 0.18);
  border-color: var(--accent-gold);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 206, 61, 0.3);
}

/* ==========================================================================
   ENHANCEMENTS: MODULAR AVATAR, 3D PODIUM, MODERATION & SFX
   ========================================================================== */

/* 1. Modular Avatar Customizer (#1) */
.avatar-customizer-card {
  max-width: 440px !important;
  width: 92% !important;
  padding: 16px 20px !important;
}

.avatar-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.av-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.av-tab-btn.active {
  background: var(--azul, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.av-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.av-preview-box {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
  border: 3px solid rgba(255, 206, 61, 0.5);
  box-shadow: 0 0 20px rgba(255, 206, 61, 0.25), inset 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.av-preview-box:hover {
  transform: scale(1.04);
}

.av-preview-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.av-layers-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.av-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 12px;
}

.av-row-title {
  font-weight: 700;
  font-size: 14px;
  color: #e2e8f0;
}

.av-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.av-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.av-step-btn:hover {
  background: var(--azul, #2563eb);
  border-color: #60a5fa;
  transform: scale(1.1);
}

.av-step-btn:active {
  transform: scale(0.95);
}

.av-layer-label {
  min-width: 48px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: #ffd166;
}

.av-custom-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Global SVG Avatar renderer helper class */
.has-svg-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
}

.has-svg-avatar svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* 2. 3D Stepped Winner Podium (#3) */
.podio-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.podio-3d-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 2.5vw, 18px);
  margin: 15px auto 10px;
  perspective: 800px;
  position: relative;
  z-index: 6;
}

.podio-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.podio-slot-1 {
  order: 2;
  z-index: 3;
}

.podio-slot-2 {
  order: 1;
  z-index: 2;
}

.podio-slot-3 {
  order: 3;
  z-index: 2;
}

.podio-av-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.podio-slot .podio-av {
  width: clamp(54px, 12vw, 76px);
  height: clamp(54px, 12vw, 76px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(30px, 6vw, 44px);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.podio-slot-1 .podio-av {
  width: clamp(68px, 15vw, 92px);
  height: clamp(68px, 15vw, 92px);
  font-size: clamp(38px, 8vw, 54px);
  border: 3px solid #ffd700;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.6);
}

.podio-crown {
  font-size: clamp(24px, 5vw, 32px);
  animation: floatCrown 2s ease-in-out infinite;
  margin-bottom: -4px;
}

@keyframes floatCrown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.podio-slot-1 .podio-av-wrap {
  animation: winnerBounce 1.8s ease-in-out infinite;
}

@keyframes winnerBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}

.podio-medal-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: clamp(18px, 4vw, 24px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.podio-pedestal {
  width: clamp(80px, 20vw, 115px);
  border-radius: 12px 12px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.pedestal-gold {
  height: clamp(85px, 18vw, 120px);
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border-top: 3px solid #fde68a;
}

.pedestal-silver {
  height: clamp(65px, 14vw, 95px);
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 50%, #475569 100%);
  border-top: 3px solid #e2e8f0;
}

.pedestal-bronze {
  height: clamp(52px, 11vw, 78px);
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
  border-top: 3px solid #fed7aa;
}

.pedestal-rank {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.podio-pedestal .podio-nome {
  margin-top: 6px;
  font-size: clamp(11px, 2.3vw, 13px);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 95%;
}

.podio-runner-ups {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 130px;
  overflow-y: auto;
  margin: 10px auto;
  width: 95%;
  max-width: 380px;
  position: relative;
  z-index: 6;
}

.runner-up-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13.5px;
}

.runner-up-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.runner-up-rank {
  font-weight: 800;
  color: #94a3b8;
  min-width: 20px;
}

.runner-up-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.runner-up-score {
  font-weight: 800;
  color: #ffd166;
}

/* 3. Moderation, Host Controls & Structured Report (#5) */
.perfil-host-controls {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
}

.host-controls-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 8px;
  text-align: center;
}

.host-controls-row {
  display: flex;
  gap: 8px;
}

.btn-host-action {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-host-kick {
  background: #ea580c;
  color: #fff;
}

.btn-host-kick:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

.btn-host-ban {
  background: #dc2626;
  color: #fff;
}

.btn-host-ban:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-report-trigger {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: rgba(225, 29, 72, 0.4) !important;
  color: #fb7185 !important;
}

.btn-report-trigger:hover {
  background: rgba(225, 29, 72, 0.35) !important;
  border-color: #f43f5e !important;
  color: #fff !important;
}

/* Report Modal */
.report-card {
  max-width: 400px !important;
  width: 90% !important;
}

.report-header {
  font-size: 14.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.report-header strong {
  color: #ffd166;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.report-reason-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.report-reason-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.report-reason-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #e11d48;
  cursor: pointer;
}

.report-reason-item .reason-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
}

.report-actions {
  display: flex;
  gap: 10px;
}

/* =========================================================================
   Active Room Modal (1-Active-Room-Per-Player Policy)
   ========================================================================= */
.active-room-card {
  max-width: 420px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(255, 209, 102, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 209, 102, 0.15);
}

.active-room-body {
  padding: 12px 6px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.active-room-icon {
  font-size: 52px;
  animation: pulse-badge 2s ease-in-out infinite alternate;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.6)); }
}

.active-room-msg {
  font-size: 15px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
  text-align: center;
}

.active-room-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 209, 102, 0.12);
  border: 1.5px dashed rgba(255, 209, 102, 0.5);
  padding: 8px 18px;
  border-radius: 12px;
  margin-top: 4px;
}

.active-room-code-label {
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 700;
}

.active-room-code-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffd166;
  text-transform: uppercase;
  font-family: monospace, var(--font-main);
}

.active-room-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.active-room-actions .btn {
  width: 100%;
  padding: 13px 18px;
  font-size: 15.5px;
  font-weight: 800;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ativa-close {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.btn-ativa-close:hover {
  background: #475569 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-ativa-cancel {
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  padding: 8px !important;
  text-decoration: underline;
  cursor: pointer;
}

.btn-ativa-cancel:hover {
  color: #f1f5f9 !important;
}

