@import url('https://fonts.googleapis.com/css2?family=Chango&display=swap');

:root {
	--color-bg: #191b2e;
	--color-bg-deep: #0a0b10;
	--color-panel: #111111;
	--color-panel-soft: #1f2029;
	--color-black: #000000;
	--color-white: #ffffff;
	--color-muted: #a0a5b5;
	--color-yellow: #ffcc00;
	--color-green: #00ff66;
	--color-lime: #00ff00;
	--color-pink: #ff0076;
	--color-red: #ff0055;
	--color-blue: #0088ff;
	--color-teal: rgb(47, 170, 152);
	--font-display: "Chango", sans-serif;
	--font-mono: "Source Code Pro", monospace;
	--font-body: "Outfit", sans-serif;
	--shadow-yellow: 0 0 10px rgba(255, 204, 0, 0.4);
	--shadow-green: 0 0 10px var(--color-green);
	--shadow-pink-soft: 0 0 5px rgba(255, 0, 118, 0.3);
}

.is-hidden {
	display: none !important;
}

body{
	background: var(--color-bg);
	height: 100vh;
	min-width: 1024px;
	overflow: hidden;
}

.aviso-pantalla-movil {
	display: none;
}

#herramientas {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
}

#abrirMenuAgregar {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    background-color: var(--color-black);
    color: var(--color-lime);
    font-family: var(--font-display);
    font-size: 24pt;
    line-height: 1;
}

#herramientas span {
    visibility: hidden;
    padding: 8px 12px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 10pt;
}

#herramientas:hover span {
    visibility: visible;
}

.menu-agregar {
    position: absolute;
    top: 50px;
    left: 0;
    width: 190px;
    display: none;
    padding: 8px;
    background-color: var(--color-panel);
    border: 2px solid var(--color-yellow);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.menu-agregar.abierto {
    display: grid;
    gap: 8px;
}

.menu-agregar button {
    width: 100%;
    height: 42px;
    margin: 0;
    border-radius: 6px;
    background-color: #222222;
    color: var(--color-white);
    font-size: 10pt;
}

.modal-pregunta {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.65);
}

.modal-pregunta.abierto {
    display: flex;
}

.modal-pregunta-contenido {
    width: min(760px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px;
    background-color: var(--color-panel);
    border: 4px solid var(--color-yellow);
    color: var(--color-white);
    font-family: var(--font-display);
}

.modal-pregunta-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-pregunta-encabezado h2 {
    margin: 0;
    color: var(--color-lime);
    font-size: 20pt;
}

.modal-pregunta-encabezado button {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
}

.modal-pregunta label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 10pt;
}

.modal-pregunta input {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 6px 10px;
    color: var(--color-black);
    border: none;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.respuestas-modal {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px 14px;
}

#mensajePregunta {
    min-height: 20px;
    margin: 6px 0 14px;
    color: var(--color-lime);
    font-family: var(--font-mono);
}

#mensajeDineroRapido {
    min-height: 20px;
    margin: 6px 0 14px;
    color: var(--color-lime);
    font-family: var(--font-mono);
}

.modal-dinero-rapido-contenido {
    width: min(980px, 94vw);
}

.dr-set-pregunta {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(255, 204, 0, 0.45);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.04);
}

.dr-set-pregunta h3 {
    margin: 0 0 12px;
    color: var(--color-yellow);
    font-size: 13pt;
}

.dr-set-respuestas {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px 14px;
}

.acciones-modal {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.acciones-modal button {
    width: 120px;
    height: 48px;
    margin: 0;
    border-radius: 8px;
}

.ventana{
	width: 100%;
	height:100%;
	justify-content: center;
    align-items: center;
    position: absolute;
    display: flex;
    visibility: visible;
    pointer-events: none;
    z-index: 10;
}

.Alerta {
	width: auto;
	min-width: 400px;
	height: auto;
	padding: 25px;
	background-color: rgba(10, 11, 16, 0.95);
	backdrop-filter: blur(8px);
	border: 4px solid var(--color-yellow);
	box-shadow: 0 0 25px var(--color-yellow), inset 0 0 15px rgba(255, 204, 0, 0.25);
	position: absolute;
	margin: auto auto;
	border-radius: 20px;
	display: grid;
	justify-content: center;
	align-items: center;
	align-content: center;
	justify-items: center;
	visibility: hidden;
	z-index: 100;
}

.Alerta p {
	display: flex;
	font-size: 2.2rem;
	font-weight: 800;
	font-family: var(--font-display);
	color: var(--color-yellow);
	text-shadow: 0 0 8px var(--color-yellow);
	text-align: center;
	margin: 10px 20px;
	text-transform: uppercase;
}

.alerta-ronda-texto {
	font-size: 4em !important;
	color: var(--color-pink) !important;
}

.alerta-strike-texto {
	font-size: 150pt !important;
	color: red !important;
}

/* Alertas de Robo de Puntos (Tema Azul Neon) */
#alr1, #alr2 {
	border-color: var(--color-blue);
	box-shadow: 0 0 25px #0088ff, inset 0 0 15px rgba(0, 136, 255, 0.25);
}

#alr1 p, #alr2 p {
	color: var(--color-blue);
	text-shadow: 0 0 8px var(--color-blue);
}

/* Alerta de Strike (Tema Rojo Neon y X Gigante) */
#alr3 {
	border-color: var(--color-pink);
	box-shadow: 0 0 25px #ff0076, inset 0 0 15px rgba(255, 0, 118, 0.25);
	padding: 10px 50px;
}

#alr3 p {
	font-size: 11rem;
	color: var(--color-pink);
	text-shadow: 0 0 15px #ff0076, 0 0 30px #ff0076;
	margin: 0;
	font-family: var(--font-display);
}

#avisoMultiplicador {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 360px;
    width: clamp(1vw, 33.66vw, 35vw);
    padding: 8px 28px;
    background-color: var(--color-black);
    border: 9.5px solid transparent;
    color: #ff00e1;
    font-family: var(--font-display);
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(#000, #000) padding-box, linear-gradient(to right, #83CF00 0%, #f5ff00 100%) border-box;
    visibility: hidden;
    border-radius: 32px;
    min-height: clamp(68px, 83px, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aviso-ronda-actual {
    color: #ff00e1;
    font-size: clamp(18pt, 3vw, 28pt);
    line-height: 1;
    text-shadow: 0 0 15px #c700ff, 0 0 30px #ff00c4;
}

.aviso-puntos-multiplicador {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    transform: translate(-50%, 50%);
    min-width: clamp(170px, 18vw, 260px);
    padding: 6px 18px;
    background-color: var(--color-black);
    border: 4px solid var(--color-yellow);
    border-radius: 18px;
    color: var(--color-lime);
    font-size: clamp(9pt, 0.9vw, 13pt);
    line-height: 1.1;
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.35);
    white-space: nowrap;
}

.aviso-puntos-multiplicador:empty {
    display: none;
}

#Principal{
	display: flex;
	margin: auto;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 1.4vw, 26px);
	background-image:url("tablero.gif");
	background-size: cover;
	height: calc(100vh - clamp(58px, 8vh, 112px));
	min-height: clamp(800px, 847px, 900px);
	padding: clamp(18px, 1vw, 36px) clamp(12px, 1vw, 32px) clamp(29px, 7.65vh, 170px);
	overflow: hidden;
	position: relative;
}

.video-fondo-tablero {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	pointer-events: none;
}

#Principal > :not(.video-fondo-tablero) {
	position: relative;
	z-index: 1;
}

#Tablero{
	width: clamp(560px, 50.8vw, 930px);
	aspect-ratio: 192 / 145;
	/* margin: 0px 13px; */
	align-content: center;
	display: flex;
	background-image: url("assets/pinci_talber.svg");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	position: relative;
	flex: 0 0 auto;
}
.pantalla{
	width: 85%;
	height: 81%;
	margin: auto;
	display: grid;
	position: relative;
	bottom: 0px;
	border-radius: 23px;
	grid-auto-flow: row;
	align-content: start;
}

#Qttle {
 	font-family: var(--font-mono);
 	font-size: clamp(13pt, 2vw, 25pt);
 	color: var(--color-lime);
 	margin: clamp(6px, 1vh, 14px) auto;
 	padding: 0 clamp(10px, 1.2vw, 22px);
 	display: flex;
 	align-items: flex-start;
 	justify-content: center;
 	text-align: center;
 	line-height: 1.25;
 	height: clamp(1px, 117px, 200px);
}

#ansList{
	align-items: center;
	font-family: var(--font-mono);
	font-size: clamp(13pt, 1.85vw, 23pt);
	color: black;
	list-style: decimal;
	height: 100%;
	margin: auto;
	padding-left: clamp(28px, 2.8vw, 54px);
}

#ansList li{
	margin: clamp(8px, 1.5vh, 20px) clamp(10px, 1.6vw, 24px);
	
}

#ansList li:hover {
	cursor:pointer;

}


.puntos{
	color: green;
	font-family: var(--font-display);
}

#barraInf {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	bottom: clamp(8px, 1.3vh, 18px);
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: auto;
	gap: clamp(8px, 1.5vh, 16px);
	margin: 0px;
	z-index: 19;
}

#strikes {
	width: 100%;
	height: auto;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	padding: clamp(28px, 9.5vh, 100px) 0px;
}

.Stk {
	width: clamp(66px, 6.8vw, 105px);
	height: clamp(66px, 6.8vw, 105px);
	/* background-color: black; */
	margin: 5px 10px;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	justify-content: center;
	background-image: url("assets/strike-back.svg");
	background-size: cover;
	align-content: center;
	background-repeat: no-repeat;
	/* border-radius: 40px; */
}

.Stk p {
	color: red;
	font-family: var(--font-body);
	font-weight: 900;
	font-size: clamp(3rem, 5vw, 4em);
	display: flex;
	align-items: center;
	margin: auto;
	flex-wrap: nowrap;
	justify-content: center;
	visibility: hidden;
	text-shadow: 0 0 15px #ff0076, 0 0 30px #ff0076;
}

#control {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 1.8vw, 28px);
}

#control button,
#control #IndT {
	margin: 0;
}

button {
	margin: auto;
	font-family: var(--font-display);
	width: clamp(124px, 11vw, 161px);
	height: clamp(28px, 3.2vh, 38px);
	background: linear-gradient(45deg, #0d532a, #279e10);
	position: relative;
	font-size: clamp(9pt, 0.9vw, 12pt);
	border-radius: 12px;
	border: 2px solid #0b0c27;
	color: #ffffffd9;
}

button:hover {
	background-color: white;
	cursor: pointer;
}

input {
	display: flex;
	align-items: center;
	margin: auto;
	flex-wrap: nowrap;
	justify-content: center;
	align-content: center;
	font-family: var(--font-display);
	width: 100px;
	height: 80px;
}

#IndT {
	/* align-items: center; */
	margin: auto;
	font-family: var(--font-display);
	width: clamp(320px, 40vw, 629px);
	height: clamp(28px, 3.2vh, 38px);
	background: #32216eb5;
	color: rgb(161 245 233);
	/* position: relative; */
	border-radius: 14px;
	padding-left: clamp(12px, 1.4vw, 20px);
	font-size: clamp(9pt, 0.95vw, 12pt);
	display: flex;
	align-items: center;
	border: 1px dashed #0088ff;
}

/* --- Dinero Rápido --- */
#DineroRapidoTablero {
	width: 100%;
	min-height: 700px;
	background-color: #0c0d14;
	font-family: var(--font-mono);
	color: var(--color-white);
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.dr-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 4px solid var(--color-yellow);
	padding-bottom: 15px;
	margin-bottom: 25px;
}

.dr-titulo {
	font-family: var(--font-display);
	font-size: 32pt;
	color: var(--color-yellow);
	font-weight: 800;
	text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.dr-temporizador {
	width: 100px;
	height: 100px;
	background: var(--color-panel-soft);
	border: 4px solid var(--color-green);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34pt;
	font-weight: bold;
	color: var(--color-green);
	text-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
	box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.dr-temporizador.warning {
	border-color: #ffff00;
	color: #ffff00;
	text-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
	box-shadow: 0 0 15px rgba(255, 255, 0, 0.2);
}

.dr-temporizador.critical {
	border-color: #ff0055;
	color: #ff0055;
	text-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
	box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
	animation: blink-red 1s infinite;
}

@keyframes blink-red {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.dr-columnas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	flex: 1;
}

.dr-columna {
	background: rgba(30, 32, 50, 0.5);
	border: 3px solid var(--color-blue);
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.dr-columna h2 {
	text-align: center;
	font-family: var(--font-display);
	font-size: 22pt;
	color: var(--color-blue);
	margin-bottom: 20px;
	text-shadow: 0 0 8px rgba(0, 136, 255, 0.4);
}

.dr-lista {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 0;
}

.dr-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #000;
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 12px 20px;
	font-size: 18pt;
	font-weight: 600;
}

.dr-resp {
	color: var(--color-white);
	text-transform: uppercase;
}

.dr-pts {
	color: var(--color-green);
	font-weight: 800;
	font-family: var(--font-display);
	min-width: 60px;
	text-align: right;
}

.dr-subtotal {
	margin-top: 25px;
	text-align: right;
	font-size: 24pt;
	font-weight: bold;
	font-family: var(--font-display);
	color: var(--color-yellow);
}

.dr-subtotal span {
	color: var(--color-green);
}

.dr-footer {
	margin-top: 30px;
	border-top: 4px solid var(--color-yellow);
	padding-top: 20px;
	text-align: center;
}

.dr-gran-total {
	font-family: var(--font-display);
	font-size: 28pt;
	font-weight: 800;
	color: var(--color-yellow);
	text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.dr-gran-total span {
	color: var(--color-green);
	font-size: 34pt;
}

/* --- Lobby del Tablero Principal --- */
.lobby-tablero-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0a0b10;
	font-family: var(--font-display);
	color: #fff;
}

.lobby-tablero-card {
	width: min(760px, 95vw);
	background: rgba(30, 32, 50, 0.6);
	border: 4px solid #ffcc00;
	border-radius: 24px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 0 30px rgba(255, 204, 0, 0.25);
	backdrop-filter: blur(10px);
}

.lobby-cuerpo {
	display: flex;
	gap: 40px;
	align-items: stretch;
	justify-content: space-between;
	margin-top: 20px;
}

.lobby-cuerpo-espera {
	margin-top: 10px;
}

.lobby-panel-espera {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.lobby-espera-titulo {
	margin: 0;
	color: var(--color-yellow);
	font-family: var(--font-display);
	font-size: 2.2rem;
	text-shadow: var(--shadow-yellow);
}

.lobby-codigo-espera {
	margin: 10px 0;
	padding: 10px 30px;
	background: rgba(0, 0, 0, 0.3);
	border: 2px dashed var(--color-green);
	border-radius: 12px;
	color: var(--color-green);
	font-family: var(--font-mono);
	font-size: 3.5rem;
	font-weight: 900;
	text-shadow: var(--shadow-green);
}

.lobby-instrucciones {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
	text-align: left;
}

.lobby-instruccion-principal,
.lobby-instruccion-secundaria {
	margin: 0;
	font-family: var(--font-body);
}

.lobby-instruccion-principal {
	color: var(--color-white);
	font-size: 1.1rem;
	line-height: 1.5;
}

.lobby-instruccion-secundaria {
	color: var(--color-muted);
	font-size: 0.95rem;
	line-height: 1.4;
}

.espera-status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	color: var(--color-pink);
	font-family: var(--font-display);
	font-size: 1rem;
	text-shadow: var(--shadow-pink-soft);
}

.lobby-qr-seccion {
	width: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border-left: 2px solid rgba(255, 204, 0, 0.2);
	padding-left: 30px;
}

.qr-container {
	width: 140px;
	height: 140px;
	background: #fff;
	border-radius: 12px;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.qr-container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lobby-qr-seccion span {
	display: block;
	margin-top: 5px;
	font-family: var(--font-display);
	font-size: 10pt;
	font-weight: bold;
	color: var(--color-yellow);
	text-shadow: 0 0 5px rgba(255, 204, 0, 0.4);
	text-align: center;
}

.lobby-qr-seccion p {
	font-family: 'Outfit', sans-serif;
	font-size: 8.5pt !important;
	color: #a0a5b5;
	margin-bottom: 0 !important;
	text-align: center;
	line-height: 1.3;
}

.lobby-tablero-card h1 {
	font-size: 26pt;
	font-weight: 800;
	color: #ffcc00;
	margin-bottom: 12px;
	text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.lobby-tablero-card p {
	font-family: 'Outfit', sans-serif;
	font-size: 11pt;
	color: #a0a5b5;
	margin-bottom: 30px;
}

.lobby-acciones {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.btn-lobby {
	font-family: var(--font-display);
	font-size: 13pt;
	font-weight: bold;
	border: none;
	border-radius: 12px;
	padding: 15px 25px;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
	height: 57px;
}

.btn-lobby:active {
	transform: scale(0.97);
}

.btn-lobby-primary {
	background: #ffcc00;
	color: #000;
	box-shadow: 0 4px 20px rgba(255, 204, 0, 0.4);
}

.btn-lobby-primary:hover {
	background: #fff;
	box-shadow: 0 4px 25px rgba(255, 255, 255, 0.4);
}

.lobby-separador {
	display: flex;
	align-items: center;
	text-align: center;
	color: #555866;
	font-size: 10pt;
	font-family: 'Outfit', sans-serif;
	margin: 10px 0;
}

.lobby-separador::before,
.lobby-separador::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lobby-separador span {
	padding: 0 10px;
}

.lobby-input-row {
	display: flex;
	gap: 12px;
}

.lobby-input-row input {
	flex: 1;
	height: 52px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: #fff;
	padding: 0 15px;
	font-family: 'Source Code Pro', monospace;
	font-size: 12pt;
	text-transform: uppercase;
	margin: 0;
	text-align: center;
}

.lobby-input-row input:focus {
	outline: none;
	border-color: #0088ff;
	box-shadow: 0 0 10px rgba(0, 136, 255, 0.2);
}

.btn-lobby-secondary {
	background: #0088ff;
	color: #fff;
	width: auto;
	height: 52px;
	padding: 0 25px;
	font-size: 11pt;
}

.btn-lobby-secondary:hover {
	background: #00ff66;
	color: #000;
}

.mensaje-lobby-error {
	font-family: 'Outfit', sans-serif;
	font-size: 10pt;
	color: #ff0055;
	margin-top: 15px;
	min-height: 15px;
}

/* --- Contenedor flotante del código de sala (abajo a la derecha) --- */
#contenedorCodigoSala {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 1001;
	display: flex;
	align-items: center;
	gap: 12px;
	pointer-events: auto;
}

#btnToggleCodigoSala {
	background: rgba(15, 17, 26, 0.85);
	border: 2px solid #ffcc00;
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffcc00;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	transition: all 0.25s ease-in-out;
	outline: none;
	padding: 0;
}

#btnToggleCodigoSala:hover {
	background: #ffcc00;
	color: #000;
	box-shadow: 0 0 15px #ffcc00, 0 4px 15px rgba(255, 204, 0, 0.4);
	transform: scale(1.05);
}

#displayCodigoSala {
	background: rgba(15, 17, 26, 0.9);
	border: 2px solid #ffcc00;
	border-radius: 8px;
	color: #ffcc00;
	font-family: 'Source Code Pro', monospace;
	font-size: 13pt;
	font-weight: bold;
	padding: 8px 16px;
	text-shadow: 0 0 5px rgba(255, 204, 0, 0.4);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	white-space: nowrap;
}

/* --- Overlays de Animación y Celebración --- */
.overlay-animacion {
	position: fixed;
	inset: 0;
	background: rgba(10, 11, 16, 0.9);
	backdrop-filter: blur(10px);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
}

.overlay-animacion.is-active {
	display: flex;
}

.animacion-contenido {
	text-align: center;
	font-family: var(--font-display);
}

.animacion-video-ronda {
	display: block;
	width: min(760px, 82vw);
	max-height: 48vh;
	margin: 0 auto;
	object-fit: contain;
	background: transparent;
}

.animacion-fallback-ronda {
	margin: 0;
}

/* Animación de Zoom y Rotación Sutil */
.animacion-zoom-ronda {
	animation: zoomRondaAnim 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animacion-zoom-celebracion {
	animation: zoomCelebracionAnim 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomRondaAnim {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	15% {
		transform: scale(1.2) rotate(-2deg);
		opacity: 1;
	}
	20% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
	}
	80% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
	}
	90% {
		transform: scale(0.5);
		opacity: 0.5;
	}
	100% {
		transform: scale(0);
		opacity: 0;
	}
}

@keyframes zoomCelebracionAnim {
	0% {
		transform: scale(0) rotate(5deg);
		opacity: 0;
	}
	10% {
		transform: scale(1.1) rotate(-3deg);
		opacity: 1;
	}
	15% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
	}
	85% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
		filter: drop-shadow(0 0 20px rgba(0, 255, 102, 0.6));
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

/* Títulos Neon */
.animacion-titulo-ronda {
	font-size: 7rem;
	font-weight: 800;
	color: #00ff66;
	text-shadow: 0 0 10px #00ff66, 0 0 20px #00ff66, 0 0 40px #0088ff;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.animacion-subtitulo-ronda {
	font-size: 3.5rem;
	font-weight: bold;
	color: #ff0076;
	text-shadow: 0 0 23px #ff0076, 0 0 2px #ff0076, 0 0 2px #ffcc00;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.animacion-titulo-celebracion {
	font-size: 5rem;
	font-weight: 800;
	color: #ffcc00;
	text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00, 0 0 40px #ff0076;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.animacion-puntos-celebracion {
	font-size: 4rem;
	font-weight: bold;
	color: #00ff66;
	text-shadow: 0 0 10px #00ff66, 0 0 20px #00ff66, 0 0 30px #0088ff;
	text-transform: uppercase;
}

/* --- Spinner de Espera del Lobby --- */
.espera-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 0, 118, 0.3);
	border-radius: 50%;
	border-top-color: #ff0076;
	animation: spinSpinner 1s linear infinite;
	display: inline-block;
}

@keyframes spinSpinner {
	to { transform: rotate(360deg); }
}

/* --- Responsive escritorio/laptop --- */
@media (max-width: 1366px) {
	#Principal {
		min-height: 560px;
		padding-bottom: clamp(92px, 14vh, 138px);
	}

	#Tablero {
		width: clamp(500px, 49vw, 700px);
		height: clamp(1px,427px,900px);
		/* aspect-ratio: 153/209; */
		background-size: 100% 100%;
		object-fit: fill;
	}

	#avisoMultiplicador {
		top: 16px;
		min-width: 300px;
		padding: 8px 20px;
		min-height: 68px;
	}

	.aviso-puntos-multiplicador {
		min-width: 180px;
		padding: 5px 16px;
	}
}

@media (max-height: 760px) and (min-width: 901px) {
	#Principal {
		height: calc(104vh - 50px);
		min-height: 640px;
		padding-top: 12px;
		padding-bottom: 36px;
	}

	#Tablero {
		width: clamp(470px, 51vw, 709px);
	}

	#strikes {
		padding: 22px 0;
	}

	.animacion-video-ronda {
		max-height: 42vh;
	}

	.animacion-subtitulo-ronda {
		font-size: 2.8rem;
	}
}

@media (min-width: 1700px) and (min-height: 900px) {
	#Principal {
		padding-bottom: 180px;
	}

	#Tablero {
		width: clamp(820px, 48vw, 1020px);
	}
}

/* --- Aviso para móviles --- */
@media (max-width: 900px), (pointer: coarse) and (max-width: 1180px) {
	html,
	body {
		width: 100%;
		min-width: 0;
		height: 100%;
		overflow: hidden;
		background: var(--color-bg-deep);
	}

	body > :not(#avisoPantallaMovil) {
		display: none !important;
	}

	.aviso-pantalla-movil {
		position: fixed;
		inset: 0;
		z-index: 9999;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 24px;
		background:
			radial-gradient(circle at top, rgba(0, 136, 255, 0.22), transparent 34%),
			var(--color-bg-deep);
		color: var(--color-white);
		font-family: var(--font-body);
		text-align: center;
	}

	.aviso-pantalla-movil-card {
		width: min(420px, 100%);
		padding: 28px 22px;
		border: 3px solid var(--color-yellow);
		border-radius: 12px;
		background: rgba(17, 17, 17, 0.92);
		box-shadow: 0 0 28px rgba(255, 204, 0, 0.22);
	}

	.aviso-pantalla-movil h1 {
		margin: 0 0 16px;
		color: var(--color-yellow);
		font-family: var(--font-display);
		font-size: clamp(22px, 8vw, 34px);
		line-height: 1.12;
	}

	.aviso-pantalla-movil p {
		margin: 10px 0 0;
		color: var(--color-white);
		font-size: 16px;
		line-height: 1.45;
	}

	.aviso-pantalla-movil p:last-child {
		color: var(--color-green);
		font-weight: 700;
	}
}
