body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(180deg, #0b3d2e, #0f5132);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #fff;
}

/* Effetto neve leggero */
body::before {
    content: "❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄";
    position: fixed;
    top: 10px;
    width: 100%;
    text-align: center;
    opacity: 0.2;
    pointer-events: none;
}

.container {
    text-align: center;
    background: #ffffff;
    color: #333;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    padding: 25px;
    width: 420px;
    margin-bottom: 15px;
    position: relative;
}

/* Decorazione natalizia */
.container::before {
    content: "🎄";
    position: absolute;
    top: -18px;
    left: 15px;
    font-size: 28px;
}

h2 {
    color: #c62828;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    margin-top: 10px;
    color: #2e7d32;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

td {
    width: 9%;
    height: 34px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ccc;
    font-size: 16px;
    font-weight: bold;
    background-color: #fdfdfd;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 6px;
}

td:hover {
    background-color: #e8f5e9;
}

td.active {
    background-color: #c62828;
    color: #fff;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.4);
}

button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #c62828, #b71c1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

input, select {
    width: 85%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    text-align: center;
    background-color: #fafafa;
}

#message {
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32;
    margin-top: 10px;
}

/* ====== SOLO LAYOUT TABELLONE ====== */

.tabellone-layout {
    display: flex;
    gap: 20px;
    width: 95vw;
    max-width: 1100px;
    height: 90vh;
}

.left-panel {
    flex: 2;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scoreboard {
    background: #f1f8e9;
    border-radius: 10px;
    padding: 10px;
    color: #2e7d32;
    overflow-y: auto;
    max-height: 100%;
}

.scoreboard ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scoreboard li {
    padding: 6px 0;
    border-bottom: 1px dashed #c8e6c9;
}

.game-code {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 10px;
}

.settings-panel {
    display: none;
    margin-top: 10px;
    background: #f9fbe7;
    padding: 10px;
    border-radius: 8px;
}
