:root {
    --dark-bg: #0a0a0f;
    --dark-card: #111118;
    --dark-border: #22222a;
    --light-text: #f0f0ff;
    --muted-text: #a0a0c0;
    --yellow-primary: #ffd700;
    --yellow-muted: rgba(255, 215, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    line-height: 1.5;
    font-weight: 300;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.error-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.error-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    z-index: -1;
}

.error-header {
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.back-home {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    cursor: pointer;
}

.back-home:hover {
    color: var(--yellow-primary);
}

.error-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    transition: opacity 0.5s ease;
}

.logo-container {
    margin-bottom: 2rem;
}

.main-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.error-number {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--yellow-primary), #ffed4e, var(--yellow-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.error-text {
    margin-bottom: 3rem;
    max-width: 500px;
}

.error-text h1 {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--light-text);
    letter-spacing: -0.01em;
}

.error-description {
    font-size: 1.1rem;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.secret-hint {
    opacity: 0.4;
    font-size: 0.85rem;
    margin-top: 1rem;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.back-button {
    display: inline-block;
    background: transparent;
    color: var(--light-text);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 1px solid var(--yellow-muted);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    cursor: pointer;
}

.back-button:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--light-text);
    border-color: var(--yellow-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-button:hover .button-icon {
    transform: translateX(3px);
}

.error-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.5s ease;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 0.25rem;
}

.footer-subtext {
    font-size: 0.8rem;
    color: var(--muted-text);
    opacity: 0.7;
}

.dvd-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
}

.dvd-logo {
    position: absolute;
    width: 120px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    transition: filter 0.3s ease;
    z-index: 101;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.dvd-logo:hover {
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
}

.dvd-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 102;
}

.dvd-btn {
    background: rgba(17, 17, 24, 0.9);
    color: var(--light-text);
    border: 1px solid var(--yellow-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.dvd-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--yellow-primary);
    transform: translateY(-2px);
}

.stop-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.stop-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.speed-btn {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.speed-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
}

.color-impact {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    pointer-events: none;
    animation: impactExpand 0.8s ease-out forwards;
}

.speed-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 1000;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    min-width: 150px;
}

@keyframes impactExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    }
}

.dvd-logo {
    animation: logoGlow 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .error-header {
        padding: 1.5rem;
    }
    
    .error-main {
        padding: 1.5rem;
    }
    
    .main-logo {
        width: 120px;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-text h1 {
        font-size: 1.8rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .back-button {
        padding: 0.875rem 2rem;
        width: 100%;
        max-width: 300px;
    }
    
    .dvd-logo {
        width: 100px;
    }
    
    .dvd-controls {
        bottom: 1rem;
        right: 1rem;
        flex-direction: column;
    }
    
    .dvd-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 5rem;
    }
    
    .error-text h1 {
        font-size: 1.5rem;
    }
    
    .main-logo {
        width: 100px;
    }
    
    .dvd-logo {
        width: 80px;
    }
}