:root {
    --primary-color: #FFD700;
    --cyan-accent: #00E5FF;
    --bg-color: #04060A; 
    --panel-bg: rgba(10, 15, 26, 0.85);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: #1E293B;
    --bpm-duration: 0.50847s;
}

body, html {
    margin: 0; padding: 0; height: 100%;
    background-color: var(--bg-color); color: var(--text-main);
    font-family: 'Montserrat', sans-serif; overflow: hidden;
    user-select: none; -webkit-user-select: none;
}

/* --- MICRO HAUS WATERMARK --- */
#mh-watermark {
    position: fixed; bottom: 40px; right: 40px; width: 75px;
    opacity: 0.7; z-index: 9999; pointer-events: none;
}

/* --- FULLSCREEN MODALS --- */
.fullscreen-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #04060A; z-index: 100;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.alert-text { font-size: 1.6rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; color: #FFF; }
.alert-subtext { color: var(--text-muted); margin-top: 10px; font-size: 0.9rem; line-height: 1.6; font-weight: 400; }

.luxury-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
    padding: 16px 35px; font-size: 0.8rem; font-weight: 800; font-family: 'Montserrat', sans-serif;
    cursor: pointer; border-radius: 4px; text-transform: uppercase; letter-spacing: 3px; transition: all 0.2s ease;
}
.luxury-btn:hover, .luxury-btn:active { background: #FFF; color: #000; border-color: #FFF; }

/* --- CUSTOM LEGAL CHECKBOXES --- */
.consent-checkbox-group { text-align: left; max-width: 450px; margin: 40px 0; }
.custom-checkbox { display: block; position: relative; padding-left: 35px; margin-bottom: 25px; cursor: pointer; font-size: 0.85rem; color: var(--text-muted); }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: -2px; left: 0; height: 18px; width: 18px; background-color: transparent; border: 1px solid var(--text-muted); border-radius: 3px; transition: all 0.2s; }
.custom-checkbox:hover input ~ .checkmark { border-color: #FFF; }
.custom-checkbox input:checked ~ .checkmark { background-color: #FFF; border-color: #FFF; }
.checkmark:after { content: ""; position: absolute; display: none; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.custom-checkbox .checkmark:after { left: 6px; top: 2px; width: 4px; height: 9px; border: solid #04060A; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-label a { color: #FFF; text-decoration: underline; transition: all 0.2s; }
.checkbox-label a:hover { color: #FFD700; }

/* --- HUD POP-UPS --- */
.hud-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(4, 6, 10, 0.95); backdrop-filter: blur(10px); z-index: 200;
    display: flex; justify-content: center; align-items: center;
}
.hud-modal-content {
    background: var(--panel-bg); border: 1px solid var(--border-color); padding: 40px; width: 85%; max-width: 600px;
    border-radius: 6px; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
.hud-modal-content h2 { color: #FFF; font-size: 1.1rem; letter-spacing: 3px; margin-top: 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; font-weight: 800; }
.hud-modal-text { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; max-height: 50vh; overflow-y: auto; margin-bottom: 30px; padding-right: 15px; }
.close-btn { width: 100%; }

/* --- DASHBOARD & F-1 GRID --- */
#dashboard {
    position: absolute; width: 100%; height: 100%; z-index: 10;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: #04060A; transition: opacity 1s ease; overflow-y: auto; overflow-x: hidden;
}

.telemetry-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.dash-content-wrapper { position: relative; z-index: 2; width: 100%; max-width: 900px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; margin-top: 30px; }

/* --- BRAND-FORWARD HEADER --- */
.dash-header { text-align: center; margin-bottom: 35px; width: 100%; }
.dash-header h1 { margin:0; font-size: 3rem; letter-spacing: 12px; font-weight: 900; color: #FFD700; text-shadow: 0 0 20px rgba(255, 215, 0, 0.2); line-height: 1; }
.dash-header h1 .tm { font-size: 1rem; vertical-align: super; letter-spacing: 0; margin-left: 2px; }
.brand-presenter { color: #FFF; font-size: 0.85rem; letter-spacing: 6px; font-weight: 700; margin-top: 15px; text-transform: uppercase; }

.acronym-block { margin-top: 20px; background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); padding: 15px; border-radius: 4px; }
.acronym-line { color: var(--text-muted); font-size: 0.7rem; letter-spacing: 2px; line-height: 1.8; text-transform: uppercase; }
.acronym-line .highlight { color: #FFD700; font-weight: 800; letter-spacing: 3px; }

/* --- F-1 TYPOGRAPHY CONTROLS --- */
.control-matrix { width: 100%; display: flex; flex-direction: column; align-items: center; }
.control-group { margin-bottom: 35px; text-align: center; width: 100%; max-width: 600px; }

.control-label { 
    display: flex; align-items: center; justify-content: center; 
    font-size: 0.85rem; letter-spacing: 5px; color: #FFF; font-weight: 800; 
    border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase;
}
.step-num { color: var(--cyan-accent); font-weight: 900; margin-right: 8px; font-style: italic; font-size: 0.9rem; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }

.sel-btn {
    background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); color: var(--text-muted);
    padding: 14px 22px; font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; border-radius: 4px; transition: all 0.2s ease; letter-spacing: 1px;
}
.sel-btn:not(.locked-tier):hover { border-color: #FFF; color: #FFF; }
.sel-btn.active { background: #FFF; color: #000; border-color: #FFF; }
.lock-icon { font-size: 0.6rem; margin-left: 6px; opacity: 0.7; }

.color-btn { border-top-width: 3px; }
.color-btn.active { background: rgba(255,255,255,0.05); color: #FFF; border-color: var(--border-color); border-top-color: var(--primary-color); }

/* Dynamic Readout Box */
.dynamic-readout {
    background: rgba(0,0,0,0.6); border: 1px solid var(--border-color); border-left: 3px solid var(--primary-color); 
    padding: 15px 20px; margin-top: 20px; font-size: 0.75rem; color: var(--text-muted); text-align: left; 
    line-height: 1.6; border-radius: 2px; transition: border-color 0.3s ease;
}

.ignite-btn {
    margin-top: 10px; background: var(--primary-color); color: #000; border: none;
    padding: 20px 60px; font-size: 1.1rem; font-weight: 900; letter-spacing: 6px;
    cursor: pointer; border-radius: 4px; transition: all 0.2s; width: 100%; max-width: 450px;
}
.ignite-btn:hover { background: #FFF; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }
.ignite-btn:active { transform: translateY(1px); box-shadow: none; }

.dashboard-disclaimer {
    position: relative; z-index: 2; text-align: center; width: 90%; max-width: 800px;
    color: var(--text-muted); font-size: 0.65rem; letter-spacing: 1px; line-height: 1.7; padding-bottom: 60px; margin-top: 30px;
}
.disclaimer-title { color: #FFF; margin-bottom: 8px; font-weight: 800; font-size: 0.7rem; letter-spacing: 2px; }

/* --- 3D PROCEDURAL ENGINE --- */
#engine-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 2s ease; pointer-events: none; z-index: 20; background: #04060A;
}

.hud-telemetry {
    position: absolute; font-size: 0.65rem; letter-spacing: 4px; color: var(--primary-color);
    opacity: 0.9; font-weight: 800; transition: color 0.5s ease;
}
.top-left { top: 40px; left: 40px; }
.top-right { top: 40px; right: 40px; text-align: right; }
.bottom-left { bottom: 40px; left: 40px; }
.bottom-right { bottom: 40px; right: 40px; text-align: right; }

.geometry-wrapper {
    position: relative; width: 320px; height: 320px;
    display: flex; justify-content: center; align-items: center;
}

.geometry {
    width: 280px; height: 280px;
    position: relative; transition: all 0.5s ease;
}

/* 3D SPHERE */
.shape-sphere { 
    border-radius: 50%; 
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7) 0%, var(--primary-color) 40%, rgba(0,0,0,0.9) 90%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset -20px -20px 40px rgba(0,0,0,0.6);
}

/* 3D APEX */
.shape-apex { 
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%); 
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, var(--primary-color) 50%, rgba(0,0,0,0.9) 100%);
}

/* 3D HEXAGON */
.shape-hexagon { 
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); 
    background: linear-gradient(to bottom right, rgba(255,255,255,0.3) 0%, var(--primary-color) 50%, #000 100%);
}
.shape-hexagon::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px; transform: rotate(45deg);
}

.anim-integrate { animation: rotate-breathe calc(var(--bpm-duration) * 8) infinite linear; }
.anim-reset { animation: breathe var(--bpm-duration) infinite alternate ease-in-out; }
.anim-ignite { animation: pulse-sharp var(--bpm-duration) infinite alternate cubic-bezier(0.1, 0.9, 0.2, 1); }

@keyframes breathe { 0% { transform: scale(0.9); filter: brightness(0.8); } 100% { transform: scale(1.05); filter: brightness(1.2); } }
@keyframes pulse-sharp { 0% { transform: scale(0.95); } 100% { transform: scale(1.15); filter: hue-rotate(15deg); } }
@keyframes rotate-breathe { 
    0% { transform: rotate(0deg) scale(0.95); opacity: 0.9;} 
    50% { transform: rotate(180deg) scale(1.1); opacity: 1;} 
    100% { transform: rotate(360deg) scale(0.95); opacity: 0.9;} 
}

.holo-ring {
    position: absolute; width: 420px; height: 420px;
    border: 1px solid var(--primary-color); border-radius: 50%;
    opacity: 0.2; animation: spin 12s infinite linear;
    border-top-color: transparent; border-bottom-color: transparent;
    transition: border-color 0.5s ease;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

#timer {
    position: fixed; top: 15%; width: 100%; text-align: center;
    font-size: 3rem; font-weight: 900; letter-spacing: 8px; color: #FFF;
    opacity: 0; transition: opacity 1s; z-index: 25; pointer-events: none;
}
