/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: rgba(10, 0, 53, 1);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.scrollable {
    overflow-y: auto; /* Enable scrolling after age verification */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Verification Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: rgba(0, 0, 39, 1);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    max-width: 588px;
    width: 90%;
    position: relative;
}

.age-icon {
    width: 80px;
    height: 80px;
    border: 3px solid #FF4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.age-number {
    font-size: 24px;
    font-weight: 700;
    color: #FF4757;
}

.age-modal h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #ffffff;
}

.age-modal p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #fff;
}

/* Buttons */
.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  max-width: 100%;
  background: radial-gradient(67% 286.37% at 4.6% 40.8%, #FF6A28 0%, #FE2F57 100%);
  box-shadow: 0px -3px 3px 0px rgba(254, 47, 87, 1) inset;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    min-width: 200px;
    text-decoration: unset;
}

.btn-center {
  margin-left: auto;
  margin-right: auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    min-width: 120px;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2D1B69;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 39, 1);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 56px;
}

.nav {
    display: flex;
    align-items: center;
    column-gap: 30px;
    row-gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: #B8B8B8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.btn-play {
    background: radial-gradient(67% 286.37% at 4.6% 40.8%, #FF6A28 0%, #FE2F57 100%);

    box-shadow: 0px -3px 3px 0px rgba(254, 47, 87, 1) inset;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
}

.btn-login {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 25px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    border-color: #6C5CE7;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: url(/wp-content/themes/playozarcade/assets/images/hero-bg.png) no-repeat center;
    background-size: cover;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.game-page {
  padding-bottom: 0;
  background: none;
}

.game {
  padding-top: 80px;
  padding-bottom: 64px;
}

.game-page .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.game-page .hero-image img {
  width: 100%;
  max-width: 308px;
  height: auto;
  object-fit: contain;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    color: #fff;
}

.hero-content p {
    font-weight: 400;
    font-size: 20px;
    line-height: 155%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
}


/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.about .stats-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stat-item {
  background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 1);
backdrop-filter: blur(8px);

border-radius: 24px;
padding: 24px 40px;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

/* Games Section */
.games {
    padding: 60px 0;
    background: rgba(238, 245, 255, 1);
}

.games h2 {
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 32px;
    color: rgba(11, 21, 42, 1);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.game-card {
    background: rgba(10, 0, 53, 1);
    border-radius: 24px;
    border: 1px solid rgba(98, 9, 195, 1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(91, 9, 255, 1);
}

.game-card h3 {
    font-weight: 400;
    font-style: italic;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    margin-bottom: 24px;
    color: #ffffff;
}

/* Top Players Section */
.top-players {
    padding: 60px 0 80px;
    position: relative;
}

.top-players .container {
}

.top-players h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
}

.top-players .container > p {
    text-align: center;
    font-size: 18px;
    color: #B8B8B8;
    margin-bottom: 40px;
}

.top-players .container > img {
  width: 300px;
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  display: block;
}

.players-list {
    margin: 0 auto 40px;
    background: radial-gradient(67% 286.37% at 4.6% 40.8%, rgba(27, 103, 232, 0.6) 0%, rgba(254, 47, 87, 0.6) 100%);
    border-radius: 32px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.player-item {
    display: flex;
  
    flex-direction: column;
    gap: 20px;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 15px 20px;
    border-radius: 15px;
}

.player-avatar {
    width: 75px;
    height: 75px;
    border-radius: 16px;
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    flex: 1;
    position: relative;
}

.player-name {
 
    color: #ffffff;
    font-weight: 700;
    font-size: 30px;
    line-height: 32px;

}

.player-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.player-progress {
    height: 100%;
    background: linear-gradient(90deg, #BFDBFE 0%, #D8B4FE 100%);
    border-radius: 4px;
}

.player-score {
    color: #fff;
    font-size: 24px;
    line-height: 32px;
}

.player-text {
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  line-height: 32px;
  color: #fff;
}

.top-players .btn-primary {
    display: block;
    margin: 0 auto;
}

.chips-decoration {
    position: absolute;
    bottom: 50px;
    right: 100px;
    opacity: 0.3;
}

.chips-decoration img {
    width: 100px;
    height: auto;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
}

.testimonials h2 {
      font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
    padding: 32px;
    border-radius: 16px;
}

.testimonial-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(184, 225, 255, 1);
    text-align: center;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(209, 213, 219, 1);
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: url(/wp-content/themes/playozarcade/assets/images/hero-bg.png) no-repeat center;
    background-size: cover;
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width:768px){
    .contact .container {
      display: flex;
      flex-direction: column-reverse;
    }
}

.contact h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.4;
    max-width: 600px;
}

.contact p {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 24px;
    max-width: 600px;
}


textarea {
  resize: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 1);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #B8B8B8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6C5CE7;
    background: rgba(255, 255, 255, 0.15);
}

.contact-form button {
    width: 100%;
}

/* Footer */
 .footer {
            background: rgba(0, 0, 0, 1);
            color: white;
            padding: 2rem 1rem;
            position: relative;
            overflow: hidden;
        }


        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .footer-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 2rem;
            gap: 2rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .age-badge {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
            color: white;
            border: 3px solid white;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
        }

        .brand-name {
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
        }

        .footer-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .footer-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
        }

        .footer-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background: linear-gradient(90deg, #ff6b6b, #ee5a24);
            transition: width 0.3s ease;
        }

        .footer-link:hover {
            color: white;
            transform: translateY(-2px);
        }

        .footer-link:hover::after {
            width: 100%;
        }

        .footer-description {
            max-width: 800px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
            margin-bottom: 2rem;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .copyright {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.8rem;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .footer {
                padding: 1.5rem 1rem;
            }

            .footer-top {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 1.5rem;
            }

            .footer-links {
                flex-direction: column;
                gap: 1rem;
            }

            .age-badge {
                width: 50px;
                height: 50px;
                font-size: 1rem;
            }

            .brand-name {
                font-size: 1.2rem;
            }

            .footer-description {
                text-align: center;
                font-size: 0.85rem;
            }
        }

        @media (max-width: 480px) {
            .footer {
                padding: 1rem 0.5rem;
            }

            .footer-top {
                gap: 1rem;
            }

            .footer-logo {
                gap: 0.5rem;
            }

            .age-badge {
                width: 45px;
                height: 45px;
                font-size: 0.9rem;
            }

            .brand-name {
                font-size: 1.1rem;
            }

            .footer-description {
                font-size: 0.8rem;
            }

            .footer-link {
                font-size: 0.85rem;
            }
        }

        /* Анимации */
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }

        .age-badge {
            animation: float 3s ease-in-out infinite;
        }

        .footer-container {
            animation: fadeInUp 0.8s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header .container {
      justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .footer-links {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
      text-align: center;
    }
    
    .chips-decoration {
        display: none;
    }
    
    .age-modal-content {
        padding: 30px 20px;
    }
    
    .age-modal h2 {
        font-size: 24px;
    }

    .hero .container,
    .stats .container,
    .top-players .container,
    .contact .container {
      padding: 24px 20px;
      margin-left: 20px;
      margin-right: 20px;
      width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .games h2,
    .top-players h2,
    .testimonials h2,
    .contact h2 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .stat-item h3 {
        font-size: 28px;
    }
}

.nav-brand {
  display: flex;
  align-items: center;
}

.disclaimer {
  padding-top: 50px;
  padding-bottom: 50px;
}

#game .container {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card .btn-primary {
  margin: 0 auto;
}

main {
  margin-top: 86px;
}

.game iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 940/500;
}

@media (max-width:768px){
    #game .container {
      margin-left: 20px;
      margin-right: 20px;
      width: calc(100% - 40px);
    }
}

.policy {
  background: #fff;
  padding-top: 60px;
  padding-bottom: 100px;
  color: #000;
}

.policy h1 {
  font-weight: 600;
  font-size: 60px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 40px;
}

@media (max-width:768px){
    .policy h1 { 
      font-size: 30px;
    }
    .top-players .container {
      padding-left: 0;
      padding-right: 0;
    }
    .players-list {
      padding: 32px;
    }
    .nav-section {
      justify-content: center;
    }
}

.policy-content li {
  list-style-type: disc;
  list-style-position: inside;
}

.policy-content a {
  color: inherit;
  opacity: 0.9;
  text-decoration: unset;
}

.testimonials {
  position: relative;
}

.testimonials .container > p {
  font-weight: 400;
  font-size: 20px;
  line-height: 155%;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
}


        .testimonials-swiper {
            overflow: hidden;
            

        }

        @media (min-width:1240px){
            .swiper-wrapper {
          padding-left: calc((100vw - 1200px)/2);
            padding-right: calc((100vw - 1200px)/2);
        }
        }

        @media (max-width:1240px){
          .swiper {
            margin-left: 20px;
            margin-right: 20px;
            width: calc(100vw - 40px);
          }
        }

        

        .testimonial-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 32px 24px;
            border: 1px solid rgba(255, 255, 255, 1);
            transition: all 0.3s ease;
            
            height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 200px;
        }

        .testimonial-card:hover {
  
            border-color: #4a9eff;
            box-shadow: 0 10px 25px rgba(74, 158, 255, 0.2);
        }

        .user-info {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            width: 100%;
        }

        .avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 15px;
           
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .user-details h4 {
            color: white;
            font-size: 1.1rem;
            margin-bottom: 3px;
        }

        .user-details p {
            color: #a0a0a0;
            font-size: 0.9rem;
        }

        .testimonial-text {
            color: #e0e0e0;
            line-height: 1.6;
            font-size: 0.95rem;
            flex-grow: 1;
        }

        /* Swiper custom styles */
        .swiper-pagination {
            position: static !important;
            margin-top: 30px;
        }

        .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            background: rgba(74, 158, 255, 0.3);
            opacity: 1;
            transition: all 0.3s ease;
        }

        .swiper-pagination-bullet-active {
            background: #4a9eff;
            transform: scale(1.2);
        }

        .swiper-button-next,
        .swiper-button-prev {
            background: rgba(74, 158, 255, 0.2);
            border: 1px solid #4a9eff;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            margin-top: 0;
            transition: all 0.3s ease;
        }

        .swiper-button-next:hover,
        .swiper-button-prev:hover {
            background: #4a9eff;
            transform: scale(1.1);
        }

        .swiper-button-next::after,
        .swiper-button-prev::after {
            font-size: 18px;
            font-weight: bold;
            color: white;
        }

        .swiper-button-next.swiper-button-disabled,
        .swiper-button-prev.swiper-button-disabled {
            opacity: 0.3;
            transform: none;
        }

        .swiper-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }

        .swiper-button-prev {
            position: static;
            left: auto;
        }

        .swiper-button-next {
            position: static;
            right: auto;
        }

        @media (max-width: 768px) {
            .section-title {
                font-size: 2rem;
            }
            
            .testimonial-card {
                padding: 20px;
            }
            
            .testimonials-section {
                padding: 30px 20px;
            }

            .swiper-button-next,
            .swiper-button-prev {
                width: 40px;
                height: 40px;
            }

            .swiper-button-next::after,
            .swiper-button-prev::after {
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .section-title {
                font-size: 1.5rem;
            }
            
            .testimonials-section {
                padding: 20px 15px;
            }
            
            .testimonial-card {
                padding: 15px;
            }

            .swiper-controls {
                gap: 15px;
            }
        }

        /* Loading state */
        .swiper-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 300px;
            color: white;
            font-size: 1.2rem;
        }

        /* Smooth fade effect for slides */
        .swiper-slide {
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }

        .swiper-slide-active {
            opacity: 1;
        }

        .nav-section {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            padding-bottom: 20px;
        }

         .nav-link {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 16px;
            transition: all 0.3s ease;
            padding: 0 0 0.2rem;
            position: relative;
        }

        .nav-link:hover {
            color: white;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            transform: translateY(-50%);
            width: 0;
            height: 1px;
            background: linear-gradient(90deg, #ff6b6b, #ee5a24);
            transition: width 0.3s ease;
        }

        .nav-link:hover::before {
            width: 100%;
        }

        .header + .games {
          margin-top: 86px;
        }

        body {
          display: flex;
          flex-direction: column;
          min-height: 100vh;
        }

        main {
          flex: 1 1 auto;
        }

        .policy-content {
          display: flex;
          flex-direction: column;
          gap: 12px;
        }