:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f29;
    --bg-tertiary: #232936;
    --bg-hover: #2a3441;
    --border-color: #394046;
    --border-accent: #9263e8;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7d8590;
    --accent-purple: #8e5bea;
    --accent-light: #c9a4f1;
    --accent-orange: #f5a97f;
    --accent-red: #ed8796;
    --accent-mauve: #aa76e8;
    --accent-green: #5fcb74;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav .title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
    cursor: pointer;
}

.nav .menu {
    display: flex;
    gap: 30px;
}

.nav .menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav .menu a:hover {
    color: var(--accent-purple);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 12px;
    padding: 32px;
    margin-top: 100px;
}

.mdx-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtle {
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    font-style: italic;
}

.card-uwu {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-uwu:hover {
    transform: translateY(-2px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--bg-primary);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0 8px;
}

.button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button.danger {
    background: var(--accent-red);
    color: var(--bg-primary);
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-secondary);
}

select, input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--border-accent);
    background: var(--bg-hover);
}

.status {
    text-align: center;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 16px 0;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.status.info {
    border-color: var(--border-accent);
    color: var(--accent-light);
}

.status.success {
    border-color: #3a7e4a;
    color: #9be9a8;
}

.status.warning {
    border-color: #d4a24d;
    color: var(--accent-orange);
}

.color-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.correct {
    background: var(--accent-green);
}

.legend-color.present {
    background: var(--accent-orange);
}

.legend-color.absent {
    background: var(--bg-hover);
}

.attempt {
    margin-bottom: 16px;
}

.attempt .word-display {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin: 14px 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 10px;
    color: var(--text-primary);
}

.letter-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 10px;
    flex-wrap: wrap;
}

.letter-input {
    width: 58px;
    height: 58px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    display: grid;
    place-items: center;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.letter-input:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
}

.letter-input.correct {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
}

.letter-input.present {
    background: var(--accent-orange);
    color: var(--bg-primary);
    border-color: var(--accent-orange);
}

.letter-input.absent {
    background: var(--bg-hover);
    color: var(--text-muted);
    border-color: var(--border-color);
}

.stats.card-uwu {
    margin-top: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stat-item {
    background: var(--bg-tertiary);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-purple);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .nav .menu {
        gap: 20px;
    }

    .container {
        margin: 80px 20px 20px;
        padding: 24px;
    }

    .mdx-content {
        padding: 28px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .letter-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .nav .menu {
        flex-wrap: wrap;
        gap: 12px;
    }
}