* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #16213e 100%);
    color: white;
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(138, 89, 182, 0.8);
    letter-spacing: 2px;
}

.info-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.info-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Info Tooltip */
.info-tooltip {
    position: fixed;
    top: 80px;
    right: 40px;
    z-index: 101;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 15px;
    max-width: 350px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s;
    border: 1px solid rgba(138, 89, 182, 0.3);
}

.info-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.info-tooltip h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    color: #9b59b6;
}

.info-tooltip ul {
    list-style: none;
}

.info-tooltip li {
    margin: 10px 0;
    padding-left: 5px;
    font-size: 14px;
    line-height: 1.6;
}

/* Controls Panel */
.controls-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 20px;
    min-width: 280px;
    border: 1px solid rgba(138, 89, 182, 0.3);
    transition: opacity 0.3s;
}

.controls-panel h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 10px rgba(138, 89, 182, 0.8);
}

.control-btn {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: linear-gradient(135deg, rgba(138, 89, 182, 0.3), rgba(74, 144, 226, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(138, 89, 182, 0.5), rgba(74, 144, 226, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 89, 182, 0.4);
}

.btn-icon {
    font-size: 18px;
}

.control-group {
    margin: 20px 0;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ccc;
}

.control-group select,
.control-group input[type="range"] {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
}

.control-group input[type="range"] {
    padding: 0;
    cursor: pointer;
}

.control-group span {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: #9b59b6;
}

.achievement-counter {
    margin-top: 20px;
    padding: 15px;
    background: rgba(138, 89, 182, 0.2);
    border-radius: 10px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

.achievement-counter span {
    color: #4a90e2;
    font-weight: bold;
    font-size: 20px;
}

/* Journal */
.journal-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(138, 89, 182, 0.3);
    transition: opacity 0.3s;
}

.journal-header {
    padding: 15px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.journal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.journal-content {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s;
}

.journal-content.collapsed {
    max-height: 0;
}

.journal-input-area {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(138, 89, 182, 0.2);
}

#thoughtInput {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
    resize: vertical;
    min-height: 80px;
}

#thoughtInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#manifestBtn {
    margin-top: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #9b59b6, #4a90e2);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

#manifestBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 89, 182, 0.6);
}

.journal-entries {
    padding: 20px 30px;
    max-height: 200px;
    overflow-y: auto;
}

.journal-entry {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #9b59b6;
    border-radius: 8px;
}

.entry-time {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.entry-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Thought Label */
.thought-label {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 30px 40px;
    border-radius: 20px;
    border: 2px solid #9b59b6;
    font-family: 'Patrick Hand', cursive;
    font-size: 24px;
    text-align: center;
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 10px 40px rgba(138, 89, 182, 0.6);
}

.thought-label.visible {
    opacity: 1;
}

/* Cryptic Messages */
.cryptic-message {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 30px;
    border-radius: 15px;
    border: 1px solid rgba(138, 89, 182, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    text-align: center;
    max-width: 400px;
    opacity: 0;
    transition: opacity 0.5s;
    text-shadow: 0 0 10px rgba(138, 89, 182, 0.8);
}

.cryptic-message.visible {
    opacity: 1;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 49;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer a {
    color: #9b59b6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #4a90e2;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(138, 89, 182, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 89, 182, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 18px;
    }
    
    .controls-panel {
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 15px;
    }
    
    .info-tooltip {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .journal-input-area {
        padding: 15px;
    }
    
    .thought-label {
        max-width: 90%;
        font-size: 18px;
        padding: 20px;
    }
}