html,
body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	overflow-x: hidden;
	-webkit-text-size-adjust: none;
	width: 100%;
	height: 100%;
	position: fixed;
	/* Ubuntu é a fonte principal — Sniglet removido (era decorativa e ilegível) */
	font-family: 'Ubuntu', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    display: block;
}

input[type=checkbox] {
	cursor: pointer
}

#overlays,
#connecting {
	opacity: 0;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, .5);
	z-index: 200
}

#connecting {
	z-index: 100
}

#connecting-content {
	width: 350px;
	background: var(--bg-primary, #fff);
	border: 1.5px solid var(--border-primary, #e2e8f0);
	margin: 100px auto;
	border-radius: 16px;
	padding: 20px 24px;
	box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.1));
	color: var(--text-primary, #1a2233);
}

#title {
	padding: 10px
}

#nick {
	width: 100%
}

#skin {
	/*width: 33%; */
	float: right
}

#nick,
#skin {
	display: inline
}

#gamemode {
	margin-top: 5px;
	width: 100%
}

#helloDialog {
	width: 480px;
	max-width: 480px;
	margin: 10px auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%)
}

#helloDialog h2 {
	padding: 5px;
	text-align: center;
}

/* Cores de input/select gerenciadas por theme_v1.css */

#chat_textbox {
	transition: all .5s ease-in-out;
	position: absolute;
	z-index: 1;
	bottom: 10px;
	background: rgba(0, 0, 0, .2);
	border: 0;
	outline: none;
	color: #fff;
	height: 30px;
	text-indent: 12px;
	left: 10px;
	width: 300px;
	font-family: ubuntu
}

#chat_textbox:focus {
	background: rgba(0, 0, 0, .5)
}

#footer {
	text-align: center;
	margin-bottom: 10px;
	margin-top: -10px
}

#play-btn {
	width: 85%;
	margin-bottom: 10px;
	font-weight: 700
}

#spectate-btn {
	width: 13%;
	float: right;
	top: 0;
	font-weight: 700
}

#play-btn,
#spectate-button {
	display: inline
}

#gallery-btn {
	width: 100%;
	margin-bottom: 5px
}

#touchpad,
#touchCircle,
#splitBtn,
#ejectBtn {
	position: fixed
}

#touchpad,
#splitBtn,
#ejectBtn {
	z-index: 2
}

#touchpad {
	background: #000;
	opacity: .3;
	width: 20vw;
	height: 20vh;
	left: 10px;
	bottom: 85px
}

#touchCircle {
	width: 4vw;
	height: 4vw;
	border-radius: 2vw;
	background: red;
	opacity: .3;
	z-index: 3
}

#splitBtn,
#ejectBtn {
	width: 8vw;
	height: 8vw;
	max-height: 60px;
	max-width: 60px;
	border-radius: 4vw;
	background: #777;
	opacity: .5
}

#splitBtn {
	right: 40px;
	bottom: 165px
}

#ejectBtn {
	bottom: 165px;
	right: 110px
}

#playSounds:checked+#soundsVolume {
	display: inline
}

#soundsVolume {
	display: none;
	width: 100px;
	height: 18px;
	padding: 0;
	vertical-align: middle
}

#settings label {
	margin-right: 10px;
	user-select: none
}

.checkbox input[type=checkbox] {
	margin-left: -15px!important
}

.checkbox label {
	background: #9c27b0;
	padding-right: 10px;
	color: #fff;
	border-radius: 4px;
	margin-right: 2px!important;
	margin-bottom: 2px
}

/* ── Botões: sistema unificado ───────────────────────────────── */
button,
.btn {
    font-family: 'Ubuntu', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent, #2d74f5);
    outline-offset: 2px;
}

.zoom-effect {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: auto;
    height: auto;
}

.zoom-effect img {
    display: block;
    transition: transform 0.5s ease;
}

.zoom-effect:hover img {
    transform: scale(1.2);
}

/* Melhorias visuais no botão Discord e menu servidores */

/* Botão Discord — topo esquerdo, estilo semelhante ao WhatsApp */
#discord-button {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1050;
    transition: all 0.3s ease;
}

#discord-button a.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #5865F2, #4752C4);
    color: white;
    padding: 9px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.42);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    /* animação removida — era contínua e perturbadora em sessões longas */
    animation: none;
    border: 1.5px solid rgba(255,255,255,0.22);
    white-space: nowrap;
}

#discord-button a.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(88, 101, 242, 0.65);
    background: linear-gradient(145deg, #4752C4, #5865F2);
}

#discord-button a.discord-btn:active {
    transform: translateY(1px);
}

/* pulseDiscord mantido para compatibilidade com código JS que possa referenciar */
@keyframes pulseDiscord {
    0%   { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(88, 101, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

#server-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 10px;
    width: 270px;
    /* background/color agora gerenciados por theme_v1.css via CSS vars */
    background: var(--bg-secondary, #f0f4f8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    border: 1.5px solid var(--border-primary, #dde3ed);
    color: var(--text-primary, #111827);
    font-family: "Ubuntu", sans-serif;
    z-index: 1050;
    user-select: none;
    padding: 12px 14px;
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#server-menu h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent, #2d74f5);
    text-align: center;
    text-shadow: none;
    letter-spacing: 0.3px;
}

#server-menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#server-menu li {
    background: var(--bg-tertiary, #eaeef4);
    margin-bottom: 7px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-primary, #dde3ed);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    width: 48%;
    box-shadow: none;
    user-select: none;
    color: var(--text-secondary, #374151);
}

#server-menu li:hover {
    background: var(--accent, #2d74f5);
    border-color: var(--accent, #2d74f5);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow, rgba(45,116,245,0.28));
    transform: translateY(-1px);
}

/* Player count badges no menu de servidores */
#server-menu li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.srv-name {
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
}

.srv-players {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 8px;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
}

.srv-online {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.srv-offline {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

#server-menu li:hover .srv-online {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

#server-menu li:hover .srv-offline {
    background: rgba(255, 100, 100, 0.3);
    color: #fcc;
    border-color: rgba(255, 100, 100, 0.5);
}

/* ── Aviso interno ───────────────────────────────────────────── */
#internal-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* cor gerenciada por theme_v1.css via var(--accent) */
    background-color: var(--accent, #2d74f5);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 16px var(--accent-glow, rgba(45,116,245,0.45));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
    user-select: none;
    white-space: nowrap;
}

#internal-alert.show {
    opacity: 1;
    pointer-events: auto;
}

/* ── BOTÃO WHATSAPP ──────────────────────────────────────────── */
#whatsapp-button {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1050;
    transition: transform 0.22s ease;
}

#whatsapp-button a.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #25D366, #128C7E);
    color: white;
    padding: 9px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.42);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    /* animação removida — era contínua e perturbadora */
    animation: none;
    border: 1.5px solid rgba(255,255,255,0.25);
}

#whatsapp-button a.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(37, 211, 102, 0.65);
    background: linear-gradient(145deg, #128C7E, #25D366);
}

#whatsapp-button a.whatsapp-btn:active {
    transform: translateY(1px);
}

#whatsapp-button a.whatsapp-btn img {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    flex-shrink: 0;
}

#whatsapp-button a.whatsapp-btn span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* pulse mantido para compatibilidade com eventuais referências JS */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── Overlay pós-morte ────────────────────────────────────────── */
#death-stats {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.death-stats-content {
    background: linear-gradient(160deg, rgba(10,14,24,0.98) 0%, rgba(14,20,36,0.98) 100%);
    border: 1px solid rgba(0,212,255,0.22);
    border-top: 2px solid rgba(0,212,255,0.5);
    border-radius: 16px;
    width: 380px;
    overflow: hidden;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 40px rgba(0,212,255,0.06);
    animation: dsAppear .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes dsAppear {
    from { opacity:0; transform:scale(0.88) translateY(-16px); }
    to   { opacity:1; transform:scale(1)    translateY(0); }
}

/* Header do overlay de morte */
.ds-header {
    background: linear-gradient(135deg,rgba(0,0,0,0.5) 0%,rgba(0,30,50,0.45) 100%);
    padding: 22px 24px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(0,212,255,0.1);
}
.ds-skull  { font-size: 38px; line-height:1; display:block; margin-bottom:8px; }
.ds-title  {
    margin: 0 0 4px;
    font-size: 21px; font-weight: 800;
    background: linear-gradient(90deg,#fff 30%,#00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.ds-sub {
    margin: 0;
    font-size: 11px;
    color: rgba(0,212,255,0.45);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Stats */
.ds-body { padding: 14px 20px 6px; }
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background .15s;
}
.stat-row:hover { background: rgba(0,212,255,0.07); }
.stat-label { font-size: 12px; color: #8ba8c0; font-weight: 500; }
.stat-value { font-size: 14px; font-weight: 800; color: #e6f0ff; font-variant-numeric: tabular-nums; }

/* Botão continuar */
.ds-footer { padding: 12px 24px 22px; text-align: center; }
#close-stats-btn {
    background: linear-gradient(135deg,rgba(0,212,255,0.18),rgba(0,140,200,0.1));
    border: 1px solid rgba(0,212,255,0.4);
    color: #00d4ff;
    font-size: 13px; font-weight: 700;
    padding: 10px 44px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: 0.5px;
    transition: all .2s;
}
#close-stats-btn:hover {
    background: linear-gradient(135deg,rgba(0,212,255,0.28),rgba(0,180,230,0.18));
    box-shadow: 0 0 18px rgba(0,212,255,0.28);
    transform: translateY(-1px);
}

/* ── Pódio Top 3 ─────────────────────────────────────────────────────── */
.rk-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px 0;
    background: linear-gradient(180deg, rgba(255,215,0,0.035) 0%, transparent 100%);
}
.rk-pod {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px 10px 0 0;
    padding: 8px 4px 0;
    cursor: pointer;
    transition: filter .15s, transform .15s;
    position: relative;
    text-align: center;
    max-width: 110px;
}
.rk-pod:hover { filter: brightness(1.12); transform: translateY(-2px); }
.rk-pod-empty { opacity: 0.35; cursor: default; }

/* ── Crown wrapper (all 3 positions get a crown) ─────────────── */
.rk-pod-crown-wrap {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}
.rk-pod-crown { display: inline-block; line-height: 1; }

/* Crown 1st — gold float + glow */
.rk-crown-1 {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255,215,0,.85)) drop-shadow(0 0 3px rgba(255,170,0,.6));
    animation: rkCrownFloat 2.8s ease-in-out infinite;
}
/* Crown 2nd — silver shimmer */
.rk-crown-2 {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(192,192,192,.7));
    animation: rkCrownShimmer 3.2s ease-in-out infinite;
}
/* Crown 3rd — bronze pulse */
.rk-crown-3 {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(205,127,50,.6));
    animation: rkCrownPulse 3.6s ease-in-out infinite;
}
@keyframes rkCrownFloat {
    0%,100% { transform: translateY(0) rotate(-3deg); }
    50%     { transform: translateY(-4px) rotate(3deg); }
}
@keyframes rkCrownShimmer {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(192,192,192,.7)); }
    50%      { transform: scale(1.08) rotate(-4deg); filter: drop-shadow(0 0 10px rgba(220,220,220,.9)); }
}
@keyframes rkCrownPulse {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(205,127,50,.6)); }
    50%      { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(235,160,60,.85)); }
}

/* Avatar photo (img inside circle) */
.rk-pod-photo {
    overflow: hidden;
    padding: 0;
    border: 2px solid currentColor;
}
.rk-pod-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Avatar */
.rk-pod-av {
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff;
    text-transform: uppercase;
    flex-shrink: 0; margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    transition: box-shadow .2s;
}
.rk-pod-1 .rk-pod-av { width: 56px; height: 56px; font-size: 22px; border: 2px solid rgba(255,215,0,.55); box-shadow: 0 0 18px rgba(255,215,0,.28); }
.rk-pod-2 .rk-pod-av { width: 42px; height: 42px; font-size: 17px; border: 2px solid rgba(192,192,192,.4); }
.rk-pod-3 .rk-pod-av { width: 38px; height: 38px; font-size: 15px; border: 2px solid rgba(205,127,50,.4); }

/* Nick */
.rk-pod-nick {
    font-size: 11px; font-weight: 700; color: #dde2f0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 96px; cursor: pointer; transition: color .13s; margin-bottom: 3px;
}
.rk-pod-1 .rk-pod-nick { font-size: 12px; color: #fff; max-width: 106px; }
.rk-pod-nick:hover { color: #7289da; text-decoration: underline dotted; }

/* Pontuação */
.rk-pod-pts { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.rk-pod-1 .rk-pod-pts { font-size: 14px; }

/* Ícone patente */
.rk-pod-icon { font-size: 13px; margin-bottom: 4px; }

/* Plataforma do pódio */
.rk-pod-base {
    width: 100%; text-align: center;
    font-size: 9px; font-weight: 700; letter-spacing: .5px;
    border-radius: 4px 4px 0 0; padding: 3px 2px;
    margin-top: 4px;
    display: flex; align-items: center; justify-content: center; gap: 3px;
}
.rk-pod-1 .rk-pod-base { background: linear-gradient(180deg,rgba(255,215,0,.22),rgba(255,215,0,.08)); color: #ffd700; min-height: 38px; font-size: 10px; }
.rk-pod-2 .rk-pod-base { background: linear-gradient(180deg,rgba(192,192,192,.16),rgba(192,192,192,.06)); color: #c0c0c0; min-height: 26px; }
.rk-pod-3 .rk-pod-base { background: linear-gradient(180deg,rgba(205,127,50,.16),rgba(205,127,50,.06)); color: #cd7f32; min-height: 20px; }

/* Divisor pódio → lista */
.rk-pod-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,.2), transparent);
    margin: 0 8px 4px;
}

/* ── Ranking Elite da Arena ─────────────────────────────────────────── */
#top20-ranking {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 348px;
    background: linear-gradient(180deg, #0b0d18 0%, rgba(10,12,24,0.97) 100%);
    border-radius: 14px;
    overflow: hidden;
    font-family: 'Ubuntu', sans-serif;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,200,0,0.1);
}

/* Header dourado */
.rk-header {
    background: linear-gradient(135deg, #1c1400 0%, #2e1f00 50%, #1a0e00 100%);
    padding: 10px 14px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255,195,0,0.18);
    position: relative;
}
.rk-crown {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.6));
}
.rk-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255,215,0,0.45);
}
.rk-subtitle {
    font-size: 10px;
    color: rgba(255,195,0,0.45);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* Lista scrollável */
.rk-list {
    max-height: 430px;
    overflow-y: auto;
    padding: 4px 0 6px;
}
.rk-list::-webkit-scrollbar          { width: 3px; }
.rk-list::-webkit-scrollbar-track    { background: transparent; }
.rk-list::-webkit-scrollbar-thumb    { background: rgba(255,215,0,0.18); border-radius: 2px; }

/* Linha de jogador */
.rk-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    cursor: pointer;
    transition: background 0.13s;
    position: relative;
    user-select: none;
}
.rk-entry:hover   { background: rgba(255,255,255,0.04); }
.rk-entry.expanded { background: rgba(114,137,218,0.07); }

/* Top 3 destaque */
.rk-top1 { background: rgba(255,215,0,0.07); }
.rk-top2 { background: rgba(192,192,192,0.05); }
.rk-top3 { background: rgba(205,127,50,0.06); }
.rk-top1:hover { background: rgba(255,215,0,0.12); }
.rk-top2:hover { background: rgba(192,192,192,0.09); }
.rk-top3:hover { background: rgba(205,127,50,0.10); }

/* Barra lateral colorida top 3 */
.rk-top1::before, .rk-top2::before, .rk-top3::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}
.rk-top1::before { background: #ffd700; }
.rk-top2::before { background: #c0c0c0; }
.rk-top3::before { background: #cd7f32; }

/* Posição */
.rk-pos {
    min-width: 26px;
    text-align: center;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.rk-pos-num {
    font-size: 11px;
    font-weight: 700;
    color: #5a607a;
}

/* Ícone patente */
.rk-pat {
    font-size: 13px;
    flex-shrink: 0;
}

/* Nick clicável */
.rk-nick {
    flex: 1;
    font-size: 12px;
    color: #cdd5f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.13s;
    padding: 2px 0;
}
.rk-nick:hover {
    color: #7289da;
    text-decoration: underline dotted;
}
.rk-top1 .rk-nick { color: #fff; font-weight: 600; font-size: 12.5px; }

/* Pontuação */
.rk-pts {
    font-size: 11px;
    font-weight: 700;
    min-width: 38px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Stats expandidas */
.rk-stats {
    display: none;
    padding: 3px 10px 6px 44px;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rk-stats.open { display: flex; }
.rk-si {
    font-size: 10px;
    color: #aab2d8;
    background: rgba(124,58,237,0.10);
    border: 1px solid rgba(124,58,237,0.18);
    border-radius: 5px;
    padding: 3px 7px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Top 10 — toques de embelezamento ─────────────────────────────────── */
#top20-ranking { border: 1px solid rgba(255,200,0,0.10); }
.rk-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,.55), transparent);
}
.rk-title {
    background: linear-gradient(90deg,#ffd700,#fff3b0,#ffb300,#ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rkTitleShine 4.5s linear infinite;
}
@keyframes rkTitleShine { to { background-position: 200% center; } }
.rk-pos-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.rk-entry { transition: background .13s, box-shadow .13s; }
.rk-entry:hover { box-shadow: inset 2px 0 0 rgba(124,58,237,.5); }

/* ── Modal de estatísticas do jogador ─────────────────────────────────── */
.rk-sm-overlay {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(4,6,14,0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    animation: rkSmFade .18s ease; font-family: 'Ubuntu', sans-serif;
}
@keyframes rkSmFade { from { opacity: 0; } to { opacity: 1; } }
.rk-sm-box {
    position: relative;
    width: 340px; max-width: 92vw; max-height: 90vh; overflow-y: auto;
    background: linear-gradient(180deg, #14121f 0%, #0b0d18 100%);
    border: 1px solid rgba(255,200,0,0.18);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.85), 0 0 0 1px rgba(124,58,237,0.12);
    padding: 18px 18px 16px;
    animation: rkSmPop .22s cubic-bezier(.2,.9,.3,1.15);
}
@keyframes rkSmPop { from { transform: scale(.9) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.rk-sm-loading { text-align: center; color: #9aa3c0; font-size: 13px; padding: 44px 10px; }
.rk-sm-x {
    position: absolute; top: 10px; right: 10px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: none; color: #aeb6d4;
    cursor: pointer; font-size: 12px; line-height: 1; transition: background .15s, color .15s;
}
.rk-sm-x:hover { background: rgba(231,76,60,0.28); color: #fff; }
.rk-sm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-right: 26px; }
.rk-sm-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2d44, #15172a);
    border: 2px solid #cd7f32;
    display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
    box-shadow: 0 0 16px rgba(0,0,0,0.4);
}
.rk-sm-nick { font-size: 17px; font-weight: 800; color: #fff; word-break: break-word; line-height: 1.2; }
.rk-sm-pat { font-size: 12px; font-weight: 700; margin-top: 3px; }
.rk-sm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.rk-sm-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; padding: 11px 8px; text-align: center;
    transition: background .15s, transform .15s, border-color .15s;
}
.rk-sm-card:hover { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.rk-sm-card-ic  { font-size: 17px; margin-bottom: 3px; }
.rk-sm-card-val { font-size: 16px; font-weight: 800; color: #f0f3ff; font-variant-numeric: tabular-nums; }
.rk-sm-card-lbl { font-size: 9.5px; color: #8b92b5; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.rk-sm-discord {
    display: flex; align-items: center; gap: 10px;
    background: rgba(88,101,242,0.10); border: 1px solid rgba(88,101,242,0.3);
    border-radius: 11px; padding: 9px 11px; margin-bottom: 12px;
}
.rk-sm-dsc-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1a1d27; }
.rk-sm-dsc-ph { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rk-sm-dsc-info { flex: 1; min-width: 0; }
.rk-sm-dsc-lbl  { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: #7983e8; font-weight: 700; }
.rk-sm-dsc-name { font-size: 13px; color: #e6e9ff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-sm-actions { display: flex; gap: 8px; }
.rk-sm-btn {
    flex: 1; text-align: center; text-decoration: none; cursor: pointer;
    border: none; border-radius: 9px; padding: 10px 12px; font-size: 12.5px; font-weight: 700;
    font-family: inherit; transition: filter .15s, transform .1s; display: inline-block;
}
.rk-sm-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.rk-sm-btn-discord { background: linear-gradient(135deg,#5865f2,#4752c4); color: #fff; white-space: nowrap; flex: 0 0 auto; }
.rk-sm-btn-friend  { background: linear-gradient(135deg,#7c3aed,#9333ea); color: #fff; }

/* Divisor entre top 3 e o resto */
.rk-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,215,0,0.18) 50%, transparent 100%);
    margin: 3px 10px;
}

/* Estados especiais */
.rk-loading {
    text-align: center;
    padding: 16px;
    color: #5a607a;
    font-size: 11px;
}
.rk-empty {
    text-align: center;
    padding: 16px 12px;
    color: #5a607a;
    font-size: 11px;
    line-height: 1.6;
}

/* Context menu flutuante */
#rk-ctx-menu {
    position: fixed;
    background: #13162a;
    border: 1px solid rgba(114,137,218,0.28);
    border-radius: 10px;
    padding: 4px 0;
    min-width: 168px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.75);
    animation: rkCtxIn 0.12s ease;
    font-family: 'Ubuntu', sans-serif;
}
@keyframes rkCtxIn {
    from { opacity: 0; transform: scale(0.9) translateY(-6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.rk-ctx-title {
    font-size: 11px;
    color: #5a607a;
    padding: 5px 12px 7px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.rk-ctx-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    font-size: 12px;
    color: #b8c2e0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s, color 0.12s;
    font-family: 'Ubuntu', sans-serif;
}
.rk-ctx-btn:hover { background: rgba(114,137,218,0.14); color: #fff; }

/* Ocultar em mobile */
@media only screen and (max-width: 768px) {
    #top20-ranking { display: none; }
}

/* ===================== */
/* NOVOS ESTILOS ADICIONADOS */
/* ===================== */

/* Botões de Login e Registro */
.auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
}

.btn-register {
    background: linear-gradient(145deg, #4CAF50, #2E7D32);
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-login {
    background: linear-gradient(145deg, #2196F3, #0D47A1);
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-register:hover, .btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-register:active, .btn-login:active {
    transform: translateY(1px);
}

/* Ícones para os botões */
.icon-user-plus, .icon-user {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}

.icon-user-plus:before {
    content: "+";
    font-weight: bold;
}

.icon-user:before {
    content: "👤";
}


/* NOVOS ESTILOS ADICIONADOS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.modal-content {
    width: 90%;
    max-width: 420px;
    margin: 6% auto;
}

.modal h2 {
    text-align: center;
    margin-top: 0;
}

.modal input {
    width: 100%;
    margin-bottom: 10px;
}

.modal button {
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.modal .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#login-form, #register-form {
    margin-top: 15px;
}

/* Botao olho revelar senha — cores gerenciadas por theme_v1.css */
#login-pwd-toggle {
    transition: color 0.2s;
}
#login-form div {
    position: relative;
}


#ranking-list {
    transition: opacity 0.25s;
}
#ranking-list.loading {
    opacity: 0.4;
}

.private-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #ff5722;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
}

/* Adicionado: Estilo para botões na conta */
#account-modal .btn-action {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

#account-modal .btn-danger {
    background-color: #f44336;
}

#account-modal .btn-secondary {
    background-color: #2196F3;
}

#account-modal .btn-action:hover {
    opacity: 0.9;
}

/* Adicionado: Estilo para itens de skin */
.private-skin-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Adicionado: Scroll vertical para conteúdo da conta */
#account-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* Estilos para as abas da galeria */
#gallery-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.gallery-tab {
  padding: 8px 16px;
  margin: 0 5px;
  background-color: #2c3e50;
  color: #ecf0f1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  transition: background-color 0.3s;
}

.gallery-tab:hover {
  background-color: #34495e;
}

.gallery-tab.active {
  background-color: #3498db;
  font-weight: bold;
}

/* Melhorias visuais para a galeria */
#gallery-content {
  max-width: 800px;
  background: #2c3e50;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#skinsUL {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skin {
  position: relative;
  margin: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.skin:hover {
  transform: scale(1.05);
}

.circular {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #3498db;
  object-fit: cover;
}

.private-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

/* Garantir que as funções estejam acessíveis */
#gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: none;
}

#gallery-content {
  background: #2c3e50;
  width: 90%;
  max-width: 800px;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  color: white;
}

.gallery-tab {
  background: #34495e;
  border: none;
  color: white;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.gallery-tab.active {
  background: #3498db;
}

/* Estilos para mensagem de nenhuma skin */
.no-skins {
  text-align: center;
  padding: 20px;
  color: #ecf0f1;
  font-size: 18px;
}

.no-skins button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: bold;
}

.no-skins button:hover {
  background: #2980b9;
}

/* Garantir que as imagens sejam exibidas corretamente */
.circular {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #eee; /* Cor de fundo para imagens quebradas */
  border: 2px solid #3498db;
}

/* Melhorar a mensagem de nenhuma skin */
.no-skins {
  text-align: center;
  padding: 20px;
  color: #ecf0f1;
  font-size: 18px;
}

.no-skins button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SISTEMA DE AVISOS — painel lateral + modal
   ═══════════════════════════════════════════════════════════ */

/* Painel de avisos: logo abaixo do server-menu, alinhado à esquerda */
#notices-panel {
    display: none;
    position: fixed;
    left: 10px;
    width: 270px;
    background: #1a1d27;
    border: 1px solid #2e3560;
    border-radius: 12px;
    z-index: 1045;
    overflow: hidden;
    font-family: 'Ubuntu', sans-serif;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

#notices-panel-header {
    background: linear-gradient(135deg, #0d1b3e, #1a1d27);
    border-bottom: 1px solid #2e3560;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #3d7eff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.3px;
}

#notices-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

#notices-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2e3560 transparent;
}
#notices-list::-webkit-scrollbar       { width: 4px; }
#notices-list::-webkit-scrollbar-track { background: transparent; }
#notices-list::-webkit-scrollbar-thumb { background: #2e3560; border-radius: 4px; }

.notice-item {
    padding: 10px 14px;
    border-bottom: 1px solid #1e2540;
    cursor: pointer;
    transition: background 0.15s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: rgba(61,126,255,0.08); }

.notice-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-pin-icon { color: #f39c12; font-size: 10px; flex-shrink: 0; }

.notice-item-preview {
    font-size: 11px;
    color: #8b92a9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-item-date {
    font-size: 10px;
    color: #4a5068;
    margin-top: 3px;
}

.notices-loading,
.notices-empty {
    padding: 18px 14px;
    font-size: 12px;
    color: #8b92a9;
    text-align: center;
}

/* ── Modal aviso recente ───────────────────────────────────── */
#notice-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99995;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
#notice-modal.open { display: flex; }

#notice-modal-content {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a1d27 100%);
    border: 1.5px solid #2e3560;
    border-radius: 20px;
    width: 96%;
    max-width: 540px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px 32px 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.85), 0 0 0 1px #1e2540;
    font-family: 'Ubuntu', 'Segoe UI', sans-serif;
    position: relative;
    box-sizing: border-box;
}

#notice-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

#notice-modal-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

#notice-modal-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid #2e3560;
    color: #8b92a9;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
#notice-modal-close:hover { background: #e74c3c22; border-color: #e74c3c; color: #e74c3c; }

#notice-modal-title {
    color: #e2e8f0;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
}

#notice-modal-body {
    color: #c8d0e0;
    font-size: 0.97rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2e3560;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

#notice-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

#notice-modal-author {
    font-size: 11px;
    color: #4a5068;
}

#notice-modal-btn {
    background: linear-gradient(135deg, #3d7eff, #2563d4);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
    white-space: nowrap;
}
#notice-modal-btn:hover { opacity: 0.88; }


/* ═══════════════════════════════════════════════════════════
   PERÍODO DE GRAÇA — overlay de verificação de conexão
   Aparece sobre os botões Jogar/Spec durante os 4s iniciais
   ═══════════════════════════════════════════════════════════ */
#connection-grace {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 12, 20, 0.88);
    border-radius: 5px;      /* igual ao #helloDialog */
    z-index: 9000;           /* acima de tudo dentro do dialog */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#connection-grace.active { display: flex; }

#connection-grace-box {
    text-align: center;
    padding: 22px 28px 18px;
    background: rgba(13, 27, 62, 0.95);
    border: 1.5px solid #2e3560;
    border-radius: 16px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    font-family: 'Ubuntu', sans-serif;
}

#connection-grace-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    animation: gracePulse 1s infinite;
}
@keyframes gracePulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

#connection-grace-title {
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

#connection-grace-bar-bg {
    height: 6px;
    background: #1a1d27;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

#connection-grace-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3d7eff, #00cfff);
    border-radius: 6px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(61,126,255,0.6);
}

#connection-grace-msg {
    color: #8b92a9;
    font-size: 0.78rem;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   MODAL — CONTA NÃO VERIFICADA
   Mesmo padrão visual do #notice-modal
   ═══════════════════════════════════════════════════════════ */
/* ── Modal conta pendente/não cadastrada ──
   z-index 99999: acima de TUDO (canvas, overlays, outros modais).
   Responsivo: funciona em desktop, mobile portrait e landscape.
   cursor:pointer no fundo permite fechar clicando fora.
*/
#pending-account-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    /* Safe-area para notch/home-bar em mobile */
    padding: calc(16px + env(safe-area-inset-top, 0px))
             calc(16px + env(safe-area-inset-right, 0px))
             calc(16px + env(safe-area-inset-bottom, 0px))
             calc(16px + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    cursor: pointer;
}
#pending-account-modal.open { display: flex; }

#pending-account-content {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a1d27 100%);
    border: 1.5px solid #2e3560;
    border-radius: 20px;
    width: 96%;
    max-width: 500px;
    /* Deixa espaço para safe-area no mobile */
    max-height: calc(90vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 28px 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px #1e2540;
    font-family: 'Ubuntu', 'Segoe UI', sans-serif;
    position: relative;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #2e3560 transparent;
    /* Garante que cliques dentro não fechem o modal */
    cursor: default;
}
#pending-account-content::-webkit-scrollbar       { width: 4px; }
#pending-account-content::-webkit-scrollbar-track { background: transparent; }
#pending-account-content::-webkit-scrollbar-thumb { background: #2e3560; border-radius: 4px; }

/* Header */
#pending-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
#pending-account-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
#pending-account-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2e3560;
    color: #8b92a9;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
#pending-account-close:hover { background: #e74c3c22; border-color: #e74c3c; color: #e74c3c; }

/* Título */
#pending-account-title {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.3;
}

/* Card explicativo principal */
.pam-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2e3560;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.pam-card-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.pam-card-text {
    color: #c8d0e0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.pam-card-text strong { color: #e2e8f0; }
.pam-nick-example {
    display: inline-block;
    background: #0d1b3e;
    border: 1px solid #3d7eff;
    border-radius: 6px;
    padding: 3px 12px;
    font-family: monospace;
    color: #00cfff;
    font-size: 0.88rem;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Título de seção */
.pam-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b92a9;
    margin-bottom: 10px;
}

/* Passos numerados */
.pam-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.pam-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f1117;
    border: 1px solid #1e2540;
    border-radius: 10px;
    padding: 10px 14px;
}
.pam-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d7eff, #2563d4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pam-step-text {
    color: #c8d0e0;
    font-size: 0.87rem;
    line-height: 1.4;
}
.pam-step-text strong { color: #e2e8f0; }

/* Benefícios */
.pam-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 22px;
}
.pam-benefit {
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.78rem;
    color: #a8f0c6;
    font-weight: 600;
}

/* Footer com botões */
#pending-account-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
#pending-account-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #fff;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 12px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
    transition: opacity 0.2s, transform 0.1s;
}
#pending-account-discord-btn:hover   { opacity: 0.9; transform: translateY(-1px); }
#pending-account-discord-btn:active  { transform: translateY(0); }

#pending-account-play-btn {
    background: transparent;
    border: 1px solid #2e3560;
    color: #8b92a9;
    padding: 10px 24px;
    border-radius: 12px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
#pending-account-play-btn:hover { border-color: #8b92a9; color: #e2e8f0; background: rgba(255,255,255,0.04); }

/* Fecha clicando no fundo (cursor já definido no #pending-account-modal) */
/* #pending-account-content tem cursor:default para não confundir */

@media (max-width: 420px) {
    .pam-benefits { grid-template-columns: 1fr; }
    #pending-account-content { padding: 20px 16px 18px; }
}

/* ── Rádio: sempre atrás do menu (overlays z-index:200) ──────────────────────
   O MusicPlayer vem depois do #overlays no DOM, então sem z-index explícito ele
   aparece por cima quando o menu abre. Fixar z-index abaixo do overlay.        */
#MusicPlayer {
    z-index: 10 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDESIGN VISUAL — helloDialog, galeria, modais login/cadastro
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Menu principal (#helloDialog) — mantém visual branco original ──────────*/
/* (sem override aqui — o CSS base define background:#FFFFFF com color:#fff;
    mas o texto visível vem de inputs/botões com suas próprias cores, então
    não interferimos no card branco que o usuário prefere)                    */

/* Nick input container */
#nick-container {
    margin-bottom: 8px;
}

/* Auth buttons, modais, OAuth, reCAPTCHA — gerenciados por theme_v1.css */

/* ── Galeria de Skins — mantém visual branco original ───────────────────────*/
/* (sem override aqui — gallery_v13.css define o visual branco padrão)        */

/* ═══════════════════════════════════════════════════════════════════════════
   OVERHAUL V2 — Agora gerenciado por theme_v1.css via CSS Variables.
   Mantemos apenas overrides que NÃO são tema-dependentes.
   ═══════════════════════════════════════════════════════════════════════════ */
