/* --- Base Variables & Settings --- */
:root {
    --primary-green: #75a843;
    --primary-green-hover: #5d8833;
    --bg-sky: #95c8d8;
    --bg-pond: #a7d8d2;
    --text-dark: #2a2a2a;
    --text-light: #5b5b5b;
    --modal-bg: #f5f5ee;
    --border-color: #3b3b3b;
    --pixel-font: 'VT323', monospace;
    --body-font: 'Inter', sans-serif;
    
    /* Box shadows for pixelated borders */
    --pixel-border: 
        0 4px 0 var(--border-color),
        0 -4px 0 var(--border-color),
        4px 0 0 var(--border-color),
        -4px 0 0 var(--border-color);
}

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

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    overflow: hidden; /* Prevent scrolling for the full page app feel */
    background-color: var(--bg-sky);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Scenery & Background --- */
.scenery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sky {
    height: 60%;
    background: linear-gradient(180deg, #64a6bd 0%, #9bcada 100%);
    position: relative;
}

/* Sun Pixel Art using box-shadow */
.sun {
    position: absolute;
    top: 50px;
    right: 15%;
    width: 10px;
    height: 10px;
    background: #ffcc00;
    box-shadow: 
        0 -10px #ffcc00, 0 -20px #ffcc00, 0 -30px #ffcc00, 0 -40px #ffcc00,
        10px -10px #ffcc00, 20px -20px #ffcc00, 30px -30px #ffcc00,
        10px 0 #ffcc00, 20px 0 #ffcc00, 30px 0 #ffcc00, 40px 0 #ffcc00,
        10px 10px #ffcc00, 20px 20px #ffcc00, 30px 30px #ffcc00,
        0 10px #ffcc00, 0 20px #ffcc00, 0 30px #ffcc00, 0 40px #ffcc00,
        -10px 10px #ffcc00, -20px 20px #ffcc00, -30px 30px #ffcc00,
        -10px 0 #ffcc00, -20px 0 #ffcc00, -30px 0 #ffcc00, -40px 0 #ffcc00,
        -10px -10px #ffcc00, -20px -20px #ffcc00, -30px -30px #ffcc00,
        
        /* Sun rays */
        0 -60px #ffcc00, 0 -70px #ffcc00,
        0 60px #ffcc00, 0 70px #ffcc00,
        60px 0 #ffcc00, 70px 0 #ffcc00,
        -60px 0 #ffcc00, -70px 0 #ffcc00,
        40px -40px #ffcc00, 50px -50px #ffcc00,
        -40px -40px #ffcc00, -50px -50px #ffcc00,
        40px 40px #ffcc00, 50px 50px #ffcc00,
        -40px 40px #ffcc00, -50px 50px #ffcc00;
        
    animation: rotateSun 60s linear infinite;
    transform-origin: 5px 5px;
}

@keyframes rotateSun {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clouds with Data URI SVGs to keep it simple but pixelated */
.cloud {
    position: absolute;
    width: 120px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 60"><path fill="%23fff" d="M30 40h70v10H30zM40 30h50v10H40zM50 20h30v10H50zM60 10h10v10H60z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
}
.cloud-1 { top: 10%; left: 10%; animation: floatCloud 40s linear infinite; }
.cloud-2 { top: 20%; left: 40%; width: 160px; height: 80px; animation: floatCloud 60s linear infinite reverse; }
.cloud-3 { top: 15%; left: 70%; animation: floatCloud 50s linear infinite; }

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

.bird {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path fill="%23ffd700" d="M10 10h10v10H10zM5 15h5v5H5zM20 15h5v5h-5z"/></svg>');
    background-size: contain;
}
.bird-1 { top: 25%; left: 50%; animation: flap 2s infinite, fly 20s linear infinite; }
.bird-2 { top: 18%; left: 20%; animation: flap 1.5s infinite, fly 15s linear infinite; }

@keyframes flap {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes fly {
    0% { left: 0%; }
    100% { left: 100%; }
}

.horizon {
    height: 20px;
    background-color: #6da278; /* Grass horizon line */
    position: relative;
    border-top: 4px solid var(--border-color);
    border-bottom: 4px solid var(--border-color);
}

.pond {
    height: calc(40% - 20px);
    background: linear-gradient(180deg, #96d1c9 0%, #b8e0d9 100%);
    position: relative;
}

/* Lilypads */
.lilypad {
    position: absolute;
    width: 60px;
    height: 20px;
    background-color: #63b34b;
    border: 4px solid var(--border-color);
    border-radius: 50%;
}
.lily-1 { top: 30%; left: 30%; width: 50px; height: 16px; }
.lily-2 { top: 50%; left: 75%; width: 70px; height: 24px; }
.lily-3 { top: 70%; left: 45%; width: 40px; height: 14px; }

/* Flower on lily-2 */
.flower {
    position: absolute;
    top: -10px;
    left: 25px;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    box-shadow: inset 0 0 0 3px #ff9ecd;
}

/* Frog */
.frog {
    position: absolute;
    bottom: 20px;
    left: 10%;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="40" width="60" height="60" fill="%236cb538" stroke="%233b3b3b" stroke-width="4"/><rect x="25" y="25" width="20" height="20" fill="%236cb538" stroke="%233b3b3b" stroke-width="4"/><rect x="55" y="25" width="20" height="20" fill="%236cb538" stroke="%233b3b3b" stroke-width="4"/><rect x="30" y="30" width="10" height="10" fill="white" stroke="%233b3b3b" stroke-width="4"/><rect x="60" y="30" width="10" height="10" fill="white" stroke="%233b3b3b" stroke-width="4"/><rect x="40" y="70" width="20" height="10" fill="%233b3b3b"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: bob 3s infinite ease-in-out;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cattails */
.cattail {
    position: absolute;
    width: 12px;
    height: 80px;
    background-color: #694b29; /* brown tail */
    border: 4px solid var(--border-color);
    bottom: 40%;
}
.cattail::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 4px;
    height: 60px;
    background-color: #3f7035; /* green stem */
}
.cattail-left-1 { left: 5%; height: 60px; }
.cattail-left-2 { left: 15%; height: 90px; bottom: 30%; }
.cattail-right-1 { right: 10%; height: 100px; bottom: 20%; }
.cattail-right-2 { right: 5%; height: 70px; }

/* --- UI Overlay --- */
.ui-layer {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    font-family: var(--body-font);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><rect x="5" y="10" width="20" height="20" fill="%236cb538" stroke="%233b3b3b" stroke-width="2"/><rect x="6" y="5" width="6" height="6" fill="%236cb538" stroke="%233b3b3b" stroke-width="2"/><rect x="18" y="5" width="6" height="6" fill="%236cb538" stroke="%233b3b3b" stroke-width="2"/></svg>');
    background-size: contain;
}

.logo-text {
    font-family: var(--pixel-font);
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
}

.badge {
    font-size: 10px;
    font-weight: 600;
    background-color: rgba(255,255,255,0.4);
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 1px;
    border: 1px solid rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s;
}
.nav-links a:hover {
    opacity: 0.7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    cursor: pointer;
    font-family: var(--body-font);
    font-weight: 600;
    padding: 12px 24px;
    border: 4px solid var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
    transition: transform 0.1s, box-shadow 0.1s;
    /* pixelated corners effect */
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.btn-pixel {
    font-family: var(--pixel-font);
    font-size: 18px;
    padding: 10px 20px;
}

.btn-nav-join {
    background-color: var(--primary-green);
    color: var(--text-dark);
}
.btn-nav-join:hover {
    background-color: var(--primary-green-hover);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.2s;
}
.btn-icon:hover {
    transform: rotate(30deg);
}

/* Main Content Modal */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: var(--modal-bg);
    border: 6px solid var(--border-color);
    padding: 60px 80px;
    max-width: 800px;
    text-align: center;
    border-radius: 12px;
    /* Pixel shadow */
    box-shadow: 
        12px 12px 0 rgba(0,0,0,0.05),
        -6px -6px 0 rgba(255,255,255,0.4) inset;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 20;
    
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--pixel-font);
    font-size: 16px;
    margin-bottom: 32px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.modal-title {
    font-family: var(--pixel-font);
    font-size: 64px;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.modal-desc {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 48px;
}

.modal-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background-color: var(--primary-green);
    font-size: 20px;
    padding: 16px 32px;
}
.btn-primary:hover {
    background-color: var(--primary-green-hover);
}

.btn-secondary {
    background-color: #fff;
    font-size: 20px;
    padding: 16px 32px;
}
.btn-secondary:hover {
    background-color: #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-title { font-size: 42px; }
    .modal { padding: 40px 30px; margin: 0 20px; }
    .nav-links { display: none; }
    .modal-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
}
