:root {
    --dofus-gold: #ffcc00;
    --dofus-dark: #2c3e50;
    --christmas-red: #c0392b;
    --christmas-green: #27ae60;
    --parchment-bg: #f4e4bc;
    --text-color: #4a3b2a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a0b0b 0%, #2c3e50 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Effet de neige (Snow Effect) */
.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 1px #000;
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

@keyframes snowflakes-fall {
    0% { top: -10%; }
    100% { top: 100%; }
}

@keyframes snowflakes-shake {
    0% { transform: translateX(0px); }
    50% { transform: translateX(80px); }
    100% { transform: translateX(0px); }
}

.snowflake:nth-of-type(0) { left: 1%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(1) { left: 10%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 6s, 0.5s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 3s, 1.5s; }

/* Conteneur principal du tirage */
.container {
    background-color: var(--parchment-bg);
    border: 4px solid var(--dofus-gold);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3), inset 0 0 50px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 1;
}

h1 {
    color: var(--christmas-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.subtitle {
    color: var(--dofus-dark);
    font-weight: bold;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 2px solid #c7b299;
    background: #fffdf5;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--dofus-gold);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.1s, box-shadow 0.1s;
}

button:active {
    transform: scale(0.98);
}

.btn-add {
    background-color: var(--christmas-green);
    color: white;
    box-shadow: 0 4px 0 #1e8449;
}

.btn-draw {
    background-color: var(--christmas-red);
    color: white;
    font-size: 1.2rem;
    padding: 15px 40px;
    margin-top: 20px;
    box-shadow: 0 4px 0 #922b21;
    width: 100%;
}

.participants-list {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #c7b299;
    border-radius: 5px;
    padding: 10px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
}

.participant-item {
    padding: 5px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-item:last-child {
    border-bottom: none;
}

.delete-btn {
    color: var(--christmas-red);
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

/* Affichage du gagnant */
.winner-display {
    margin-top: 20px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dofus-gold);
    text-shadow: 1px 1px 0 #000;
    background: var(--dofus-dark);
    border-radius: 5px;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s;
}

.winner-display.show {
    opacity: 1;
}

.status-panel {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--dofus-dark);
}

.winners-list-container {
    margin-top: 30px;
    border-top: 2px solid var(--dofus-gold);
    padding-top: 10px;
}

.winners-list-container h3 {
    color: var(--dofus-dark);
    margin-bottom: 10px;
}

.decoration {
    font-size: 2rem;
    margin: 0 10px;
}
