body {
    font-family: 'Heebo', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #FAF5EB 0%, #FCE4EC 50%, #E0BBE4 100%);
    color: #4A4E69;
    margin: 0;
    direction: rtl;
    text-align: center;
    font-size: 1em;
}

.container {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 680px;
    width: 95%;
    position: relative;
    margin-bottom: 20px;
}

h1 {
    color: #E0BBE4;
    margin-bottom: 35px;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #957DAD;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.screen {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.screen.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.player-input-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

#playerNameInput {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    background-color: #EEEEEE;
    color: #4A4E69;
    width: 60%;
    max-width: 350px;
}

.gender-selection {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 1.1em;
    color: #4A4E69;
}

.gender-selection label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.gender-selection input[type="radio"] {
    margin-left: 8px;
    transform: scale(1.3);
    accent-color: #957DAD;
}

#addPlayerBtn {
    background-color: #E0BBE4;
    color: #4A4E69;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.2s ease;
}

#addPlayerBtn:hover {
    background-color: #957DAD;
    color: #FFFFFF;
}

.players-list {
    background-color: #EEEEEE;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    min-height: 100px;
    max-height: 250px;
    overflow-y: auto;
    color: #4A4E69;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-end;
}

.player-tag {
    background-color: #957DAD;
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.player-tag .remove-player {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.4em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-right: -4px;
    transition: transform 0.1s ease;
}

.player-tag .remove-player:hover {
    transform: scale(1.15);
}

.primary-btn {
    background-color: #E0BBE4;
    color: #4A4E69;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.primary-btn:hover:not(:disabled) {
    background-color: #957DAD;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.primary-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.music-selection {
    margin-top: 35px;
    margin-bottom: 35px;
}

#musicSelect {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    background-color: #EEEEEE;
    color: #4A4E69;
    width: 60%;
    max-width: 350px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234A4E69'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' fill-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 1.8em;
    padding-right: 50px;
}

#musicSelect:focus {
    outline: none;
    box-shadow: 0 0 0 4px #957DAD;
}

.parcel-area {
    margin-top: 40px;
}

.parcel-area p {
    font-size: 1.6em;
    color: #957DAD;
    margin-bottom: 15px;
}

.current-player-name {
    font-size: 3.5em;
    font-weight: bold;
    color: #4A4E69;
    min-height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.03); opacity: 0.95; }
}

.game-controls {
    margin-top: 50px;
}

.control-btn {
    background-color: #E0BBE4;
    color: #4A4E69;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.control-btn:hover {
    background-color: #957DAD;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.question-box {
    background-color: #EEEEEE;
    color: #4A4E69;
    border-radius: 15px;
    padding: 40px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
    margin-top: 25px;
}

.question-box p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #957DAD;
}

.selected-player-name {
    font-size: 2.5em;
    font-weight: bold;
    color: #E0BBE4;
    margin-bottom: 30px;
}

.gift-icon {
    width: 80px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease-out;
}

.gift-icon.active {
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

.hidden-icon {
    display: none;
}

.question-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #4A4E69;
    margin-bottom: 40px;
    line-height: 1.5;
}

#game-over-screen h2 {
    color: #E0BBE4;
    font-size: 3em;
}

#game-over-screen p {
    font-size: 1.6em;
    color: #957DAD;
    margin-bottom: 50px;
}

.prize-message {
    font-size: 1.4em;
    color: #957DAD;
    margin-top: 30px;
    margin-bottom: 10px;
}

.virtual-prize-display {
    font-size: 2.2em;
    font-weight: bold;
    color: #E0BBE4;
    margin-bottom: 40px;
    min-height: 1.5em; /* Ensure consistent height even if prize is short */
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.illustration-container {
    margin-bottom: 25px;
    text-align: center;
}

.setup-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #4A4E69;
    opacity: 0.7;
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

footer a {
    color: #957DAD;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}