/* ============================================
   SNES U.N. SQUADRON COLOR PALETTE
   Sky Blue: #5C94FC, Dark Blue: #0000A8
   Orange: #FC7460, Yellow: #FCC000
   Green: #00A800, Dark: #1C1C1C
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;700;900&display=swap');

/* ============ RESET & ROOT VARIABLES ============ */

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

:root {
    --sky-blue:      #5C94FC;
    --dark-blue:     #0000A8;
    --deeper-blue:   #000070;
    --orange:        #FC7460;
    --bright-orange: #FC5000;
    --yellow:        #FCC000;
    --bright-yellow: #FCFC00;
    --green:         #00A800;
    --bright-green:  #00FC00;
    --red:           #D82800;
    --dark:          #1C1C1C;
    --darker:        #080808;
    --white:         #FCFCFC;
    --light-blue:    #8CB8FC;
    --purple:        #7844FC;
}

/* ============ BASE ============ */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--darker);
    color: var(--white);
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
}

/* ============ SCANLINE EFFECT ============ */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ============ SCROLLING STARS BACKGROUND ============ */

#stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--darker);
}

/* ============ CANVAS BACKGROUND ============ */

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

/* ============ AUDIO CONTROL ============ */

#audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 168, 0.85);
    border: 2px solid var(--yellow);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--yellow);
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(252, 192, 0, 0.4);
}

#audio-control:hover {
    background: rgba(252, 192, 0, 0.2);
    box-shadow: 0 0 25px rgba(252, 192, 0, 0.7);
    transform: scale(1.05);
}

#audio-icon {
    font-size: 16px;
}

/* ============ NAVIGATION ============ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--dark-blue);
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(8px, 2vw, 12px);
    color: var(--yellow);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============ HERO SECTION ============ */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #000030 0%,
        #000070 20%,
        #0000A8 40%,
        #0050D8 60%,
        #5C94FC 80%,
        #8CB8FC 100%
    );
}


/* Animated mountain silhouette */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background:
        linear-gradient(135deg, transparent 50%, #1C1C1C 50%) -80px 0 / 160px 120px,
        linear-gradient(225deg, transparent 50%, #1C1C1C 50%)   0px 0 / 160px 120px,
        linear-gradient(135deg, transparent 50%, #2C2C2C 50%)  40px 0 / 120px  90px,
        linear-gradient(225deg, transparent 50%, #2C2C2C 50%) 120px 0 / 120px  90px;
    background-repeat: repeat-x;
    z-index: 1;
}

/* Hero stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: 0.3; transform: scale(1);   }
    100% { opacity: 1;   transform: scale(1.3); }
}

/* Hero sun */
.hero-sun {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FCFC00, #FCC000, #FC7800);
    border-radius: 50%;
    box-shadow: 0 0 40px #FCC000, 0 0 80px rgba(252, 192, 0, 0.5);
    animation: pulse-sun 3s ease-in-out infinite alternate;
}

@keyframes pulse-sun {
    0%   { box-shadow: 0 0  40px #FCC000, 0 0  80px rgba(252, 192, 0, 0.5); }
    100% { box-shadow: 0 0  60px #FCC000, 0 0 120px rgba(252, 192, 0, 0.7); }
}

/* Flying aircraft */
.aircraft {
    position: absolute;
    font-size: 3rem;
    animation: fly-across 12s linear infinite;
    filter: drop-shadow(0 0 10px rgba(252, 116, 96, 0.8));
    z-index: 2;
}

.aircraft-1 { top: 25%; animation-delay:  0s; animation-duration: 14s; background-image: url('/images/un-squadron-aircraft-1-tigershark.png'); }
.aircraft-2 { top: 40%; animation-delay: -5s; animation-duration: 10s; background-image: url('/images/un-squadron-aircraft-1-tigershark.png'); }
.aircraft-3 { top: 15%; animation-delay: -8s; animation-duration: 18s; background-image: url('/images/un-squadron-aircraft-1-tigershark.png'); }

@keyframes fly-across {
    0%   { transform: translateX(-200px) scaleX(1);              opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { transform: translateX(calc(100vw + 200px)) scaleX(1); opacity: 0; }
}

/* Explosion particles */
.explosion {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: explode 2s ease-out infinite;
}

@keyframes explode {
    0%   { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ============ HERO CONTENT ============ */

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

.pre-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(8px, 2vw, 14px);
    color: var(--yellow);
    letter-spacing: 6px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--yellow);
    animation: blink-text 1.5s step-end infinite;
}

@keyframes blink-text {
    0%, 100% { opacity: 1;   }
    50%       { opacity: 0.3; }
}

.main-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(28px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(
        180deg,
        #FCFCFC 0%,
        #FCC000 40%,
        #FC7800 70%,
        #D82800 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.8));
    letter-spacing: 4px;
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    0%   { filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.8)) drop-shadow(0 0 20px rgba(252,192,0,0.3)); }
    100% { filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.8)) drop-shadow(0 0 40px rgba(252,192,0,0.7)); }
}

.subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(10px, 2.5vw, 20px);
    color: var(--light-blue);
    margin-top: 10px;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--sky-blue);
}

.hero-tagline {
    margin-top: 25px;
    font-size: clamp(10px, 1.5vw, 14px);
    color: var(--white);
    letter-spacing: 2px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.8;
}

/* ============ CTA BUTTONS ============ */

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(8px, 1.5vw, 11px);
    padding: 14px 28px;
    border: 3px solid;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--red);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 4px 4px 0px var(--dark), 0 0 20px rgba(216, 40, 0, 0.5);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--dark), 0 0 30px rgba(216, 40, 0, 0.8);
}

.btn-secondary {
    background: transparent;
    border-color: var(--yellow);
    color: var(--yellow);
    box-shadow: 4px 4px 0px var(--dark), 0 0 20px rgba(252, 192, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(252, 192, 0, 0.15);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--dark), 0 0 30px rgba(252, 192, 0, 0.6);
}

/* ============ SCROLL INDICATOR ============ */

.scroll-indicator {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--white);
    opacity: 0.7;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(45deg);
    margin: 0 auto;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);    }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* ============ INSERT COIN ============ */

.insert-coin {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(8px, 1.5vw, 12px);
    color: var(--white);
    text-align: center;
    animation: blink-text 1s step-end infinite;
    margin-top: 15px;
    letter-spacing: 3px;
}

/* ============ SECTION LAYOUT ============ */

section {
    position: relative;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--yellow),
        var(--orange),
        var(--yellow),
        transparent
    );
    margin: 0;
}

.section-bg {
    position: relative;
    width: 100%;
}

.section-bg-dark {
    background: linear-gradient(180deg, #0A0A1A 0%, #0F0F2A 100%);
}

.section-bg-blue {
    background: linear-gradient(180deg, #00003A 0%, #00006A 100%);
}

/* ============ SECTION TITLES ============ */

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(14px, 3vw, 28px);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before { content: '> '; color: var(--orange); }
.section-title::after  { content: ' <'; color: var(--orange); }

.title-yellow { color: var(--yellow);     text-shadow: 0 0 20px rgba(252, 192,   0, 0.5); }
.title-orange { color: var(--orange);     text-shadow: 0 0 20px rgba(252, 116,  96, 0.5); }
.title-blue   { color: var(--light-blue); text-shadow: 0 0 20px rgba( 92, 148, 252, 0.5); }
.title-green  { color: #00FC00;           text-shadow: 0 0 20px rgba(  0, 168,   0, 0.5); }

/* ============ HUD DISPLAY ============ */

.hud-display {
    background: #000010;
    border: 3px solid var(--sky-blue);
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}

.hud-display::before {
    content: 'HUD DISPLAY';
    position: absolute;
    top: -12px;
    left: 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--sky-blue);
    background: #000010;
    padding: 0 8px;
}

.hud-item {
    text-align: center;
}

.hud-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    color: var(--orange);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hud-value {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(14px, 2.5vw, 22px);
    color: var(--green);
    text-shadow: 0 0 10px var(--green);
}

/* ============ ABOUT SECTION ============ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: clamp(10px, 1.5vw, 13px);
    line-height: 2;
    color: #C0C0D0;
    margin-bottom: 20px;
}

.about-text p strong {
    color: var(--yellow);
}

.about-badge {
    background: linear-gradient(135deg, #0000A8, #000070);
    border: 2px solid var(--sky-blue);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.badge-platform {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: var(--green);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.badge-year {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(30px, 5vw, 50px);
    color: var(--yellow);
    text-shadow: 3px 3px 0 var(--dark-blue);
}

.badge-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--orange);
    margin-top: 15px;
    letter-spacing: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.info-item {
    background: rgba(0, 0, 168, 0.3);
    border-left: 3px solid var(--orange);
    padding: 12px 15px;
}

.info-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    color: var(--orange);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.info-value {
    font-size: 12px;
    color: var(--white);
    font-weight: 600;
}

/* ============ AIRCRAFT ROSTER ============ */

.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.aircraft-card {
    background: linear-gradient(135deg, rgba(0, 0, 100, 0.6), rgba(0, 0, 50, 0.8));
    border: 2px solid var(--dark-blue);
    border-radius: 6px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aircraft-crusader {
    background: 
        linear-gradient(135deg, rgba(0, 0, 100, 0.6), rgba(0, 0, 50, 0.5)),
        url('/images/un-squadron-aircraft-crusader.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aircraft-crusader .plane-name {
    text-align: left;
}

.aircraft-crusader .plane-type {
    text-align: left;
    margin-top: -8px; /* reduces the gap between name and type - adjust this value */
    margin-bottom: 15px;
}

.aircraft-crusader .plane-stats {
    margin-top: 100px;
}

.aircraft-crusader .plane-price {
    margin-top: 40px; /* increases space above price - was 15px so this adds ~15px more */
}

.aircraft-tigershark {
    background: 
        linear-gradient(135deg, rgba(0, 0, 100, 0.6), rgba(0, 0, 50, 0.5)),
        url('/images/un-squadron-aircraft-tigershark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aircraft-tigershark .plane-name {
    text-align: left;
}

.aircraft-tigershark .plane-type {
    text-align: left;
    margin-top: -8px; /* reduces the gap between name and type - adjust this value */
    margin-bottom: 15px;
}

.aircraft-tigershark .plane-stats {
    margin-top: 100px;
}

.aircraft-tigershark .plane-price {
    margin-top: 40px; /* increases space above price - was 15px so this adds ~15px more */
}

.aircraft-tomcat {
    background: 
        linear-gradient(135deg, rgba(0, 0, 100, 0.6), rgba(0, 0, 50, 0.5)),
        url('/images/un-squadron-aircraft-tomcat.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aircraft-tomcat .plane-name {
    text-align: left;
}

.aircraft-tomcat .plane-type {
    text-align: left;
    margin-top: -8px; /* reduces the gap between name and type - adjust this value */
    margin-bottom: 15px;
}

.aircraft-tomcat .plane-stats {
    margin-top: 100px;
}

.aircraft-tomcat .plane-price {
    margin-top: 40px; /* increases space above price - was 15px so this adds ~15px more */
}

.aircraft-thunderbolt {
    background: 
        linear-gradient(135deg, rgba(0, 0, 100, 0.6), rgba(0, 0, 50, 0.5)),
        url('/images/un-squadron-aircraft-thunderbolt2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aircraft-thunderbolt .plane-name {
    text-align: left;
}

.aircraft-thunderbolt .plane-type {
    text-align: left;
    margin-top: -8px; /* reduces the gap between name and type - adjust this value */
    margin-bottom: 15px;
}

.aircraft-thunderbolt .plane-stats {
    margin-top: 100px;
}

.aircraft-thunderbolt .plane-price {
    margin-top: 40px; /* increases space above price - was 15px so this adds ~15px more */
}

.aircraft-stealth {
    background: 
        linear-gradient(135deg, rgba(0, 0, 100, 0.6), rgba(0, 0, 50, 0.5)),
        url('/images/un-squadron-aircraft-stealth-ray.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aircraft-stealth .plane-name {
    text-align: left;
}

.aircraft-stealth .plane-type {
    text-align: left;
    margin-top: -8px; /* reduces the gap between name and type - adjust this value */
    margin-bottom: 15px;
}

.aircraft-stealth .plane-stats {
    margin-top: 100px;
}

.aircraft-stealth .plane-price {
    margin-top: 40px; /* increases space above price - was 15px so this adds ~15px more */
}

.aircraft-efreet {
    background: 
        linear-gradient(135deg, rgba(0, 0, 100, 0.6), rgba(0, 0, 50, 0.5)),
        url('/images/un-squadron-aircraft-efreet.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aircraft-efreet .plane-name {
    text-align: left;
}

.aircraft-efreet .plane-type {
    text-align: left;
    margin-top: -8px; /* reduces the gap between name and type - adjust this value */
    margin-bottom: 15px;
}

.aircraft-efreet .plane-stats {
    margin-top: 100px;
}

.aircraft-efreet .plane-price {
    margin-top: 40px; /* increases space above price - was 15px so this adds ~15px more */
}

.aircraft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--yellow), var(--orange));
}

.aircraft-card:hover {
    border-color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(252, 192, 0, 0.2);
}

.aircraft-card:hover .plane-icon {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg);  }
    25%       { transform: rotate(-5deg); }
    75%       { transform: rotate(5deg);  }
}

.plane-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.plane-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--yellow);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.plane-type {
    font-size: 11px;
    color: var(--sky-blue);
    margin-bottom: 15px;
    font-style: italic;
}

.plane-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 6px;
    color: var(--orange);
    width: 60px;
    flex-shrink: 0;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
    animation: stat-appear 1.5s ease forwards;
}

.stat-fill.speed   { background: linear-gradient(90deg, var(--sky-blue), var(--light-blue)); }
.stat-fill.attack  { background: linear-gradient(90deg, var(--red),      var(--orange));     }
.stat-fill.armor   { background: linear-gradient(90deg, var(--green),    #00FC00);           }
.stat-fill.special { background: linear-gradient(90deg, var(--purple),   #BC88FC);           }

@keyframes stat-appear {
    from { width: 0; }
}

.plane-price {
    margin-top: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--yellow);
    text-align: right;
}

/* ============ PILOTS SECTION ============ */

.pilots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.pilot-card {
    background: linear-gradient(180deg, rgba(0, 40, 80, 0.7), rgba(0, 20, 60, 0.9));
    border: 2px solid var(--sky-blue);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pilot-card:hover {
    border-color: var(--orange);
    box-shadow: 0 0 30px rgba(252, 116, 96, 0.3);
    transform: translateY(-3px);
}

.pilot-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid;
    position: relative;
}

.pilot-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed;
    animation: rotate-ring 4s linear infinite;
}

@keyframes rotate-ring {
    to { transform: rotate(360deg); }
}

.pilot-ace {
    background-color: rgba(252, 80, 0, 0.2);
    background-image: url('/images/un-squadron-pilot-shin-kazama.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--orange);
}

.pilot-ace::after {
    border-color: var(--orange);
}

.pilot-hero-style {
    background-color: rgba(92, 148, 252, 0.2);
    background-image: url('/images/un-squadron-pilot-mickey-scymon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--sky-blue);
}

.pilot-hero-style::after {
    border-color: var(--sky-blue);
}

.pilot-veteran {
    background-color: rgba(252, 192, 0, 0.2);
    background-image: url('/images/un-squadron-pilot-greg-gates.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--yellow);
}

.pilot-veteran::after {
    border-color: var(--yellow);
}

.pilot-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    margin-bottom: 8px;
}

.ace-name     { color: var(--orange);   }
.hero-name    { color: var(--sky-blue); }
.veteran-name { color: var(--yellow);   }

.pilot-role {
    font-size: 11px;
    color: #9090A0;
    margin-bottom: 15px;
    font-style: italic;
}

.pilot-bio {
    font-size: 11px;
    color: #B0B0C0;
    line-height: 1.7;
}

/* ============ MISSIONS SECTION ============ */

.missions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-image: url('/images/un-squadron-mission-select.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mission-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 80, 0.4);
    border: 1px solid rgba(92, 148, 252, 0.2);
    border-left: 4px solid;
    padding: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mission-item:hover {
    background: rgba(0, 0, 120, 0.6);
    transform: translateX(5px);
}

.mission-easy   { border-left-color: var(--green);  }
.mission-medium { border-left-color: var(--yellow); }
.mission-hard   { border-left-color: var(--orange); }
.mission-boss   { border-left-color: var(--red);    }

.mission-number {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(16px, 3vw, 24px);
    color: rgba(255, 255, 255, 0.15);
    font-weight: 900;
}

.mission-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(8px, 1.5vw, 11px);
    color: var(--white);
    margin-bottom: 6px;
}

.mission-info p {
    font-size: 11px;
    color: #8888A0;
    line-height: 1.5;
}

.mission-difficulty {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    padding: 6px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.diff-easy   { background: rgba(  0, 168,  0, 0.2); color: var(--green);  border: 1px solid var(--green);  }
.diff-medium { background: rgba(252, 192,  0, 0.2); color: var(--yellow); border: 1px solid var(--yellow); }
.diff-hard   { background: rgba(252, 116, 96, 0.2); color: var(--orange); border: 1px solid var(--orange); }
.diff-boss   { background: rgba(216,  40,  0, 0.2); color: var(--red);    border: 1px solid var(--red);    }

/* ============ WEAPONS SECTION ============ */

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    background-image: url('/images/un-squadron-weapons-select.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.weapon-card {
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(92, 148, 252, 0.3);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.weapon-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.weapon-standard::after { background: var(--sky-blue); }
.weapon-fire::after     { background: linear-gradient(90deg, var(--red),    var(--orange));   }
.weapon-missile::after  { background: linear-gradient(90deg, var(--yellow), var(--orange));   }
.weapon-bomb::after     { background: linear-gradient(90deg, var(--purple), var(--sky-blue)); }
.weapon-laser::after    { background: linear-gradient(90deg, #00FC00,       #00A800);         }

.weapon-card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.weapon-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.weapon-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--yellow);
    margin-bottom: 8px;
}

.weapon-desc {
    font-size: 10px;
    color: #9090A0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.weapon-cost {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    color: var(--green);
}

/* ============ HIGH SCORE TABLE ============ */

.score-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Press Start 2P', cursive;
    background-image: url('/images/un-squadron-high-score.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.score-table thead tr {
    background: linear-gradient(90deg, var(--dark-blue), var(--deeper-blue));
}

.score-table th {
    padding: 15px 20px;
    font-size: 9px;
    color: var(--yellow);
    text-align: left;
    border-bottom: 2px solid var(--orange);
    letter-spacing: 2px;
}

.score-table tbody tr {
    border-bottom: 1px solid rgba(92, 148, 252, 0.15);
    transition: background 0.2s ease;
}

.score-table tbody tr:hover {
    background: rgba(92, 148, 252, 0.1);
}

.score-table tbody tr:nth-child(1) td { color: var(--yellow); }
.score-table tbody tr:nth-child(2) td { color: #C0C0C0;       }
.score-table tbody tr:nth-child(3) td { color: #CD7F32;       }

.score-table td {
    padding: 15px 20px;
    font-size: 9px;
    color: #a8c3d5;
}

.rank-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 10px;
}

.rank-1     { background: var(--yellow); color: var(--dark);  }
.rank-2     { background: #C0C0C0;       color: var(--dark);  }
.rank-3     { background: #CD7F32;       color: var(--dark);  }
.rank-other { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* ============ PILOT'S HANDBOOK / TIPS ============ */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    background-image: url('/images/un-squadron-pilots-handbook.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tip-card {
    background: rgba(5, 5, 20, 0.7);
    border: 1px solid rgba(92, 148, 252, 0.2);
    border-radius: 6px;
    padding: 22px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--sky-blue);
    background: rgba(0, 0, 80, 0.4);
}

.tip-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.tip-content h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--orange);
    margin-bottom: 8px;
}

.tip-content p {
    font-size: 11px;
    color: #A0A0B0;
    line-height: 1.7;
}

/* ============ PIXEL BURST CONTAINER ============ */

.burst-container {
    position: absolute;
    pointer-events: none;
}

/* ============ FOOTER ============ */

footer {
    background: linear-gradient(180deg, #05050F, #000000);
    border-top: 3px solid var(--dark-blue);
    padding: 50px 20px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--orange),
        var(--yellow),
        var(--orange),
        transparent
    );
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(14px, 3vw, 24px);
    background: linear-gradient(180deg, #FCC000, #FC7800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.footer-tagline {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--sky-blue);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-copy {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    color: #404060;
    line-height: 2;
}

/* ============ PIXEL HEARTS ============ */

.pixel-hearts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.pixel-heart {
    width: 12px;
    height: 12px;
    background: var(--red);
    position: relative;
    transform: rotate(45deg);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.pixel-heart::before,
.pixel-heart::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
}

.pixel-heart::before { left: -50%; top: 0;  }
.pixel-heart::after  { top: -50%;  left: 0; }

.pixel-heart:nth-child(2) { animation-delay: 0.3s; }
.pixel-heart:nth-child(3) { animation-delay: 0.6s; }

@keyframes heartbeat {
    0%, 100% { transform: rotate(45deg) scale(1);   }
    50%       { transform: rotate(45deg) scale(1.2); }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {

    nav .nav-links {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .mission-item {
        grid-template-columns: 50px 1fr;
    }

    .mission-difficulty {
        display: none;
    }

    .hud-display {
        grid-template-columns: repeat(2, 1fr);
    }

    .score-table th:nth-child(4),
    .score-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hud-display {
        grid-template-columns: repeat(2, 1fr);
    }
}