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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.game-header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 3px solid #00ff88;
}

.game-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px #00ff88;
    margin-bottom: 10px;
}

.game-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #00ff88;
}

.question-info span {
    margin-right: 30px;
    font-weight: bold;
    font-size: 1.1rem;
}

.bullet-info {
    display: flex;
    align-items: center;
}

.bullet-type {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 2px solid #00ff88;
}

.bullet-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Ocean Area */
.ocean {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, #006994 0%, #004d6b 50%, #003a4f 100%);
    min-height: 400px;
    overflow: hidden;
}

/* Animated Waves */
.waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"></path></svg>') repeat-x;
    animation: waves 15s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    opacity: 0.3;
}

@keyframes waves {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Ships */
.ship {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.ship-body {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
    transition: all 0.3s ease;
}

.ship.hit {
    animation: shake 0.5s ease-in-out;
}

.ship.sunk .ship-body {
    filter: grayscale(100%) opacity(0.5);
    transform: rotate(25deg);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.team-a {
    top: 20px;
    left: 50px;
}

.team-b {
    top: 20px;
    right: 50px;
}

.team-c {
    bottom: 100px;
    left: 50px;
}

.team-d {
    bottom: 100px;
    right: 50px;
}

/* Ship Info */
.ship-info {
    margin-top: 10px;
    text-align: center;
    min-width: 120px;
}

.team-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.health-bar {
    position: relative;
    width: 100px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 2px solid #00ff88;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
    transition: width 0.5s ease;
    border-radius: 8px;
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Explosion Effect */
.explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    pointer-events: none;
}

.explosion.active {
    animation: explode 1s ease-out;
}

@keyframes explode {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Question Panel */
.question-panel {
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-top: 3px solid #00ff88;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-header h3 {
    font-size: 1.5rem;
    color: #00ff88;
}

.difficulty-indicator {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

.difficulty-indicator.easy {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
}

.difficulty-indicator.medium {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #ffa500;
}

.difficulty-indicator.hard {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
}

.difficulty-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.question-content {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 5px solid #00ff88;
    position: relative;
    transition: all 0.5s ease;
    transform: translateX(0);
    opacity: 1;
}

.question-content.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.question-content.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.question-content.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

.question-content.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.question-content.slide-in-active {
    transform: translateX(0);
    opacity: 1;
}

/* Question Slider Container */
.question-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.question-slide {
    position: absolute;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.question-slide.active {
    position: relative;
    transform: translateX(0);
}

.question-slide.prev {
    transform: translateX(-100%);
}

.question-slide.next {
    transform: translateX(100%);
}

.question-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: scale(1);
    opacity: 1;
}

.btn.hidden {
    transform: scale(0);
    opacity: 0;
}

.btn-start {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-correct {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.btn-wrong {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.btn-next {
    background: linear-gradient(45deg, #4488ff, #6699ff);
    color: white;
    box-shadow: 0 0 20px rgba(68, 136, 255, 0.3);
}

.btn-special {
    background: linear-gradient(45deg, #ff00ff, #ff44ff);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.5);
}

.btn:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    margin: 15% auto;
    padding: 30px;
    border: 3px solid #00ff88;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.target-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.target-btn {
    padding: 15px;
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.target-btn:hover {
    background: linear-gradient(45deg, #ff6666, #ff8888);
    transform: scale(1.05);
}

.target-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Special Panel */
.special-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #00ff88;
}

.streak-info {
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 10px;
}

.special-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 1.8rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ship {
        position: static;
        margin: 20px;
    }
    
    .ocean {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    
    .ship-body {
        font-size: 3rem;
    }
    
    .question-content {
        font-size: 1.1rem;
    }
    
    .target-buttons {
        grid-template-columns: 1fr;
    }
}

/* Shield Effect */
.ship.shielded .ship-body {
    animation: shield-glow 2s infinite;
}

@keyframes shield-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 1));
    }
}

/* Question Loading Animation */
@keyframes questionLoad {
    0% {
        transform: scale(0.8) rotateY(-90deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotateY(0deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.question-content.loading {
    animation: questionLoad 0.8s ease-out;
}

/* Typing Effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.question-content.typing {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 2s steps(40) forwards;
}

/* Particle Effect for Questions */
.question-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100px) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) scale(1);
        opacity: 0;
    }
}

.particle.animate {
    animation: particleFloat 2s ease-out forwards;
}

/* Question Difficulty Pulse */
.difficulty-indicator.pulse {
    animation: difficultyPulse 1s ease-in-out;
}

@keyframes difficultyPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    }
}

/* Question Progress Bar */
.question-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00ff88;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #00ff88;
}

/* Slide Transition Effects */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.question-content.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.question-content.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.question-content.slide-out-left {
    animation: slideOutToLeft 0.6s ease-in;
}

.question-content.slide-out-right {
    animation: slideOutToRight 0.6s ease-in;
}
