:root {
    --primary-red: #C72C3B;
    --dark-red: #8B1E2B;
    --light-red: #E85D6B;
    --ice-blue: #E8F4F8;
    --deep-blue: #1A3A52;
    --forest-green: #2D5C4E;
    --snow-white: #FAFCFC;
    --charcoal: #2C3539;
    --gray: #6B7880;
    --light-gray: #E5E9EB;

    --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    --gradient-ice: linear-gradient(135deg, var(--ice-blue) 0%, #D4E9F0 100%);
    --gradient-hero: linear-gradient(135deg, var(--deep-blue) 0%, var(--forest-green) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--snow-white);
    overflow-x: hidden;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.age-gate-header {
    text-align: center;
    margin-bottom: 24px;
}

.age-gate-header .logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.age-gate h2 {
    font-size: 28px;
    color: var(--charcoal);
    margin-bottom: 16px;
    text-align: center;
}

.age-gate p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 16px;
}

.age-disclaimer {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 500;
}

.age-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
    padding: 20px;
    background: var(--ice-blue);
    border-radius: 8px;
}

.age-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.age-checkbox label {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.btn-primary, .btn-secondary, .btn-game, .btn-contact {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--charcoal);
    border: 2px solid var(--light-gray);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: white;
    padding: 24px;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cookie-actions a {
    color: var(--ice-blue);
    text-decoration: underline;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 700;
    font-size: 24px;
    transition: var(--transition);
}

.logo-icon {
    font-size: 32px;
}

.logo:hover {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.btn-contact):hover {
    color: var(--primary-red);
}

.nav-menu a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav-menu a:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 6px;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 24px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(231, 93, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 92, 78, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

.hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--snow-white), transparent);
    z-index: 1;
}

.games-section, .features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

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

.game-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.game-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.game-card:nth-child(2) .game-icon {
    animation-delay: 0.5s;
}

.game-card:nth-child(3) .game-icon {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.game-card h3 {
    font-size: 28px;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.game-card p {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-game {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.features-section {
    background: var(--ice-blue);
}

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

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.feature-item:nth-child(even) .feature-icon {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.feature-item h3 {
    font-size: 22px;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--gray);
    line-height: 1.6;
}

.cta-section {
    padding: 100px 0;
    background: var(--gradient-hero);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.footer {
    background: var(--charcoal);
    color: white;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.footer-address, .footer-phone {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 8px;
    pointer-events: none;
    user-select: all;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.footer-disclaimer h4 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--light-red);
}

.footer-disclaimer p {
    margin-bottom: 12px;
    line-height: 1.8;
    opacity: 0.9;
}

.help-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.help-links a {
    color: var(--ice-blue);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

.help-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

.page-header {
    background: var(--gradient-hero);
    color: white;
    padding: 120px 24px 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.page-content h2 {
    font-size: 32px;
    color: var(--charcoal);
    margin: 40px 0 16px;
}

.page-content h3 {
    font-size: 24px;
    color: var(--charcoal);
    margin: 32px 0 12px;
}

.page-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    margin: 16px 0 16px 24px;
    color: var(--gray);
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--primary-red);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-red);
    transition: var(--transition);
}

.page-content a:hover {
    color: var(--dark-red);
}

.info-box {
    background: var(--ice-blue);
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: 4px solid var(--primary-red);
}

.warning-box {
    background: #FFF4E5;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: 4px solid #F59E0B;
}

.game-container {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding: 100px 24px 60px;
}

.game-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.game-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.game-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.game-header p {
    font-size: 16px;
    opacity: 0.9;
}

.game-board {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
}

.game-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.back-link {
    display: inline-block;
    margin-top: 32px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .game-board {
        padding: 24px;
    }

    .game-header h1 {
        font-size: 32px;
    }
}