body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-blue);
    color: var(--white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

:root {
    --dark-blue: #FFFFFF; /* Background (white) */
    --medium-blue: #F5F5F5; /* Secondary background (light grey) */
    --light-blue: #E0E0E0; /* Border/subtle accent */
    --primary-light: #2C3E50; /* Primary accent (dark blue) */
    --white: #1A1A1A; /* Text (dark grey/black) */
    --grey-text: #5A5A5A; /* Secondary text */
    --warning-red: #E74C3C;
    --button-primary: #34495E; /* Button color (graphite) */
    --button-hover: #2C3E50; /* Button hover */
}

/* Global Text Colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-light);
    font-weight: 700;
}

p {
    color: var(--white);
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--light-blue);
    text-decoration: none;
}

/* Custom Buttons - Clean Minimalism */
.btn-primary-custom {
    background-color: var(--button-primary);
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.875rem 2.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
    background-color: var(--button-hover);
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid var(--button-primary);
    color: var(--button-primary);
    font-weight: 600;
    padding: 0.875rem 2.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-custom:hover, .btn-secondary-custom:focus {
    background-color: var(--button-primary);
    border-color: var(--button-primary);
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Оптимизация Bootstrap collapse для плавной анимации */
.collapse {
    transition: height 0.25s ease-out;
    will-change: height;
}

.collapsing {
    transition: height 0.25s ease-out;
    will-change: height;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Navbar */
.navbar {
    background-color: var(--dark-blue);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-brand {
    position: relative;
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    padding: 6px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.navbar-brand span {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    will-change: color;
    transform: translateZ(0);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light);
}

/* Оптимизация для мобильных устройств */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        transform: translateZ(0);
        will-change: color, transform;
    }
    
    .navbar-nav .nav-link:hover {
        transform: translateX(4px) translateZ(0);
    }
}

.navbar-toggler {
    border-color: var(--light-blue);
    border: 1px solid var(--light-blue);
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    will-change: transform;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
    transition: transform 0.2s ease;
    will-change: transform;
}

.text-primary-light {
    color: var(--primary-light) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Hero Section */
.hero-section {
    background-image: url('../ui/uploads/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
}



.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--grey-text);
    font-weight: 400;
}

/* Sections General */
.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    position: relative;
    display: block;
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--medium-blue);
    color: var(--white);
}

.about-section p {
    color: var(--white);
}

/* Games Section */
.games-section {
    background-color: var(--dark-blue);
}

.game-card {
    background-color: #FFFFFF;
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.game-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.game-card img,
.game-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: none;
    transition: transform 0.3s ease;
    display: block;
}

.game-card:hover img,
.game-card:hover .game-card-image {
    transform: scale(1.05);
}

.game-card .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #FFFFFF;
}

.game-card .card-title {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 0.875rem;
    font-weight: 600;
}

.game-card .card-text {
    color: var(--grey-text);
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.game-card .play-game-btn {
    align-self: flex-start;
    margin-top: auto;
}
@media screen and (width < 768px) {
    .game-card .play-game-btn {
    align-self: center;
    }
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-modal.active {
    opacity: 1;
    visibility: visible;
}

.game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FFFFFF;
    color: var(--primary-light);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1070;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-modal-close-btn:hover {
    background-color: var(--button-primary);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.game-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}

/* How to Play Section */
.how-to-play-section {
    background-color: var(--medium-blue);
}

.accordion-item {
    background-color: #FFFFFF;
    border: 1px solid var(--light-blue);
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-button {
    background-color: #FFFFFF;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.15rem;
    padding: 1.25rem 1.75rem;
    border-bottom: none;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--medium-blue);
    color: var(--primary-light);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-light);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23533483'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}


.accordion-body {
    background-color: #FFFFFF;
    color: var(--grey-text);
    padding: 1.75rem;
    border-top: 1px solid var(--light-blue);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--dark-blue);
}

.testimonial-card {
    background-color: #FFFFFF;
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.testimonial-text {
    font-style: italic;
    color: var(--grey-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0;
}

.testimonial-date {
    color: var(--grey-text);
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--medium-blue);
}

.contact-form {
    background-color: #FFFFFF;
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-form .form-label {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form .form-control {
    background-color: var(--medium-blue);
    border: 1px solid var(--light-blue);
    color: var(--white);
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: var(--grey-text);
    opacity: 0.6;
}

.contact-form .form-control:focus {
    background-color: #FFFFFF;
    border-color: var(--primary-light);
    outline: none;
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.contact-form .form-control.is-invalid {
    border-color: var(--warning-red);
}

.contact-form .invalid-feedback {
    color: var(--warning-red);
}

/* Responsible Gaming Disclaimer */
.responsible-gaming-disclaimer {
    background-color: var(--dark-blue);
    padding: 5rem 0;
}

.disclaimer-box {
    background-color: var(--warning-red);
    border: 2px solid #a0342a;
    border-radius: 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.disclaimer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.3));
    z-index: 0;
}

.disclaimer-box > * {
    position: relative;
    z-index: 1;
}

.disclaimer-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.disclaimer-title i {
    font-size: 2.5rem;
    margin-right: 10px;
}

.disclaimer-box p {
    color: var(--white);
    margin-bottom: 1rem;
}

.disclaimer-box strong {
    color: var(--white);
}

.disclaimer-box a {
    color: var(--white);
    text-decoration: underline;
}

.disclaimer-box a:hover {
    color: var(--primary-light);
}

.support-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.support-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.support-title i {
    font-size: 1.8rem;
}

.important-note {
    font-size: 1.1rem;
    font-weight: 600;
}

.final-note {
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

/* Footer Section */
.footer-section {
    background-color: var(--primary-light);
    color: #FFFFFF;
}

.footer-heading {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    padding: 0.2rem 0;
    display: inline-block;
}

.footer-link:hover {
    color: #FFFFFF;
}

.footer-section .logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-section .navbar-brand span {
    color: var(--white);
}

.footer-logos {
    gap: 1.5rem;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
    max-height: 80px;
}

.footer-logo-img:hover {
    filter: brightness(1.1);
}

.footer-logo-img-18 {
    max-width: 50px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: saturate(1.5);
}

/* Age Verification Modal Specifics */
#ageVerificationModal .modal-content {
    background-color: #FFFFFF;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#ageVerificationModal .modal-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--light-blue);
    padding: 1.5rem 2rem;
}

#ageVerificationModal .modal-title {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.5rem;
}

#ageVerificationModal .modal-body {
    padding: 2rem;
}

#ageVerificationModal .modal-body p {
    color: var(--grey-text);
    font-size: 1.1rem;
}

/* Utility for blocking scroll */
body.modal-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .navbar-collapse {
        background-color: #FFFFFF;
        border: 1px solid var(--light-blue);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        /* Оптимизация анимации для плавности */
        will-change: height, opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Ускорение Bootstrap collapse анимации */
    .navbar-collapse.collapsing {
        transition: height 0.25s ease-out;
        will-change: height;
        transform: translateZ(0);
    }
    
    .navbar-collapse.show {
        transform: translateZ(0);
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    .footer-logos {
        justify-content: center;
    }
    .disclaimer-box {
        padding: 2rem;
    }
    .disclaimer-title {
        font-size: 1.75rem;
    }
    .support-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .game-card img {
        height: 180px;
    }
    .game-card .card-title {
        font-size: 1.3rem;
    }
    .game-card .card-text {
        font-size: 0.85rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .testimonial-text {
        font-size: 0.9rem;
    }
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    .disclaimer-title {
        font-size: 1.5rem;
    }
    .disclaimer-title i {
        font-size: 2rem;
    }
    .support-title {
        font-size: 1.1rem;
    }
    .footer-logos {
        gap: 0.75rem;
    }
    .footer-logo-img {
        max-width: 100px;
    }
    .footer-logo-img-18 {
        max-width: 40px;
    }
}
/* Container padding for the terms box */
.termsCaveBox {
    padding: 40px 20px; /* Top/bottom and left/right padding for the content area */
}

/* Heading styles within .termsCaveBox */
.termsCaveBox h1 {
    font-size: 2em; /* Not too large, relative to base font size */
    margin-top: 2em; /* Spacing above the heading */
    margin-bottom: 0.8em; /* Spacing below the heading */
    font-weight: bold; /* Ensure headings are bold */
    line-height: 1.2; /* Tighter line height for headings */
}

.termsCaveBox h2 {
    font-size: 1.6em; /* Slightly smaller than h1 */
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    font-weight: bold;
    line-height: 1.3;
}

.termsCaveBox h3 {
    font-size: 1.3em; /* Moderate size */
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-weight: bold;
    line-height: 1.4;
}

.termsCaveBox h4 {
    font-size: 1.1em; /* Slightly larger than body text */
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: bold;
    line-height: 1.5;
}

.termsCaveBox h5 {
    font-size: 1em; /* Base font size, but bold */
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-weight: bold;
    line-height: 1.5;
}

/* Paragraph styles within .termsCaveBox */
.termsCaveBox p {
    font-size: 1em; /* Standard paragraph font size */
    margin-top: 0; /* No top margin by default, let headings/lists define it */
    margin-bottom: 1em; /* Spacing between paragraphs */
    line-height: 1.6; /* Good readability for body text */
}

/* Unordered list styles within .termsCaveBox */
.termsCaveBox ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1em; /* Spacing above the list */
    margin-bottom: 1em; /* Spacing below the list */
    padding-left: 1.5em; /* Indentation for bullet points */
}

/* List item styles within .termsCaveBox */
.termsCaveBox li {
    margin-bottom: 0.5em; /* Spacing between list items */
    line-height: 1.6; /* Ensure readability for list item text */
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--medium-blue) 0%, #E8E8E8 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-text);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    word-wrap: break-word;
}

.image-placeholder-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--button-primary));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
}

.image-placeholder-logo {
    background-color: var(--medium-blue);
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
}

/* Feature Boxes (About Section) */
.feature-box {
    background-color: #FFFFFF;
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Contact Info Boxes */
.contact-info-box {
    background-color: #FFFFFF;
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-info-box:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* About Highlight Box */
.about-highlight {
    background-color: var(--medium-blue);
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsibility Cards */
.responsibility-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Support Contact Box */
.support-contact {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contactThankYouBox {
    background-color: #FFFFFF;
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
