/* ===== BASE STYLES ===== */

body {
    font-family: 'Outfit', sans-serif;
    background-color: #050508;
    color: #e2e8f0;
    overflow-x: hidden;
}

.font-title {
    font-family: 'Cinzel', serif;
}

/* ===== AMBIENT ANIMATED BACKGROUND ===== */

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #050508;
}

.ambient-blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(245, 158, 11, 0.2);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(251, 191, 36, 0.15);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: rgba(255, 107, 53, 0.1);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(5%, 10%) scale(1.1);
    }
    66% {
        transform: translate(-5%, -5%) scale(0.9);
    }
}

/* ===== GLASS PANEL ===== */

.glass-panel {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-field: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== CHARACTER SILHOUETTE ===== */

.character-silhouette {
    position: absolute;
    inset: 0;
    background-image: url('assets/char.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.character-silhouette:hover {
    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 10px #ffffff);
}

/* ===== MODAL STYLES ===== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 28, 0.95), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
}

.modal-label {
    font-size: 0.95rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 16px;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.modal-input::placeholder {
    color: #64748b;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 180, 0, 0.8));
    color: #000;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 230, 50, 1), rgba(255, 200, 50, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-btn-clear {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-btn-clear:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== HELP TOOLTIP ===== */

#helpTooltip {
    transition: all 0.2s ease;
}

#helpTooltip.visible {
    opacity: 1;
    visibility: visible;
}

#helpTooltip.invisible {
    opacity: 0;
    visibility: hidden;
}

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
