/* SpeedType - Modern Typing Tutor */
/* Color: Teal & Orange */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #22c55e;
    --error: #ef4444;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo:hover { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--gray);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(13,148,136,0.08);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 8px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,115,22,0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.95);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section { padding: 80px 24px; }
section.alt-bg { background: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    background: rgba(13,148,136,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.card p {
    color: var(--gray);
    line-height: 1.6;
}

.feature-card {
    text-align: center;
    padding: 40px 32px;
}
.feature-card .card-icon { margin: 0 auto 24px; }

.action-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.action-card .btn { margin-top: auto; }

/* Typing Area */
.typing-area {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.text-display {
    background: var(--light);
    border-radius: var(--radius);
    padding: 32px;
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 24px;
    min-height: 180px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    border: 2px solid transparent;
}

.text-display.active { border-color: var(--primary); }

.letter { transition: all 0.1s; padding: 2px 0; }
.letter.correct { color: var(--success); }
.letter.incorrect {
    color: var(--error);
    background: rgba(239,68,68,0.1);
    border-radius: 2px;
}
.letter.current {
    background: var(--accent);
    color: var(--white);
    border-radius: 2px;
    animation: pulse 1s infinite;
}

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

.typing-input {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.typing-input:focus { border-color: var(--primary); }
.typing-input:disabled { background: var(--light); cursor: not-allowed; }

/* Stats */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.duration-btn {
    padding: 10px 20px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--gray);
}
.duration-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.duration-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Results */
.results {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 32px;
}

.results h3 { font-size: 1.5rem; margin-bottom: 24px; }

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
}

.result-item {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: var(--radius);
}

.result-value { font-size: 2rem; font-weight: 700; display: block; }
.result-label { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* Game */
.game-container {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.game-stat { text-align: center; color: var(--white); }
.game-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.game-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; }

.lives { display: flex; gap: 8px; }
.heart { font-size: 1.5rem; transition: all 0.3s; }
.heart.lost { opacity: 0.3; transform: scale(0.8); }

.game-area {
    height: 400px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.game-area::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--error), transparent);
    opacity: 0.5;
}

.falling-word {
    position: absolute;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    animation: fall linear forwards;
    box-shadow: 0 4px 12px rgba(13,148,136,0.4);
}

.falling-word.matched { animation: wordPop 0.3s ease-out forwards; }

@keyframes fall { from { top: -50px; } to { top: 100%; } }
@keyframes wordPop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); }
    100% { transform: scale(0); opacity: 0; }
}

.game-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    color: var(--white);
    outline: none;
    text-align: center;
    font-weight: 500;
}
.game-input:focus { border-color: var(--primary); background: rgba(255,255,255,0.15); }
.game-input::placeholder { color: rgba(255,255,255,0.4); }

.game-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.difficulty-btn {
    padding: 10px 24px;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.difficulty-btn:hover { border-color: var(--accent); color: var(--accent); }
.difficulty-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--white);
    text-align: center;
    padding: 40px;
}
.game-overlay h3 { font-size: 2rem; margin-bottom: 24px; color: var(--accent); }

/* Lessons */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lesson-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}
.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.lesson-card.active {
    border-color: var(--primary);
    background: rgba(13,148,136,0.02);
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.lesson-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.lesson-title { font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.lesson-level { font-size: 0.8rem; color: var(--gray); }

.lesson-keys { display: flex; gap: 8px; flex-wrap: wrap; }

.key-badge {
    padding: 8px 14px;
    background: var(--light);
    border-radius: 6px;
    font-family: 'SF Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Practice */
.practice-area {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.practice-header { text-align: center; margin-bottom: 32px; }
.practice-header h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 8px; }

.practice-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

/* Keyboard */
.keyboard-visual {
    max-width: 700px;
    margin: 0 auto 32px;
    background: var(--dark);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.keyboard-key {
    width: 48px;
    height: 48px;
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.keyboard-key.highlight {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary-light);
    box-shadow: 0 0 12px rgba(13,148,136,0.5);
}

.keyboard-key.home { border-bottom: 3px solid var(--accent); }
.keyboard-key.wide { width: 80px; }
.keyboard-key.wider { width: 120px; }
.keyboard-key.space { width: 280px; }

/* Guide */
.guide-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}

.guide-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--light);
}
.guide-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.guide-section h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 24px; }
.guide-section h3 { font-size: 1.3rem; color: var(--dark); margin: 32px 0 16px; }
.guide-section p { color: var(--gray); margin-bottom: 16px; }
.guide-section ul, .guide-section ol { color: var(--gray); margin-left: 24px; margin-bottom: 16px; }
.guide-section li { margin-bottom: 8px; }

/* FAQ */
.faq-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.faq-category-link {
    padding: 10px 20px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--gray);
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}
.faq-category-link:hover { color: var(--primary); transform: translateY(-2px); }

.faq-section { margin-bottom: 48px; }
.faq-section-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gray);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); color: var(--primary); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 24px 24px; color: var(--gray); line-height: 1.7; }

/* Forms */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 150px; resize: vertical; }

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 20px; text-align: left; }
th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
th:first-child { border-radius: var(--radius-lg) 0 0 0; }
th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
td { border-bottom: 1px solid var(--light); color: var(--gray); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(13,148,136,0.02); }

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.footer-brand p { margin-top: 16px; line-height: 1.7; }
.footer-links h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom p { font-size: 0.9rem; }

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--light);
}
.breadcrumbs-content { max-width: 1200px; margin: 0 auto; font-size: 0.9rem; }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--gray-light); margin: 0 8px; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 60px 24px;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-content { padding: 28px; }
.blog-meta { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.blog-title { font-size: 1.25rem; font-weight: 600; color: var(--dark); margin-bottom: 12px; line-height: 1.4; }
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.blog-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.blog-link:hover { gap: 10px; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Utilities */
.text-center { text-align: center; }
.text-gray { color: var(--gray); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.hidden { display: none; }

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links a { padding: 14px 20px; display: block; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.2rem; }
    section { padding: 60px 20px; }
    .section-header h2 { font-size: 1.8rem; }
    .typing-area, .practice-area, .guide-content { padding: 24px; }
    .game-area { height: 300px; }
    .keyboard-key { width: 32px; height: 32px; font-size: 0.7rem; }
    .keyboard-key.wide { width: 48px; }
    .keyboard-key.wider { width: 64px; }
    .keyboard-key.space { width: 160px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .btn-group { flex-direction: column; align-items: center; }
    .page-header h1 { font-size: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .card-grid, .lessons-grid { grid-template-columns: 1fr; }
    .game-header { flex-direction: column; text-align: center; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
}
