:root {
    --background-primary: #FFFFFF;
    --text-primary: #1E293B;
    --background-secondary: #F8FAFC;
    --text-secondary: #64748B;
    --accent-primary: #7C3AED;
    --accent-text: #FFFFFF;
    --action-button: #22C55E;
    --action-text: #FFFFFF;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 12px;
    --base-font-size: 16px;
    --headings-weight: 700;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    line-height: 1.6;
    background-color: var(--background-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--headings-weight);
    line-height: 1.2;
    margin-bottom: 1rem;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: var(--border-radius);
}

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

    h2 {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }

    .cookie-banner {
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
}

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

    .mobile-text-sm {
        font-size: 12px;
        word-break: break-all;
    }
}

/* ===== site_header ===== */
#main-header {
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.js-mobile-overlay {
    transition: opacity 0.3s ease;
}

.ph {
    line-height: 1;
}

html {
    scroll-behavior: smooth;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero h1,
#hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.js-smooth-scroll {
    transition: all 0.3s ease;
}

/* ===== game_about ===== */
#description {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

#description h2 {
    color: var(--text-primary);
}

#description p {
    color: var(--text-secondary);
}

#description i {
    color: var(--accent-primary);
}

/* ===== game_features ===== */
.js-feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow
}

.js-feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)
}

/* ===== instructions ===== */
#how-to-play {
    hyphens: auto;
}

#how-to-play .container {
    width: 100%;
}

.ph-magnifying-glass:before {
    content: '\e382';
}

.ph-sparkles:before {
    content: '\e49a';
}

.ph-lightbulb:before {
    content: '\e2da';
}

.ph-paw-print:before {
    content: '\e3be';
}

/* ===== game_capabilities ===== */
#gameplay {
    position: relative;
}

#gameplay .js-hyphens {
    hyphens: auto;
    word-break: break-word;
}

#gameplay .js-feature-item {
    transition: transform 0.3s ease;
}

#gameplay .js-feature-item:hover {
    transform: translateX(8px);
}

#gameplay img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== target_audience ===== */
#audience {
    overflow: hidden
}

#audience h2,
#audience h3 {
    hyphens: auto
}

.ph {
    font-family: "Phosphor" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.ph-palette:before {
    content: "\e37e"
}

.ph-smiley:before {
    content: "\e464"
}

.ph-heart:before {
    content: "\e23c"
}

/* ===== pro_tips ===== */
#tips {
    overflow: hidden;
}

.js-tip-card {
    hyphens: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== game_gallery ===== */
#gallery .aspect-square {
    aspect-ratio: 1 / 1;
}

.js-modal.flex {
    display: flex;
}

.js-modal.hidden {
    display: none;
}

.js-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== call_to_action ===== */
#cta {
    overflow: hidden;
    background-color: var(--background-secondary);
}

#cta h2 {
    color: var(--text-primary);
}

#cta p {
    color: var(--text-secondary);
}

.js-share-btn {
    cursor: pointer;
    transition: 0.3s ease;
}

/* ===== faq_section ===== */
.js-faq-item.is-active {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

/* ===== dev_info ===== */
#dev {
    overflow: hidden;
    hyphens: auto;
}

.js-info-card {
    height: 100%;
    transition: transform 0.3s ease;
}

/* ===== disclaimer_block ===== */
#legal {
    overflow: hidden;
    hyphens: auto;
}

#legal p {
    word-wrap: break-word;
}

#legal i {
    display: inline-block;
    line-height: 1;
}

/* ===== contact_details ===== */
#contacts {
    hyphens: auto;
}

#contacts .container {
    position: relative;
    z-index: 1;
}

/* ===== site_footer ===== */
.hyphens-auto {
    hyphens: auto
}

#footer h3 {
    line-height: 1.2
}

#footer p {
    line-height: 1.4
}

#footer a {
    display: inline-block
}