* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

h1 {
    text-align: center;
    background: linear-gradient(45deg, #1a73e8, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.settings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.setting-group:hover {
    transform: translateY(-2px);
}

label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #1a73e8;
}

select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
}

.info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    background: rgba(26,115,232,0.1);
    padding: 15px;
    border-radius: 10px;
}

.word-display {
    font-size: 28px;
    text-align: center;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 12px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #2c3e50;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

input {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin: 20px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
}

button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    background: linear-gradient(45deg, #1a73e8, #4285f4);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: linear-gradient(45deg, #ccc, #999);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results, .statistics {
    margin-top: 30px;
    padding: 25px;
    background: rgba(248,249,250,0.9);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.results h2, .statistics h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.results-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.result-item, .stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.result-item:hover, .stat-item:hover {
    transform: translateY(-2px);
}

.result-item p, .stat-item h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-item span, .stat-item span {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(45deg, #1a73e8, #4285f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    .settings {
        grid-template-columns: 1fr;
    }
    
    .results-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .word-display {
        font-size: 24px;
        padding: 20px;
    }
    
    input {
        padding: 15px;
        font-size: 16px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results, .statistics {
    animation: fadeIn 0.5s ease-out;
}