body {
    background-color: #f9ffa5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 56px;
    color: #ff0000;
    text-align: center;
    margin-top: 32px;
}

.topItems {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: start;
}

.topItems > .item1Top,
.topItems > .item2Top,
.topItems > .item3Top {
    grid-row: 1;
    justify-self: center;
}

.topItems > .dropZone {
    grid-row: 2;
    justify-self: center;
    width: 240px;
    height: 88px;
    margin: 8px 0 0 0;
    border: 2px dashed #1976d2;
    border-radius: 14px;
    background: linear-gradient(45deg, #eaf6fe, #fff9e8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropZone {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.item1Top,
.item2Top,
.item3Top {
    font-size: 150px;
    margin: 0 16px;
}

.bottomItems {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-top: 154px; /* ← стало больше */
    flex-wrap: wrap;
}

.item1Bottom,
.item2Bottom,
.item3Bottom {
    position: static;
    font-size: 46px;
    color: rgb(61, 61, 255);
    margin: 16px 0;
    min-width: 120px;
    text-align: center;
}

#checkBtn {
    display: block;
    margin: 40px auto 0 auto;
    padding: 12px 48px;
    font-size: 28px;
    font-family: 'Courier New', Courier, monospace;
    color: #2196f3;
    background: #fffbe6;
    border: 2px solid #2196f3;
    border-radius: 32px;
    box-shadow: 0 2px 12px rgba(33,150,243,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 64px;
}

#checkBtn:hover {
    background: #2196f3;
    color: #fffbe6;
    border: 2px solid #1976d2;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(33,150,243,0.18);
}

#next {
    display: inline-block;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 18px 36px;
    font-size: 18px;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    background: #4ECDC4;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(78, 205, 196, 0.4);
    margin: 0 !important;
}

#next:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.6);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-prev {
    display: inline-block;
    padding: 18px 36px;
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    background: #87CEEB;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(135, 206, 235, 0.4);
}

.nav-prev:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.6);
}

.nav-back {
    display: inline-block;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    padding: 18px 36px;
    font-size: 18px;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    background: #FF6B6B;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.nav-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

/* Планшеты */
@media (max-width: 900px) {
    .text { font-size: 7vw; }
    .topItems, .bottomItems { gap: 6vw; }
    .item1Top, .item2Top, .item3Top { font-size: 12vw; }
    .item1Bottom, .item2Bottom, .item3Bottom { font-size: 5vw; min-width: 20vw; }
    #checkBtn { font-size: 4vw; padding: 2vw 8vw; border-radius: 6vw; }
    .nav-back { font-size: 3vw; padding: 2vw 4vw; }
    .nav-prev { font-size: 3vw; padding: 2vw 4vw; }
    #next { font-size: 3vw; padding: 2vw 4vw; }
}

/* Мобильные */
@media (max-width: 600px) {
    .text { font-size: 9vw; margin-top: 5vw; }
    .topItems, .bottomItems { flex-direction: column; gap: 4vw; margin-top: 4vw; }
    .item1Top, .item2Top, .item3Top { font-size: 16vw; }
    .item1Bottom, .item2Bottom, .item3Bottom { font-size: 7vw; min-width: 50vw; }
    #checkBtn { font-size: 6vw; padding: 3vw 10vw; border-radius: 8vw; }
    .nav-back { font-size: 4vw; padding: 2vw 3vw; bottom: 2vw; left: 2vw; }
    .nav-prev { font-size: 4vw; padding: 2vw 3vw; }
    #next { font-size: 4vw; padding: 2vw 3vw; right: 2vw; bottom: 2vw; }
}

.dropZone {
    width: 150px;
    height: 50px;
    border: 2px dashed #2196f3;
    margin: 10px auto;
    background: linear-gradient(45deg, #fffbe6, #e3f2fd);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
