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

:root {
    
    --deep-ocean: #1E3A5F;
    --ocean-teal: #2D6A8F;
    --fresh-water: #4A90A4;
    --light-aqua: #7FDBCA;
    
    
    --fisherman-orange: #FF6B35;
    --golden-catch: #FFB84D;
    --sunset-coral: #FF8C69;
    
    
    --sand-beige: #F5E6D3;
    --wave-white: #F8FAFB;
    --pearl-gray: #E8EDF0;
    --deep-charcoal: #2C3E50;
    --stone-gray: #5A6C7D;
    
    
    --ocean-surface: #87CEEB;
    --ocean-mid: #4682B4;
    --ocean-deep: #1E3A5F;
    --ocean-abyss: #0F2557;
    
    
    --gradient-ocean-game: linear-gradient(to bottom, 
        var(--ocean-surface) 0%, 
        #5F9EA0 20%,
        var(--ocean-mid) 40%,
        var(--ocean-deep) 70%,
        var(--ocean-abyss) 100%);
    
    --gradient-ocean-nav: linear-gradient(135deg, var(--deep-ocean), var(--ocean-teal));
    --gradient-sunset: linear-gradient(135deg, var(--fisherman-orange), var(--golden-catch));
    
    
    --shadow-light: 0 2px 8px rgba(30, 58, 95, 0.1);
    --shadow-medium: 0 4px 16px rgba(30, 58, 95, 0.15);
    --shadow-heavy: 0 8px 24px rgba(30, 58, 95, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--wave-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    background: var(--gradient-ocean-nav);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}


.game-main {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
    background: linear-gradient(to bottom, var(--wave-white), var(--pearl-gray));
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    color: var(--deep-ocean);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.score-panel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.score-item {
    background: white;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border-top: 4px solid var(--fresh-water);
    transition: transform 0.3s ease;
    min-width: 150px;
}

.score-item:hover {
    transform: translateY(-3px);
}

.score-label {
    display: block;
    color: var(--stone-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.score-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-ocean);
}


.game-area {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--gradient-ocean-game);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    cursor: crosshair;
    position: relative;
}


.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.05) 50px,
        rgba(255, 255, 255, 0.05) 52px
    );
    animation: wave-animation 10s linear infinite;
    pointer-events: none;
}

@keyframes wave-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    z-index: 10;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--fresh-water);
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instructions h2 {
    color: var(--deep-ocean);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.instructions p {
    margin-bottom: 0.8rem;
    color: var(--stone-gray);
    font-size: 1.1rem;
}

.start-button, .play-button {
    background: var(--gradient-sunset);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    width: auto;
    min-width: 200px;
}

.start-button:hover, .play-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}


.fish {
    position: absolute;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
    animation: swim 3s infinite ease-in-out;
    z-index: 5;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.fish:hover {
    transform: scale(1.3);
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.4));
}

.fish.caught {
    animation: caught 0.5s ease-out forwards;
}

@keyframes swim {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-25px) rotate(5deg);
    }
}

@keyframes caught {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(2.5) translateY(-150px) rotate(360deg);
        opacity: 0;
    }
}


.fish-small {
    font-size: 2rem;
}

.fish-medium {
    font-size: 3.5rem;
}

.fish-large {
    font-size: 5rem;
}


.score-popup {
    position: absolute;
    font-size: 2rem;
    font-weight: 700;
    color: var(--golden-catch);
    pointer-events: none;
    animation: popup 1s ease-out forwards;
    z-index: 10;
}

@keyframes popup {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.8);
    }
}


.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    z-index: 20;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--fisherman-orange);
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-over h2 {
    color: var(--deep-ocean);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.game-over p {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--stone-gray);
}

.final-number {
    color: var(--fisherman-orange);
    font-weight: 700;
    font-size: 1.8rem;
}

.well-done {
    color: var(--deep-ocean);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.hidden {
    display: none;
}


footer {
    background: var(--deep-charcoal);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-ocean);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section {
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    color: var(--golden-catch);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--fresh-water);
}

.footer-section p {
    color: #ECF0F1;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #BDC3C7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--light-aqua);
    transform: translateX(5px);
}

.footer-contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact-item strong {
    color: var(--golden-catch);
    min-width: 80px;
    font-size: 0.9rem;
}

.footer-contact-item span,
.footer-contact-item a {
    color: #BDC3C7;
    font-size: 0.95rem;
}

.fs-explanation {
    font-size: 0.9rem;
    line-height: 1.6;
    background: rgba(127, 219, 202, 0.15);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--light-aqua);
    color: #ECF0F1;
}

.fs-explanation strong {
    color: var(--golden-catch);
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-legal-links a {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links a:hover {
    background: rgba(127, 219, 202, 0.2);
    border-color: var(--light-aqua);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95A5A6;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #7F8C8D;
}


.cta-registration {
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--ocean-teal) 50%, var(--fresh-water) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
}

.cta-registration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-registration h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.cta-registration > .container > .cta-content > p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-registration p strong {
    color: var(--golden-catch);
    font-size: 1.4rem;
    font-weight: 700;
}

.cta-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-benefits li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: var(--golden-catch);
    font-weight: 700;
    font-size: 1.3rem;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-sunset);
    color: white;
    padding: 1.3rem 3.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-heavy);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--fisherman-orange) 0%, var(--golden-catch) 100%);
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}


@media (max-width: 768px) {
    .game-area {
        height: 500px;
    }
    
    .score-panel {
        gap: 1rem;
    }
    
    .score-item {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
    
    .score-value {
        font-size: 1.5rem;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .instructions {
        padding: 2rem;
        max-width: 90%;
    }
    
    .game-over {
        padding: 2rem;
        max-width: 90%;
    }
    
    
    .cta-registration h2 {
        font-size: 2rem;
    }
    
    .cta-registration > .container > .cta-content > p {
        font-size: 1.1rem;
    }
    
    .cta-benefits {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

