* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #4A90E2;
    --accent-color: #FFD700;
    --dark-bg: #0A0E27;
    --darker-bg: #050811;
    --card-bg: #1A1F3A;
    --text-primary: #FFFFFF;
    --text-secondary: #B8BCC8;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFD700 100%);
    --gradient-secondary: linear-gradient(135deg, #4A90E2 0%, #6B8DD6 100%);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li.mobile-play-btn {
    display: none !important;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

.mobile-play-btn {
    display: none !important;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero h1,
.hero .subtitle,
.hero .description,
.hero .hero-buttons {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.game-card:hover::before {
    opacity: 0.1;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: 15px 15px 0 0;
}

.logo img {
    width: auto;
    height: 50px;
    object-fit: contain;
}

.game-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.game-card .btn-primary {
    width: 100%;
    text-align: center;
}

/* Features Section */
.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: 20px;
    text-align: center;
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Free to Play Section */
.free-section {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    border-radius: 30px;
    margin: 3rem auto;
    max-width: 1400px;
}

.free-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.free-section .highlight {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.free-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Logos Grid */
.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.logos-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    max-width: 200px;
    height: 50px;
}

.logos-grid img {
    width: auto;
    max-width: 100%;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logos-grid img:hover {
    opacity: 1;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Game Page Styles */
.game-page {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-iframe-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    background: #000;
}

.how-to-play {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.how-to-play h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.how-to-play ol {
    margin-left: 2rem;
    color: var(--text-secondary);
    line-height: 2;
}

.how-to-play li {
    margin-bottom: 0.5rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.show {
    display: flex;
}

/* 18+ Banner Modal */
.age-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-banner.show {
    display: flex;
}

.age-modal {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
    text-align: center;
    position: relative;
}

.age-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.age-text {
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.age-text img {
    height: 80px;
    width: auto;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.age-buttons .btn-primary,
.age-buttons .btn-secondary {
    flex: 1;
    max-width: 200px;
}

/* Cookies Banner Modal */
.cookies-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookies-banner.show {
    display: flex;
}

.cookies-modal {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
    position: relative;
}

.cookies-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cookies-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.cookies-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookies-text a:hover {
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cookies-buttons .btn-primary,
.cookies-buttons .btn-secondary {
    flex: 1;
    max-width: 200px;
}

/* Body scroll lock */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav ul.active {
        max-height: 500px;
        padding-top: 1rem;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        text-align: center;
    }

    .mobile-play-btn {
        display: none;
    }

    .burger-menu {
        display: flex;
        order: 2;
    }

    .header-play-btn {
        order: 1;
        margin-left: auto;
    }

    .mobile-play-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo {
        order: 0;
    }

    .header-play-btn {
        display: none;
    }

    .burger-menu {
        order: 1;
        margin-left: auto;
    }

    .mobile-play-btn {
        display: block !important;
        padding: 1rem;
        border-top: 2px solid rgba(255, 107, 53, 0.2);
        margin-top: 0.5rem;
    }

    .mobile-play-btn .btn-primary {
        width: 100%;
        text-align: center;
        display: block;
        margin: 0;
    }

    nav ul li.mobile-play-btn {
        border-bottom: none;
    }

    nav {
        order: 3;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background: rgba(10, 14, 39, 0.98);
        border-radius: 10px;
        margin-top: 1rem;
    }

    nav ul.active {
        max-height: 500px;
        padding: 1rem 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    }

    nav ul li.mobile-play-btn {
        border-bottom: none;
        border-top: 2px solid rgba(255, 107, 53, 0.2);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        text-align: center;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-card {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .free-section {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }

    .free-section h2 {
        font-size: 2rem;
    }

    .free-section .highlight {
        font-size: 1.2rem;
    }

    .game-iframe {
        height: 400px;
    }

    .game-page {
        padding: 2rem 1rem;
    }

    .game-page-header h1 {
        font-size: 2rem;
    }

    .cookies-modal,
    .age-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .cookies-content,
    .age-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cookies-buttons,
    .age-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookies-buttons .btn-primary,
    .cookies-buttons .btn-secondary,
    .age-buttons .btn-primary,
    .age-buttons .btn-secondary {
        width: 100%;
        max-width: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .content-page {
        padding: 2rem 1rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

    .content-page h2 {
        font-size: 1.5rem;
    }

    .logos-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .logos-grid img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .game-page-header h1 {
        font-size: 1.5rem;
    }

    .game-iframe {
        height: 300px;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo img {
        height: 40px;
    }
}

/* Content Pages */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.content-page p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    color: var(--text-secondary);
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

