:root {
    --primary-color: #FFC107;
    --secondary-color: #2C1810;
    --background-color: #1A0F09;
    --text-color: #ffffff;
    --accent-color: #FF9800;
    --gradient-1: linear-gradient(135deg, #FFC107 0%, #FF6F00 100%);
    --gradient-2: linear-gradient(45deg, #FF9800 0%, #2C1810 100%);
    --card-bg: rgba(44, 24, 16, 0.8);
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.8rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--background-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.5s ease;
        padding: 4rem 2rem;
        z-index: 999;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--background-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.5s ease;
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
}

.hero-content {
    max-width: 1200px;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        margin-top: 60px;
        margin-bottom: 60px;
        min-height: 100vh;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 1.5rem;
        margin-top: 15px;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.7);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: var(--gradient-1);
    animation: rotate 15s linear infinite;
    top: -25%;
    left: -25%;
    opacity: 0.1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 1200px;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.download-btn:hover::before {
    transform: translateX(100%);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-icon {
    margin-left: 10px;
    font-size: 1.2em;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
    }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: var(--gradient-2);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* Footer */
footer {
    background: var(--background-color);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.3s ease;
    opacity: 0.5;
    z-index: -1;
}

.footer-nav a:hover::before {
    left: 0;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        align-items: center;
        border-radius: 25px;
        padding: 1rem 0;
    }
}

.disclaimer {
    grid-column: 1 / -1;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 1rem;
    }

    .features {
        padding: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Age Verification Popup */
#age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.popup-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: var(--gradient-1);
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.popup-button:hover {
    transform: scale(1.05);
}

/* How to Play Page Specific Styles */
.how-to-play {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 85px;
    /* Додаємо відступ для хедера */
}

@media (max-width: 768px) {
    .how-to-play {
        padding-top: 85px;
        /* Той самий відступ для мобільної версії */
    }
}

.how-to-play__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.how-to-play__subtitle {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.how-to-play__intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

.steps-container {
    display: grid;
    gap: 2rem;
}

.step-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card__title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-card__number {
    background: var(--gradient-1);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.step-card__content {
    color: var(--text-color);
    line-height: 1.6;
}

.step-card__list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.step-card__list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.step-card__list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

.tips-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(to right, rgba(255, 51, 51, 0.1), rgba(128, 0, 0, 0.1));
    border-radius: 15px;
}

.tips-section__title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-list {
    display: grid;
    gap: 1rem;
}

.tips-list li {
    padding-left: 1.5rem;
    position: relative;
}

.tips-list li::before {
    content: '★';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
}

.cta-section__title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .how-to-play {
        padding: 1rem;
        margin-block: 60px;
    }

    .how-to-play__title {
        font-size: 2rem;
    }

    .how-to-play__subtitle {
        font-size: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .tips-section {
        padding: 1.5rem;
    }
}

/* Balls System Page Specific Styles */
.balls-system {
    max-width: 1200px;
    margin: 0 auto;
    margin-block: 60px;
    padding: 2rem;
}

.balls-system__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.balls-system__subtitle {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.balls-system__intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stats-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card__title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list__item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.stats-list__item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-list__name {
    color: var(--text-color);
}

.stats-list__value {
    color: var(--primary-color);
    font-weight: bold;
}

.stats-list__value--positive {
    color: #4CAF50;
}

.stats-list__value--negative {
    color: #f44336;
}

.achievement-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(to right, rgba(255, 51, 51, 0.1), rgba(128, 0, 0, 0.1));
    border-radius: 15px;
}

.achievement-section__title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.achievement-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.achievement-list__item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-note {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
}

@media (max-width: 768px) {
    .balls-system {
        padding: 1rem;
        margin-block: 60px;
    }

    .balls-system__title {
        font-size: 2rem;
    }

    .balls-system__subtitle {
        font-size: 1.5rem;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .achievement-section {
        padding: 1.5rem;
    }
}

/* Contact Page Specific Styles */
.contact {
    max-width: 1200px;
    margin: 0 auto;
    margin-block: 60px;
    padding: 2rem;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.contact__subtitle {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.contact__intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info__title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info__list {
    list-style: none;
    padding: 0;
}

.contact-info__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-info__item:hover {
    transform: translateX(10px);
}

.contact-info__label {
    color: var(--primary-color);
}

.contact-info__value {
    color: var(--text-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form__title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 51, 51, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.submit-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .contact {
        padding: 1rem;
    }

    .contact__title {
        font-size: 2rem;
    }

    .contact__subtitle {
        font-size: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Common styles for policy pages */
.policy-page {
    max-width: 1200px;
    margin: 0 auto;
    margin-block: 60px;
    padding: 2rem;
}

.policy-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.policy-container h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.policy-container h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.policy-container h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

.policy-container p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.policy-container ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-container ul li {
    margin-bottom: 0.8rem;
    position: relative;
}

.policy-container ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1.2rem;
}

.policy-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-container a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.policy-container strong {
    color: var(--primary-color);
    font-weight: bold;
}

.last-updated {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.contact-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .policy-page {
        padding: 1rem;
    }

    .policy-container {
        padding: 1.5rem;
    }

    .policy-container h1 {
        font-size: 2rem;
    }

    .policy-container h2 {
        font-size: 1.5rem;
    }

    .policy-container h3 {
        font-size: 1.3rem;
    }

    .policy-container h4 {
        font-size: 1.1rem;
    }
}

.features-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}