:root { 
    --bg-color: #000; 
    --accent-rgb: 167, 213, 231; 
    --punish-rgb: 255, 126, 121; 
    --main-color: #fff;
    --current-rgb: var(--accent-rgb);
}

html, body { 
    background: var(--bg-color); 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    font-family: 'Courier New', monospace; 
    color: var(--main-color); 
}

#coreBackground { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: 0; 
    background: #000; 
    display: block; 
}

.container { 
    position: relative; 
    z-index: 10; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
    pointer-events: none; 
    text-align: center; 
}

.ui-element { 
    pointer-events: auto; 
    width: 85%; 
    max-width: 450px; 
}

#diceContainer { 
    margin-bottom: 10px; 
    cursor: pointer; 
    opacity: 0.6; 
    transition: all 0.3s; 
}

#diceContainer:hover { 
    opacity: 1; 
    transform: scale(1.1); 
}

#diceContainer.disabled { 
    cursor: not-allowed; 
    opacity: 0.1; 
    filter: grayscale(1); 
    pointer-events: none; 
}

.dice-icon { 
    font-size: 2rem; 
    color: rgba(var(--accent-rgb), 1); 
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5); 
    transition: color 0.4s; 
}

#questionDisplay { 
    min-height: 100px; 
    margin-bottom: 25px; 
    font-size: 1.1rem; 
    color: rgba(var(--accent-rgb), 1); 
    line-height: 1.5; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.8s ease-in-out, color 0.4s; 
}

#uploadContainer { 
    display: none; 
    margin-bottom: 40px; 
    flex-direction: column; 
    align-items: center; 
}

#flowerClock { 
    width: 140px; 
    height: 140px; 
    margin-bottom: 30px; 
    position: relative; 
    animation: rotateClock 10s linear infinite; 
}

@keyframes rotateClock { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

.petal { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 8px; 
    height: 30px; 
    background: rgba(var(--current-rgb), 0.1); 
    border-radius: 4px; 
    transform-origin: center 0px; 
    animation: petalPulse 1.8s ease-in-out infinite; 
    transition: background 0.4s ease; 
}

@keyframes petalPulse { 
    0%, 100% { opacity: 0.1; background: rgba(var(--current-rgb), 0.1); } 
    50% { opacity: 1; background: rgba(var(--current-rgb), 1); box-shadow: 0 0 15px rgba(var(--current-rgb), 0.8); } 
}

#progressBar { 
    width: 0%; 
    height: 100%; 
    background: rgba(var(--accent-rgb), 1); 
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.8); 
    transition: width 0.1s linear, background 0.4s ease; 
}

#progressBar.punishment { 
    background: rgba(var(--punish-rgb), 1) !important; 
}

#timerText { 
    color: rgba(var(--accent-rgb), 1); 
    font-size: 0.9rem; 
    margin-top: 15px; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    transition: color 0.4s; 
}

.timer-prominent { 
    font-size: 2rem !important; 
    color: #fff !important; 
}

.input-wrapper { 
    display: flex; 
    gap: 10px; 
    width: 100%; 
    margin-bottom: 10px; 
}

input[type="text"] { 
    flex: 1; 
    background: rgba(0,0,0,0.85); 
    border: none; 
    border-bottom: 2px solid #333; 
    color: #fff; 
    padding: 15px; 
    font-size: 1.2rem; 
    text-align: center; 
    outline: none; 
    text-transform: uppercase; 
    box-sizing: border-box; 
}

button { 
    background: rgba(0,0,0,0.9); 
    border: 1px solid #fff; 
    color: #fff; 
    padding: 15px; 
    width: 100%; 
    letter-spacing: 3px; 
    cursor: pointer; 
    text-transform: uppercase; 
    font-weight: bold; 
    transition: all 0.3s; 
}

button:hover:not(:disabled) { 
    background: #fff; 
    color: #000; 
}

button:disabled { 
    opacity: 0.1; 
    cursor: not-allowed; 
}

/* AGB / PRIVACY STYLES */
.privacy-wrapper {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 15px; 
    cursor: pointer; 
    margin: 20px 0; 
    font-size: 0.75rem; 
    color: #666;
    transition: color 0.4s;
}

#privacyCheck {
    transform: scale(1.6);
    cursor: pointer;
    accent-color: rgba(var(--current-rgb), 1);
}

.privacy-link {
    color: #666;
    text-decoration: underline;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: #fff;
}

#msg { 
    margin-top: 20px; 
    font-size: 1.1rem; 
    color: rgba(var(--accent-rgb), 1); 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    line-height: 1.5; 
    transition: color 0.4s; 
}

#msg.punishment, #questionDisplay.punishment, #timerText.punishment, .privacy-wrapper.punishment { 
    color: rgba(var(--punish-rgb), 1) !important; 
}

/* DOS TERMINAL POPUP */
#agbPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    display: none; /* Initial versteckt */
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    border: 4px double rgba(var(--accent-rgb), 0.3);
}

.dos-text {
    color: rgba(var(--accent-rgb), 1);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    line-height: 1.6;
    letter-spacing: 1px;
    animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.7; text-shadow: 0 0 5px rgba(var(--accent-rgb), 0.2); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(var(--accent-rgb), 0.6); }
}

.dos-header {
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.5);
    margin-bottom: 30px;
    padding-bottom: 10px;
    font-size: 1.5rem;
}

.dos-content {
    flex-grow: 1;
    font-size: 1rem;
    white-space: pre-wrap; /* Bewahrt Zeilenumbrüche wie im Terminal */
}

.dos-close {
    margin-top: 40px;
    background: transparent;
    border: 1px solid rgba(var(--accent-rgb), 1);
    color: rgba(var(--accent-rgb), 1);
    padding: 10px 20px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s;
}

.dos-close:hover {
    background: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

/* Scrollbar für das Terminal-Feeling */
#agbPopup::-webkit-scrollbar { width: 8px; }
#agbPopup::-webkit-scrollbar-track { background: #000; }
#agbPopup::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.3); }

/* SCREEN SHAKE ANIMATION */
.shake {
    animation: shakeEffect 0.4s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shakeEffect {
    10%, 90% { transform: translate3d(-3px, -2px, 0); }
    20%, 80% { transform: translate3d(5px, 3px, 0); }
    30%, 50%, 70% { transform: translate3d(-8px, -4px, 0); }
    40%, 60% { transform: translate3d(8px, 2px, 0); }
}