/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --highlight: #60a5fa;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
}

/* Background Orbs */
.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6, #8b5cf6);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899, #f43f5e);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- Chessboard Customization --- */

/* 1. Board Background Image */
.board-b72b1 {
    background-image: url('assets/board.png');
    background-color: #b58863; /* Fallback wood color */
    background-size: 100% 100%; /* Force fit */
    background-repeat: no-repeat;
    border: none !important; 
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* 2. Transparent Squares */
.square-55d63 {
    background-color: transparent !important;
}

/* Highlights for Move Suggestion */
.highlight-suggest {
    box-shadow: inset 0 0 0 4px rgba(96, 165, 250, 0.8);
}
/* Subtle coloring for last move/active move on top of the board image */
.highlight-move-from {
    background-color: rgba(255, 255, 0, 0.2) !important;
}
.highlight-move-to {
    background-color: rgba(255, 255, 0, 0.4) !important;
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#slider-handle {
    touch-action: none;
}

/* SVG Arrows */
#arrow-layer {
    pointer-events: none;
}
.arrow-line {
    stroke: rgba(255, 165, 0, 0.85); 
    stroke-width: 10; /* Slightly thinner for elegance */
    stroke-linecap: round;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
    opacity: 0.9;
}
.arrow-head {
    fill: rgba(255, 165, 0, 0.85);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
    opacity: 0.9;
}