@import url('https://fonts.googleapis.com/css2?family=Geomini:wght@400;700;800;900&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&subset=latin,latin-ext&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-dark: #12152a;
    --bg-card: #ffffff;
    --bg-surface: #f8fafc;
    --border-color: #e2e8f0;
    --accent-purple: #8266f7;
    --accent-purple-hover: #6f50f5;
    --accent-purple-light: rgba(130, 102, 247, 0.08);
    --accent-purple-rgb: 130, 102, 247;
    --accent-color: var(--accent-purple);
    --accent-teal: var(--accent-purple);
    --accent-rose: #ef4444;
    --accent-sage: #10b981;
    --text-dark: #12152a;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --font-title: 'Geomini', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(130, 102, 247, 0.08), 0 4px 6px -2px rgba(130, 102, 247, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(130, 102, 247, 0.1), 0 10px 10px -5px rgba(130, 102, 247, 0.04);
}

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

body {
    background-color: var(--bg-body);
    color: #334155;
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1.3;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-purple-hover);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
.site-header {
    background-color: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(18, 21, 42, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.site-logo svg, .site-logo i {
    color: var(--accent-purple);
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.6rem;
    animation: logoPulse 2.5s ease-in-out infinite;
    display: inline-block;
    transform-origin: center;
    flex-shrink: 0;
}

.site-logo span {
    color: var(--accent-purple);
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(130, 102, 247, 0.4));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 10px rgba(130, 102, 247, 0.85));
        color: #a78bfa;
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(130, 102, 247, 0.4));
    }
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
    background-color: rgba(130, 102, 247, 0.2);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 7rem 0 5rem 0;
    background: radial-gradient(circle at 90% 10%, rgba(130, 102, 247, 0.08) 0%, transparent 60%), #f8fafc;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.search-box-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

.search-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(130, 102, 247, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Category Filters & Tabs */
.category-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-tab:hover, .cat-tab.active {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
    box-shadow: var(--shadow-lg);
}

/* Article Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none; /* remove default underline on anchor */
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(130, 102, 247, 0.3);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: var(--bg-dark);
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge {
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    background-color: var(--accent-purple-light);
    color: var(--accent-purple);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    transition: var(--transition);
}

.card-title a {
    color: var(--text-dark);
}

.card-title a:hover {
    color: var(--accent-purple);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-more {
    font-weight: 700;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-more:hover {
    color: var(--accent-purple-hover);
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e254a 100%);
    border-radius: 24px;
    padding: 4rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(130, 102, 247, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-desc {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-purple);
    color: white;
    box-shadow: 0 4px 14px rgba(130, 102, 247, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-purple-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 102, 247, 0.6);
}

/* Article Page Layout */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title {
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.article-cover-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.2rem 0;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.8rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.article-content th, .article-content td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-content th {
    background-color: var(--bg-surface);
    font-weight: 700;
    color: var(--text-dark);
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 5px solid var(--accent-purple);
    background-color: var(--bg-surface);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Alert Boxes in Content */
.alert-block {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--bg-surface);
    border-radius: 8px;
    border-left: 5px solid var(--accent-purple);
    font-style: italic;
}

.alert-block-note {
    border-left-color: var(--accent-teal);
}

.alert-block-important, .alert-block-warning, .alert-block-caution {
    border-left-color: var(--accent-rose);
}

.alert-block-tip {
    border-left-color: var(--accent-sage);
}

.alert-title {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.article-content blockquote p, .alert-block p {
    margin-bottom: 0;
}

/* Read Next Section */
.read-next-section {
    background-color: var(--bg-surface);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.read-next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.read-next-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.read-next-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-purple);
}

.read-next-badge {
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    background-color: var(--accent-purple-light);
    color: var(--accent-purple);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.read-next-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.read-next-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Support Partners Area */
.support-partners-section {
    background-color: var(--bg-surface);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.support-partners-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.support-partners-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.support-link {
    color: #475569;
    font-weight: 500;
    transition: var(--transition);
}

.support-link:hover {
    color: var(--accent-purple);
}

.support-separator {
    color: #cbd5e1;
    user-select: none;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid #1e293b;
}

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

.footer-categories-horizontal {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1.5rem;
}

.footer-categories-horizontal strong {
    color: white;
    margin-right: 0.2rem;
}

.footer-categories-horizontal a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-categories-horizontal a:hover {
    color: var(--accent-purple);
}

.footer-links-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-two-cols li a {
    color: #94a3b8;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links-two-cols li a:hover {
    color: var(--accent-purple);
}

@media (max-width: 576px) {
    .footer-links-two-cols {
        grid-template-columns: 1fr;
    }
}


.footer-widget-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--accent-purple);
    border-radius: 2px;
}

.footer-desc {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Partner widgets / Partner links */
.partner-widgets-section {
    background-color: #0f1224;
    padding: 4rem 0;
    border-top: 1px solid #1a1e38;
    color: white;
}

.partner-widgets-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2.5rem;
    text-align: center;
}

.partner-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.partner-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.partner-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

.partner-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.partner-title {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.5rem;
}

.partner-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.partner-btn {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Interactive Games Dashboard & Shell styles */
.games-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.game-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-purple);
}

.game-category-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-purple-light);
    color: var(--accent-purple);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.game-icon {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.game-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.game-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Standard Game Shell styling (within iframe/body of games) */
.game-shell-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.game-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-info-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.game-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-box {
    background-color: var(--bg-surface);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.stat-box span {
    color: var(--accent-purple);
}

.game-board-wrapper {
    background-color: var(--bg-dark); /* Play attention dark blue as playboard background */
    border-radius: 16px;
    padding: 3rem 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.game-start-btn {
    background-color: var(--accent-purple);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(130, 102, 247, 0.4);
    transition: var(--transition);
}

.game-start-btn:hover {
    background-color: var(--accent-purple-hover);
    transform: scale(1.05);
}

/* Schulte Grid specifics */
.schulte-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 400px;
    width: 100%;
}

.schulte-cell {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: var(--transition);
}

.schulte-cell:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-purple);
}

.schulte-cell.active-correct {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(0.95);
}

/* Memory Matrix specifics */
.matrix-grid {
    display: grid;
    gap: 8px;
    max-width: 320px;
    width: 100%;
}

.matrix-cell {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.matrix-cell.active-flash {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.matrix-cell.active-correct {
    background-color: #10b981;
    border-color: #10b981;
}

.matrix-cell.active-wrong {
    background-color: #ef4444;
    border-color: #ef4444;
}

/* Digit Span specifics */
.digit-display {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-purple);
    margin-bottom: 2rem;
    font-family: var(--font-title);
    min-height: 100px;
    display: flex;
    align-items: center;
}

.digit-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.digit-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-align: center;
    outline: none;
    letter-spacing: 1px;
}

.digit-input:focus {
    border-color: var(--accent-purple);
}

/* Stroop Colors specifics */
.stroop-word {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    font-family: var(--font-title);
}

.stroop-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.stroop-btn {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.stroop-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .site-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-dark);
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(18, 21, 42, 0.2);
    }
    .site-nav.active {
        display: flex;
    }
    .nav-link {
        width: 100%;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .cta-banner {
        padding: 2.5rem 1.5rem;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .section {
        padding: 3.5rem 0;
    }
    .game-shell-container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
}

/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    background-color: var(--bg-surface);
    min-width: 600px; /* Keep layout structured on mobile screens */
}

.comparison-table th {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    line-height: 1.5;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(130, 102, 247, 0.03);
}

.comparison-table tbody tr:hover {
    background-color: rgba(130, 102, 247, 0.06);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}
