/* ===== Hyperpony.ru CSS ===== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --win-bg: #fff0f8;
    --win-panel: #f8e0f0;
    --border-light: #ffe0ff;
    --border-dark: #997799;
}

body {
    background: var(--win-bg);
    color: #2a2a2a;
    font-family: 'Press Start 2P', system-ui;
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    padding: 30px 15px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Floating Pixel Squares (Minecraft / Firefly style) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(4px 4px at 20% 30%, #ff99cc, transparent),
        radial-gradient(6px 6px at 60% 70%, #aaccff, transparent),
        radial-gradient(5px 5px at 80% 40%, #ffccff, transparent),
        radial-gradient(4px 4px at 40% 80%, #cc99ff, transparent);
    background-size: 180px 180px, 250px 250px, 140px 140px, 200px 200px;
    pointer-events: none;
    z-index: 0;
    animation: floatPixels 25s linear infinite;
    opacity: 0.45;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(3px 3px at 30% 50%, #ffbbff, transparent),
        radial-gradient(5px 5px at 70% 20%, #99eeff, transparent);
    background-size: 160px 160px, 220px 220px;
    pointer-events: none;
    z-index: 0;
    animation: floatPixels 18s linear infinite reverse;
    opacity: 0.35;
}

@keyframes floatPixels {
    0%   { background-position: 0 0, 80px 60px, 150px 120px, 200px 80px; }
    100% { background-position: 300px 400px, -100px 300px, 400px -150px, -80px 250px; }
}

/* Main containers */
.main-container, .content-wrapper {
    background: var(--win-panel);
    border: 4px solid;
    border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 6px 8px 0 rgba(0,0,0,0.25);
}

.content {
    background: #fff8fb;
    border: 3px inset #bb99cc;
    padding: 28px;
    position: relative;
    z-index: 1;
}

/* Pixel Art Text - Clean & Readable */
h1, h2, h3, p, li {
    font-family: 'Press Start 2P', system-ui;
    color: #2a2a2a;
    text-shadow: none;
}

h1 { font-size: 21px; line-height: 1.4; margin: 24px 0 16px; }
h2 { font-size: 17px; line-height: 1.5; margin: 28px 0 14px; }
h3 { font-size: 15px; }

p, li {
    font-size: 14.5px;
    margin: 18px 0;
}

/* Gradients ONLY on Links (No Shadows) */
a {
    font-family: 'Press Start 2P', system-ui;
    background: linear-gradient(90deg, #ff99cc, #cc99ff, #99ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    padding: 2px 4px;
    transition: all 0.2s;
}

a:hover {
    background: linear-gradient(90deg, #ff55aa, #aa77ff, #55aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-1px);
}

/* Navigation */
nav {
    background: var(--win-panel);
    border: 4px solid;
    border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
    padding: 10px;
    margin-bottom: 25px;
}

nav a {
    display: inline-block;
    padding: 10px 18px;
    margin: 4px;
    font-size: 12.5px;
    border: 2px solid;
    border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
}

/* Images */
img {
    border: 4px solid #bb99cc;
    border-top-color: #ffe0ff;
    border-left-color: #ffe0ff;
    padding: 6px;
    background: #fff8fb;
    image-rendering: pixelated;
}

/* Footer */
footer {
    font-family: 'Press Start 2P', system-ui;
    font-size: 11px;
    text-align: center;
    color: #665577;
    padding: 30px;
}

/* Mobile Interface Styles */
.touch-friendly {
        min-width: 48px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #ddd;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .bottom-nav-container {
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
    }
    
    .bottom-nav-item {
        text-align: center;
        color: #666;
        text-decoration: none;
        font-size: 0.8rem;
    }
    
    .bottom-nav-item.active {
        color: #007aff;
    }
    
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #000;
        color: white;
        padding: 8px;
        z-index: 10000;
    }
    .skip-link:focus {
        top: 6px;
    }
}

/* Active touch feedback */
.active-touch {
    transform: scale(0.95);
    opacity: 0.8;
    transition: all 0.1s;
}