/* ========================================
   MERT EMIR AKGÜN - Interactive Education Site
   ======================================== */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --bg-card-hover: #212d47;
    --bg-glass: rgba(26, 34, 54, 0.85);
    --bg-glass-light: rgba(255,255,255,0.04);

    --accent-1: #6366f1;  /* Indigo */
    --accent-2: #8b5cf6;  /* Purple */
    --accent-3: #06b6d4;  /* Cyan */
    --accent-4: #10b981;  /* Emerald */
    --accent-5: #f59e0b;  /* Amber */
    --accent-6: #ef4444;  /* Red */
    --accent-7: #ec4899;  /* Pink */

    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-cool: linear-gradient(135deg, #06b6d4, #6366f1);
    --gradient-nature: linear-gradient(135deg, #10b981, #06b6d4);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(99, 102, 241, 0.15);
    --border-glow: rgba(99, 102, 241, 0.3);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --nav-height: 64px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, a, input, select, .btn, [onclick] {
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 4px;
}

/* ========================================
   NAVIGATION
   ======================================== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.nav-brand:hover { transform: scale(1.05); }
.nav-icon { font-size: 24px; }
.nav-title {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-light);
}
.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}
.nav-emoji { font-size: 16px; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-nav-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.mobile-nav-link:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

/* ========================================
   SECTIONS (Base)
   ======================================== */
.section {
    display: none;
    min-height: 100vh;
    padding-top: var(--nav-height);
}
.section.active { display: block; }

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
#binary-container {
    max-width: 1400px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}
.section-emoji { margin-right: 8px; }
.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   HOME / HERO SECTION
   ======================================== */
#section-home {
    position: relative;
    display: none;
    min-height: 100vh;
    overflow: hidden;
}
#section-home.active { display: flex; align-items: center; justify-content: center; }

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-3);
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease;
}
.hero-greeting {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
}
.hero-name {
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.hero-surname {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 8px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}
.stat-icon { font-size: 28px; }
.stat-info { display: flex; flex-direction: column; text-align: left; }
.stat-value { font-size: 18px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-muted); }

@media (max-width: 600px) {
    .hero-name { font-size: 42px; }
    .hero-surname { font-size: 32px; letter-spacing: 4px; }
    .hero-stats { flex-direction: column; align-items: center; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.btn-small:hover { background: var(--bg-card-hover); }
.btn-back {
    padding: 8px 16px;
    font-size: 14px;
    background: none;
    color: var(--accent-3);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-sm);
}
.btn-back:hover { background: rgba(6, 182, 212, 0.1); }

.btn-calculate {
    white-space: nowrap;
}

/* ========================================
   BINARY LAB
   ======================================== */
.binary-intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.intro-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}
.intro-card-icon { font-size: 36px; margin-bottom: 12px; }
.intro-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.intro-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Binary Explorer */
.binary-explorer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
}
.explorer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.explorer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}
.explorer-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.binary-input {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}
.binary-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.binary-select {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.explore-result {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Binary bits display */
.binary-bits-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.binary-bit {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.bit-value {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.4s ease;
}
.bit-value.on {
    background: var(--accent-1);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.bit-value.off {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.bit-power {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.bit-decimal {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-3);
    font-family: var(--font-mono);
}

.explore-equation {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    line-height: 1.8;
    overflow-x: auto;
}
.explore-equation .eq-highlight {
    color: var(--accent-4);
    font-weight: 700;
}

/* Binary Calculator */
.binary-calculator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
}
.calc-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.calc-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}
.calc-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.calc-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Calculation steps animation */
.calc-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: stepAppear 0.5s ease forwards;
}
.calc-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.calc-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-1);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}
.calc-step-title {
    font-size: 16px;
    font-weight: 600;
}

.calc-binary-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    padding: 16px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
}
.calc-binary-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}
.calc-binary-label {
    min-width: 80px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: right;
}
.calc-binary-bits {
    display: flex;
    gap: 4px;
}
.calc-binary-bits .cbit {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}
.cbit.on { background: var(--accent-1); color: white; }
.cbit.off { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.cbit.carry { background: var(--accent-5); color: var(--bg-primary); }
.cbit.result { background: var(--accent-4); color: var(--bg-primary); }

.calc-binary-decimal {
    margin-left: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}
.calc-binary-decimal strong {
    color: var(--text-primary);
    font-size: 18px;
}
.calc-separator {
    border-top: 2px solid var(--accent-1);
    margin: 4px 92px 4px 92px;
}
.calc-operator-symbol {
    color: var(--accent-5);
    font-size: 18px;
    font-weight: 700;
    min-width: 20px;
}

.calc-result-big {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.1));
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: var(--radius-lg);
    margin-top: 8px;
}
.calc-result-big .result-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-4);
    font-family: var(--font-mono);
}
.calc-result-big .result-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Carry animation */
.carry-animation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-5);
    margin-top: 8px;
}

/* Bit Toggle Section */
.bit-toggle-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
}
.toggle-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.toggle-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}
.bit-toggle-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.bit-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.bit-toggle-switch {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    user-select: none;
}
.bit-toggle-switch.active {
    background: var(--accent-1);
    border-color: var(--accent-2);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.bit-toggle-label {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.bit-toggle-result {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}
.toggle-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 8px;
}
.toggle-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

/* ========================================
   GAMES SECTION
   ======================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
@media (hover: hover) {
.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}
.game-card:hover::before { opacity: 0.05; }
}
.game-card > * { position: relative; z-index: 1; }

.game-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.game-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.game-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.game-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-3);
}

/* Game Arena */
.game-arena {
    animation: fadeInUp 0.3s ease;
}
.game-arena-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.game-arena-header h3 {
    font-size: 22px;
    font-weight: 700;
}
.game-arena-body {
    min-height: 400px;
}

/* Scoreboard */
.scoreboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    animation: fadeInDown 0.3s ease;
}
.scoreboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.scoreboard-header h3 {
    font-size: 20px;
    font-weight: 700;
}
.scoreboard-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}
.score-rank {
    font-size: 18px;
    font-weight: 800;
    min-width: 30px;
    color: var(--accent-5);
}
.score-name { flex: 1; font-weight: 600; }
.score-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-4);
}

/* ---- Memory Game ---- */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}
.memory-card {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}
@media (hover: hover) {
.memory-card:hover:not(.flipped):not(.matched) {
    border-color: var(--accent-1);
    transform: scale(1.05);
}
}
.memory-card.flipped {
    background: var(--accent-1);
    border-color: var(--accent-2);
    transform: rotateY(180deg);
}
.memory-card.matched {
    background: rgba(16,185,129,0.2);
    border-color: var(--accent-4);
    pointer-events: none;
}
.memory-card .card-front { display: none; }
.memory-card .card-back { font-size: 24px; color: var(--text-muted); }
.memory-card.flipped .card-front { display: block; }
.memory-card.flipped .card-back { display: none; }
.memory-card.matched .card-front { display: block; }
.memory-card.matched .card-back { display: none; }

/* ---- Math Game ---- */
.math-game {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.math-question {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-mono);
    margin: 24px 0;
    color: var(--text-primary);
}
.math-input {
    width: 200px;
    padding: 16px;
    font-size: 32px;
    font-family: var(--font-mono);
    text-align: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
}
.math-input:focus {
    border-color: var(--accent-1);
}
.math-timer {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-5);
    font-family: var(--font-mono);
}
.math-score {
    font-size: 20px;
    margin-top: 12px;
    color: var(--accent-4);
}
.math-feedback {
    font-size: 28px;
    margin-top: 12px;
    min-height: 40px;
}
.math-difficulty {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}
.diff-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.diff-btn.active {
    background: var(--accent-1);
    border-color: var(--accent-1);
}
@media (hover: hover) {
.diff-btn:hover:not(.active) {
    border-color: var(--accent-1);
}
}

/* ---- Simon Says ---- */
.simon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}
.simon-btn {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0.6;
}
@media (hover: hover) { .simon-btn:hover { opacity: 0.8; } }
.simon-btn.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}
.simon-btn.red { background: #ef4444; color: #ef4444; }
.simon-btn.blue { background: #3b82f6; color: #3b82f6; }
.simon-btn.green { background: #10b981; color: #10b981; }
.simon-btn.yellow { background: #f59e0b; color: #f59e0b; }

.simon-info {
    text-align: center;
    margin: 20px 0;
}
.simon-level {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-1);
}
.simon-status {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 16px;
    min-height: 28px;
}

/* ---- Reaction Game ---- */
.reaction-box {
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 20px auto;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 24px;
    font-weight: 700;
    user-select: none;
}
.reaction-box.waiting {
    background: var(--accent-6);
    color: white;
}
.reaction-box.ready {
    background: var(--accent-4);
    color: white;
}
.reaction-box.idle {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}
.reaction-box.result {
    background: var(--accent-1);
    color: white;
    flex-direction: column;
    gap: 8px;
}
.reaction-time {
    font-size: 48px;
    font-weight: 900;
    font-family: var(--font-mono);
}
.reaction-history {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}
.reaction-history-item {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

/* ---- 15 Puzzle ---- */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 320px;
    margin: 20px auto;
}
.puzzle-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-mono);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.puzzle-tile.numbered {
    background: var(--accent-1);
    color: white;
    border: 1px solid var(--accent-2);
}
.puzzle-tile.numbered:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.puzzle-tile.empty {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-color);
    cursor: default;
}
.puzzle-info {
    text-align: center;
    margin-top: 16px;
}
.puzzle-moves {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-5);
    font-family: var(--font-mono);
}

/* ---- Reading Race / Okuma Yarışı ---- */
.reading-section {
    max-width: 700px;
    margin: 0 auto;
}
.reading-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.reading-controls label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}
.speed-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    outline: none;
}
.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-1);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99,102,241,0.4);
}
.speed-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-3);
    min-width: 80px;
}
.text-selector {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.reading-display {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    font-size: 22px;
    line-height: 2;
    min-height: 200px;
    position: relative;
}
.reading-display .word {
    display: inline;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: default;
}
.reading-display .word.active {
    background: var(--accent-1);
    color: white;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
    display: inline-block;
}
.reading-display .word.read {
    color: var(--text-muted);
}

.reading-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.reading-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.reading-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-4);
    font-family: var(--font-mono);
}
.reading-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.reading-player-setup {
    margin-bottom: 20px;
    text-align: center;
}
.reading-player-input {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    margin-right: 8px;
    width: 200px;
}
.reading-player-input:focus {
    border-color: var(--accent-1);
}

/* Game setup / player name */
.game-setup {
    text-align: center;
    padding: 40px 20px;
}
.game-setup h3 {
    font-size: 28px;
    margin-bottom: 8px;
}
.game-setup p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.player-input {
    padding: 14px 20px;
    width: 280px;
    max-width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 18px;
    text-align: center;
    outline: none;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.player-input:focus {
    border-color: var(--accent-1);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-main {
    text-align: center;
    padding: 40px;
    margin-bottom: 24px;
}
.about-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
}
.avatar-emoji {
    font-size: 48px;
}
.about-main h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.about-tagline {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}
.instagram-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.instagram-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(131, 58, 180, 0.4);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}
.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}
.about-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.about-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.about-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}
footer a {
    color: var(--accent-3);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes stepAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.5); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 600px) {
    .section-header h2 { font-size: 28px; }
    .binary-intro-cards { grid-template-columns: 1fr; }
    .calc-input-row { flex-direction: column; }
    .binary-input { width: 100%; }
    .binary-select { width: 100%; }
    .btn-calculate { width: 100%; justify-content: center; }
    .memory-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .memory-card { font-size: 24px; }
    .games-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .reading-controls { flex-direction: column; align-items: stretch; }
    .speed-slider { width: 100%; }
    .reading-display { font-size: 18px; padding: 20px; }

    /* Binary Lab - 16 bit mobil uyum */
    #binary-container { max-width: 100%; padding: 20px 12px 60px; }
    .binary-explorer, .binary-calculator, .bit-toggle-section { padding: 16px; }

    .binary-bits-row { gap: 3px; }
    .binary-bit { width: 36px; }
    .bit-value { width: 30px; height: 30px; font-size: 14px; }
    .bit-power { font-size: 8px; }
    .bit-decimal { font-size: 8px; }

    .bit-toggle-row { gap: 4px; }
    .bit-toggle { gap: 4px; }
    .bit-toggle-switch { width: 36px; height: 36px; font-size: 16px; }
    .bit-toggle-label { font-size: 7px; }

    .calc-binary-display { padding: 8px; overflow-x: auto; }
    .calc-binary-line { font-size: 14px; min-width: max-content; }
    .calc-binary-label { min-width: 40px; font-size: 11px; }
    .calc-binary-bits .cbit { width: 22px; height: 22px; font-size: 11px; }
    .calc-separator { margin: 4px 40px; }
    .calc-binary-decimal { margin-left: 8px; font-size: 12px; }
    .calc-binary-decimal strong { font-size: 14px; }
    .calc-result-big .result-value { font-size: 28px; }

    .carry-animation { font-size: 11px; flex-wrap: wrap; }
    .explore-equation { font-size: 12px; overflow-x: auto; white-space: nowrap; }

    /* Game page mobile */
    .game-top-bar { flex-direction: column; gap: 8px; text-align: center; }
    .game-page-title { font-size: 20px; }
    .game-bottom-nav { flex-direction: column; gap: 8px; }
    .game-nav-btn { padding: 12px 16px; }
    .game-nav-arrow { font-size: 16px; }
    .pattern-sequence { gap: 6px; }
    .pattern-num { width: 40px; height: 40px; font-size: 16px; }
    .color-mix-display { gap: 8px; }
    .color-swatch { width: 50px; height: 50px; }

    /* Keyboard Race mobile */
    .kb-arena { height: 350px; touch-action: none; }
    .kb-letter { width: 52px; height: 52px; font-size: 26px; }
}

/* ========================================
   GAME PAGE LAYOUT
   ======================================== */
.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 20px) 20px 40px;
    min-height: 100vh;
}

.game-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.game-page-title {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-bottom-nav {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.game-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}
@media (hover: hover) {
.game-nav-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
}
.game-nav-next {
    justify-content: flex-end;
    text-align: right;
}
.game-nav-arrow {
    font-size: 24px;
    color: var(--accent-1);
}
.game-nav-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.game-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.game-nav-name {
    font-size: 15px;
    font-weight: 700;
}

/* Games category */
.games-category-title {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.games-category-title:first-of-type {
    margin-top: 0;
}

/* Game card as link */
.game-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ========================================
   COLOR MIXER STYLES
   ======================================== */
.color-mix-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.color-swatch {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-md);
}
.color-swatch-question {
    background: var(--bg-card) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-muted);
}
.color-mix-op {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-secondary);
}
.color-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}
.color-option-btn {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
@media (hover: hover) { .color-option-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-1); } }
.color-option-btn.correct { background: rgba(16,185,129,0.2); border-color: var(--accent-4); color: var(--accent-4); }
.color-option-btn.wrong { background: rgba(239,68,68,0.2); border-color: var(--accent-6); color: var(--accent-6); }

/* ========================================
   FLAG QUIZ STYLES
   ======================================== */
.flag-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}
.flag-option-btn {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
@media (hover: hover) { .flag-option-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-3); } }
.flag-option-btn.correct { background: rgba(16,185,129,0.2); border-color: var(--accent-4); color: var(--accent-4); }
.flag-option-btn.wrong { background: rgba(239,68,68,0.2); border-color: var(--accent-6); color: var(--accent-6); }

.diff-badge {
    padding: 2px 10px;
    background: rgba(99,102,241,0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-3);
}

/* ========================================
   KEYBOARD RACE STYLES
   ======================================== */
.kb-arena {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0,0,0,0.3);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.kb-letter {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-1);
    color: white;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.kb-letter.kb-hit {
    transform: scale(1.5);
    opacity: 0;
    background: var(--accent-4);
}

/* ========================================
   WORD HUNT STYLES
   ======================================== */
.wh-scramble {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.wh-letter {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-2);
    color: white;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.wh-input {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}
.wh-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

/* ========================================
   PATTERN COMPLETION STYLES
   ======================================== */
.pattern-sequence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.pattern-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--accent-1);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.pattern-unknown {
    background: rgba(99,102,241,0.15);
    border-style: dashed;
    color: var(--accent-5);
    font-size: 28px;
    animation: pulse 1.5s ease infinite;
}
.pattern-arrow {
    color: var(--text-muted);
    font-size: 18px;
}

/* ========================================
   SNAKE GAME STYLES
   ======================================== */
.snake-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}
.snake-controls > div {
    display: flex;
    gap: 4px;
}
.snake-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
}
.snake-btn:active { background: var(--accent-1); transform: scale(0.9); }

/* ========================================
   TARGET GAME STYLES
   ======================================== */
.target-arena {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0,0,0,0.3);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: crosshair;
}
.target-circle {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: targetAppear 0.3s ease;
}
.target-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
}
.ring-outer {
    width: 100%; height: 100%;
    border-color: #ef4444;
    background: rgba(239,68,68,0.1);
}
.ring-middle {
    width: 65%; height: 65%;
    border-color: #f1f5f9;
    background: rgba(241,245,249,0.1);
}
.ring-inner {
    width: 35%; height: 35%;
    border-color: #ef4444;
    background: rgba(239,68,68,0.3);
}
.target-bullseye {
    width: 12%; height: 12%;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
}
.target-hit {
    transform: scale(0);
    opacity: 0;
    transition: all 0.15s ease;
}

@keyframes targetAppear {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   ABOUT PAGE (standalone)
   ======================================== */
.about-content { max-width: 800px; margin: 0 auto; }
.about-main {
    text-align: center;
    padding: 32px;
    margin-bottom: 24px;
}
.about-avatar { font-size: 80px; margin-bottom: 12px; }
.about-main h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.about-tagline { color: var(--text-secondary); font-size: 16px; margin-bottom: 16px; }
.instagram-link {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 50px;
    color: var(--accent-3);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.instagram-link:hover { background: rgba(99,102,241,0.25); }

/* ========================================
   CLOCK GAME STYLES
   ======================================== */
.clock-mode-select {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}
.clock-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}
.clock-option-btn {
    padding: 18px 20px;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
@media (hover: hover) { .clock-option-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-1); } }
.clock-option-btn.correct { background: rgba(16,185,129,0.2); border-color: var(--accent-4); color: var(--accent-4); }
.clock-option-btn.wrong { background: rgba(239,68,68,0.2); border-color: var(--accent-6); color: var(--accent-6); }

.clock-set-controls {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.clock-adjust-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.clock-adj-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.clock-adj-btn:active { background: var(--accent-1); border-color: var(--accent-1); transform: scale(0.9); }
.clock-adj-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-1);
    min-width: 48px;
    text-align: center;
}
