:root {
    --primary-bg: #F5F5DC;
    --secondary-bg: #228B22;
    --accent-color: #FFA500;
    --dark-green: #006400;
    --sky-blue: #00BFFF;
    --dark-text: #1A1A1A;
    --muted-text: #4B5563;
    --text-light: #FFFFFF;
    --font-family: 'Inter', sans-serif;
    --max-width: 1280px;
    --radius: 12px;
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 16px;
    background-color: var(--primary-bg);
    color: var(--dark-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    text-decoration: none;
    opacity: 0.8;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.js-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.js-cookie-accept {
    background-color: var(--accent-color);
    color: var(--dark-text);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
}

.js-cookie-reject {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }

    h3 {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .js-cookie-accept,
    .js-cookie-reject {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .js-cookie-banner {
        padding: 1rem;
    }
}

/* ===== header_section ===== */
#header {
    overflow: visible;
}

.js-mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

.js-mobile-link {
    display: block;
    width: 100%;
}

nav a:hover {
    text-decoration: none;
}

/* ===== hero_game ===== */
#pelaa-nyt {
    hyphens: auto;
}

#pelaa-nyt iframe {
    width: 100%;
    height: 100%;
}

.js-scroll-trigger {
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.js-game-target {
    transition: transform 0.3s ease;
}

@media (max-width: 767px) {
    #pelaa-nyt h1 {
        font-size: 18px !important;
        line-height: 1.1;
    }

    #pelaa-nyt p {
        font-size: 14px !important;
        line-height: 1.3;
    }
}

/* ===== about_game ===== */
#tietoa-pelista {
    hyphens: auto;
}

#tietoa-pelista h2,
#tietoa-pelista h3 {
    color: var(--dark-green);
}

#tietoa-pelista p {
    color: var(--dark-text);
}

.ri-focus-3-line::before {
    content: "\ecfb";
    font-family: "remixicon";
}

.ri-flashlight-line::before {
    content: "\ed13";
    font-family: "remixicon";
}

/* ===== instructions ===== */
#kuinka-pelata {
    background-color: var(--primary-bg);
    color: var(--dark-text);
    hyphens: auto;
}

#kuinka-pelata h2,
#kuinka-pelata h3 {
    color: var(--dark-green);
}

#kuinka-pelata p {
    color: var(--muted-text);
}

.js-step-item {
    transition: all 0.5s ease-out;
}

@media (max-width: 767px) {
    #kuinka-pelata h2 {
        line-height: 1.2;
    }

    #kuinka-pelata h3 {
        line-height: 1.3;
    }
}

/* ===== game_features ===== */
.hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ===== player_tips ===== */
.js-tip-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    hyphens: auto
}

.js-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1)
}

#vinkit h2 {
    color: var(--dark-green)
}

#vinkit h3 {
    color: var(--dark-text)
}

#vinkit p {
    color: var(--muted-text)
}

/* ===== faq_section ===== */
#ukk .faq-icon {
    transition: transform 0.3s ease;
}

#ukk .js-faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

#ukk .js-faq-content {
    transition: all 0.3s ease-in-out;
}

/* ===== player_reviews ===== */
.js-review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    hyphens: auto;
}

.js-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#arvostelut h2 {
    color: var(--dark-green);
}

#arvostelut h3 {
    color: var(--dark-green);
}

#arvostelut p {
    color: var(--muted-text);
}

/* ===== footer_section ===== */
#footer {
    hyphens: auto;
}

#footer h3 {
    line-height: 1.2;
}

#footer a {
    text-decoration: none;
}

#footer .logo-container img {
    max-width: 65px;
    height: auto;
}

@media (max-width: 767px) {
    #footer h3 {
        font-size: 14px;
    }

    #footer p,
    #footer a,
    #footer span {
        font-size: 14px;
    }
}