body {
    font-family: 'Comfortaa', cursive;
    background: #0a0a1a;
    color: white;
    overflow: hidden;
    height: 100vh;
}
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
}
.planet {
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}
.planet:hover { transform: scale(1.1); filter: brightness(1.2); }
.planet.locked { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }

.notebook {
    font-family: 'Neucha', cursive;
    background: #fdfdfd;
    color: #1a365d;
    background-image:
        linear-gradient(#e5e5e5 1px, transparent 1px),
        linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 25px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 40px rgba(0,0,0,0.05);
    border-radius: 4px;
    position: relative;
}
.notebook::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 0, 0, 0.2);
}

.ship { transition: all 0.5s ease; }
.projectile {
    position: absolute;
    width: 30px;
    height: 6px;
    background: #00f2ff;
    border-radius: 3px;
    box-shadow: 0 0 15px #00f2ff;
    z-index: 50;
}

.shake { animation: shake 0.5s; }
@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(5px, -5px); }
    75% { transform: translate(-5px, -5px); }
}

.gradient-text {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-enter { animation: slideIn 0.4s ease-out; }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-action {
    transition: all 0.2s;
    border: 2px solid transparent;
}
.btn-action:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    background-color: #eff6ff;
}

@keyframes pulse-red {
    0%, 100% { background-color: rgba(127, 29, 29, 0.9); }
    50% { background-color: rgba(153, 27, 27, 0.95); }
}
.animate-pulse-red {
    animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cool-target {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #60a5fa 0%, #2563eb 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px #3b82f6;
    animation: spin 3s linear infinite;
}
.cool-target:hover {
    transform: scale(1.1);
    background: radial-gradient(circle, #93c5fd 0%, #3b82f6 100%);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Drag and Drop Styles */
.eq-term {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #f0f9ff;
    border: 2px dashed #bfdbfe;
    border-radius: 8px;
    user-select: none;
    transition: all 0.2s;
}
.eq-term.draggable {
    cursor: grab;
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}
.eq-term.draggable:active {
    cursor: grabbing;
}
.drop-zone {
    display: inline-block;
    min-width: 60px;
    height: 40px;
    border: 2px dashed #ef4444;
    background: rgba(254, 226, 226, 0.5);
    border-radius: 8px;
    margin-left: 10px;
    vertical-align: middle;
}
.drop-zone.hover {
    background: rgba(187, 247, 208, 0.5);
    border-color: #22c55e;
    transform: scale(1.1);
}
.dragging-clone {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    opacity: 0.8;
    transform: scale(1.1);
}