/* ============================================
   СТРАНИЦЫ ОШИБОК
   ============================================ */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #F093FB 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.error-container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 750px;
    width: 100%;
    padding: 40px 30px;
}

.error-code {
    font-size: 150px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.3);
    animation: errorCodePulse 3s ease-in-out infinite;
    position: relative;
}

.error-code::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: errorCodeGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes errorCodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes errorCodeGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.error-icon {
    font-size: 100px;
    margin-bottom: var(--space-6);
    animation: errorIconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes errorIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.error-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.error-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: var(--space-8);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.error-btn {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.error-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.error-btn:hover::before {
    left: 100%;
}

.error-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.error-btn:active {
    transform: translateY(0);
}

.error-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #667EEA;
    border-color: rgba(255, 255, 255, 0.95);
}

.error-btn-primary:hover {
    background: white;
    color: #764BA2;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   СТРАНИЦА ЗАГЛУШКИ - УЛУЧШЕННЫЙ ДИЗАЙН
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Темная тема (по умолчанию) */
.maint-page {
    min-height: 100vh;
    width: 100%;
    background: #0a0e27;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px 40px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.maint-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Светлая тема */
html:not(.dark-theme) .maint-page {
    background: #FFFFFF;
}

html:not(.dark-theme) .maint-page::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.04) 0%, transparent 50%);
}

/* Переключатель темы */
.maint-theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    color: #667EEA;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 20px;
}

.maint-theme-toggle:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.maint-theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

html:not(.dark-theme) .maint-theme-toggle {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.15);
    color: #4F46E5;
}

html:not(.dark-theme) .maint-theme-toggle:hover {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.maint-theme-toggle .theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.maint-theme-toggle .theme-icon-dark {
    display: none;
}

html:not(.dark-theme) .maint-theme-toggle .theme-icon-light {
    display: none;
}

html:not(.dark-theme) .maint-theme-toggle .theme-icon-dark {
    display: inline-block;
}

/* Логотип с анимацией */
.maint-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.maint-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    animation: logoFadeIn 1s ease-out;
}

.logo-letter {
    display: inline-block;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #F093FB 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradientShift 3s ease infinite, letterFloat 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo-letter:nth-child(1) { animation-delay: 0s; }
.logo-letter:nth-child(2) { animation-delay: 0.1s; }
.logo-letter:nth-child(3) { animation-delay: 0.2s; }
.logo-letter:nth-child(4) { animation-delay: 0.3s; }
.logo-letter:nth-child(5) { animation-delay: 0.4s; }
.logo-letter:nth-child(6) { animation-delay: 0.5s; }
.logo-letter:nth-child(7) { animation-delay: 0.6s; }
.logo-letter:nth-child(8) { animation-delay: 0.7s; }
.logo-letter:nth-child(9) { animation-delay: 0.8s; }
.logo-letter:nth-child(10) { animation-delay: 0.9s; }
.logo-letter:nth-child(11) { animation-delay: 1s; }
.logo-letter:nth-child(13) { animation-delay: 1.1s; }
.logo-letter:nth-child(14) { animation-delay: 1.2s; }
.logo-letter:nth-child(15) { animation-delay: 1.3s; }

.logo-letter-large {
    font-size: 1.3em;
    vertical-align: baseline;
}

.logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667EEA, #F093FB);
    border-radius: 50%;
    margin: 0 4px;
    animation: dotPulse 2s ease-in-out infinite, dotGlow 3s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(102, 126, 234, 0.8), 0 0 24px rgba(240, 147, 251, 0.4);
    position: relative;
    vertical-align: middle;
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

/* Оконтовка для "pro" */
.logo-pro {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    margin-left: 4px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.15));
    border: 2px solid;
    border-image: linear-gradient(135deg, #667EEA, #764BA2, #F093FB) 1;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: proBadgeGlow 3s ease-in-out infinite;
}

.logo-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: proShine 3s ease-in-out infinite;
}

.logo-pro .logo-letter {
    position: relative;
    z-index: 1;
}

html:not(.dark-theme) .logo-pro {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
    border-image: linear-gradient(135deg, #4F46E5, #6366F1, #8B5CF6) 1;
}

html:not(.dark-theme) .logo-pro::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Светлая тема для логотипа */
html:not(.dark-theme) .logo-letter {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #8B5CF6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html:not(.dark-theme) .logo-dot {
    background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.9;
    }
}

@keyframes dotGlow {
    0%, 100% {
        box-shadow: 0 0 16px rgba(102, 126, 234, 0.8), 0 0 24px rgba(240, 147, 251, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 1), 0 0 32px rgba(240, 147, 251, 0.6), 0 0 40px rgba(118, 75, 162, 0.3);
    }
}


@keyframes proBadgeGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(102, 126, 234, 0);
        border-color: rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 0 30px rgba(240, 147, 251, 0.2);
        border-color: rgba(102, 126, 234, 0.8);
    }
}

@keyframes proShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Таймер над игрой */
.maint-timer-top {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

html:not(.dark-theme) .maint-timer-top {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.15);
}

.maint-timer-top .maint-timer-label {
    margin-bottom: 12px;
}

.maint-timer-top .maint-timer-display {
    margin-bottom: 12px;
}

.maint-timer-top .maint-timer-time {
    font-size: 24px;
}

.maint-timer-top .maint-timer-progress {
    height: 5px;
}

/* Контейнер игры */
.maint-game-container {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

#typing-challenge-game {
    display: block;
    width: 100%;
    height: auto;
    background: #0a0e27;
    transition: background-color 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html:not(.dark-theme) #typing-challenge-game {
    background: #FFFFFF;
}

/* Футер */
.maint-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    margin-top: 40px;
}

.maint-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.maint-status-icon {
    font-size: 20px;
    color: #667EEA;
    animation: iconRotate 8s linear infinite;
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-status {
    color: rgba(0, 0, 0, 0.7);
}

html:not(.dark-theme) .maint-status-icon {
    color: #4F46E5;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Таймер - новый дизайн */
.maint-timer {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

html:not(.dark-theme) .maint-timer {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.15);
}

.maint-timer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.maint-timer-label i {
    font-size: 14px;
    color: #667EEA;
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-timer-label {
    color: rgba(0, 0, 0, 0.6);
}

html:not(.dark-theme) .maint-timer-label i {
    color: #4F46E5;
}

.maint-timer-display {
    margin-bottom: 15px;
}

.maint-timer-time {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 4px;
    color: #667EEA;
    line-height: 1;
    text-align: center;
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-timer-time {
    color: #4F46E5;
}

.maint-timer-progress {
    width: 100%;
    height: 6px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 3px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

html:not(.dark-theme) .maint-timer-progress {
    background: rgba(79, 70, 229, 0.1);
}

.maint-timer-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667EEA 0%, #764BA2 50%, #F093FB 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 1s linear, background-position 2s ease;
    animation: progressGradient 3s ease infinite;
}

html:not(.dark-theme) .maint-timer-progress-bar {
    background: linear-gradient(90deg, #4F46E5 0%, #6366F1 50%, #8B5CF6 100%);
    background-size: 200% 100%;
}

@keyframes progressGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Таблица лидеров на странице */
.maint-leaderboard {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

html:not(.dark-theme) .maint-leaderboard {
    background: rgba(79, 70, 229, 0.04);
    border-color: rgba(79, 70, 229, 0.1);
}

.maint-leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-leaderboard-header {
    color: rgba(17, 24, 39, 0.9);
}

.maint-leaderboard-header i {
    color: #F59E0B;
    font-size: 20px;
}

.maint-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maint-leaderboard-item {
    display: grid;
    grid-template-columns: 50px 1fr 120px 80px;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.maint-leaderboard-item:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateX(5px);
}

html:not(.dark-theme) .maint-leaderboard-item {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.1);
}

html:not(.dark-theme) .maint-leaderboard-item:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.maint-leaderboard-place {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-leaderboard-place {
    color: rgba(17, 24, 39, 0.8);
}

.maint-leaderboard-nickname {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-leaderboard-nickname {
    color: rgba(17, 24, 39, 0.95);
}

.maint-leaderboard-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #667EEA;
    text-align: right;
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-leaderboard-score {
    color: #4F46E5;
}

.maint-leaderboard-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-leaderboard-date {
    color: rgba(17, 24, 39, 0.6);
}

.maint-leaderboard-loading,
.maint-leaderboard-empty {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

html:not(.dark-theme) .maint-leaderboard-loading,
html:not(.dark-theme) .maint-leaderboard-empty {
    color: rgba(17, 24, 39, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
    .maint-page {
        padding: 30px 15px;
    }
    
    .maint-theme-toggle {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .maint-logo-text {
        font-size: 36px;
        gap: 1px;
    }
    
    .logo-letter {
        font-size: 36px;
    }
    
    .logo-dot {
        width: 6px;
        height: 6px;
    }
    
    .maint-timer-top {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .maint-timer-top .maint-timer-time {
        font-size: 20px;
    }
    
    .maint-game-container {
        width: 100%;
        padding: 0 10px;
    }
    
    #typing-challenge-game {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .maint-status {
        font-size: 16px;
    }
    
    .maint-leaderboard {
        padding: 15px;
    }
    
    .maint-leaderboard-item {
        grid-template-columns: 40px 1fr 80px;
        gap: 10px;
        padding: 10px;
    }
    
    .maint-leaderboard-date {
        display: none;
    }
    
    .maint-leaderboard-place {
        font-size: 12px;
    }
    
    .maint-leaderboard-nickname {
        font-size: 13px;
    }
    
    .maint-leaderboard-score {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .maint-page {
        padding: 20px 10px;
    }
    
    .maint-logo {
        margin-bottom: 20px;
    }
    
    .maint-logo-text {
        font-size: 28px;
    }
    
    .maint-game-container {
        width: 100%;
        padding: 0 5px;
        margin: 10px 0;
    }
    
    #typing-challenge-game {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 8px;
    }
    
    .maint-timer-top {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .maint-timer-top .maint-timer-time {
        font-size: 18px;
    }
    
    .maint-footer {
        margin-top: 20px;
    }
    
    .maint-status {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .maint-leaderboard {
        padding: 10px;
        margin-top: 15px;
    }
    
    .maint-leaderboard-header {
        font-size: 14px;
        padding: 8px;
    }
    
    .maint-leaderboard-item {
        grid-template-columns: 30px 1fr 60px;
        gap: 8px;
        padding: 8px;
        font-size: 12px;
    }
    
    .maint-leaderboard-place {
        font-size: 11px;
    }
    
    .maint-leaderboard-nickname {
        font-size: 12px;
    }
    
    .maint-leaderboard-score {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .maint-theme-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .maint-logo-text {
        font-size: 28px;
    }
    
    .logo-letter {
        font-size: 28px;
    }
    
    .maint-status {
        font-size: 14px;
    }
    
    .maint-timer-time {
        font-size: 24px;
        letter-spacing: 2px;
    }
}
