body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #1F4E66;
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 40%, #dbeff8 100%);
}

/* HEADER & CONTROLS */
.subtitle {
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #1F4E66;
    margin-bottom: 5px; 
}
.header {
    margin-top: 16px;
    text-align: center;
}
.header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 16px;
}
.controls {
    margin-top: 15px;
    text-align: center;
    margin-bottom: 5px; 
}
.reset-btn {
    padding: 8px 18px;
    background: #FFB46A;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: #1F4E66;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}
.reset-btn:hover {
    filter: brightness(1.08);
}

/* PAGE GRID */
.page-grid {
    display: grid;
    grid-template-columns: 0.5fr 1.3fr 0.7fr;
    gap: 30px;
    padding: 20px 40px 30px 40px;
    align-items: start;      /* opzionale, ma aiuta */
    margin-top: 20px;        /* un po’ di aria sopra, regola a gusto */
}


.col {
    display: flex;
    flex-direction: column;
}
.col-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.col-right {
    display: flex;
    justify-content: flex-start;
}

/* INFO BOX */
.info-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    width: 260px;
    margin-right: auto;
    margin-left: 20px;
}
.info-box img.logo {
    max-width: 120px;
    display: block;
    margin: 10px auto 6px auto;
}
.info-box .branding-powered {
    font-size: 13px;
    color: #1F4E66;
    text-align: center;
}

/* ARENA */
.arena {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

/* SLOT */
.slot {
    width: 420px;
    height: 520px;
    border-radius: 12px;
    border: 3px solid #FFB46A;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.slot:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.slot-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
}
.slot-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.center-label {
    font-size: 34px;
    font-weight: bold;
}

/* UPLOAD CONTROLS */
.upload-controls {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.upload-btn {
    padding: 6px 14px;
    background: #FFB46A;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #1F4E66;
}
.upload-message {
    margin-top: 8px;
    font-size: 14px;
}

/* WINNER ANIMATION */
.winner-card {
    border: 5px solid #FFB46A !important;
    animation: zoomWinner 1s forwards;
}
@keyframes zoomWinner {
    from { transform: scale(1); }
    to   { transform: scale(1.25); }
}
