/* Small Dino Games — shared design system
   Used by:
   - /index.html
   - /privacy/index.html
*/

:root {
    --bg-deep:    #0b0f2a;
    --bg-mid:     #1a1450;
    --bg-glow:    #5b2bd9;
    --accent-1:   #ff6b9d;   /* pink   */
    --accent-2:   #ffd166;   /* yellow */
    --accent-3:   #4ad6ff;   /* cyan   */
    --accent-4:   #7cf0a7;   /* green  */
    --text:       #ffffff;
    --text-dim:   rgba(255,255,255,0.78);
    --text-soft:  rgba(255,255,255,0.62);
    --card-bg:    rgba(255,255,255,0.06);
    --card-bd:    rgba(255,255,255,0.14);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg-deep);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.55;
}

/* Cosmic background */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}
body::before {
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%,  rgba(91,43,217,0.55), transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 15%,  rgba(255,107,157,0.35), transparent 65%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(74,214,255,0.30), transparent 65%),
        linear-gradient(160deg, #0b0f2a 0%, #1a1450 60%, #0b0f2a 100%);
}
body::after {
    background-image:
        radial-gradient(2px 2px at 20% 30%,  rgba(255,255,255,0.85), transparent 50%),
        radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,0.7),  transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.5),  transparent 50%),
        radial-gradient(2px 2px at 85% 20%,  rgba(255,255,255,0.8),  transparent 50%),
        radial-gradient(1px 1px at 10% 70%,  rgba(255,255,255,0.6),  transparent 50%),
        radial-gradient(1.5px 1.5px at 60% 25%, rgba(255,255,255,0.55), transparent 50%),
        radial-gradient(1px 1px at 30% 50%,   rgba(255,255,255,0.7),  transparent 50%),
        radial-gradient(2px 2px at 90% 80%,   rgba(255,255,255,0.75), transparent 50%);
    background-size: 100% 100%;
    animation: twinkle 6s ease-in-out infinite alternate;
    opacity: 0.85;
}
@keyframes twinkle {
    0%   { opacity: 0.55; transform: translateY(0); }
    100% { opacity: 0.95; transform: translateY(-6px); }
}

/* Drifting decorative blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: -1;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite;
}
.blob.b1 { width: 380px; height: 380px; background: var(--accent-1); top: -120px; left: -120px; }
.blob.b2 { width: 320px; height: 320px; background: var(--accent-3); top: 40%;   right: -100px; animation-delay: -6s; }
.blob.b3 { width: 280px; height: 280px; background: var(--accent-2); bottom: -100px; left: 30%; animation-delay: -12s; opacity: 0.30; }
@keyframes drift {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.08); }
}

/* Layout */
.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Top navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--text);
    text-decoration: none;
}
.brand img {
    width: 38px; height: 38px;
    filter: drop-shadow(0 4px 10px rgba(255,107,157,0.4));
}
.top-nav .links { display: flex; gap: 28px; }
.top-nav .links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.top-nav .links a:hover { color: var(--text); }

/* Footer */
footer {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
footer .container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
footer .footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
footer a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}
footer a:hover { color: var(--text); }
footer .copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* Scroll-reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .top-nav .links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .blob, body::after { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
