body {
    margin: 0;
    padding: 0;
    background-color: #050716;
    color: #E7E2CE;
    font-family: "Nova Mono", monospace;
    overflow: hidden;
    min-height: 100vh;
}

.stars {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(white, rgba(255,255,255,.1) 1px, transparent 20px);
    background-size: 300px 300px;
    z-index: 1;
    opacity: 0.4;
}

#stage-3d-viewport {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

#dialogue-box-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1100px;
    height: 240px;
    background: rgba(11, 15, 43, 0.85);
    border: 2px solid #5c3fa1;
    box-shadow: 0 0 25px rgba(92, 63, 161, 0.4);
    border-radius: 8px;
    padding: 30px;
    box-sizing: border-box;
    z-index: 10;
}

#speaker-badge {
    position: absolute;
    top: -25px;
    left: 40px;
    background: #5c3fa1;
    color: #FFFFFF;
    font-family: "Nova Round", system-ui;
    font-size: 22px;
    padding: 6px 24px;
    border-radius: 4px;
    border: 1px solid #8e4cd6;
    letter-spacing: 1px;
}

#dialogue-text {
    font-size: 24px;
    line-height: 1.6;
    margin-top: 10px;
    color: #E2DFD2;
}

#advance-hint {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 14px;
    color: #8e4cd6;
    animation: flash 1.5s infinite;
}

#choices-overlay {
    position: absolute;
    right: 40px;
    top: -190px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(7, 9, 28, 0.9);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #311a5e;
}

.choice-prompt-row {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.choice-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 140px;
    border: 1px solid transparent;
}

.hidden {
    display: none !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    color: #000;
}
#dialogue-box-container {
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
}

#dialogue-box-container.fade-out {
    opacity: 0;
    transform: translate(-50%, 30px);
    pointer-events: none;
}
.yellow { background: #FFD166; }
.blue   { background: #118AB2; color: #fff; }
.red    { background: #EF476F; color: #fff; }
.green  { background: #06D6A0; }

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}