/* Main CSS Base Styles */
:root {
    /* Utility variables (not theme-dependent) */
    --border-radius: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Typography */


/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--theme-gradient-button-shine);
    transition: left 0.5s ease;
}

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

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}

.reset-btn {
    background: var(--theme-gradient-green-button);
    color: white;
    border: 1px solid var(--theme-green-strong);
    box-shadow: var(--theme-shadow-button) var(--theme-green-strong);
}

.reset-btn:hover {
    box-shadow: var(--theme-shadow-button-hover) var(--theme-green-stronger);
}

.quit-btn {
    background: var(--theme-gradient-red-button);
    color: white;
    border: 1px solid var(--theme-red-light);
    box-shadow: var(--theme-shadow-button) var(--theme-red-light);
}

.quit-btn:hover {
    box-shadow: var(--theme-shadow-button-hover) var(--theme-red-medium);
}

.back-to-menu-btn {
    background: var(--theme-gradient-gray-button);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-right: 15px;
}

.back-to-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--theme-gray-strong);
}

/* Accessibility Features */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible {
    outline: 2px solid var(--theme-accent-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --theme-text-primary: #ffffff;
        --theme-text-secondary: #ffffff;
        --theme-bg-glass: rgba(0, 0, 0, 0.9);
        --theme-border-glass: rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hide elements */
.hidden {
    display: none !important;
}
