body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #a78bfa, #6d28d9);
    color: #f3f4f6;
}

.game-title {
    color: #d8b4fe; /* Light Purple */
}

.glass-panel {
    background: rgba(49, 24, 91, 0.4); /* Darker Purple Tint */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.letter-tile {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
    aspect-ratio: 1 / 1;
    background-color: #5b21b6; /* Dark Purple */
    border: 1px solid #7c3aed;
}

.letter-tile:hover {
    transform: scale(1.1);
    background-color: #8b5cf6; /* Lighter Purple on hover */
}

.letter-tile.selected {
    background-color: #34d399; /* Emerald Green */
    transform: scale(1.05);
    color: #1f2937;
}

.letter-tile.hint {
    background-color: #f59e0b !important; /* Amber for hints */
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4c1d95; /* Dark Purple */
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(76, 29, 149, 0.75);
}

.btn-primary:hover {
    background: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(91, 33, 182, 0.9);
}

.btn-primary:disabled {
     background: #38156d;
     cursor: not-allowed;
     opacity: 0.7;
}

.btn-secondary {
    background-color: rgba(255,255,255, 0.1);
    border: 1px solid #a78bfa;
}

.btn-secondary:hover {
     background-color: rgba(255,255,255, 0.2);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quest-progress-bar {
    transition: width 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes word-found {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #34d399; }
    100% { transform: scale(1); }
}

.animate-word-found {
    animation: word-found 0.5s ease-in-out;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

#toast-notification {
    z-index: 100;
}
