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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background-color: #0f1420;
    overflow: hidden;
    position: relative;
}

.game-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #151b2d;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
}

.title-btn {
    background-color: #2c365e;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 54, 94, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.sparkle {
    color: #ffd700;
}

.title-btn:hover {
    transform: scale(1.05);
    background-color: #3a457a;
    box-shadow: 0 6px 16px rgba(44, 54, 94, 0.4);
}

.title-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 54, 94, 0.2);
}

.game-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #8b95af;
    font-size: 1.2rem;
}

#timer, #next-number {
    background-color: #1a2235;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

#start-btn {
    background-color: #2c365e;
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 54, 94, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#start-btn:hover {
    background-color: #3a457a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 54, 94, 0.4);
}

#start-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 54, 94, 0.2);
}

#start-btn:disabled {
    background-color: #2c365e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

#play-area {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 1rem;
}

.number {
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: #2c365e;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.number:hover {
    background-color: #3a457a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.number:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.number.found {
    background-color: #2d5a4c;
    color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
    animation: pulse 0.5s ease-out;
    cursor: default;
    transform: none;
}

.number.success {
    animation: pulse 0.5s ease-out;
}

.number.error {
    background-color: #5a2d2d;
    color: #de4a4a;
    animation: shake 0.5s;
}

.number.hint {
    animation: gentleShake 1s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(59, 91, 219, 0.5);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-4px); }
    30% { transform: translateX(4px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    85% { transform: translateX(4px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 