/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Premium Dutch Slate & Amber Orange */
    --bg-main: #0a0d14;
    --bg-card: rgba(22, 28, 45, 0.65);
    --bg-card-hover: rgba(28, 36, 58, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --accent-orange: #ff5500;
    --accent-orange-hover: #e04b00;
    --accent-orange-glow: rgba(255, 85, 0, 0.25);
    
    --accent-blue: #0088ff;
    --accent-blue-glow: rgba(0, 136, 255, 0.15);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-correct: #10b981;
    --color-correct-glow: rgba(16, 185, 129, 0.25);
    --color-incorrect: #ef4444;
    --color-incorrect-glow: rgba(239, 68, 68, 0.25);
    
    /* Grid Cells / Wrapper Variables for Theme Support */
    --cell-bg-blocked: #0f131a;
    --cell-bg-input: #1c2333;
    --cell-border-input: rgba(255, 255, 255, 0.08);
    --cell-hover-input: #252e42;
    
    --grid-wrapper-bg: #07090e;
    --grid-wrapper-border: rgba(255, 255, 255, 0.05);
    --grid-wrapper-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
    
    --modal-bg: #121824;
    --modal-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
    
    /* Layout & Sizes */
    --max-width: 1200px;
    --sidebar-width: 320px;
    --cell-size: 46px;
    --cell-size-mobile: 36px;
    
    /* Effects */
    --glass-blur: blur(16px);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
body.light-theme {
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --glass-blur: blur(12px);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
    
    --cell-bg-blocked: #cbd5e1;
    --cell-bg-input: #ffffff;
    --cell-border-input: rgba(0, 0, 0, 0.1);
    --cell-hover-input: #f8fafc;
    
    --grid-wrapper-bg: #e2e8f0;
    --grid-wrapper-border: rgba(0, 0, 0, 0.04);
    --grid-wrapper-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    
    --modal-bg: #ffffff;
    --modal-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow-x: hidden;
    position: relative;
}

/* Glassmorphism Background Gradients */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(255, 85, 0, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 136, 255, 0.08) 0%, transparent 40%),
                var(--bg-main);
}

/* App Container */
.app-container {
    width: 100%;
    max-width: var(--max-width);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.app-header {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: rgba(255, 85, 0, 0.15);
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 85, 0, 0.25);
    display: inline-block;
    margin-bottom: 6px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    box-shadow: var(--shadow-sm);
}

.timer-box {
    color: var(--accent-orange);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 600;
}

.timer-box svg {
    fill: var(--accent-orange);
}

.icon {
    width: 20px;
    height: 20px;
}

.progress-box {
    min-width: 240px;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
    border-radius: 4px;
    transition: width var(--transition-normal);
}

#progress-text {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 32px;
    text-align: right;
}

/* ==========================================================================
   MAIN APP GRID LAYOUT
   ========================================================================== */
.app-main {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: start;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .app-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
}

/* Panels Styling Card Base */
.control-panel, .grid-section, .clues-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-normal);
}

.control-panel:hover, .grid-section:hover, .clues-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   SIDEBAR / CONTROL PANEL
   ========================================================================== */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-section h2, .panel-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-orange);
    padding-left: 0.5rem;
}

.difficulty-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
}

.diff-btn {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.diff-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.diff-btn.active {
    color: var(--text-primary);
    background: var(--accent-orange);
    box-shadow: 0 4px 10px rgba(255, 85, 0, 0.3);
}

.puzzle-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: -0.25rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.check-btn {
    grid-column: span 2;
    background: var(--accent-blue);
    color: white;
}

.check-btn:hover {
    background: #0077e0;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
}

.hint-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.hint-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.reset-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.instructions-panel {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.instructions-panel h3 {
    font-size: 0.9rem;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.instructions-panel ul {
    list-style: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
}

.instructions-panel ul span {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   CROSSWORD GRID DISPLAY
   ========================================================================== */
.grid-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    grid-column: 2 / 3;
}

@media (max-width: 1024px) {
    .grid-section {
        grid-column: 1 / 2;
    }
}

.grid-scroll-container {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

/* For beautiful scrollbars */
.grid-scroll-container::-webkit-scrollbar,
.clues-list::-webkit-scrollbar {
    height: 8px;
    width: 6px;
}
.grid-scroll-container::-webkit-scrollbar-track,
.clues-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 100px;
}
.grid-scroll-container::-webkit-scrollbar-thumb,
.clues-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}
.grid-scroll-container::-webkit-scrollbar-thumb:hover,
.clues-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 85, 0, 0.3);
}

.grid-wrapper {
    background: var(--grid-wrapper-bg);
    border: 3px solid var(--grid-wrapper-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--grid-wrapper-shadow);
}

.crossword-grid {
    display: grid;
    gap: 3px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    padding: 3px;
}

/* Cell Styles */
.grid-cell {
    width: var(--cell-size);
    height: var(--cell-size);
    position: relative;
    user-select: none;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

@media (max-width: 600px) {
    .grid-cell {
        width: var(--cell-size-mobile);
        height: var(--cell-size-mobile);
    }
}

/* Black Blocked Cells */
.grid-cell.blocked {
    background: var(--cell-bg-blocked);
    background-image: radial-gradient(var(--border-color) 1px, transparent 0);
    background-size: 8px 8px;
    border: none;
}

/* White Input Cells */
.grid-cell.input-cell {
    background: var(--cell-bg-input);
    border: 1px solid var(--cell-border-input);
    cursor: pointer;
}

.grid-cell.input-cell:hover {
    background: var(--cell-hover-input);
    border-color: var(--text-muted);
}

.cell-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    pointer-events: none;
}

.cell-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    caret-color: transparent; /* Hide browser cursor */
    cursor: pointer;
    font-family: inherit;
    padding-top: 8px;
}

.cell-input:focus {
    outline: none;
}

/* Highlight States */
/* Highlight the cells belonging to the currently selected word entry */
.grid-cell.highlight-word {
    background: rgba(255, 85, 0, 0.08);
    border-color: rgba(255, 85, 0, 0.3);
}

/* Highlight the exact single active cell */
.grid-cell.active-cell {
    background: rgba(255, 85, 0, 0.2) !important;
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 12px var(--accent-orange-glow);
    z-index: 2;
}

/* Validate State Feedback */
.grid-cell.correct {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
}

.grid-cell.correct .cell-input {
    color: var(--color-correct);
}

.grid-cell.incorrect {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
    animation: shake 0.4s ease;
}

.grid-cell.incorrect .cell-input {
    color: var(--color-incorrect);
}

/* Active Clue Bar below grid */
.active-clue-bar {
    width: 100%;
    background: rgba(255, 85, 0, 0.06);
    border: 1px solid rgba(255, 85, 0, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    box-shadow: var(--shadow-sm);
    animation: pulseGlow 3s infinite ease-in-out;
}

.active-clue-num {
    background: var(--accent-orange);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.active-clue-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   CLUES PANEL LISTS
   ========================================================================== */
.clues-panel {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .clues-panel {
        grid-template-columns: 1fr;
        grid-column: 1 / 2;
    }
}

.clues-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clues-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.clue-type-icon {
    width: 22px;
    height: 22px;
    fill: var(--text-secondary);
}

.across-header .clue-type-icon {
    fill: var(--accent-orange);
}

.down-header .clue-type-icon {
    fill: var(--accent-blue);
}

.clues-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.clues-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.clue-item {
    display: flex;
    gap: 0.75rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.clue-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.clue-item-num {
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 20px;
}

.clue-item-text {
    color: var(--text-secondary);
    line-height: 1.4;
    flex-grow: 1;
}

/* Active Highlight Clue List Item */
.clue-item.active {
    background: rgba(255, 85, 0, 0.1) !important;
    border-color: rgba(255, 85, 0, 0.3) !important;
}

.clue-item.active .clue-item-num {
    color: var(--accent-orange);
}

.clue-item.active .clue-item-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* Completed clue styling */
.clue-item.completed .clue-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.app-footer {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.app-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SUCCESS MODAL DIALOG
   ========================================================================== */
.success-modal {
    border: none;
    border-radius: 20px;
    padding: 0;
    background: transparent;
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: all var(--transition-normal);
    max-width: 420px;
    width: 90%;
    z-index: 100;
}

.success-modal[open] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-modal::backdrop {
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.success-modal[open]::backdrop {
    opacity: 1;
}

.modal-content {
    background: radial-gradient(circle at 50% 0%, rgba(255, 85, 0, 0.15) 0%, transparent 70%),
                var(--modal-bg);
    border: 1px solid rgba(255, 85, 0, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--modal-shadow);
}

.confetti-holder {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 1s infinite alternate;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.25rem 0.5rem;
    margin-bottom: 2rem;
}

.modal-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.primary-btn {
    background: var(--accent-orange);
    color: white;
}

.primary-btn:hover {
    background: var(--accent-orange-hover);
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0%, 100% { border-color: rgba(255, 85, 0, 0.15); box-shadow: var(--shadow-sm); }
    50% { border-color: rgba(255, 85, 0, 0.4); box-shadow: 0 0 10px rgba(255, 85, 0, 0.15); }
}

/* Translate Button Style */
.translate-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    user-select: none;
}

.translate-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.translate-btn.active {
    background: rgba(0, 136, 255, 0.2);
    border-color: rgba(0, 136, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.2);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    width: 38px;
    height: 38px;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: var(--accent-orange);
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--accent-orange);
}

body.light-theme .grid-scroll-container::-webkit-scrollbar-thumb,
body.light-theme .clues-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

