/* ============================================
   DUNGEON MENU THEME - Override GameMenu colors
   Only loaded by Donjons game, no Hub impact
   ============================================ */

/* --- Body & root background --- */
html, body {
    background-color: #1a0e05 !important;
}

/* --- Animated background: dungeon stone image --- */
.bg-animated-grid {
    background: url('../images/GameMenu/menu_fond.png') center center / cover no-repeat !important;
}

/* --- Container backgrounds --- */
.bg-\[\#0f172a\] { background-color: #1a0e05 !important; }
.bg-\[\#1e1b4b\]\/80 { background-color: rgba(42, 26, 10, 0.85) !important; }
.bg-\[\#1e1b4b\] { background-color: rgba(42, 26, 10, 0.95) !important; }
.bg-slate-900\/80 { background-color: rgba(42, 26, 10, 0.8) !important; }
.bg-slate-900 { background-color: #1a0e05 !important; }
.bg-indigo-950\/80 { background-color: rgba(42, 26, 10, 0.85) !important; }
.bg-indigo-950 { background-color: #2a1a0a !important; }

/* --- Buttons: violet → amber/gold --- */
.bg-violet-600 { background-color: #b45309 !important; }
.bg-indigo-600 { background-color: #92400e !important; }
.hover\:bg-violet-500:hover { background-color: #d97706 !important; }
.hover\:bg-indigo-500:hover { background-color: #b45309 !important; }
.from-violet-600 { --tw-gradient-from: #b45309 !important; }
.to-indigo-600 { --tw-gradient-to: #92400e !important; }
.from-violet-500 { --tw-gradient-from: #d97706 !important; }
.to-indigo-500 { --tw-gradient-to: #b45309 !important; }

/* --- Join/green buttons → amber --- */
.bg-emerald-600 { background-color: #b45309 !important; }
.bg-green-600 { background-color: #a16207 !important; }
.hover\:bg-emerald-500:hover { background-color: #d97706 !important; }
.hover\:bg-green-500:hover { background-color: #ca8a04 !important; }
.from-emerald-600 { --tw-gradient-from: #b45309 !important; }
.to-green-600 { --tw-gradient-to: #a16207 !important; }
.from-emerald-500 { --tw-gradient-from: #d97706 !important; }
.to-green-500 { --tw-gradient-to: #ca8a04 !important; }

/* --- Borders --- */
.border-white\/10 { border-color: rgba(180, 83, 9, 0.3) !important; }
.border-white\/20 { border-color: rgba(180, 83, 9, 0.4) !important; }
.border-emerald-500 { border-color: #d97706 !important; }
.border-emerald-400 { border-color: #f59e0b !important; }
.border-violet-500 { border-color: #d97706 !important; }
.border-indigo-500 { border-color: #b45309 !important; }

/* --- Accent text colors --- */
.text-purple-200 { color: #fde68a !important; }
.text-purple-300 { color: #fcd34d !important; }
.text-violet-300 { color: #fbbf24 !important; }
.text-violet-400 { color: #f59e0b !important; }
.text-indigo-300 { color: #fcd34d !important; }
.text-indigo-400 { color: #f59e0b !important; }
.text-emerald-400 { color: #fbbf24 !important; }
.text-emerald-300 { color: #fcd34d !important; }

/* --- Ring / focus colors --- */
.ring-violet-500 { --tw-ring-color: #d97706 !important; }
.ring-indigo-500 { --tw-ring-color: #b45309 !important; }
.ring-emerald-500 { --tw-ring-color: #d97706 !important; }
.focus\:ring-violet-500:focus { --tw-ring-color: #d97706 !important; }
.focus\:ring-emerald-500:focus { --tw-ring-color: #d97706 !important; }
.focus\:border-emerald-500:focus { border-color: #d97706 !important; }

/* --- Glow / shadows --- */
.shadow-violet-500\/20 { --tw-shadow-color: rgba(217, 119, 6, 0.2) !important; }
.shadow-emerald-500\/20 { --tw-shadow-color: rgba(217, 119, 6, 0.2) !important; }

/* --- Back to Hub button override --- */
[style*="color: #9BD62C"],
[style*="color: rgb(155, 214, 44)"] {
    color: #d4a017 !important;
}

/* --- Sprite title animation (4 frames stacked vertically) --- */
@keyframes dungeon-title-sprite {
    0%    { background-position-y: 0%; }
    25%   { background-position-y: 33.333%; }
    50%   { background-position-y: 66.666%; }
    75%   { background-position-y: 100%; }
    100%  { background-position-y: 0%; }
}

.dungeon-title-sprite {
    background-image: url('../images/GameMenu/menu_titre_anims.png');
    background-size: 100% 400%;
    background-position-y: 0%;
    background-repeat: no-repeat;
    animation: dungeon-title-sprite 1.2s steps(1) infinite;
    image-rendering: auto;
}

/* --- Stone footer bar --- */
.dungeon-footer-bar {
    background-image: url('../images/GameMenu/exemple%20menu.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* --- Scrollbar theme --- */
::-webkit-scrollbar-thumb {
    background-color: rgba(180, 83, 9, 0.5) !important;
}
::-webkit-scrollbar-track {
    background-color: rgba(26, 14, 5, 0.5) !important;
}
