@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Modern CSS Custom Properties & Reset --- */
:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(18, 20, 32, 0.7);
    --bg-card-hover: rgba(26, 29, 46, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(138, 43, 226, 0.4);
    
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.35);
    --primary-light: #b066ff;
    
    --secondary: #00f0ff;
    --secondary-glow: rgba(0, 240, 255, 0.3);
    
    --success: #00f5a0;
    --success-glow: rgba(0, 245, 160, 0.35);
    
    --error: #ff2e93;
    --error-glow: rgba(255, 46, 147, 0.35);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px var(--primary-glow);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 20%, rgba(138, 43, 226, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(0, 240, 255, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- Layout & Glassmorphism Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(138, 43, 226, 0.15);
}

/* --- Navigation Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    color: var(--bg-dark);
    font-weight: 800;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text span {
    background: linear-gradient(135deg, var(--text-main), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Banner & Text Styling --- */
.hero-section {
    text-align: center;
    padding: 3.5rem 0 2rem;
}

.gradient-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 30%, #e0c3fc 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Main Layout Grid --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Schulte Game Controller --- */
.game-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 700;
}

.btn-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.btn-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-tab:hover {
    color: var(--text-main);
}

.btn-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* HUD Header */
.game-hud {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    gap: 1rem;
}

.hud-item {
    text-align: center;
    flex: 1;
}

.hud-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.hud-item:nth-child(2) .hud-val {
    color: var(--text-main);
    text-shadow: none;
}

.hud-item:nth-child(3) .hud-val {
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--primary-glow);
}

.hud-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Schulte Dynamic Grid Area */
.schulte-grid-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    margin: 0 auto 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.schulte-grid {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.cell:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.cell:active:not(.disabled) {
    transform: translateY(1px) scale(0.97);
}

/* Cell States */
.cell.correct {
    background: rgba(0, 245, 160, 0.15) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
    box-shadow: 0 0 15px var(--success-glow) !important;
    transform: scale(0.95);
    cursor: default;
    pointer-events: none;
}

.cell.error {
    background: rgba(255, 46, 147, 0.18) !important;
    border-color: var(--error) !important;
    color: var(--error) !important;
    box-shadow: 0 0 15px var(--error-glow) !important;
    animation: shake 0.4s ease-in-out;
}

/* Font sizing helper for various grids */
.grid-5x5 .cell { font-size: 2.2rem; }
.grid-6x6 .cell { font-size: 1.9rem; border-radius: 10px; }
.grid-7x7 .cell { font-size: 1.6rem; border-radius: 8px; gap: 6px; }
.grid-8x8 .cell { font-size: 1.4rem; border-radius: 6px; gap: 4px; }
.grid-9x9 .cell { font-size: 1.2rem; border-radius: 5px; gap: 4px; }

/* Grid overlay state screens */
.grid-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 20px;
    background: rgba(8, 9, 15, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 2rem;
    border: 1px dashed var(--border-color);
}

.grid-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 320px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #b066ff);
    color: #ffffff;
    border: none;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--primary-glow), 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

.game-btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

/* --- Sidebar Stats & Leaderboard --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    padding: 1.75rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.widget-title svg {
    color: var(--secondary);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-lbl {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-val {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.75rem;
    color: var(--text-muted);
}

.leaderboard-item:nth-child(1) .rank {
    background: gold;
    color: #000;
}
.leaderboard-item:nth-child(2) .rank {
    background: #c0c0c0;
    color: #000;
}
.leaderboard-item:nth-child(3) .rank {
    background: #cd7f32;
    color: #000;
}

.score-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-mode {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: block;
    margin-top: 2px;
}

.score-time {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

.no-scores {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 1.5rem 0;
}

/* --- Static Page Styles --- */
.content-wrapper {
    max-width: 800px;
    margin: 3rem auto 6rem;
    padding: 2.5rem;
}

.rich-content {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.rich-content h1, .rich-content h2, .rich-content h3 {
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.rich-content h1 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-top: 0;
}

.rich-content h2 {
    font-size: 1.6rem;
}

.rich-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.rich-content ul, .rich-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

/* Feature grid in About Page */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-item-details h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.contact-item-details p, .contact-item-details a {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-item-details a:hover {
    color: var(--secondary);
}

/* Form Styles */
.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(0, 0, 0, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 245, 160, 0.1);
    border: 1px solid rgba(0, 245, 160, 0.2);
    color: var(--success);
}

/* FAQ Accordion */
.faq-section {
    margin-top: 4rem;
}

.faq-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.accordion-item:hover {
    border-color: rgba(138, 43, 226, 0.25);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
    color: var(--secondary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion-item.active .accordion-content {
    max-height: 150px;
    padding-bottom: 1.25rem;
}

/* --- Footer Area --- */
footer {
    margin-top: auto;
    background: #06070a;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* --- Keyframe Animations --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
    50% { box-shadow: 0 0 30px var(--primary-glow), 0 0 10px rgba(255,255,255,0.1); }
}

/* Responsive fixes */
@media (max-width: 576px) {
    .gradient-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 2.5rem 0 1.5rem;
    }
    .hud-val {
        font-size: 1.4rem;
    }
    .schulte-grid-wrapper {
        padding: 8px;
    }
    .schulte-grid {
        gap: 6px;
    }
    .grid-5x5 .cell { font-size: 1.6rem; }
    .grid-6x6 .cell { font-size: 1.4rem; }
    .grid-7x7 .cell { font-size: 1.2rem; }
    .grid-8x8 .cell { font-size: 1rem; }
    .grid-9x9 .cell { font-size: 0.85rem; }
    .btn-primary {
        padding: 0.8rem 1.6rem;
        font-size: 0.95rem;
    }
    .content-wrapper {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* --- Theme Toggle & Lite Mode (Light Theme) Overrides --- */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition-fast);
    outline: none;
    margin-right: 0.25rem;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

body.light-theme {
    --bg-dark: #f0f2f5;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(138, 43, 226, 0.4);
    
    --primary: #7c22e0;
    --primary-glow: rgba(124, 34, 224, 0.15);
    --primary-light: #9d56ff;
    
    --secondary: #008fa3;
    --secondary-glow: rgba(0, 143, 163, 0.15);
    
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-dim: #9ca3af;
    
    background-color: #f0f2f5;
    background-image: 
        radial-gradient(at 10% 20%, rgba(138, 43, 226, 0.05) 0px, transparent 45%),
        radial-gradient(at 90% 80%, rgba(0, 240, 255, 0.04) 0px, transparent 45%);
}

body.light-theme header {
    background: rgba(240, 242, 245, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .logo-icon {
    color: #ffffff;
}

body.light-theme .logo-text span {
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .btn-tabs {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .btn-tab {
    color: var(--text-muted);
}

body.light-theme .btn-tab:hover {
    color: var(--text-main);
}

body.light-theme .btn-tab.active {
    background: var(--primary);
    color: #ffffff;
}

body.light-theme .game-hud {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .schulte-grid-wrapper {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.04);
}

body.light-theme .cell {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    color: #1f2937;
}

body.light-theme .cell:hover:not(.disabled) {
    background: #ffffff;
    border-color: rgba(138, 43, 226, 0.25);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

body.light-theme .grid-overlay {
    background: rgba(240, 242, 245, 0.95);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .overlay-title {
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .btn-outline {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

body.light-theme .btn-outline:hover {
    background: #ffffff;
    border-color: var(--text-muted);
}

body.light-theme .leaderboard-item {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.03);
}

body.light-theme footer {
    background: #e2e5eb;
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .accordion-item {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .contact-form {
    background: var(--bg-card);
}

body.light-theme .form-control {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .form-control:focus {
    background: #ffffff;
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

