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

:root {
    --primary: #00d4ff;
    --secondary: #0099cc;
    --accent: #ff6b35;
    --bg: #0a0a0f;
    --panel: rgba(0, 212, 255, 0.05);
    --glow: rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Orbitron', monospace;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--primary);
}

/* Boot Sequence */
.boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.boot-text {
    font-size: 1.2rem;
    line-height: 2;
}

.boot-line {
    opacity: 0;
    animation: bootLine 0.5s ease forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.3s; }
.boot-line:nth-child(2) { animation-delay: 0.8s; }
.boot-line:nth-child(3) { animation-delay: 1.3s; }
.boot-line:nth-child(4) { animation-delay: 1.8s; }
.boot-line:nth-child(5) { animation-delay: 2.3s; color: #00ff88; }

@keyframes bootLine {
    to { opacity: 1; }
}

/* Main Container */
.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Holographic Rings */
.holographic-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    box-shadow: 0 0 30px var(--glow), inset 0 0 30px var(--glow);
}

.holographic-ring.outer {
    width: 500px;
    height: 500px;
    animation: rotate 20s linear infinite;
}

.holographic-ring.middle {
    width: 380px;
    height: 380px;
    animation: rotate 15s linear infinite reverse;
}

.holographic-ring.inner {
    width: 260px;
    height: 260px;
    animation: rotate 10s linear infinite;
}

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

/* Core */
.core {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

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

.core-center {
    position: relative;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 60px var(--primary);
}

.core-center.active {
    animation: activePulse 0.5s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px var(--primary); }
    50% { transform: scale(1.05); box-shadow: 0 0 80px var(--primary), 0 0 120px var(--accent); }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
}

.pulse-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    animation: ripple 2s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    width: 160px;
    height: 160px;
    animation: ripple 2s ease-out infinite 0.5s;
}

.pulse-ring:nth-child(3) {
    width: 200px;
    height: 200px;
    animation: ripple 2s ease-out infinite 1s;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Status Panel */
.status-panel {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.status-label {
    font-size: 0.7rem;
    color: rgba(0, 212, 255, 0.6);
    letter-spacing: 2px;
}

.status-value {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

/* Waveform */
.waveform {
    position: absolute;
    bottom: 180px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
    opacity: 0.3;
}

.waveform.active {
    opacity: 1;
}

.bar {
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.waveform.active .bar {
    animation: wave 0.5s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.05s; }
.bar:nth-child(3) { animation-delay: 0.1s; }
.bar:nth-child(4) { animation-delay: 0.15s; }
.bar:nth-child(5) { animation-delay: 0.2s; }
.bar:nth-child(6) { animation-delay: 0.25s; }
.bar:nth-child(7) { animation-delay: 0.3s; }
.bar:nth-child(8) { animation-delay: 0.35s; }
.bar:nth-child(9) { animation-delay: 0.4s; }
.bar:nth-child(10) { animation-delay: 0.45s; }
.bar:nth-child(11) { animation-delay: 0.5s; }
.bar:nth-child(12) { animation-delay: 0.55s; }
.bar:nth-child(13) { animation-delay: 0.6s; }
.bar:nth-child(14) { animation-delay: 0.65s; }
.bar:nth-child(15) { animation-delay: 0.7s; }
.bar:nth-child(16) { animation-delay: 0.75s; }
.bar:nth-child(17) { animation-delay: 0.8s; }
.bar:nth-child(18) { animation-delay: 0.85s; }
.bar:nth-child(19) { animation-delay: 0.9s; }
.bar:nth-child(20) { animation-delay: 0.95s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 50px; }
}

/* Command Display */
.command-display {
    position: absolute;
    bottom: 120px;
    text-align: center;
    max-width: 600px;
    padding: 0 2rem;
}

.command-text {
    font-size: 1rem;
    color: rgba(0, 212, 255, 0.7);
    min-height: 1.5rem;
}

/* Response Display */
.response-display {
    position: absolute;
    bottom: 280px;
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
}

.response-text {
    font-size: 1.3rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
    line-height: 1.5;
    min-height: 2rem;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px var(--glow);
    transform: scale(1.1);
}

.control-btn.active {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 30px var(--primary);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

/* Help Panel */
.help-panel {
    position: absolute;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 350px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 1.5rem;
    transition: right 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.help-panel.show {
    right: 2rem;
}

.help-panel h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.help-panel ul {
    list-style: none;
}

.help-panel li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.help-panel li span {
    color: var(--accent);
    font-weight: 600;
}

/* Clap Indicator */
.clap-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--accent);
    color: var(--bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 100;
    transition: transform 0.3s ease;
}

.clap-indicator.show {
    transform: translate(-50%, -50%) scale(1);
    animation: clapPulse 0.5s ease;
}

@keyframes clapPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .holographic-ring.outer { width: 350px; height: 350px; }
    .holographic-ring.middle { width: 280px; height: 280px; }
    .holographic-ring.inner { width: 210px; height: 210px; }
    .core { width: 140px; height: 140px; }
    .core-center { width: 80px; height: 80px; }
    .status-panel { left: 1rem; top: 1rem; }
    .help-panel { width: 300px; right: -350px; }
    .help-panel.show { right: 1rem; }
}