html, body {
	background-color:#000;
	margin: 0;
	padding: 0;
	height: 100%;
	background: #000;
	overflow: hidden;
}

.versao-jogo{
    position:absolute;
    top:230px;
    left:0;
    width:100%;
    text-align:center;
    font-size:12px;
    color:#aaa;
    opacity:0.7;
    font-family: monospace;
    pointer-events:none;
}



/* Preload da Home */

.barra-animada {
    width: 100%;
    height: 100%;
    /* Transição entre Amarelo Escuro -> Amarelo Claro -> Amarelo Escuro */
    background: linear-gradient(90deg, #cc9900 0%, #fff000 50%, #cc9900 100%);
    background-size: 200% 100%;
    /* Velocidade de 3.5s para um movimento bem elegante */
    animation: loadingLoop 3.5s infinite linear;
}

@keyframes loadingLoop {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Quando terminar, ela fica em um amarelo sólido vibrante */
.barra-cheia {
    background: #ffc107 !important;
    animation: none !important;
    transition: background 0.5s ease;
}


canvas {
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
	border: 4px solid #444;
}


#joystick {
	position: fixed;
	bottom: 40px;
	left: 40px;
	width: 120px;
	height: 120px;
	background: rgba(255,255,255,0.16);
	border-radius: 50%;
	touch-action: none;
}

#stick {
	position: absolute;
	width: 60px;
	height: 60px;
	background: rgba(255,255,255,0.5);
	border-radius: 50%;
	top: 30px;
	left: 30px;
}	


#gameContainer {
	position: relative;
	height: 100dvh;
	aspect-ratio: 9 / 16;
	margin: 0 auto;
	overflow: hidden;
}


#btnInteracao {
	position: fixed;
	bottom: 40px;
	right: 40px;
	width: 90px;
	height: 90px;
	z-index: 9999;
}

.btn-inner {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: linear-gradient(145deg, #FFD700, #e6b800);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	box-shadow: 0 0 20px rgba(255,215,0,0.6);
	position: relative;
}

.pulse-ring {
	position: absolute;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 3px solid rgba(255,215,0,0.6);
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}
@keyframes vibrar {
	0% { transform: rotate(0deg); }
	25% { transform: rotate(1deg); }
	50% { transform: rotate(-6deg); }
	75% { transform: rotate(5deg); }
	100% { transform: rotate(0deg); }
}


.character-card {
	cursor: pointer;
	transition: 0.3s;
	border-radius: 12px;
}

.character-card:hover {
	transform: scale(1.1);
	background: rgba(255,255,255,0.05);
}


#telaSobreposta {
	position: fixed;
	inset: 0;
	
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);	
	
	
	z-index: 2000;

	display: flex;
	align-items: center;
	justify-content: center;
}

.telaInterna {
	position: relative;   /* 👈 ESSENCIAL */
	overflow: hidden;

	width: min(100vw, calc(100vh * 9 / 16));
	height: 100%;
	max-height: 100vh;
	aspect-ratio: 9 / 16;

	display: flex;
	align-items: center;
	justify-content: center;

	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}	


.btn-fechar {
	position: absolute;
	top: 20px;
	right: 20px;

	width: 45px;
	height: 45px;

	border-radius: 50%;
	border: none;

	font-size: 22px;
	font-weight: bold;

	background: rgba(0,0,0,0.6);
	color: white;

	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;

	transition: 0.2s;
	
	backdrop-filter: blur(6px);
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.btn-fechar:hover {
	background: rgba(255,0,0,0.7);
	transform: scale(1.1);

}

#janelaLocal {
	position: absolute;
	top: -120px; /* começa fora da tela */
	left: 50%;
	transform: translateX(-50%);
	width: 85%;
	z-index: 1500;

	opacity: 0;
	transition: top 0.5s ease, opacity 0.4s ease;
}

#janelaLocal.mostrar {
	top: 30px;  /* posição final */
	opacity: 1;
}

.local-card {
	display: flex;
	align-items: center;
	gap: 15px;

	background: rgba(0,0,0,0.85);
	border: 3px solid #FFD700;
	border-radius: 10px;

	padding: 12px 20px;
	box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.local-icone img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	border: 3px solid #FFD700;
	object-fit: cover;
}

.local-texto {
	display: flex;
	flex-direction: column;
}

.local-titulo {
	color: #FFD700;
	font-size: 22px;
	font-weight: bold;
}

.local-subtexto {
	color: #ffffff;
	font-size: 16px;
}
		
#missaoTexto {
	white-space: pre-wrap;
}	

#btnMissaoProximo {
	transition: opacity 0.3s ease;
}		

/* Estado normal */
.retrato-dialogo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 3px solid #FFD700;
	object-fit: cover;
	transition: all 0.25s ease;
}

/* Personagem falando */
/* Transição suave no bloco inteiro */
#blocoRetrato_esquerdo,
#blocoRetrato_direito {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Quem está falando */
.bloco-ativo {
	opacity: 1;
	transform: scale(1.05);
}

/* Quem NÃO está falando */
.bloco-inativo {
	opacity: 0.35;
	transform: scale(0.95);
}

#characterSelect {
	position: absolute;
	inset: 0;
	z-index: 3000;
	background-image: url("assets/sistema/escolha_personagem_bg.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#characterSelect::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.0),
		rgba(0,0,0,0.3)
	);
	z-index: 0;
}


#characterSelect > * {
	position: relative;
	z-index: 1;
}

#characterSelect h1 {
	text-shadow:
		2px 2px 0 #000,
		3px 3px 0 rgba(0,0,0,0.9);
}	

#btnCelular {
	position: absolute; /* 🔥 IMPORTANTE */
	bottom: 40px;
	left: 40px;
	width: 80px;
	height: 80px;
	z-index: 1500;
	cursor: pointer;
}

@media (pointer: coarse) {
	#btnCelular {
		bottom: 190px;
		left: 40px;
	}
}	

#btnCelular .btn-inner {

	border-radius: 50%;
	background: linear-gradient(145deg, rgba(0,198,255,0.3), rgba(0,114,255,0.7));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	position: relative;
}	

#btnCelular:hover {
	transform: scale(1.06);
	background: rgba(255,255,255,0.05);
}	
@keyframes flutuar {
	0% { transform: translateY(0); }
	50% { transform: translateY(-18px); }
	100% { transform: translateY(0); }
}	

@keyframes brilho {
	0% {
		box-shadow: 0 0 10px rgba(0,114,255,1);
	}
	50% {
		box-shadow: 0 0 20px rgba(0,255,255,1);
	}
	100% {
		box-shadow: 0 0 10px rgba(0,114,255,1);
	}
}	


@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#btnCelular .pulse-ring-chamativo {
	display: none;
}

/* Quando tiver classe notificacao ativa */
#btnCelular.notificacao-ativa .pulse-ring-chamativo {
	display: block;
}	

#btnCelular.notificacao-ativa {
	animation: flutuar 1.8s ease-in-out infinite;
}

#btnCelular.notificacao-ativa .btn-inner {
	animation: vibrar 1.5s infinite, brilho 1s infinite;
}		


/* ============================= */
/* CHAT celular */
/* ============================= */
#tela-celular-dialogo {
	padding-top: 22px ;
	/* background-color:red; */
}	

#tela-celular-home .btn-fechar,
#tela-celular-dialogo .btn-fechar {
	background: #25D366;   /* verde chat */
	color: white;
	top: auto;
	bottom: 3%;          /* 🔥 proporcional */
	right: 50%;
	transform: translateX(50%);

}

#tela-celular-dialogo .btn-fechar:hover {
	background: #1ebe5d;
}	

.chat-header {
    position: absolute;
    top: 14%;
    left: 14%;
    width: 73%;
	
	display: flex;
	align-items: center;
	gap: 12px;

	z-index: 5;
}

.celular-container {
    position: absolute;
    top: 26%;
    left: 14%;
    width: 71%;
    bottom: 12%;
}


.chat {
	display: flex;
	flex-direction: column;
	gap: 10px;

	height: 100%;
	overflow-y: auto;

	/* esconder barra de rolagem */
	scrollbar-width: none;      /* Firefox */
	-ms-overflow-style: none;   /* IE/Edge antigo */
}

.chat::-webkit-scrollbar {
	display: none;              /* Chrome / Safari / Edge */
}

.chat-npc-foto {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #25D366;
}

.chat-npc-nome {
	color: white;
	font-size: 18px;
	font-weight: bold;
}

/* Base da mensagem */
.msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 16px;
	font-size: 15px;
	line-height: 1.4;
	word-wrap: break-word;
	animation: aparecer 0.3s ease;
}

/* NPC - esquerda - branco */
.msg.npc {
	align-self: flex-start;
	background: white;
	color: black;
	border-top-left-radius: 4px;
}

/* Jogador - direita - verde claro */
.msg.player {
	align-self: flex-end;
	background: #d9fdd3;
	color: black;
	border-top-right-radius: 4px;
}


/* ============================= */
/* TELA INICIAL */
/* ============================= */

#telaInicial {
    position: absolute;
    inset: 0;
    z-index: 4000;

    background-image: url("assets/sistema/escolha_personagem_bg.jpg");
    background-size: cover;
    background-position: center;

    text-align: center;
}

#telaInicial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3),
        rgba(0,0,0,0.6)
    );
}

#telaInicial > * {
    position: relative;
    z-index: 1;
}

/* ============================= */
/* ANIMAÇÃO TÍTULO TELA INICIAL */
/* ============================= */

.titulo-jogo {
    font-size: 40px;
    font-weight: bold;
    text-shadow:
        3px 3px 0 #000,
        4px 4px 0 rgba(0,0,0,0.9);

    animation: tituloDesce 1s ease-out forwards;
}

@keyframes tituloDesce {
    from {
        transform: translateY(-120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================= */
/* BOTÃO APARECE DEPOIS DO TÍTULO */
/* ============================= */

#btnIniciarJogo {
    font-size: 24px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,193,7,0.6);
    transition: 0.3s;

    animation: botaoAparece 0.6s ease forwards;
    animation-delay: 1s;
    animation-fill-mode: both; /* 🔥 ESSENCIAL */
}

@keyframes botaoAparece {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#btnIniciarJogo:hover {
    transform: scale(1.1);
}

.transicao-saida {
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.6s ease;
}

.transicao-entrada {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.6s ease;
}

.transicao-entrada.ativo {
    opacity: 1;
    transform: scale(1);
}
/* ===================================== */
/* TELA CELULAR HOME (ISOLADA) */
/* ===================================== */

#tela-celular-home {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Área superior */
#tela-celular-home .celular-home-topo {
    margin-top: 32%;
}

/* Horário grande */
#tela-celular-home .celular-horario {
    font-size: 64px;
    font-weight: 300;
    color: white;
    letter-spacing: 2px;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

/* Rodapé */
#tela-celular-home .celular-home-rodape {
    width: 100%;
    display: flex;
    justify-content: center;
}



/* ===================================== */
/* DOCK DE APPS - CELULAR HOME */
/* ===================================== */

#tela-celular-home .celular-card-home {

    margin-bottom: 18%;
    border-radius: 1px;
    backdrop-filter: blur(4px);
    border: none;
	width:80%;
	padding:10px;
	box-sizing: border-box;
}


#tela-celular-home .dock-apps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
	width: 100%;
    flex-wrap: nowrap;
}

/* 🔥 Icones para computador e depois para celular menor */
#tela-celular-home .app-icon {
    font-size: min(4vh, 46px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
@media (max-width: 480px) {
    #tela-celular-home .app-icon {
        font-size: 40px;
    }
}

/* ===================================== */
/* AJUSTE TAMANHO DOCK - DESKTOP */
/* ===================================== */

@media (hover: hover) and (pointer: fine) {

    #tela-celular-home .app-icon {
        font-size: min(5vh, 54px);
    }

}

/* efeito toque */
#tela-celular-home .app-icon:active {
    transform: scale(0.8);
}

/* hover desktop */
#tela-celular-home .app-icon:hover {
    background: rgba(255,255,255,0.25);
}


/* ===================================== */
/* NOTIFICAÇÃO CONQUISTA */
/* ===================================== */

/* ===================================== */
/* NOTIFICAÇÃO CONQUISTA CENTRAL */
/* ===================================== */

.notificacao-conquista {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);

	width: 80%;
	max-width: 400px;
	box-sizing: border-box;
	
    padding: 25px;

    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #FFD700;
    border-radius: 14px;

    color: #FFD700;
    text-align: center;
    font-size: 22px;
    font-weight: bold;

    box-shadow: 0 0 30px rgba(255,215,0,0.7);

    z-index: 5000;

    animation: conquistaAparece 0.4s ease forwards;
}

.notificacao-conquista img {
    box-shadow: 0 0 15px rgba(255,215,0,0.7);
}

/* ============================= */
/* BADGE NA NOTIFICAÇÃO CONQUISTA */
/* ============================= */

.badge-conquista {
    width: 240px;           /* 🔥 bem maior */
    max-width: 90%;         /* segurança para não ultrapassar */
    margin: 20px 0;
    border-radius: 16px;

    box-shadow: 0 0 25px rgba(255,215,0,0.9);
}

@keyframes glowObrigatorio {
    0% { box-shadow: 0 0 0px gold; transform: scale(1); }
    50% { box-shadow: 0 0 25px gold; transform: scale(0.9); }
    100% { box-shadow: 0 0 0px gold; transform: scale(1); }
}

.badge-obrigatoria img {
    animation: glowObrigatorio 1.4s infinite;
}

/* ============================= */
/* BOTÃO VER CONQUISTAS */
/* ============================= */

.btn-ver-conquistas {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;

    background: linear-gradient(145deg, #FFD700, #e6b800);
    color: black;
    font-weight: bold;
    font-size: 15px;

    cursor: pointer;
    transition: 0.2s;
}

.btn-ver-conquistas:active {
    transform: scale(0.95);
}

/* ===================================== */
/* HOVER BADGE - DESKTOP */
/* ===================================== */

@media (hover: hover) {
	
    .conquista-item:hover img {
        transform: translateY(-3px) scale(0.97);
        box-shadow: 0 8px 18px rgba(0,0,0,0.4);
    }	

    .conquista-item:hover div {
        color: #FFD700;
        transition: color 0.2s ease;
    }

}

@keyframes conquistaAparece {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* ============================= */
/* TELA CELULAR MISSÕES */
/* ============================= */

#tela-celular-missoes .celular-missoes-container {
    position: absolute;
    top: 5%;
    left: 3%;
    width: 97%;
    bottom: 5%;
    overflow-y: auto;
    color: white;
	padding-bottom:20px;
}

#listaMissoes {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.missao-item {
    margin-bottom: 5px;
	width: 100%;
}

.missao-nome {
    font-size: 18px;
    margin-bottom: 6px;
}

.barra-progresso-bg {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
}

.barra-progresso-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00c853);
    width: 0%;
    transition: width 0.4s ease;
}

/* ============================= */
/* FUNDO ESCURO TELA MISSÕES */
/* ============================= */

.celular-missoes-bg {
    position: absolute;
    top: 14%;
    left: 12%;
    width: 76%;
    bottom: 15%;

    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;

    overflow-y: auto;
}

/* ============================= */
/* BOTÃO VOLTAR MISSÕES */
/* ============================= */

.btn-voltar-home {
    margin-top: 10px;
    width: 100%;
    padding: 10px;

    border: none;
    border-radius: 10px;

    background: #25D366;
    color: white;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.2s;
}

.btn-voltar-home:active {
    transform: scale(0.95);
}


/* ============================= */
/* TELA CELULAR CONQUISTAS */
/* ============================= */

.conquistas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.conquista-item {
    text-align: center;
}

.conquista-item img {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s ease;
}

/* Conquista bloqueada */
.conquista-bloqueada img {
    filter: grayscale(100%) brightness(1.3);
    opacity: 0.6;
}

.celular-conquistas-bg {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    bottom: 12%;
	color:white;
	padding-bottom:20px;
	font-weight: bold;

    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;

    overflow-y: auto;
	
}

/* ============================= */
/* TÍTULO SEÇÃO CONQUISTAS */
/* ============================= */

.titulo-secao-conquistas {
	grid-column: 1 / -1; /* ocupa largura total do grid */
	margin-top: 20px;
	margin-bottom: 2px;

	font-size: 18px;
	font-weight: bold;
	color: #FFD700;

	text-align: center;
}

/* ============================= */
/* SEPARADOR ENTRE CONQUISTAS   */
/* ============================= */

.separador-conquistas {
	grid-column: 1 / -1; /* 🔥 ocupa todas as colunas */
	width: 100%;
	height: 2px;
	margin: 25px 0;

	background: linear-gradient(
		to right,
		transparent,
		rgba(255, 215, 0, 0.8),
		transparent
	);

	border-radius: 2px;
}

/* ============================= */
/* TELA CELULAR CONTATOS */
/* ============================= */

.celular-contatos-bg {
    position: absolute;
    top: 14%;
    left: 12%;
    width: 76%;
    bottom: 14%;

    background: rgba(0,0,0,0.75);
    border-radius: 18px;

    overflow-y: auto;
}

.celular-contatos-container {
    padding: 20px;
}

.titulo-contatos {
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.lista-contatos {
    display: flex;
    flex-direction: column;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);

    cursor: pointer;
    transition: background 0.2s ease;
}

.contato-item:hover {
    background: rgba(255,255,255,0.05);
}

.contato-foto {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.contato-info {
    display: flex;
    flex-direction: column;
}

.contato-nome {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.contato-status {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* Ícone mensagem futura */

.contato-acao {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.icone-msg {
    font-size: 20px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    padding: 6px 8px;
	
	position: relative;

    display: none; /* 🔥 começa escondido */
}

/* Quando ativado via JS */

/* ============================= */
/* Ícone mensagem SUPER chamativo */
/* ============================= */

.contato-item.mensagem-disponivel .icone-msg {
    display: inline-flex;

    animation:
        vibrar 1.5s infinite,
        flutuar 2s ease-in-out infinite;
}

/* Anel pulsando ao redor usando pulse */
.contato-item.mensagem-disponivel .icone-msg::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.6);
    animation: pulse 1.5s infinite;
}

/* ===================================== */
/* ANIMAÇÃO CONTROLÁVEL - APP CONTATOS */
/* ===================================== */

/* Estado normal (parado) */
.app-contatos {
    position: relative;
}

/* 🔥 Quando quiser animar, adiciona essa classe */
.app-contatos.animar {

    animation:
        flutuar 2s ease-in-out infinite,
        vibrar 1.5s infinite;
}

/* Anel pulsando opcional */
.app-contatos.animar::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,255,0.6);
    animation: pulse 1.5s infinite;
}


/* ===================================== */
/* DETALHE PROFISSÃO - CONQUISTAS */
/* ===================================== */

.profissao-container {
    padding: 10px;
    animation: aparecer 0.3s ease;
}

.profissao-titulo {
    text-align: center;
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 15px;
}

.profissao-bloco {
    margin-bottom: 15px;
}

.profissao-subtitulo {
    font-size: 15px;
    color: #00c6ff;
    margin-bottom: 4px;
}

.profissao-texto {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
}

.destaque-salario {
    font-size: 16px;
    color: #00ff88;
    font-weight: bold;
}

.profissao-frase {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #FFD700;
    font-style: italic;
}

.profissao-imagem-topo {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    
    margin-bottom: 15px;
}

.profissao-imagem-topo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sistema de Quarto */

@keyframes piscarUpgrade {
    0% { transform: scale(1); box-shadow: 0 0 0px gold; }
    50% { transform: scale(1.05); box-shadow: 0 0 40px gold; }
    100% { transform: scale(1); box-shadow: 0 0 0px gold; }
}

.btn-upgrade-ativo {
    animation: piscarUpgrade 1.2s infinite;
}

.estrelas-quarto {
    text-align: center;
    margin-bottom: 5px;
    font-size: 44px;
    letter-spacing: 2px;
}

.estrela {
    color: #555; /* cinza padrão */
    transition: 0.3s ease;
}

.estrela.ativa {
    color: #FFD700; /* dourado */
    text-shadow: 0 0 8px gold;
}

/* ===================================== */
/* ✨ ANIMAÇÃO UPGRADE DO QUARTO */
/* ===================================== */

.overlay-upgrade-quarto {
    position: absolute;
    inset: 0;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9000;
    opacity: 0;
    transition: opacity 2.8s ease;
}

.overlay-upgrade-quarto.ativo {
    opacity: 0.95;
}

.texto-upgrade {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    animation: pulsarTexto 1.5s infinite;
}

@keyframes pulsarTexto {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.flash-dourado {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,215,0,0.9) 0%, rgba(0,0,0,0) 70%);
    opacity: 0;
    animation: flashAnim 0.8s ease;
}

@keyframes flashAnim {
    0% { opacity: 0; }
    40% { opacity: 1; }
    100% { opacity: 0; }
}


/* #### DEBUG */

#devModeLabel{
	position:absolute;
	top:10px;
	left:10px;
	background:red;
	color:white;
	padding:5px 10px;
	font-weight:bold;
	z-index:9999;
	display:none;
}


/* DIV DE FUNDO PRA NAO USAR BACKGROUND IMAGE QUE DA BUG NO PRELOAD */

.bgTela{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-1;
}



/* =========================
TELA FINAL
========================= */

.tela-final{
    display:flex;
    align-items:center;
    justify-content:center;
    background: radial-gradient(circle,#000,#020617);
    animation: fadeTelaFinal 1.5s ease;
}

@keyframes fadeTelaFinal{
    from{opacity:0;}
    to{opacity:1;}
}

.fim-container{
    text-align:center;
    color:white;
    max-width:600px;
}

.fim-titulo{
    font-size:48px;
    color:#FFD700;
    text-shadow:0 0 20px #FFD700;
    animation: tituloEntrada 1.5s ease;
}

@keyframes tituloEntrada{
    from{
        transform:scale(0.5);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.fim-textos{
    margin-top:25px;
}

.linha-fim{
    opacity:0;
    transform:translateY(20px);
}

.linha-fim.mostrar{
    animation: linhaEntrada 0.8s forwards;
}

@keyframes linhaEntrada{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.destaque{
    color:#FFD700;
    font-weight:bold;
    font-size:20px;
}

#fogosCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
}
