/* CREW Vibe – "Neon Night" theme
   Violet-black backgrounds, hot pink + cyan accents, warm yellow main buttons.
   Change the palette here and every page updates. */
:root {
    --cv-bg-1: #2a1466; --cv-bg-2: #1a1040; --cv-bg-3: #0f0a2a; --cv-bg-4: #07041a;
    --cv-pink: #ff4fd8; --cv-cyan: #22d3ee; --cv-yellow: #ffd667;
}

/* page background */
body { background: radial-gradient(ellipse at 50% 0%, var(--cv-bg-1) 0%, var(--cv-bg-2) 38%, var(--cv-bg-3) 72%, var(--cv-bg-4) 100%) fixed !important; }

/* surfaces (slate -> violet) */
.bg-slate-950 { background-color: #0d0824 !important; }
.bg-slate-950\/80 { background-color: rgba(13, 8, 36, .85) !important; }
.bg-slate-900 { background-color: #1a1040 !important; }
.bg-slate-900\/50 { background-color: rgba(26, 16, 64, .6) !important; }
.bg-slate-900\/80, .bg-slate-900\/85, .bg-slate-900\/90 { background-color: rgba(26, 16, 64, .9) !important; }
.bg-slate-800 { background-color: #2a1b5e !important; }
.bg-slate-800\/40, .bg-slate-800\/50 { background-color: rgba(42, 27, 94, .45) !important; }
.bg-slate-700 { background-color: #3d2a80 !important; }
.hover\:bg-slate-700:hover { background-color: #3d2a80 !important; }
.hover\:bg-slate-600:hover { background-color: #52399e !important; }
.hover\:bg-gray-100:hover { background-color: #f3f0ff !important; }

/* borders */
.border-slate-800, .border-slate-800\/60, .border-slate-800\/80 { border-color: rgba(139, 108, 230, .28) !important; }
.border-slate-700 { border-color: rgba(139, 108, 230, .4) !important; }
.border-slate-600 { border-color: rgba(139, 108, 230, .5) !important; }

/* text */
.text-slate-200 { color: #e6e0fb !important; }
.text-slate-300 { color: #d3cbf5 !important; }
.text-slate-400 { color: #b4a9de !important; }
.text-slate-500 { color: #9b8fc7 !important; }

/* gold accents -> cyan / pink (yellow stays on main buttons) */
.text-amber-300 { color: #67e8f9 !important; }
.text-amber-200\/80 { color: rgba(165, 243, 252, .85) !important; }
.border-amber-400\/40, .border-amber-400\/50 { border-color: rgba(255, 79, 216, .45) !important; }

/* red / rose accents -> hot pink */
.text-red-400, .text-red-500, .text-rose-400 { color: #ff6fe0 !important; }
.hover\:text-red-300:hover, .hover\:text-rose-400:hover { color: #ffa3ee !important; }
.bg-red-600, .bg-rose-600 { background-color: #c71fa0 !important; }
.hover\:bg-red-500:hover, .hover\:bg-rose-500:hover { background-color: #d42cae !important; }
.bg-rose-500\/10 { background-color: rgba(255, 79, 216, .12) !important; }
.bg-rose-500\/20 { background-color: rgba(255, 79, 216, .2) !important; }
.border-red-900\/40, .border-red-900\/50, .border-rose-500\/30, .border-rose-500\/40, .border-rose-500\/50 { border-color: rgba(255, 79, 216, .4) !important; }
.focus\:border-red-500:focus, .focus\:border-rose-500:focus { border-color: #ff4fd8 !important; }
.accent-red-700 { accent-color: #c71fa0 !important; }
.from-red-950 { --tw-gradient-from: #4a0f3f var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(74 15 63 / 0)) !important; }
.to-slate-900 { --tw-gradient-to: #1a1040 var(--tw-gradient-to-position) !important; }
:focus-visible { outline-color: #ff4fd8 !important; }
.choice { background: #2a1b5e !important; border-color: rgba(139, 108, 230, .4) !important; }
.choice:hover { background: #3d2a80 !important; border-color: #ff4fd8 !important; }

/* home page */
#main-title { color: #ff6fe0 !important; filter: drop-shadow(0 2px 18px rgba(34, 211, 238, .45)) !important; }
.game-card { background: linear-gradient(160deg, #2a1466, #140a3a) !important; border-color: #ff4fd8 !important; }
.game-card:hover { box-shadow: 0 20px 40px rgba(255, 79, 216, .28) !important; }
.game-card.disabled { background: linear-gradient(160deg, #241a4e, #120a30) !important; border-color: #6b5fa0 !important; }
.game-card.disabled:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .5) !important; }
.play-btn { color: #1a1040 !important; }
.disabled-btn { background: #2a1b5e !important; color: #b4a9de !important; border-color: rgba(139, 108, 230, .4) !important; }

/* ===== Theme toggle button ===== */
#theme-toggle { position: fixed; bottom: 16px; left: 104px; z-index: 60; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 79, 216, .45); background: rgba(26, 16, 64, .92); cursor: pointer; font-size: 16px; line-height: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }

/* ===== Light theme (background #f8fafc, text #0f172a, accents indigo #6366f1 + amber #f59e0b) ===== */
html[data-theme="light"] body { background: #f8fafc !important; color: #0f172a !important; }

/* surfaces */
html[data-theme="light"] .bg-slate-950 { background-color: #eef2ff !important; }
html[data-theme="light"] .bg-slate-950\/80 { background-color: rgba(15, 23, 42, .55) !important; }
html[data-theme="light"] .bg-slate-900 { background-color: #ffffff !important; }
html[data-theme="light"] .bg-slate-900\/50 { background-color: rgba(255, 255, 255, .78) !important; }
html[data-theme="light"] .bg-slate-900\/80, html[data-theme="light"] .bg-slate-900\/85, html[data-theme="light"] .bg-slate-900\/90 { background-color: rgba(255, 255, 255, .95) !important; }
html[data-theme="light"] .bg-slate-800 { background-color: #e0e7ff !important; }
html[data-theme="light"] .bg-slate-800\/40, html[data-theme="light"] .bg-slate-800\/50 { background-color: rgba(224, 231, 255, .6) !important; }
html[data-theme="light"] .bg-slate-700, html[data-theme="light"] .hover\:bg-slate-700:hover { background-color: #c7d2fe !important; }
html[data-theme="light"] .hover\:bg-slate-600:hover { background-color: #a5b4fc !important; }
html[data-theme="light"] .bg-purple-950\/30, html[data-theme="light"] .bg-pink-950\/30 { background-color: rgba(99, 102, 241, .12) !important; }
html[data-theme="light"] .shadow-2xl, html[data-theme="light"] .app-panel { box-shadow: 0 20px 45px rgba(15, 23, 42, .12) !important; }
html[data-theme="light"] .custom-scrollbar::-webkit-scrollbar-track { background: #e2e8f0 !important; }
html[data-theme="light"] .custom-scrollbar::-webkit-scrollbar-thumb { background: #94a3b8 !important; }

/* borders */
html[data-theme="light"] .border-slate-800, html[data-theme="light"] .border-slate-800\/60, html[data-theme="light"] .border-slate-800\/80 { border-color: rgba(99, 102, 241, .2) !important; }
html[data-theme="light"] .border-slate-700, html[data-theme="light"] .border-slate-600 { border-color: rgba(99, 102, 241, .32) !important; }
html[data-theme="light"] .border-amber-400\/40, html[data-theme="light"] .border-amber-400\/50 { border-color: rgba(99, 102, 241, .4) !important; }
html[data-theme="light"] .border-red-900\/40, html[data-theme="light"] .border-red-900\/50 { border-color: rgba(99, 102, 241, .35) !important; }

/* text */
html[data-theme="light"] .text-white { color: #0f172a !important; }
html[data-theme="light"] .text-white[class*="bg-purple-"], html[data-theme="light"] .text-white[class*="bg-pink-"],
html[data-theme="light"] .text-white[class*="bg-red-"], html[data-theme="light"] .text-white[class*="bg-rose-"],
html[data-theme="light"] .text-white[class*="from-purple-"], html[data-theme="light"] .text-white[class*="from-pink-"],
html[data-theme="light"] [class*="from-purple-"] .text-white, html[data-theme="light"] [class*="from-pink-"] .text-white { color: #ffffff !important; }
html[data-theme="light"] .text-slate-200 { color: #1e293b !important; }
html[data-theme="light"] .text-slate-300 { color: #334155 !important; }
html[data-theme="light"] .text-slate-400 { color: #475569 !important; }
html[data-theme="light"] .text-slate-500 { color: #64748b !important; }
html[data-theme="light"] .text-purple-300, html[data-theme="light"] .text-purple-400 { color: #4f46e5 !important; }
html[data-theme="light"] .text-cyan-300, html[data-theme="light"] .text-cyan-400 { color: #0e7490 !important; }
html[data-theme="light"] .text-pink-400 { color: #db2777 !important; }
html[data-theme="light"] .text-amber-300, html[data-theme="light"] .text-amber-400, html[data-theme="light"] .text-yellow-400 { color: #b45309 !important; }
html[data-theme="light"] .text-amber-200\/80 { color: rgba(146, 64, 14, .9) !important; }
html[data-theme="light"] .text-emerald-400 { color: #047857 !important; }
html[data-theme="light"] .text-green-400 { color: #15803d !important; }
html[data-theme="light"] .text-red-500 { color: #4f46e5 !important; }
html[data-theme="light"] .text-red-400, html[data-theme="light"] .text-rose-400 { color: #be123c !important; }
html[data-theme="light"] .hover\:text-red-300:hover, html[data-theme="light"] .hover\:text-rose-400:hover { color: #9f1239 !important; }

/* accent buttons (indigo) */
html[data-theme="light"] .bg-purple-600, html[data-theme="light"] .bg-pink-600, html[data-theme="light"] .bg-red-600, html[data-theme="light"] .bg-rose-600 { background-color: #4f46e5 !important; }
html[data-theme="light"] .hover\:bg-purple-500:hover, html[data-theme="light"] .hover\:bg-pink-500:hover, html[data-theme="light"] .hover\:bg-red-500:hover, html[data-theme="light"] .hover\:bg-rose-500:hover { background-color: #6366f1 !important; }
html[data-theme="light"] .from-red-950 { --tw-gradient-from: #e0e7ff var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(224 231 255 / 0)) !important; }
html[data-theme="light"] .to-slate-900 { --tw-gradient-to: #c7d2fe var(--tw-gradient-to-position) !important; }
html[data-theme="light"] .accent-red-700 { accent-color: #4f46e5 !important; }
html[data-theme="light"] .focus\:border-red-500:focus, html[data-theme="light"] .focus\:border-rose-500:focus { border-color: #6366f1 !important; }
html[data-theme="light"] :focus-visible { outline-color: #6366f1 !important; }
html[data-theme="light"] .choice { background: #ffffff !important; color: #0f172a !important; border-color: #c7d2fe !important; }
html[data-theme="light"] .choice:hover { background: #e0e7ff !important; border-color: #6366f1 !important; }

/* home page */
html[data-theme="light"] #main-title { color: #4f46e5 !important; filter: drop-shadow(0 2px 14px rgba(99, 102, 241, .35)) !important; }
html[data-theme="light"] .game-card { background: linear-gradient(160deg, #ffffff, #eef2ff) !important; border-color: #6366f1 !important; box-shadow: 0 12px 30px rgba(15, 23, 42, .1) !important; }
html[data-theme="light"] .game-card:hover { box-shadow: 0 20px 40px rgba(99, 102, 241, .25) !important; }
html[data-theme="light"] .game-card.disabled { background: linear-gradient(160deg, #f1f5f9, #e2e8f0) !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .game-card.disabled:hover { box-shadow: 0 12px 30px rgba(15, 23, 42, .1) !important; }
html[data-theme="light"] .play-btn { background: linear-gradient(180deg, #fbbf24, #f59e0b) !important; border-color: #fcd34d !important; box-shadow: 0 5px 0 #b45309 !important; color: #1e1b4b !important; }
html[data-theme="light"] .play-btn:active { box-shadow: 0 2px 0 #b45309 !important; }
html[data-theme="light"] .disabled-btn { background: #e2e8f0 !important; color: #64748b !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .light-rays::before { background: repeating-conic-gradient(from 90deg at 50% 0%, rgba(99, 102, 241, .10) 0deg 1.2deg, transparent 1.2deg 7deg) !important; }
html[data-theme="light"] .light-rays::after { background: repeating-conic-gradient(from 93deg at 50% 0%, rgba(245, 158, 11, .10) 0deg .8deg, transparent .8deg 11deg) !important; }

/* legal + 404 pages */
html[data-theme="light"] main h1, html[data-theme="light"] main h2 { color: #4338ca !important; }
html[data-theme="light"] main a:not(.btn) { color: #4f46e5 !important; }

/* toggles in light mode */
html[data-theme="light"] #theme-toggle { background: #ffffff; border-color: rgba(99, 102, 241, .45); box-shadow: 0 6px 18px rgba(15, 23, 42, .15); }
html[data-theme="light"] #lang-toggle { background: #ffffff !important; color: #4f46e5 !important; border-color: rgba(99, 102, 241, .45) !important; box-shadow: 0 6px 18px rgba(15, 23, 42, .15) !important; }

/* TikTok link */
.tiktok-link { color: inherit; transition: color .2s; }
.tiktok-link:hover { color: #ff4fd8 !important; }
html[data-theme="light"] .tiktok-link:hover { color: #4f46e5 !important; }
