body {
    background-color: #000;
    font-family: 'Roboto Slab', serif;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

audio {
    display: none;
}

#game {
    display: none;
    text-align: center;
    height: 100vh;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
    padding: 2vh 0;
}

#top {
    width: 100%;
    height: 20vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo-container {
    z-index: 5;
}

#logo {
    height: 20vh;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

#levels {
    position: absolute;
    right: 20px;
    top: 20px;
    list-style: none;
    margin: 0;
    padding: 15px;
    color: #ff9900;
    text-align: right;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    border: 1px solid #444;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    width: 240px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#levels li {
    padding: 2px 10px;
    border-radius: 4px;
    color: #ccc;
    line-height: 1.3;
}

.active {
    color: #fff !important;
    background-color: #ff9900;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

#game-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

#options {
    width: 100%;
    margin-bottom: 2vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

.options-group {
    display: flex;
    gap: 20px;
}

#money {
    font-size: 2em;
    font-weight: bold;
    color: #2ecc71;
    background: rgba(0,0,0,0.8);
    padding: 5px 20px;
    border-radius: 10px;
    border: 1px solid #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

#question-box {
    background: linear-gradient(180deg, #000 0%, #111 100%);
    width: 100%;
    padding: 30px;
    font-size: 1.6em;
    border: 3px solid #fff;
    border-radius: 40px;
    color: white;
    box-shadow: 0 0 25px rgba(0,0,0,0.9), inset 0 0 50px rgba(0,0,0,0.8);
    position: relative;
    z-index: 10;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 2vh;
}

.big-text {
    color: #FF7E00;
    font-size: 1.2em;
    margin-right: 15px;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

#answer-box {
    width: 100%;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 15px; 
}

.answer {
    width: 48%; 
    padding: 15px 20px;
    border: 2px solid #888;
    border-radius: 40px;
    background: linear-gradient(90deg, #000000 0%, #0d0d42 50%, #000000 100%);
    color: white;
    font-size: 1.3em;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box; 
    overflow: hidden; 
}

.answer span[data-bind] {
    position: relative;
    z-index: 2;
}

.answer:hover {
    background: linear-gradient(90deg, #cc6600 0%, #ff9900 50%, #cc6600 100%);
    border-color: #fff;
    color: black; 
}

.answer:hover .big-text {
    color: black !important;
}

.options-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ccc;
    background: radial-gradient(circle, #333 0%, #000 100%);
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.options-button:hover {
    transform: scale(1.1);
    border-color: #ff9900;
    color: #ff9900;
}

.options-button.used {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
    border-color: #555;
    color: #555;
    position: relative;
}

.options-button.used::after {
    content: 'X';
    position: absolute;
    color: red;
    font-size: 40px;
    font-weight: bold;
}

#pre-start {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#start-btn {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FF7E00 0%, #ffcc00 100%);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 20px rgba(255, 126, 0, 0.6);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    transition: all 0.3s;
}

#start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 70px rgba(0,0,0,0.9), 0 0 30px rgba(255, 126, 0, 0.8);
}

#game-over {
    display: none;
    font-size: 4em;
    font-weight: bold;
    color: white;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 0 0 20px red;
    z-index: 2000;
    background: rgba(0,0,0,0.95);
    padding: 50px;
    border-radius: 20px;
}

#restart-btn {
    margin-top: 30px;
    font-size: 0.4em;
    background: #FF7E00;
    color: black;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    border: 3px solid white;
    transition: all 0.2s;
    text-shadow: none;
}

#restart-btn:hover {
    background: white;
    color: #FF7E00;
}

#joker-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: white;
    padding: 30px;
    border: 2px solid #FF7E00;
    border-radius: 15px;
    width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 126, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

#modal-title {
    color: #FF7E00;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin: 0;
}

#modal-body {
    margin-bottom: 10px; 
    line-height: 1.5;
}

#modal-close {
    background: #FF7E00;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    align-self: center; 
    margin-top: 10px;
}

.audience-bar {
    position: absolute;
    left: 0; 
    top: 0;
    bottom: 0;
    background-color: rgba(46, 204, 113, 0.6); 
    width: 0%;
    transition: width 1s ease-out;
    z-index: 1;
    pointer-events: none;
}

.percentage-label {
    position: absolute;
    right: 20px;
    color: #2ecc71;
    font-weight: bold;
    font-size: 0.9em;
    z-index: 2;
}