@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;700&family=Rajdhani:wght@500;700&display=swap');

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden
}

.font-tech {
    font-family: 'Chakra Petch', sans-serif
}

.launch-pad-bg {
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 80%, #334155 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden
}

.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 2.5px);
    background-size: 550px 550px;
    background-position: 0 0, 275px 275px;
    z-index: 0;
    opacity: 0.6
}

.rocket-container {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 0 auto;
    transition: transform 2s cubic-bezier(0.45, 0.05, 0.55, 0.95)
}

.rocket-body {
    width: 80px;
    height: 200px;
    background: #e2e8f0;
    border-radius: 50% 50% 10% 10%;
    position: relative;
    margin: 0 auto;
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 10
}

.rocket-window {
    width: 30px;
    height: 30px;
    background: #38bdf8;
    border: 4px solid #94a3b8;
    border-radius: 50%;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.5)
}

.rocket-fins {
    position: absolute;
    bottom: 0;
    width: 140px;
    height: 60px;
    background: #ef4444;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    z-index: 5
}

.rocket-flame {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #fbbf24, #ef4444);
    border-radius: 0 0 50% 50%;
    opacity: 0;
    transition: opacity 0.3s
}

.launching .rocket-container {
    transform: translateY(-100vh)
}

.launching .rocket-flame {
    opacity: 1;
    animation: flicker 0.2s infinite
}

@keyframes flicker {

    0%,
    100% {
        transform: translateX(-50%) scale(1)
    }

    50% {
        transform: translateX(-50%) scale(1.1)
    }
}

.control-panel {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid #3b82f6;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    padding: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 20;
    max-width: 600px;
    margin: 20px auto
}

.digital-display {
    font-family: 'Chakra Petch', monospace;
    background: #000;
    color: #22c55e;
    padding: 15px;
    border: 2px solid #334155;
    border-radius: 5px;
    font-size: 2rem;
    text-align: right;
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
    margin-bottom: 20px;
    letter-spacing: 2px
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.key-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #fff;
    font-family: 'Chakra Petch';
    font-size: 1.5rem;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s
}

.key-btn:hover {
    background: #334155;
    border-color: #64748b
}

.key-btn:active {
    transform: scale(0.95);
    background: #0ea5e9
}

.key-btn.action {
    background: #0ea5e9;
    border-color: #38bdf8;
    font-weight: bold
}

.key-btn.clear {
    background: #ef4444;
    border-color: #fca5a5
}

/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}