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

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 720px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid #334155;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #38bdf8;
}

p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #94a3b8;
}

button {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background-color: #059669;
    transform: scale(1.05);
}

/* Игровой интерфейс */
.hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(15, 23, 42, 0.8);
    z-index: 10;
}

#game-field {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Корзинка */
#basket {
    position: absolute;
    bottom: 20px;
    left: calc(50% - 30px);
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* Падающие объекты */
.falling-item {
    position: absolute;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -50px;
}