:root {
    --bg-dark: #071a12;
    --bg-mid: #0d2d1e;
    --bg-light: #0f3d2a;
    --surface: rgba(255,255,255,0.96);
    --surface-2: #edfff1;
    --panel: #f4fff7;
    --panel-strong: #dfffe8;
    --primary: #4fe06f;
    --primary-2: #1ab94d;
    --primary-3: #0a7d33;
    --secondary: #e8ffef;
    --text: #123e2a;
    --text-soft: #396b4d;
    --shadow: rgba(5, 30, 18, 0.28);
    --shadow-strong: rgba(7, 26, 18, 0.45);
    --line: rgba(19, 92, 42, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(107,255,144,0.28), transparent 36%),
        linear-gradient(180deg, #8cf7a5 0%, #61d978 18%, #2ca65d 56%, #0e4f2e 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    transition: all 0.2s ease;
}

/* =================
   HEADER
================= */

header {
    position: sticky;
    top: 0;
    z-index: 30;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 18px 6%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 4px solid rgba(16, 102, 45, 0.8);
    box-shadow: 0 10px 25px rgba(12, 64, 37, 0.12);
}

.logo img {
    width: 68px;
    filter: drop-shadow(0 6px 0 rgba(19,98,46,0.9)) drop-shadow(0 12px 20px rgba(0,0,0,0.22));
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    color: var(--primary-3);
    text-decoration: none;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #ecffef 100%);
    border: 3px solid #3ac65f;
    border-radius: 12px;
    box-shadow: 0 5px 0 #1c8d3d, 0 10px 18px rgba(24, 88, 44, 0.12);
}

nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #1c8d3d, 0 16px 22px rgba(24, 88, 44, 0.18);
}

/* =================
   HERO
================= */

.hero {
    min-height: 680px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 4% 12% auto;
    height: 80%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.24), transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-logo {
    width: 180px;
    margin: 0 auto 18px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 0 rgba(19,98,46,0.9)) drop-shadow(0 18px 26px rgba(0,0,0,0.22));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

h1 {
    margin-top: 10px;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    color: #fdfefc;
    text-shadow: 0 5px 0 #148133, 0 14px 28px rgba(0,0,0,0.35);
}

.hero p {
    max-width: 640px;
    margin: 22px auto 0;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 10px rgba(9,47,23,0.3);
}

/* =================
   BUTTONS
================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.btn {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fefefe;
    background: linear-gradient(180deg, #75f085 0%, #28b94a 100%);
    border: 4px solid #167f2d;
    box-shadow: 0 7px 0 #0f5e20, 0 16px 26px rgba(15,94,32,0.22), inset 0 4px rgba(255,255,255,0.35);
    text-shadow: 0 2px rgba(12,76,31,0.5);
}

.btn:hover {
    transform: translateY(-4px) scale(1.01);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #0f5e20, 0 8px 18px rgba(15,94,32,0.18);
}

.secondary {
    color: var(--primary-3);
    background: linear-gradient(180deg, #ffffff 0%, #ecffef 100%);
    text-shadow: none;
}

/* =================
   GAMES
================= */

.games {
    padding: 80px 6% 20px;
}

h2 {
    text-align: center;
    margin-bottom: 34px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #f5fff7;
    text-shadow: 0 4px 0 #126b2d, 0 12px 22px rgba(0,0,0,0.18);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.game-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(233,255,237,0.94) 100%);
    border-radius: 20px;
    border: 4px solid #39bf51;
    box-shadow: 0 10px 0 #1d8b3d, 0 18px 35px rgba(11, 49, 30, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 0 #1d8b3d, 0 28px 40px rgba(11,49,30,0.26);
}

.game-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 4px solid #39bf51;
    background: linear-gradient(135deg, #c7ffd3, #78db8b);
}

.game-card h3 {
    margin: 20px 20px 12px;
    font-size: 1.65rem;
    color: #176f31;
}

.game-card p {
    margin: 0 20px 24px;
    min-height: 52px;
    color: #426f53;
    line-height: 1.5;
}

.play-btn {
    display: block;
    width: max-content;
    margin: 0 auto 24px;
    padding: 12px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #73ef83 0%, #25b63f 100%);
    border: 3px solid #16812b;
    box-shadow: 0 5px 0 #0f5d20;
}

.play-btn:hover {
    transform: translateY(-3px);
}

/* =================
   ABOUT
================= */

.about {
    margin: 60px 8% 0;
    padding: 56px 9%;
    text-align: center;
    background: rgba(255,255,255,0.9);
    border: 4px solid #39bf51;
    border-radius: 24px;
    box-shadow: 0 10px 0 #1d8b3d, 0 18px 30px rgba(9,42,24,0.18);
}

.about h2 {
    color: #187d31;
    text-shadow: none;
    margin-bottom: 18px;
}

.about p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.8;
}

/* =================
   FOOTER
================= */

footer {
    text-align: center;
    padding: 38px 20px 52px;
    margin-top: 60px;
    background: rgba(255,255,255,0.92);
    border-top: 4px solid #39bf51;
    color: #187e34;
}

footer img {
    width: 54px;
    margin: 0 auto 12px;
}

footer p {
    margin-top: 8px;
    font-weight: 600;
}

/* =================
   MOBILE
================= */

@media (max-width: 700px) {
    header {
        flex-direction: column;
        padding: 18px 20px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        width: 100%;
        padding: 10px 12px;
    }

    .hero {
        min-height: 520px;
        padding-top: 42px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .about {
        margin: 36px 5% 0;
        padding: 40px 6%;
    }
}

/* =================
   OFFLINE BANNER
================= */

.offline-banner {
    position: relative;
    margin: 0 6% 0;
    padding: 35px 40px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(233,255,237,0.95));
    border: 5px solid #39bd50;
    border-radius: 22px;
    box-shadow: 0 10px 0 #208b35, 0 22px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: bannerPulse 3s ease-in-out infinite;
}

.offline-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: bannerShine 4s linear infinite;
    pointer-events: none;
}

@keyframes bannerShine {
    100% { transform: translateX(100%); }
}

@keyframes bannerPulse {
    0%, 100% {
        box-shadow: 0 10px 0 #208b35, 0 22px 40px rgba(0,0,0,0.18);
    }
    50% {
        box-shadow: 0 10px 0 #208b35, 0 22px 40px rgba(0,0,0,0.18), 0 0 42px rgba(100,242,117,0.65);
    }
}

.offline-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #79f08b 0%, #25b63f 100%);
    border: 3px solid #16812b;
    border-radius: 50px;
    box-shadow: 0 4px 0 #105e20, inset 0 3px rgba(255,255,255,0.3);
    animation: badgeBlink 1.6s ease-in-out infinite;
}

@keyframes badgeBlink {
    50% { transform: scale(1.05); }
}

.offline-banner h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(30px, 5vw, 48px);
    text-shadow: 0 4px 0 #16802b, 0 12px 20px rgba(0,0,0,0.25);
}

.offline-banner p {
    margin: 0 auto 22px;
    max-width: 650px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.offline-banner .btn {
    font-size: 1.05rem;
    padding: 16px 32px;
}

@media (max-width: 700px) {
    .offline-banner {
        margin: 0 5%;
        padding: 30px 20px;
    }

    .offline-banner .btn {
        width: 100%;
        padding: 15px 20px;
    }
}
