﻿/* EA Rocket Welcome Page — Custom CSS */

/* Keyframe animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes flame {
    0%, 100% { height: 6px; opacity: 0.7; }
    50%       { height: 12px; opacity: 1; }
}

@keyframes rocketLaunch {
    0%   { transform: translateY(0) scale(1) rotate(0deg); }
    40%  { transform: translateY(-45px) scale(1.12) rotate(5deg); }
    70%  { transform: translateY(10px) scale(0.95) rotate(-5deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Scrollbar removal for overflow-hidden body when modal open */
body.overflow-hidden { overflow: hidden; }

/* Range input styling */
input[type="range"] {
    accent-color: #f59e0b;
    cursor: pointer;
    height: 6px;
    border-radius: 4px;
    background: #1e293b;
    -webkit-appearance: none;
    appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    border: 2px solid #0f172a;
    box-shadow: 0 0 6px rgba(245,158,11,0.4);
}
input[type="range"][style*="accent-color:#f97316"]::-webkit-slider-thumb {
    background: #f97316;
    box-shadow: 0 0 6px rgba(249,115,22,0.4);
}

/* Review card entrance animation */
.review-card-enter {
    animation: slideIn 0.25s ease forwards;
}

/* Sim tab active state */
.sim-tab.active {
    background: linear-gradient(to right, rgba(245,158,11,0.2), rgba(249,115,22,0.2));
    color: #f59e0b;
    border-color: rgba(245,158,11,0.3);
}
    border-color: rgba(245,158,11,0.3);
}

/* Rocket animation classes */
.rocket-float  { animation: float 4s ease-in-out infinite; }
.rocket-launch { animation: rocketLaunch 1.1s ease-in-out forwards; }

/* Planet orbit rings */
.orbit-ring-1  { animation: spin 20s linear infinite; }
.orbit-ring-2  { animation: spin 14s linear infinite reverse; }
.orbit-planet  { animation: spin 30s linear infinite; }

/* Flame animation */
.rocket-flame-idle   { animation: flame 0.3s ease-in-out infinite; }

/* Font stacks used by the page */
.font-display { font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif; }
.font-mono    { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace; }
.font-sans    { font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif; }

/* Transition helpers */
.transition-height {
    transition: height 0.2s ease, opacity 0.2s ease;
}

/* Dark mode body */
html.dark body {
    background-color: #020617;
    color: #f1f5f9;
}

/* Ensure the Tailwind CDN play dark mode via class strategy */
:root { color-scheme: dark; }
