:root {
    --bg-color: #030712;
    --card-bg: rgba(15, 23, 42, 0.7);
    --card-border: rgba(var(--primary-rgb), 0.15);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-rgb: var(--primary-rgb);
    --primary-hover: #0ea5e9;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --danger: #ef4444;
    --success: #22c55e;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #082f49; /* Zeer donkerblauw (bijna zwart) voor max contrast */
    --primary-rgb: 8, 47, 73;
    --accent: #1e1b4b;  /* Zeer donker paars voor max contrast */
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Achtergrond Canvas */
.fullscreen-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto; /* Allow mouse interaction */
}

/* Typografische Vormen (Wow Effect) */
.variable-text {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(180deg, var(--text-main), #303040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
}

.hero-card:hover .variable-text {
    letter-spacing: 5px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-touch-callout: none;
}

.primary-btn {
    background-color: var(--primary);
    color: #030712;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

.accent-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.accent-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.outline-btn:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.icon-btn:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

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

.full-width {
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero-card {
    position: relative;
    transform-style: preserve-3d;
    padding: 3rem 1rem;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.hero-badge {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    line-height: 1.6;
}

.action-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 10px 30px -10px rgba(var(--primary-rgb), 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tag-list {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-card {
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-main);
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.form-response {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-response.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.form-response.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* Status List in Modal */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Utilities */
.mt-1 {
    margin-top: 1rem;
}

/* --- EXTRA WOW EFFECTEN --- */

/* 1. CSS Houdini Borders op .card */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.dashboard-grid .card {
    position: relative;
    background: var(--bg-color); 
    background-clip: padding-box;
    border: 2px solid transparent;
}

.dashboard-grid .card::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--glow-angle), var(--card-border), var(--card-border));
    transition: background 0.5s ease;
}

.dashboard-grid .card:hover::before {
    background: conic-gradient(from var(--glow-angle), var(--primary), var(--accent), var(--primary));
    animation: rotateAngle 3s linear infinite;
}

@keyframes rotateAngle {
    to { --glow-angle: 360deg; }
}

/* 3. View Transitions */
.modal-card {
    view-transition-name: modal-card;
}

::view-transition-old(modal-card),
::view-transition-new(modal-card) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- EXTRA TRUCS (Portal, Command Palette, Animations) --- */

/* 1. Custom Text Selection */
::selection {
    background: var(--primary);
    color: #030712;
    text-shadow: none;
}

/* 2. Scroll-Driven Animations (Verplaatst naar JS wegens browser compatibiliteit) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform-origin: 0% 50%;
    z-index: 9999;
    transform: scaleX(0);
}
.portal-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.portal-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 3. Portal Kaarten */
.portal-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    -webkit-touch-callout: none; /* Disable link preview on iOS */
    transition: transform 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-5px);
}

.portal-svg-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
    transition: transform 0.3s ease;
}

.portal-card:hover .portal-svg-logo {
    transform: scale(1.1) rotate(5deg);
}

/* 4. Command Palette */
.cmd-palette {
    margin: auto;
    width: 90%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
}

.cmd-palette::backdrop {
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(4px);
}

.cmd-palette-content input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-main);
    outline: none;
    font-family: inherit;
}

.cmd-list {
    list-style: none;
    margin-top: 1rem;
    max-height: 350px;
    overflow-y: auto;
}

.cmd-list li {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.cmd-list li.selected, .cmd-list li:hover {
    background: var(--primary);
    color: #030712;
}

.hidden-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Helper Classes for CSP Compliance */
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-bold { font-weight: bold; }
.mt-1 { margin-top: 1rem; }
.opacity-100 { opacity: 1 !important; }
.opacity-0 { opacity: 0 !important; }

/* Quest Hint Toast */
.quest-hint-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--accent);
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10000;
    max-width: 300px;
    color: #fff;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}
.toast-title { margin: 0 0 5px 0; }
.toast-text { margin: 0; font-size: 0.9rem; line-height: 1.4; }

/* Highscore Modal */
.highscore-form-wrapper { margin: 1.5rem 0; }
.highscore-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
    background: var(--bg-color);
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Quest Egg */
.quest-egg {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    z-index: 999;
    font-size: 16px;
    cursor: pointer;
    pointer-events: auto;
    animation: pulse 2s infinite;
    text-shadow: 0 0 10px var(--accent);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.quest-egg[data-state="0"] { filter: hue-rotate(0deg); }
.quest-egg[data-state="1"] { filter: hue-rotate(36deg); }
.quest-egg[data-state="2"] { filter: hue-rotate(72deg); }
.quest-egg[data-state="3"] { filter: hue-rotate(108deg); }
.quest-egg[data-state="4"] { filter: hue-rotate(144deg); }
.quest-egg[data-state="5"] { filter: hue-rotate(180deg); }
.quest-egg[data-state="6"] { filter: hue-rotate(216deg); }
.quest-egg[data-state="7"] { filter: hue-rotate(252deg); }
.quest-egg[data-state="8"] { filter: hue-rotate(288deg); }
.quest-egg[data-state="9"] { filter: hue-rotate(324deg); }

/* Quest UI & Highscores */
.quest-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
    z-index: 900;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-quest-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    padding: 0;
}
.reset-quest-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(180deg) scale(1.1);
    border-color: rgba(255, 0, 0, 0.6);
}

.help-quest-btn { background: rgba(0, 255, 255, 0.1); border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 0.9em; cursor: pointer; color: #fff; transition: all 0.2s ease; padding: 0; }
.help-quest-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: scale(1.2);
    border-color: rgba(0, 255, 255, 0.6);
}

.custom-dialog {
    background: transparent;
    border: none;
    margin: auto;
    padding: 0;
    max-width: 500px;
    width: 90%;
}
.custom-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.custom-dialog .dialog-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    color: var(--text-main);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.highscore-list {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.highscore-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
}
.highscore-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}
.highscore-list li:nth-child(1) { 
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.02));
    border-color: rgba(255, 215, 0, 0.5); 
    color: gold; 
    font-weight: 800; 
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}
.highscore-list li:nth-child(2) { 
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.02));
    border-color: rgba(192, 192, 192, 0.5); 
    color: silver; 
    font-weight: bold; 
}
.highscore-list li:nth-child(3) { 
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.02));
    border-color: rgba(205, 127, 50, 0.5); 
    color: #cd7f32; 
    font-weight: bold; 
}
.highscore-list li span:last-child {
    font-family: monospace;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Terminal Theme */
.terminal-theme .dialog-content {
    background: #000;
    border: 1px solid #333;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}
.terminal-header {
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.terminal-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.terminal-input-row input {
    background: transparent;
    border: none;
    color: #0f0;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    flex-grow: 1;
}
.error-text {
    color: #f00;
    margin-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero-card {
        padding: 2rem 1rem;
    }
}

/* ARG CSS Classes for CSP Compliance */
.hidden { display: none !important; opacity: 0 !important; visibility: hidden !important; }
.hacked-bg { background-color: red !important; }

/* Phase 2 Animations */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
@keyframes strobe {
    0% { filter: invert(1); }
    50% { filter: invert(0); }
    100% { filter: invert(1); }
}
@keyframes matrix-rain {
    0% { filter: hue-rotate(0deg) contrast(200%) brightness(150%); }
    100% { filter: hue-rotate(360deg) contrast(200%) brightness(150%); }
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px 10px rgba(0, 255, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* ARG CSS Classes for index.html (Replaced inline styles) */
.offscreen-right { position: absolute !important; right: -9999px !important; }
.offscreen-left { position: absolute !important; left: -9999px !important; }
.classified-data {
    display: none;
    position: absolute;
    font-family: monospace;
    color: #0f0;
    margin-top: 1rem;
    font-size: 0.8rem;
    background: #000;
    padding: 5px;
    border: 1px solid #0f0;
}
#masterPixel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 5px;
    height: 5px;
    cursor: crosshair;
    z-index: 9999;
    opacity: 0;
}

/* Easter Egg Footer */
.easter-egg-footer-text { text-align: center; color: var(--text-muted, #888); margin-top: 2rem; margin-bottom: 1rem; font-size: 0.85rem; }
#easter-egg-heart { display: inline-block; color: #ff4b4b; cursor: pointer; transition: transform 0.2s ease; user-select: none;  animation: heartbeat 2s infinite; }
@keyframes heartbeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }
.easter-egg-spin { animation: spin-heart 2s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
@keyframes spin-heart { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.no-underline { text-decoration: none !important; color: inherit !important; }


/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

/* Tablet & Smaller Desktop (Max 1024px) */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    /* Header */
    .app-header {
        padding: 1rem 5%;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-logo {
        width: 32px;
        height: 32px;
    }

    /* Main Container Padding */
    .main-content {
        padding: 2rem 0;
        gap: 2.5rem;
        width: 92%;
    }

    /* Hero Section */
    .hero-card {
        padding: 1.5rem 0.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Hero Call to Action Buttons */
    .hero-cta {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }

    /* Dashboard Cards Grid */
    .dashboard-grid {
        grid-template-columns: 1fr; /* Dwingt alles netjes onder elkaar op smalle schermen */
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.15rem;
    }

    /* Modals */
    .modal-card {
        padding: 1.5rem;
        width: 95%;
    }
    
    .close-btn {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .highscore-list li {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
    
    /* Quest UI */
    .quest-progress {
        bottom: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra Small Phones (Max 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .cmd-palette-content input {
        font-size: 1rem;
    }
}



/* ==========================================================================
   COMPACT DESKTOP & WINDOWS 125%-150% SCALING (1280x600 - 1536x750)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1440px), (min-width: 769px) and (max-height: 820px) {
    .app-header {
        padding: 1rem 4%;
    }

    .main-content {
        padding: 2rem 0;
        gap: 2.25rem;
        width: 92%;
    }

    .hero-card {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 2.6rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
        gap: 1.25rem;
    }

    .card {
        padding: 1.5rem;
    }
}
