* {
    max-width: 100%;
}

.chest {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.25s;
    width: 80%;
}

.chest:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.chest-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.chest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: auto;
    width: 100%;
    max-width: 1000px;
}

.crate-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-size: 1.2em;
}

.chest p {
    min-height: 40px;
    font-size: 14px;
}

input[type="submit"] {
    padding: 12px;
    width: 100%;
    color: white;
    background: linear-gradient(135deg, #5f7cff, #6c7ae0);
    border-radius: 10px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(95,124,255,0.4);
}

@media (max-width: 768px) {
    .chest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .chest-grid {
        grid-template-columns: 1fr;
    }

    .crate-header {
        font-size: 1em;
        padding: 15px;
    }


    input[type="submit"] {
        font-size: 15px;
        padding: 10px;
    }

    .chest {
        margin: auto;
    }
}

html, body {
    overflow-x: hidden;
}
