/* Reset & base */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #fef9f4;
    color: #3a2c21;
    font-size: 18px;
    letter-spacing: 0.02em;
    min-height: 100vh;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
a {
    color: #b27c40;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover,
a:focus {
    color: #e3b04b;
    outline: none;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* Header */
.main-header {
    background: linear-gradient(90deg, #d4b370, #b28b3b);
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff9e6;
    text-shadow: 1px 1px 2px #5a3c00;
}
.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 0 8px #b27c40cc;
    background: #fff9e6;
    padding: 2px;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.6rem;
}
.nav-menu li a {
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    background: #b27c40cc;
    color: #fff9e6;
    box-shadow: 0 2px 6px #8a652fcc;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}
.nav-menu li a:hover,
.nav-menu li a:focus {
    background: #e3b04b;
    box-shadow: 0 4px 12px #e3b04bcc;
    color: #3a2c21;
    outline: none;
}
/* Hero Section */
.hero-section {
    background: url("img/gameplay-city.webp?flamingtoper=full") no-repeat center
        center/cover;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #fff9e6;
    text-shadow: 1.5px 1.5px 5px #3a2c21cc;
    padding: 3rem 0;
    position: relative;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #3a2c211a 0%, #3a2c214d 80%);
    z-index: 0;
    border-radius: 16px;
}
.hero-section .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-section h1 {
    font-size: 3.8rem;
    margin-bottom: 0.4rem;
    font-weight: 900;
}
.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #f3d27a;
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 480px;
    margin-bottom: 2.2rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.download-badges {
    display: flex;
    gap: 1.3rem;
    margin-bottom: 0.8rem;
}
.badge img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25));
    border-radius: 14px;
    transition: transform 0.3s ease;
}
.badge:hover img,
.badge:focus img {
    transform: scale(1.1);
    outline: none;
}
.disclaimer {
    font-size: 0.9rem;
    font-style: italic;
    color: #f3d27add;
}
/* Sections general */
.content-section,
.features-section,
.gallery-section,
.how-to-play,
.cta-section {
    padding: 4rem 0;
}
h3 {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: #b27c40;
    text-shadow: 1px 1px 1px #e6d9b5;
}
/* Grid content */
.grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.4rem;
    align-items: center;
}
/* Text blocks */
.text-block p {
    margin-bottom: 1.3rem;
    font-size: 1.15rem;
    color: #4a3c21;
    letter-spacing: 0.01em;
    text-align: justify;
    line-height: 1.65;
}
/* Image blocks */
.image-block .content-img {
    border-radius: 24px;
    box-shadow: 0 6px 18px rgb(162 130 60 / 0.45);
    transition: transform 0.35s ease;
    cursor: default;
}
.image-block .content-img:hover,
.image-block .content-img:focus {
    transform: scale(1.04);
    outline: none;
}
/* Features list as cards */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    padding: 0;
    list-style: none;
}
.features-list li {
    background: linear-gradient(135deg, #f7edd8, #e6d9b5);
    border-radius: 20px;
    padding: 1.8rem 1.6rem;
    box-shadow:
        0 4px 8px rgb(179 124 64 / 0.25),
        inset 0 0 10px rgb(255 255 255 / 0.5);
    color: #5d4b1b;
    font-weight: 600;
    font-size: 1.1rem;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
    cursor: default;
    user-select: none;
}
.features-list li:hover,
.features-list li:focus {
    box-shadow:
        0 8px 18px rgb(179 124 64 / 0.5),
        inset 0 0 15px rgb(255 255 255 / 0.75);
    transform: translateY(-6px);
    outline: none;
}
/* Screenshot gallery */
.gallery-section p {
    max-width: 720px;
    margin: 0 auto 2.6rem auto;
    font-size: 1.1rem;
    text-align: center;
    color: #6a5a32;
    letter-spacing: 0.02em;
}
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    border-radius: 18px;
}
.screenshot-grid img {
    border-radius: 18px;
    box-shadow: 0 6px 20px rgb(162 130 60 / 0.35);
    cursor: default;
    transition: transform 0.3s ease;
}
.screenshot-grid img:hover,
.screenshot-grid img:focus {
    transform: scale(1.05);
    outline: none;
}
/* How to play */
.steps-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #553e0b;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.steps-list li {
    position: relative;
    padding-left: 3.8rem;
    background: #f2e8cc;
    border-radius: 18px;
    box-shadow:
        inset 2px 2px 6px #d3c49e,
        0 2px 6px rgb(130 98 26 / 0.25);
    transition: background-color 0.3s ease;
    cursor: default;
}
.steps-list li:hover,
.steps-list li:focus {
    background-color: #e3d1a1;
    outline: none;
}
.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #b27c40;
    color: #fff9e6;
    font-weight: 900;
    font-size: 1.4rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2.8rem;
    box-shadow: 0 2px 6px #7e5f21cc;
}
/* Call to action */
.cta-section {
    background: linear-gradient(135deg, #b27c40dd, #e3b04bdd);
    color: #fff9e6;
    text-align: center;
    padding: 5rem 1rem 5rem 1rem;
    border-radius: 30px;
    margin: 4rem 0 8rem 0;
    box-shadow: 0 10px 35px rgb(179 124 64 / 0.7);
}
.cta-section h3 {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    font-weight: 900;
    text-shadow: 1px 1px 6px #3a2c21cc;
}
.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.6rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px #3a2c21bb;
}
.cta-section .download-badges {
    justify-content: center;
}
/* Footer */
.main-footer {
    background: #3a2c21;
    color: #d6c8ad;
    padding: 3rem 0 2rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto 1.6rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
    border-bottom: 1px solid #5b4b2b88;
    padding-bottom: 2rem;
}
.footer-info h4,
.footer-links h4,
.footer-legal h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e3b04b;
    text-shadow: 0 1px 2px #2f220e;
}
.footer-info p {
    margin: 0.3rem 0;
    line-height: 1.5;
}
.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding-left: 0;
}
.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.6rem;
}
.footer-links ul li a,
.footer-legal ul li a {
    color: #d6c8adcc;
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-links ul li a:hover,
.footer-links ul li a:focus,
.footer-legal ul li a:hover,
.footer-legal ul li a:focus {
    color: #e3b04b;
    outline: none;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid #5b4b2b88;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #a8956c;
}
.footer-bottom a {
    color: #b27c40;
    font-weight: 600;
}
.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #e3b04b;
    outline: none;
}
/* Responsive tweaks */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    .hero-section {
        min-height: 420px;
        padding: 2rem 0;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section h2 {
        font-size: 1.6rem;
    }
    .hero-section p {
        max-width: 100%;
    }
    .nav-menu {
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }
    nav.container {
        justify-content: center;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section h2 {
        font-size: 1.25rem;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    .steps-list li {
        padding-left: 3rem;
        font-size: 1rem;
    }
}
