:root {
    --blue: #0496FF;
    --bg-body: #f5f7fa;
    --bg-card: #ffffff;
    --text-main: #2C3E50;
    --text-muted: #ffffff;
    --header-bg: #DCF0FB;
    --border-color: #e0e0e0;
}

[data-theme="dark"] {
    --blue: #0496FF;
    --bg-body: #000000;
    --bg-card: #242424;
    --text-main: #ffffff;
    --text-muted: #fdfdfd;
    --header-bg: #1a1a1a;
    --border-color: #444444;
}

body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    color: var(--text-main); 
    margin: 0; 
    line-height: 1.7; 
    background-color: var(--bg-body);
    transition: background-color 0.3s, color 0.3s;
}

.controls {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-card);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--blue);
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover { background: var(--header-bg); }

select, .theme-toggle {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--blue);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    font-weight: bold;
}

header { 
    background: var(--header-bg); 
    text-align: center; 
    padding: 120px 20px 80px; 
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.donate-btn-top {
    position: absolute;
    top: 80px;
    right: 20px;
}

.container { max-width: 850px; margin: 0 auto; padding: 20px; }

.content-section { 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    margin-bottom: 40px; 
    scroll-margin-top: 80px;
}

.logo { width: 110px; border-radius: 25px; margin-bottom: 0px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

h1, h2, h3 { color: var(--blue); }

.mission-box { 
    background: var(--blue); 
    color: white; 
    padding: 5px; 
    border-radius: 20px; 
    margin: 40px 0; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(4,150,255,0.3);
}

.mission-box h2 { color: white; margin-top: 0; }

.download-section { text-align: center; padding: 20px 0; }

.play-button { height: 60px; }

.screenshot-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 15px; 
    margin: 30px 0; 
}

.screenshot-grid img { 
    width: 100%; 
    border-radius: 10px; 
    border: 1px solid var(--bg-body); 
}

.permission-badge { 
    display: inline-block; 
    background: var(--header-bg); 
    color: var(--blue); 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

.contact-info { 
    background: var(--bg-body); 
    padding: 20px; 
    border-radius: 10px; 
    border-left: 5px solid var(--blue); 
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: var(--blue);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1001;
}

#backToTop:hover {
    opacity: 0.9;
}

footer { 
    text-align: center; 
    padding: 60px; 
    color: var(--text-muted); 
    border-top: 1px solid var(--border-color); 
}