@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "GameTitle";
    src: url("fonts/Playthings.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
 @font-face {
    font-family: "GameTitle2";
    src: url("fonts/PixelGamer-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "CustomGameTitle";
    src: var(--custom-font-url);
    font-weight: normal;
    font-style: normal;
}
* {
  cursor: none !important;
}
:root {
    /* Colores personalizables */
    --accent-color: #980ff3;
    --secondary-color: #FF9800;
    --border-outer-color: rgb(116, 0, 194);
    --border-inner-color: rgb(130, 0, 216);
    --background-start: #150022dc;
    --background-end: #1f0033e3;
    --custom-font-url: none;
    --game-title-font: "GameTitle";
    --game-title2-font: "GameTitle2";
}
.font-preview {
  width: 250px;
}
.preview-text {
    padding: 15px;
    border: 1px solid #505050;
    border-radius: 5px;
    border-style: dashed;
    border-radius: 5px;
    text-align: center;
}
label {
  pointer-events: none;
}
body {
    font-family: 'Cabin';
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}
.game-container {
    position: relative;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
}
.watermark {
  position: absolute;
  width: 200px;  
  top: 10px;
  left: 10px;
  opacity: 1;
  z-index: 0;
}
/* Controles del watermark */
.watermark-controls {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.watermark-controls .control-item {
    margin-bottom: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
}
.watermark-controls .control-item:last-child {
    margin-bottom: 0;
}
.watermark-controls label {
    margin-right: 10px;
    min-width: 120px;
    font-size: 14px;
}
.watermark-controls input[type="range"] {
    flex-grow: 1;
    margin-right: 10px;
}
.watermark-controls span {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
}
/* Para el checkbox de visibilidad */
.watermark-controls .switch-label {
    display: flex;
    align-items: center;
    width: 100%;
}
.watermark-controls .switch-text {
    margin-left: 8px;
}
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--background-start), var(--background-end));
    z-index: -2;
    opacity: 1;
}
.background2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
}
.background-img {
  height: 100%;
  width: 100%;
  opacity: 1;
  object-fit: cover;
}
#backgroundImage-preview {
    max-width: 200px;
    max-height: 150px;
    display: block;
    margin-bottom: 0px;
    border-radius: 15px;
}
.spanBackground {
    position: relative;
    bottom: 12px;
    left: 10px;
}

.bgWidth {
  max-width: 300px;
}

.adornoRuleta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}
.ruletaContainer {
    position: absolute;
    width: 850px;
    height: 850px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center; 
    overflow: hidden !important;
}
.ruletaBorderOuter {
    position: absolute;
    width: 850px;
    height: 850px;
    border: 50px solid var(--border-outer-color);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    pointer-events: none;
    filter: drop-shadow(rgba(0, 0, 0, 0.692) -0px 0px 10px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}
.ruletaBorderInner {
    position: absolute;
    width: 850px;
    height: 850px;
    border: 25px solid var(--border-inner-color);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

@keyframes movAdorno1 {
    0% { transform: translate(0px); }
    50% { transform: translate(0, -10px); }
    100% { transform: translate(0px); }
}
@keyframes movAdorno2 {
    0% { transform: translate(0px) rotate(-90deg); }
    50% { transform: translate(-10px, 0px) rotate(-90deg);  }
    100% { transform: translate(0px) rotate(-90deg); }
}
@keyframes movAdorno3 {
    0% { transform: translate(0px) rotate(180deg); }
    50% { transform: translate(0px, 10px) rotate(180deg);  }
    100% { transform: translate(0px) rotate(180deg); }
}
@keyframes movAdorno4 {
    0% { transform: translate(0px) rotate(90deg); }
    50% { transform: translate(10px, 0px) rotate(90deg);  }
    100% { transform: translate(0px) rotate(90deg); }
}
.adornoRuleta1 {
    position: absolute;
    top: -100px;
    width: 100px;
    height: auto;
    z-index: 5;
    animation: movAdorno1 4s infinite;
    pointer-events: none;
}
.adornoRuleta2 {
    position: absolute;
    left: -100px;
    width: 100px;
    height: auto;
    animation: movAdorno2 4s infinite;
    z-index: 5;
    pointer-events: none;
}
.adornoRuleta3 {
    position: absolute;
    bottom: -100px;
    width: 100px;
    height: auto;
    animation: movAdorno3 4s infinite;
    z-index: 5;
    pointer-events: none;
}
.adornoRuleta4 {
    position: absolute;
    right: -100px;
    width: 100px;
    height: auto;
    animation: movAdorno4 4s infinite;
    z-index: 5;
    pointer-events: none;
}
.ruleta {
    position: absolute;
    width: 900px;
    height: 900px;
    z-index: 0;
    transform-origin: center center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    transform: translate(-2%, 0%);
    color: inherit;
    --accent-color: inherit;
    --secondary-color: inherit;
}
.st0 {
    font-family: 'MyriadPro-Regular', Arial, sans-serif; /* Fallback */
}
.st3 {
    fill: var(--accent-color);
}
.st4 {
    fill: var(--secondary-color);
}
.boton-central {
    position: absolute;
    top: calc(50% - 75px);
    left: calc(50% - 72px);
    transform: translate(-50%, -50%);
    filter: drop-shadow(rgba(0, 0, 0, 0.692) -0px 0px 10px);
    animation: agrandarEncoger2 .5s infinite reverse;
    transform-origin: center center;
    width: 150px;
    height: auto;
    cursor: pointer;
    z-index: 10;
}
@keyframes agrandarEncoger2 {
    0% { transform: scale(0.7);}
    40% { transform: scale(0.85);}
    100% { transform: scale(0.7);}
}
/* Animación de parpadeo para los focos */
@keyframes blink {
    0%, 100% { background: rgb(251, 255, 0); filter: drop-shadow(rgba(251, 255, 0, 0.897) -0px 0px 20px);}
    50% { background: rgb(124, 126, 0); filter: drop-shadow(rgba(251, 255, 0, 0) -0px 0px 10px);}
}
.foco {
    position: absolute;
    background: rgb(251, 255, 0);
    filter: drop-shadow(rgba(251, 255, 0, 0.774) -0px 0px 10px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    animation: blink 1s infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
    z-index: 4;
    /* Posicionamiento alrededor del círculo */
    transform: rotate(calc(var(--i) * 15deg)) translate(450px) rotate(calc(var(--i) * -15deg));
}
.elementos {
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    filter: drop-shadow(rgba(0, 0, 0, 0.692) -0px 0px 10px);
}
.elemento {
    width: 80px;
    height: 80px;
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}
.elemento:hover {
    filter: brightness(1.3);
}
.elemento, svg .elemento {
    transition: transform 0.2s ease-in-out, filter 0.2s ease;
    cursor: pointer;
}
.elemento:hover, svg .elemento:hover {
    filter: brightness(1.3);
}
/* Efecto al hacer clic en un elemento */
.elemento.clicked, svg .elemento.clicked {
    filter: brightness(1.5) contrast(1.2);
}
@keyframes agrandarEncoger {
    0% { transform: rotate(-180deg) scale(1); opacity: 1; }
    40% { transform: rotate(0deg) scale(1.5); opacity: 0.9; }
    100% { transform: rotate(180deg) scale(0); opacity: 0; }
}
.elemento-animado {
    animation: agrandarEncoger 0.6s ease-in-out forwards;
    pointer-events: none; /* Evitar clics adicionales durante la animación */
    z-index: 100; /* Asegurar que el elemento esté por encima de otros durante la animación */
}
@keyframes pulseEffect {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.lifesContainer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 150px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.904); 
    z-index: 10;
    border-radius: 8px;
}
.lifes {
    width: 100%;
    animation: agrandarEncoger2 2s infinite;
}
.starry-night {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}
.star {
    position: absolute;
    background: #fff; 
    border-radius: 50%;
    animation: flicker ease-in-out alternate infinite;
}
@keyframes flicker {
    to { opacity: 0.25; }
}
.scoreboardPts {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 150px;
    align-content: center;
    text-align: center;
    align-items: center;
    color: #fff; 
    font-family: var(--game-title-font);
    font-size: 2.5rem;
    background-color: rgba(0, 0, 0, 0.904); 
    padding: 0px;
    border-radius: 8px;
    z-index: 10;
}
.scoreboardPts p {
  margin: 10px;
}
/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.overlay.hidden {
    display: none;
}
.overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;

}
.overlay-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--accent-color); 
    font-family: var(--game-title2-font);
}
.overlay-content h2 {
    font-size: 5rem;
    margin-bottom: 20px;
    margin-top: 10px;
    color: var(--secondary-color); 
    font-family: var(--game-title2-font);
}
.overlay-content #finalScore {
    font-size: 58px; 
    margin: 20px;
    font-family: var(--game-title-font);
    color: white; 
}
.touch-icon {
    width: 250px;
    height: auto;
    margin-top: 50px;
    margin-bottom: 50px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes neonCycle {
    0% {
        border-color: #00ffff;
        stroke: #00ffff;
        --shadow-color: 0, 255, 255;
    }

    25% {
        border-color: #980ff3;
        stroke: #980ff3;
        --shadow-color: 152, 15, 243;
    }

    50% {
        border-color: #00ffff;
        stroke: #00ffff;
        --shadow-color: 0, 0, 0;
    }

    75% {
        border-color: #f30fd5;
        stroke: #f30fd5;
        --shadow-color: 243, 15, 213;
    }

    100% {
        border-color: #980ff3;
        stroke: #980ff3;
        --shadow-color: 0, 0, 0;
    }
}

/* Estilos para el overlay del formulario */
.register-form-container {
    width: 100%;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estilos para los grupos de formulario */

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(152, 15, 243, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}


.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(152, 15, 243, 0.2);
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Estilos para el botón de envío */
.form-submit-btn {
    background: linear-gradient(135deg, #9d4edd, #6366f1);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, #b961f0, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

/* Estilos para mensajes de error */
.error-message {
    color: #ff4545;
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 18px;
}

/* Estilos para la pestaña de Registro de Jugadores */
#elements-tab {
    padding: 20px;
    color: white;
    font-family: 'Cabin', sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

#elements-tab::-webkit-scrollbar {
    width: 8px;
}

#elements-tab::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#elements-tab::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

#elements-tab::-webkit-scrollbar-thumb:hover {
    background: #7d2a9a;
}

.form-config-controls {
    margin-bottom: 25px;
}

.form-fields-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    margin-right: 20px;
    border: 1px dashed rgba(152, 15, 243, 0.5);
}

.counter-badge {
    background: var(--accent-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
}

.form-fields-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-field-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(152, 15, 243, 0.3);
    opacity: 1;
    transition: opacity .3s ease-out;
}

.form-field-item span {
    flex: 1;
}

.delete-field {
    background: rgba(255, 69, 69, 0.2);
    color: #ff4545;
    border: 1px solid rgba(255, 69, 69, 0.5);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-field:hover {
    background: rgba(255, 69, 69, 0.3);
}

/* Estilos para el contenedor plegable */
.collapsible {
    opacity: 1;
    max-height: 500px; /* Altura máxima cuando está expandido */
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity .3s ease-out;
}

.collapsible.collapsed {
    opacity: 1;
    max-height: 0;
    transition: max-height 0.3s ease-out, opacity .3s ease-out;
}

.collapsible.collapsed .form-field-item {
    opacity: 0;
    transition: opacity .3s ease-out;
}

.form-fields-container.collapsible.collapsed {
    padding: 0px;
    transition: padding 0.3s ease-out;
    border: none;
}

.toggle-fields-btn {
    background: rgba(152, 15, 243, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 8px 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--game-title-font);
}

.toggle-fields-btn:hover {
    background: rgba(152, 15, 243, 0.3);
}

.toggle-fields-btn::after {
    content: "▼";
    font-size: 12px;
    transition: transform 0.3s;
}

.toggle-fields-btn.collapsed::after {
    transform: rotate(-90deg);
}

/* Estilos para la tabla de registros */
.form-data-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.export-data-btn, 
.clear-data-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.export-data-btn {
    background-color: #4CAF50;
    color: white;
}

.export-data-btn:hover {
    background-color: #45a049;
}

.clear-data-btn {
    background-color: #f44336;
    color: white;
}

.clear-data-btn:hover {
    background-color: #d32f2f;
}

.form-data-table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
}

.form-data-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.form-data-table th {
    background: rgba(152, 15, 243, 0.3);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-data-table tr:last-child td {
    border-bottom: none;
}

.form-data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.delete-record-btn {
    background: rgba(255, 69, 69, 0.2);
    color: #ff4545;
    border: 1px solid rgba(255, 69, 69, 0.5);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.delete-record-btn:hover {
    background: rgba(255, 69, 69, 0.3);
}



.prize-toggle {
    position: absolute; 
    left: 0; 
    top: 50%;
    transform: translateY(-50%); 
    background-color: #9838BA; 
    color: white; 
    width: 40px; 
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 10px 10px 0; 
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    user-select: none;
}
.prize-toggle.visible {
    left: 18vw; 
}
.prize-table {
    position: absolute;
    width: 18vw;
    color: white;
    border-collapse: unset;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a); 
    border-radius: 20px;
    border: 3px solid #ff0073;
    box-sizing: border-box;
    padding-bottom: 8px;
    min-height: 150px;
    max-height: 90%;
    height: auto;
    box-shadow: 0 0 20px rgba(var(--shadow-color), 0.5);
    transition: box-shadow 2s ease-in-out, transform 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 50%;
    left: 0%;
    transform: translate(-105%, -50%);
    z-index: 1000;
}
.prize-table.visible {
    transform: translate(0%, -50%);
}
.prize-table table {
    width: 100%;
    margin: auto;
}
.prize-table-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.prize-table td {
    padding: 8px 10px;
    font-family: var(--game-title-font);
    font-size: 1.8vh;
    vertical-align: middle;
    min-height: 40px;
    height: auto;
}
.prize-table tr:last-child td {
    border: none;
}
.prize-table td:last-child {
    padding-right: 10px;
    text-align: right;
    color: white;
}
.prize-table td:first-child {
    display: flex;
    align-items: center;
}
.prize-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
    /* Aseguramos que los íconos no se deformen */
    flex-shrink: 0;
}
/* Añadimos un estilo para cuando hay pocas filas */
.prize-table.few-rows {
    justify-content: center;
    align-items: center;
}
.prize-table,
#border {
    animation: neonCycle 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


/* Estilos para el Panel de Personalización */
.custom-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    color: white;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.custom-panel.active {
    transform: translateY(0);
}
.panel-tabs {
    display: flex;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-family: var(--game-title-font);
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color:  #980ff3;
    transform: scaleX(0);
    transition: transform 0.3s;
}
.tab-btn.active {
    background-color: rgba(152, 15, 243, 0.2);
}
.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.panel-content {
    flex: 1;
    padding: 10px;
    overflow: hidden;
}
.panel-content label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--game-title-font);
    font-size: 2.5rem;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.image-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}
.preview-container {
    width: 80px;
    height: 80px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preview-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.game-state-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    border: 2px solid rgba(157, 78, 221, 0.3);
}
.game-state-toggle:checked {
    background: linear-gradient(135deg, #9d4edd, #6366f1);
    border-color: #9d4edd;
}
.game-state-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.game-state-toggle:checked::before {
    transform: translateX(28px);
    box-shadow: 0 2px 12px rgba(157, 78, 221, 0.3);
}
.game-state-toggle:hover {
    border-color: rgba(157, 78, 221, 0.5);
}
.game-state-toggle:focus {
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
}
/* Estilos para contenido de pestaña elementos */
.elements-grid-others {
    display: flex;
    justify-content: flex-start;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top:20px;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top:20px;
}
.element-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.element-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(99, 102, 241, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.element-item:hover {
    transform: translateY(-8px);
    border-color: rgba(157, 78, 221, 0.6);
    box-shadow: 
        0 20px 40px rgba(157, 78, 221, 0.2),
        0 0 0 1px rgba(157, 78, 221, 0.1);
}
.element-item:hover::before {
    opacity: 1;
}
.element-item > * {
    position: relative;
    z-index: 2;
}
.element-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(157, 78, 221, 0.1), rgba(99, 102, 241, 0.1));
    padding: 12px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 8px 16px rgba(157, 78, 221, 0.2));
}
.element-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    max-width: 100%;
}
.replace-font {
    background: linear-gradient(135deg, #9d4edd, #6366f1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    margin-left: 20px;
}
.replace-audio {
    background: linear-gradient(135deg, #9d4edd, #6366f1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    margin-left: 20px;
}


.replace-element {
    background: linear-gradient(135deg, #9d4edd, #6366f1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    transform: translateY(10px);
    pointer-events: none;
}
.element-item:hover .replace-element {
    transform: translateY(0);
    pointer-events: all;
}
.replace-element:hover {
    background: linear-gradient(135deg, #b961f0, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(157, 78, 221, 0.4);
}
.replace-element:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(157, 78, 221, 0.5);
}
/* Estilos para contenido de pestaña premios */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top:20px;
}
.prize-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.prize-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(99, 102, 241, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.prize-item:hover {
    transform: translateY(-8px);
    border-color: rgba(157, 78, 221, 0.6);
    box-shadow: 
        0 20px 40px rgba(157, 78, 221, 0.2),
        0 0 0 1px rgba(157, 78, 221, 0.1);
}
.prize-item:hover::before {
    opacity: 1;
}
.prize-image-container {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}
.prize-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(157, 78, 221, 0.1), rgba(99, 102, 241, 0.1));
    padding: 16px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 8px 16px rgba(157, 78, 221, 0.2));
}
.replace-prize-image {
    position: relative;
    margin-top: 0px;
    margin-bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #9d4edd, #6366f1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prize-item:hover .replace-prize-image {
    pointer-events: all;
    transform: translateX(-50%) translateY(-4px);
}
.replace-prize-image:hover {
    background: linear-gradient(135deg, #b961f0, #7c3aed);
    transform: translateX(-50%) translateY(-6px);
    box-shadow: 0 6px 16px rgba(157, 78, 221, 0.4);
}
.replace-prize-image:active {
    transform: translateX(-50%) translateY(-2px);
}
.prize-controls {
    position: relative;
}
.prize-controls input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 12px;
    color: white;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}
.prize-controls input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}
.prize-controls input:focus {
    border-color: #9d4edd;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 0 0 4px rgba(157, 78, 221, 0.2),
        0 8px 24px rgba(157, 78, 221, 0.1);
}
.prize-controls input:hover:not(:focus) {
    border-color: rgba(157, 78, 221, 0.5);
    background: rgba(255, 255, 255, 0.1);
}
.panel-footer {
    padding: 15px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.panel-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.save-btn {
    background-color:  #980ff3;
    color: white;
}
.save-btn:hover {
    background-color: #7d2a9a;
}
.reset-btn {
    background-color: #FF9800;
    color: white;
}
.reset-btn:hover {
    background-color: #e68a00;
}
.export-btn {
    background-color: #4CAF50;
    color: white;
}
.export-btn:hover {
    background-color: #45a049;
}
.import-btn {
    background-color: #2196F3;
    color: white;
}

.import-btn:hover {
    background-color: #0b7dda;
}

.open-panel-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color:  #980ff3;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}
.open-panel-btn:hover {
    transform: scale(1.1);
    background-color: #7d2a9a;
}

.close-Panel-btn {
    background-color:  #5e5e5e;
    color: white;
}
.close-Panel-btn:hover {
    transform: scale(1.1);
    background-color: #7d2a9a;
}

.form-group-colors {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: start;
  }

.form-group-gral {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Crea 2 columnas de igual ancho */
    gap: 20px; /* Espacio entre columnas */
  }
.column-1 {
    min-width: 0;
}
.column-2 {
  min-width: 0; /* Evita problemas de desbordamiento */
}
.column-3 {
    min-width: 0; /* Evita problemas de desbordamiento */
  }
/* Estilos para inputs y selects */
.form-group {
    margin-bottom: 25px;
}
.form-group select {
    width: 50px;
    padding: 10px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    text-align: left;
    color: white;
    margin: 10px 0;
    transition: all 0.3s ease;
}
.form-group select:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(152, 15, 243, 0.3);
}
.form-group select option {
    background: rgba(0, 0, 0, 0.9); /* Fondo oscuro semitransparente */
    color: white; /* Color del texto */
    padding: 10px; /* Espaciado interno */
    font-size: 16px; /* Tamaño de fuente */
}
.form-group select option:checked {
    background: rgba(0, 0, 0, 0.753);
    color: white;
}
.form-group label {
    display: block;
    margin: 5px 0 5px;
    font-size: 18px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-group input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 80px;
    height: 40px;
    border: 2px solid var(--accent-color) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 3px;
}
.form-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
    padding: 0;
}
.form-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.form-group input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 5px;
}
/* Contenedor mejorado con preview del color */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}
.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.color-info {
    display: flex;
    flex-direction: column;
    font-family: var(--game-title-font);
    font-size: 1.3rem;
    gap: 5px;
}
.color-value {
    font-family: monospace;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    user-select: all;
}
/* Mejoras para la pestaña General */
.game-state-controls .control-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid rgba(152, 15, 243, 0.3);
}
.switch-text {
    position: relative;
    top: -12px;
    left: 5px;
    font-size: 16px;
    color: white;
}
.control-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 5px 0 0 45px;
}
/* Estilos para preview de imágenes */
.image-upload {
    position: relative;
    margin: 15px 0;
}
.image-upload input[type="file"] {
    position: absolute;
    left: 100px;
    top: 30px;
    width: 100%;
    height: 100%;
    opacity: 1;
    cursor: pointer;
}
.preview-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.preview-container:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}
/* Estilos para pestaña Elementos */
#numSlices {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23980ff3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center/15px;
    appearance: none;
}
.element-item .element-value {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* Estilos para pestaña Premios */
.prize-item {
    padding: 20px;
}
.prize-name {
    color: white;
    font-size: 18px;
    margin: 10px 0;
    text-align: center;
}
.prize-probability {
    color: var(--secondary-color);
    font-size: 16px;
    text-align: center;
}
/* Efectos de hover generales */
button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.section-title {
    display: block;
    color: #980ff3;
    font-size: 20px;
    margin: 25px 0 15px;
    border-bottom: 2px solid rgba(152, 15, 243, 0.3);
    padding-bottom: 10px;
}
/* Animación de carga para imágenes */
.preview-container.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: loading-pulse 1.5s infinite;
}
@keyframes loading-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}
/* Estilos para el panel de licencia y configuraciones */
.license-overlay {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100% !important;
    color: white;
    background: rgb(20, 20, 25);
    z-index: 9999; /* Mayor prioridad */
    overflow-y: auto; /* Scroll para contenido largo */
    -webkit-overflow-scrolling: touch;
    display: flex; /* Añadido para activar flexbox */
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
    align-items: center;
}
.license-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 250px;
    max-width: 700px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    text-align: center;
}
.license-overlay-content h1 {
    font-size: 3rem;
    font-family: 'Extra Days';
}
#licenseInput {
    padding: 12px;
    margin: 20px auto;
    width: 80%;
    max-width: 500px;
    display: block;
    border-radius: 8px;
    border: 2px solid #444;
    background-color: #333;
    
    font-size: 16px;
}
#validateLicenseButton {
    padding: 12px 24px;
    background-color: #4caf50;
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s;
    margin: 15px auto;
    display: block;
}
#validateLicenseButton:hover {
    background-color: #45a049;
}
.license-notification {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 12px;
    margin: 0 auto 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    max-width: 600px;
}
.license-notification h2 {
    color: #ff4d4d;
    font-size: 24px;
    margin-bottom: 10px;
}
.license-notification p {
    color: #dcdcdc;
    font-size: 16px;
    margin-top: 5px;
}
  
  /* Sistema de notificaciones */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 350px;
}

.notification {
    background: linear-gradient(to right, #333, #222);
    color: white;
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: "Arial", sans-serif;
    font-size: 16px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
    border-left: 4px solid #4caf50;
    max-width: 100%;
    word-wrap: break-word;
    position: relative;
    animation: fadeInRight 0.3s forwards;
}

/* Solo aplica fadeOut automático si no es confirmación */
.notification:not(.confirm) {
    animation: fadeInRight 0.3s forwards, fadeOut 0.5s forwards 4.5s;
}

.notification.confirm {
    border-left-color: #3498db; /* Azul para confirmaciones */
    padding-bottom: 10px; /* Menos padding para dejar espacio a los botones */
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f39c12;
}

.notification.info {
    border-left-color: #3498db;
}

.notification.success {
    border-left-color: #2ecc71;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.notification-title::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.notification.error .notification-title::before {
    background-image: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
}

.notification.warning .notification-title::before {
    background-image: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f39c12"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>');
}

.notification.info .notification-title::before,
.notification.confirm .notification-title::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233498db"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

.notification.success .notification-title::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232ecc71"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}

.notification-close:hover {
    opacity: 1;
}

/* Estilos específicos para confirmación */
.notification-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: 10px;
}

.notification-confirm-btn, 
.notification-cancel-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.notification-confirm-btn {
    background-color: #2ecc71;
    color: white;
}

.notification-confirm-btn:hover {
    background-color: #27ae60;
}

.notification-cancel-btn {
    background-color: #e74c3c;
    color: white;
}

.notification-cancel-btn:hover {
    background-color: #c0392b;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Estilos para el tab de datos de registro */

#registerData-tab {
    padding: 0px;
    color: white;
    font-family: 'Cabin', sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

#registerData-tab::-webkit-scrollbar {
    width: 8px;
}

#registerData-tab::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#registerData-tab::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

#registerData-tab::-webkit-scrollbar-thumb:hover {
    background: #7d2a9a;
}

  /* Estilos para la pestaña de Créditos */
#credits-tab {
    padding: 20px;
    color: white;
    font-family: 'Cabin', sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

#credits-tab h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin: 0px 0 15px;
    font-family: var(--game-title-font);
    text-align: left;
    border-bottom: 2px solid rgba(152, 15, 243, 0.3);
    padding-bottom: 10px;
}

#credits-tab h4 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 25px 0 10px;
    font-family: var(--game-title-font);
}

#credits-tab p {
    margin: 10px 0;
    font-size: 1rem;
    text-align: justify;
}

#credits-tab ul {
    margin: 15px 0;
    padding-left: 20px;
}

#credits-tab li {
    margin-bottom: 8px;
    position: relative;
}

#credits-tab li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

#credits-tab strong {
    color: var(--secondary-color);
}

/* Estilo para el texto de última actualización */
#credits-tab p:last-child {
    text-align: right;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
}

/* Barra de desplazamiento personalizada */
#credits-tab::-webkit-scrollbar {
    width: 8px;
}

#credits-tab::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#credits-tab::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

#credits-tab::-webkit-scrollbar-thumb:hover {
    background: #7d2a9a;
}
/* Estilos para la pestaña de eliminación de datos */
/* Contenedor de advertencia */
.caution-warning {
    background: linear-gradient(145deg, rgba(255, 69, 69, 0.15), rgba(255, 0, 0, 0.1));
    border: 2px solid rgba(255, 69, 69, 0.5);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 700px;
    display: flex;
    gap: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.1);
    animation: pulseWarning 2s infinite alternate;
    margin-top: 20px;
}

@keyframes pulseWarning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 69, 69, 0.2);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(255, 69, 69, 0);
    }
}

/* Icono de advertencia */
.warning-icon {
    font-size: 3rem;
    color: #ff4545;
    align-self: flex-start;
    flex-shrink: 0;
}

/* Texto de advertencia */
.warning-text {
    flex: 1;
}

.warning-text h3 {
    color: #ff4545;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: var(--game-title-font);
}

.warning-text p {
    margin: 10px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.warning-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.warning-text li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: none;
    padding-left: 25px;
}

.warning-text li:before {
    content: "•";
    color: #ff4545;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
}

/* Botón de peligro */
.danger-button {
    background: linear-gradient(135deg, #ff4545, #cc0000);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 69, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--game-title-font);
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 400px;
    margin-top: 20px;
}

.danger-button:hover {
    background: linear-gradient(135deg, #ff3333, #b30000);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 69, 69, 0.6);
}

.danger-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(255, 69, 69, 0.6);
}

.danger-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.danger-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Efecto de confirmación adicional */
.danger-button.confirm-mode {
    animation: shake 0.5s linear;
    background: linear-gradient(135deg, #ff0000, #990000);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Audio */
.audio-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.audio-item {
    border-radius: 12px;
    padding: 13px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}
.audio-item label {
    min-width: 200px;
}
.audio-upload {
    margin-left: 15px;
}
.audio-controls-button {
    position: absolute;
    top: 80px;
    right: 20px;
}

/* Contenedor principal del formulario */

.form-overlay-content{
    position: absolute;
    background: #000000d7;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    overflow-y: auto;
}
.form-overlay-content::-webkit-scrollbar {
    width: 8px;
}
.form-overlay-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.form-overlay-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}
.form-overlay-content::-webkit-scrollbar-thumb:hover {
    background: #7d2a9a;
}
.register-form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
/* Formulario */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 0px;
}
/* Grupos de campos del formulario */
.register-form .form-group {
    margin-bottom: -10px;
}
.register-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-family: var(--game-title-font);
    letter-spacing: 0.5px;
}
/* Inputs de texto, email, tel y number */
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(152, 15, 243, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Cabin', sans-serif;
}
.register-form input[type="text"]:focus,
.register-form input[type="email"]:focus,
.register-form input[type="tel"]:focus,
.register-form input[type="number"]:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(152, 15, 243, 0.2);
    outline: none;
}
.register-form input[type="text"]:hover,
.register-form input[type="email"]:hover,
.register-form input[type="tel"]:hover,
.register-form input[type="number"]:hover {
    border-color: rgba(152, 15, 243, 0.5);
}
/* Select */
.register-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(152, 15, 243, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23980ff3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    font-family: 'Cabin', sans-serif;
}
.register-form select:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(152, 15, 243, 0.2);
    outline: none;
}
.register-form select option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}
/* Textarea */
.register-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(152, 15, 243, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 100px;
    resize: vertical;
    font-family: 'Cabin', sans-serif;
}
.register-form textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(152, 15, 243, 0.2);
    outline: none;
}
/* Checkbox */
.register-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.register-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid rgba(152, 15, 243, 0.5);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.register-form input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.register-form input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Botón de envío */
.register-form .form-submit-btn {
    background: linear-gradient(135deg, var(--accent-color), #7c3aed);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: var(--game-title-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.register-form .form-submit-btn:hover {
    background: linear-gradient(135deg, #b961f0, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}
.register-form .form-submit-btn:active {
    transform: translateY(0);
}
/* Mensajes de error */
.register-form .error-message {
    color: #ff4545;
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 18px;
    font-family: 'Cabin', sans-serif;
}
/* Estilo para campos requeridos */
.register-form .required-field::after {
    content: " *";
    color: #ff4545;
}

/* Pestaña Instrucciones */ 
#instructions-tab {
    padding: 20px;
    color: white;
    font-family: 'Cabin', sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

#instructions-tab p:last-child {
    text-align: right;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
}

#instructions-tab::-webkit-scrollbar {
    width: 8px;
}

#instructions-tab::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#instructions-tab::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

#instructions-tab::-webkit-scrollbar-thumb:hover {
    background: #7d2a9a;
}
.instruction-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-section h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.instruction-section ul {
    margin-left: 20px;
    padding-left: 10px;
}

.instruction-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.instruction-section strong {
    color: var(--secondary-color);
}

/* Asegurar que el último elemento no tenga borde inferior */
.instruction-section:last-child {
    border-bottom: none;
}
