/* Refino do Nexus (02/12/2026): correções e novidades por cima do visual aprovado. Carregado por último. */

/* "SUA VEZ" duplicado: o texto fixo embaixo do nome saiu; quem mostra a vez é o estado do lugar. */
.seat.you .name:after { content: none !important; display: none !important; }

/* Jogador sem foto: inicial sobre o verde da marca. */
.table-3d .seat .avatar.no-photo { background-image: none !important; font-size: 16px !important; font-weight: 700; color: #0b1410; background: linear-gradient(145deg, #d7ff53, #8fbf1d) !important; }
.table-3d .seat.vacant .avatar.no-photo { background: #111a17 !important; color: #7f9c86; font-weight: 400; }
.table-3d .seat .avatar { background-size: cover; background-position: center 35%; background-repeat: no-repeat; }

/* Vez de jogar: barrinha de tempo que encolhe, discreta. */
.seat .turn-bar { position: absolute; left: 50%; bottom: -7px; width: 56px; height: 3px; transform: translateX(-50%); border-radius: 3px; background: #ffffff1f; overflow: hidden; pointer-events: none; }
.seat .turn-bar::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--left, 1)); background: #c4ff1c; transition: transform .25s linear; }
.seat .seat-state.turn { color: #d7ff53; }
.seat.winner .avatar { box-shadow: 0 0 0 3px #c4ff1c, 0 0 22px #c4ff1c88 !important; }
.seat.offline .avatar { filter: grayscale(.8) brightness(.7); }

/* D, SB e BB: botãozinho no canto da foto (antes era texto solto e batia no texto da mesa). */
.table-3d .seat .position-tag { position: absolute; z-index: 7; top: -3px; left: calc(50% + 12px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font: 800 8px/1 Manrope, Arial, sans-serif; font-style: normal; letter-spacing: .2px; color: #0b1410; background: #c4ff1c; box-shadow: 0 2px 6px #000a; pointer-events: none; }
.table-3d .seat .position-tag.dealer { background: #f4f1ea; color: #111; }

/* Fichas indo para o pote somem junto com a animação. */
.table-3d > .bet-chip.collecting { opacity: 0; transition: opacity .5s ease .2s; }

/* "Você tem": o jogo que você tem agora, em cima das suas cartas. */
.my-hand { position: absolute; z-index: 9; left: 50%; bottom: calc(12% + 84px); transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: #0d1a15e6; border: 1px solid #c4ff1c55; color: #d7ff53; font: 600 10px Manrope, Arial, sans-serif; letter-spacing: .4px; white-space: nowrap; pointer-events: none; }
.hole-cards.mucked { opacity: .38; filter: grayscale(.6); }

/* Barra de ações: mensagens e jogadas antecipadas. */
.bottom-dock .dock-note { flex: 1; text-align: center; color: #b8c6ba; font: 500 12px Manrope, Arial, sans-serif; padding: 12px 6px; }
.bottom-dock .act.pre { background: transparent; border-style: dashed; color: #b8c6ba; }
.bottom-dock .act.pre.armed { background: #c4ff1c1f; border: 1px solid #c4ff1c; color: #d7ff53; }
.bottom-dock .act.pre.armed::before { content: '✓ '; }
.bottom-dock .act:disabled { opacity: .45; }

/* Aviso de conexão. */
.net-banner { position: absolute; z-index: 40; left: 50%; top: 10px; transform: translate(-50%, -150%); padding: 7px 14px; border-radius: 999px; background: #3a1d16f0; border: 1px solid #ff8a6a66; color: #ffd2c4; font: 600 11px Manrope, Arial, sans-serif; transition: transform .3s; pointer-events: none; }
.net-banner.show { transform: translate(-50%, 0); }

/* Chat: pontinho de mensagem nova. */
#chatBtn { position: relative; }
#chatBtn .chat-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #c4ff1c; box-shadow: 0 0 6px #c4ff1c; }
.chat-line.muted { color: #7f8c84; }
.admin-desktop.has-requests { border-color: #c4ff1c; color: #d7ff53; }

/* Foto do jogador nos formulários. */
.photo-field { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; cursor: pointer; }
.photo-field b { display: block; font-size: 13px; }
.photo-field small { color: #9aa69d; font-size: 11px; }
.photo-preview { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px dashed #c4ff1c88; color: #c4ff1c; font-size: 20px; background: #0d1512; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.setup-grid.one { grid-template-columns: 1fr !important; }
#joinModal .modal-card { max-width: 400px; }

/* Celular: a mesa desce um pouco para o jogador de cima (e as cartas dele no showdown) não ficarem atrás da barra do topo. */
/* Letreiro da mesa no espaço livre entre as fichas do jogador de cima e o pote (antes encavalava no texto do jogador de cima). */
.room.show .table-3d .rail-label { top: 26% !important; }
@media (max-width: 700px) {
  .room.show .table-3d { margin-top: 34px !important; }
  .my-hand { bottom: calc(12% + 70px); font-size: 9px; }
}

/* No formulário, a foto fica ao lado do texto. */
.modal label.photo-field { display: flex !important; margin: 14px 0 4px; }
