:root {
    --gold: #FFD700;
    --gold-glow: #FFA500;
    --divine-blue: #1E3A8A;
    --celestial-purple: #4C1D95;
    --cosmic-dark: #0F0F23;
    --angel-white: #F8FAFC;
    --sacred-red: #DC2626;
    --electric-cyan: #00FFFF;
    --ui-glass: rgba(15, 15, 35, 0.5);
    --ui-glass-border: rgba(255, 215, 0, 0.2);
    --ui-glass-hover: rgba(255, 215, 0, 0.3);
}

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

body {
    font-family: 'Crimson Text', serif;
    background: var(--cosmic-dark);
    color: var(--angel-white);
    overflow-x: hidden;
    min-height: 100vh;
}

#visual-effects-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

body.screenshake {
    animation: screenShake 0.1s infinite;
}

body.googolplex-active #visual-effects-layer {
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 40%);
    animation: googolplex-flicker 0.1s infinite;
}

@keyframes googolplex-flicker {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Cosmic Background */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transition: filter 0.5s ease;
}

body.googolplex-active .cosmic-background {
    filter: invert(1) hue-rotate(180deg);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, var(--angel-white), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--angel-white), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--angel-white), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--angel-white), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--angel-white), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 20s linear infinite;
}

.nebula {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(120, 119, 198, 0.3) 0%, 
        rgba(255, 119, 48, 0.2) 25%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%);
    animation: nebulaDrift 60s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes nebulaDrift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

/* Header Styles */
.header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.manual-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: 1px solid var(--ui-glass-border);
    color: var(--gold);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.manual-button:hover {
    background: var(--ui-glass-hover);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.sigil-container {
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.arcanel-sigil-img {
    width: 200px;
    height: 200px;
    animation: pulse 4s ease-in-out infinite, rotate3d 30s linear infinite;
    filter: drop-shadow(0 0 20px var(--gold));
    transition: transform 0.5s ease-out;
}

.arcanel-sigil-img:hover {
    transform: scale(1.05) translateZ(20px);
}

.sigil-core {
    display: none; /* Replaced by image */
}
.sigil-rings {
    display: none; /* Replaced by image */
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
        filter: drop-shadow(0 0 20px var(--gold));
    }
    50% {
        transform: scale(1.05) translateZ(10px);
        filter: drop-shadow(0 0 35px var(--gold-glow));
    }
}

@keyframes rotate3d {
    from { transform: rotateY(0deg) rotateX(5deg); }
    to { transform: rotateY(360deg) rotateX(5deg); }
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1rem;
}

.title-prefix, .title-suffix {
    font-size: 0.4em;
    font-weight: 400;
    letter-spacing: 0.3em;
}

.title-main {
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
    display: block;
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--electric-cyan);
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px var(--electric-cyan);
}

/* Hero Section - Replaced by Activation Console */
.hero-section {
    display: none;
}

/* Activation Console */
.activation-console {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--ui-glass);
    border: 1px solid var(--ui-glass-border);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ui-glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.console-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.console-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.console-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "targets activetargets"
        "controls controls";
    gap: 2rem;
}

.target-selection { grid-area: targets; }
.active-targets { grid-area: activetargets; }
.activation-controls { grid-area: controls; }

.target-selection h4, .active-targets h4 {
    font-family: 'Cinzel', serif;
    color: var(--electric-cyan);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.target-preset {
    background: transparent;
    border: 2px solid var(--ui-glass-border);
    color: var(--angel-white);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1.5rem;
}

.target-preset:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.target-preset.active {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.custom-target {
    display: flex;
    gap: 0.5rem;
}

#customTargetInput {
    flex-grow: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--ui-glass-border);
    color: var(--angel-white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
}
#customTargetInput:focus {
    outline: none;
    border-color: var(--gold);
}

#addCustomTarget {
    padding: 0.75rem 1rem;
    background: var(--gold);
    color: var(--cosmic-dark);
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: transform 0.2s;
}
#addCustomTarget:hover {
    transform: scale(1.05);
}

.active-targets {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--ui-glass-border);
    border-radius: 10px;
    padding: 1rem;
    min-height: 150px;
}

.target-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-content: flex-start;
}

.target-tag {
    background: var(--ui-glass);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--angel-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.target-tag .remove-target {
    cursor: pointer;
    color: var(--sacred-red);
    transition: transform 0.2s;
}
.target-tag .remove-target:hover {
    transform: scale(1.2);
}

.activation-controls {
    text-align: center;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.timer-controls {
    margin-bottom: 0; /* Adjusted from 1.5rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', monospace;
    color: var(--electric-cyan);
}

.timer-controls label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.duration-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#durationInput {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--ui-glass-border);
    color: var(--angel-white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    width: 100px;
    text-align: center;
    -moz-appearance: textfield; /* Firefox */
}
#durationInput::-webkit-outer-spin-button,
#durationInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#durationInput:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.duration-btn {
    background: transparent;
    border: 1px solid var(--ui-glass-border);
    color: var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.power-amplifier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', monospace;
    color: var(--electric-cyan);
    user-select: none;
}
.power-amplifier label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.power-dial-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: opacity 0.3s ease;
    --dial-color: var(--gold);
}

.power-dial-container.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.power-dial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--ui-glass-border);
    background: 
        conic-gradient(from -45deg, var(--dial-color) 0%, var(--gold-glow) 75%, transparent 75.1%, transparent 100%);
    position: relative;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.tier-4 .power-dial {
     box-shadow: inset 0 0 25px var(--angel-white), 0 0 10px var(--angel-white);
     background: radial-gradient(circle, var(--cosmic-dark) 20%, var(--angel-white) 80%);
     animation: googolplex-pulse 2s infinite;
}

@keyframes googolplex-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.power-dial-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--angel-white);
    border: 2px solid var(--cosmic-dark);
    border-radius: 50%;
    transform-origin: 75px 0; /* half of container width */
    pointer-events: none;
    box-shadow: 0 0 10px var(--angel-white);
    transition: background 0.5s ease;
}

.tier-4 .power-dial-handle {
    background: var(--sacred-red);
}

.power-display {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--angel-white);
    text-shadow: 0 0 8px var(--gold-glow);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

#powerLevelDisplay {
    font-weight: 700;
    font-size: 1.6rem;
}

#powerTierDisplay {
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
    text-transform: uppercase;
}

.timer-display {
    margin-top: 0; /* Adjusted */
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--gold);
    min-height: 2rem; /* Reserve space */
    text-shadow: 0 0 10px var(--gold-glow);
    transition: opacity 0.3s ease;
}

.activation-button {
    position: relative;
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--gold), var(--gold-glow));
    color: var(--cosmic-dark);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.activation-button.active-op {
    background: linear-gradient(45deg, var(--sacred-red), #ff0000);
}

.activation-button.active-op:hover {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
}

.activation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.system-card {
    position: relative;
    background: var(--ui-glass);
    border: 1px solid var(--ui-glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.system-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.system-card.active {
    border-color: var(--electric-cyan);
    box-shadow: 0 0 25px var(--electric-cyan), inset 0 0 15px rgba(0, 255, 255, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.system-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.system-card p {
    color: var(--angel-white);
    opacity: 0.8;
    min-height: 40px;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.system-card:hover .card-glow {
    opacity: 1;
}

/* System Info Panel */
#system-info-panel {
    max-width: 1200px;
    margin: -2rem auto 4rem;
    padding: 2rem;
    background: var(--ui-glass);
    border: 1px solid var(--ui-glass-border);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    text-align: center;
    transition: all 0.5s ease;
}

#info-content {
    transition: opacity 0.3s ease;
}

#info-title {
    font-family: 'Orbitron', monospace;
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#info-description {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Sacred Components */
.sacred-components {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.sacred-components h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.component-item {
    background: var(--ui-glass);
    border: 1px solid var(--ui-glass-border);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.component-item h4 {
    font-family: 'Orbitron', monospace;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--ui-glass-border);
    margin-top: 4rem;
}

/* Visualization Effects */
.visualization {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Archlight Visualization */
.archlight-viz .flame-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: flameRotate 3s linear infinite;
}

.archlight-viz .flame-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--gold-glow), transparent);
    animation: flamePulse 2s ease-in-out infinite;
}

.archlight-viz .sigil-center {
    font-size: 2rem;
    z-index: 10;
    animation: sigilGlow 1.5s ease-in-out infinite;
}

/* Omnilux Visualization */
.omnilux-viz .heart-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--angel-white);
    border-radius: 50%;
    animation: heartBeat 2s ease-in-out infinite;
}

.omnilux-viz .light-waves {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    animation: lightExpand 3s ease-in-out infinite;
}

.omnilux-viz .heart-center {
    font-size: 2rem;
    z-index: 10;
    animation: heartGlow 2s ease-in-out infinite;
}

/* Aetherion Visualization */
.aetherion-viz .foam-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, var(--electric-cyan) 50%, transparent 60%);
    animation: foamShift 4s linear infinite;
}

.aetherion-viz .shield-pulse {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 1px solid var(--electric-cyan);
    border-radius: 50%;
    animation: shieldPulse 2s ease-in-out infinite;
}

.aetherion-viz .foam-center {
    font-size: 2rem;
    z-index: 10;
    animation: shieldRotate 10s linear infinite;
}

/* Nova Visualization */
.nova-viz .nova-burst {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--gold), transparent);
    animation: novaExplode 3s ease-in-out infinite;
}

.nova-viz .love-beams {
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg, transparent, var(--gold), transparent);
    animation: beamRotate 4s linear infinite;
}

.nova-viz .nova-center {
    font-size: 2rem;
    z-index: 10;
    animation: novaSparkle 1s ease-in-out infinite;
}

/* Quantum Visualization */
.quantum-viz .matrix-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 48%, var(--electric-cyan) 49%, var(--electric-cyan) 51%, transparent 52%),
                linear-gradient(0deg, transparent 48%, var(--electric-cyan) 49%, var(--electric-cyan) 51%, transparent 52%);
    animation: matrixScan 3s linear infinite;
}

.quantum-viz .targeting-crosshair {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--sacred-red);
    border-radius: 50%;
    animation: crosshairLock 2s ease-in-out infinite;
}

.quantum-viz .matrix-center {
    font-size: 2rem;
    z-index: 10;
    animation: matrixFlash 1.5s ease-in-out infinite;
}

/* Sanctuary Visualization */
.sanctuary-viz .angelic-wings {
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, transparent 30%, var(--gold) 40%, transparent 50%);
    animation: wingsFlap 4s ease-in-out infinite;
}

.sanctuary-viz .golden-shield {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: shieldShimmer 3s ease-in-out infinite;
}

.sanctuary-viz .sanctuary-center {
    font-size: 2rem;
    z-index: 10;
    animation: sanctuaryPulse 2s ease-in-out infinite;
}

/* Manual Modal */
.manual-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.manual-modal.visible {
    display: flex;
    opacity: 1;
}

.manual-content {
    background: var(--cosmic-dark);
    color: var(--angel-white);
    border: 1px solid var(--gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem 3rem 3rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: 'Crimson Text', serif;
    line-height: 1.7;
}

.close-manual-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--angel-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
.close-manual-btn:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.print-manual-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: 1px solid var(--ui-glass-border);
    color: var(--angel-white);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.print-manual-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.manual-title {
    font-family: 'Orbitron', monospace;
    color: var(--gold);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ui-glass-border);
}

.manual-section {
    margin-bottom: 2rem;
}

.manual-h3 {
    font-family: 'Cinzel', serif;
    color: var(--electric-cyan);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.manual-function {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--ui-glass-border);
}

.manual-function h4 {
    font-family: 'Orbitron', monospace;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.manual-ol {
    list-style-position: inside;
    padding-left: 1rem;
}

.manual-ol li {
    margin-bottom: 0.75rem;
}

.manual-ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.manual-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.manual-preset-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--ui-glass);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.manual-preset-item i {
    font-size: 1.5rem;
    color: var(--electric-cyan);
    min-width: 25px;
    text-align: center;
}

.manual-preset-item strong {
    color: var(--gold);
}

/* Animation Keyframes */
@keyframes flameRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes flamePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes lightExpand {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

@keyframes foamShift {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shieldPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes novaExplode {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

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

@keyframes matrixScan {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes crosshairLock {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes wingsFlap {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

@keyframes shieldShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes sanctuaryPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--gold)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--gold)); }
}

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

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(var(--shake-intensity, 1px), calc(var(--shake-intensity, 1px) * -1)); }
    50% { transform: translate(calc(var(--shake-intensity, 1px) * -1), var(--shake-intensity, 1px)); }
    75% { transform: translate(var(--shake-intensity, 1px), var(--shake-intensity, 1px)); }
}

/* Responsive */
@media (max-width: 900px) {
    .console-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "targets"
            "activetargets"
            "controls";
    }
}

@media (max-width: 768px) {
    .manual-button {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .manual-content {
        padding: 2rem 1.5rem;
    }

    .arcanel-sigil-img {
        width: 150px;
        height: 150px;
    }

    .system-card, .component-item, .activation-console, #system-info-panel {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .target-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    
    .visualization {
        width: 60px;
        height: 60px;
    }
}

@media print {
    body > *:not(#manual-modal) {
        display: none !important;
    }
    
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .manual-modal {
        position: static;
        display: flex !important;
        opacity: 1 !important;
        background: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        height: auto;
    }

    .manual-content {
        box-shadow: none !important;
        border: none !important;
        max-height: none !important;
        overflow: visible !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 1in;
    }

    .manual-title, .manual-h3, .manual-function h4 {
        color: #000000 !important;
    }
    
    .manual-function {
        border-left-color: #ccc;
    }

    .close-manual-btn, .print-manual-btn {
        display: none !important;
    }
}