* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

body {
    background: linear-gradient(135deg, #1a1d2e 0%, #16213e 100%);
    color: #e8eaf6;
    max-width: 900px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    margin: 0 auto 1rem;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 0 0 1rem;
    color: #f0f0f0;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

header {
    padding: 30px 20px 20px;
    transition: transform 0.3s ease;
}

header:hover img {
    transform: scale(1.05);
}

header img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

@media (max-width: 600px) {
    header {
        padding: 20px 15px 15px;
    }
}

.game {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

@media (max-width: 600px) {
    .game {
        margin: 15px;
        padding: 24px;
        border-radius: 20px;
    }
}

.game ul {
    text-align: left;
}

.game h2 {
    flex: 100%;
}

.carousel-container {
    flex: 100%;
    position: relative;
    margin: 24px 0;
    overflow: hidden;
}

.carousel {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    touch-action: pan-y pinch-zoom;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    margin-top: -25px;
    background: rgba(102, 126, 234, 0.9);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(118, 75, 162, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-prev::before {
    content: '‹';
    display: block;
    font-family: Arial, sans-serif;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-btn-next::before {
    content: '›';
    display: block;
    font-family: Arial, sans-serif;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
}

@media (max-width: 600px) {
    .carousel-slide {
        padding: 12px;
    }
    
    .carousel-slide img {
        max-height: 400px;
        border-radius: 8px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: 2rem;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
}

.game a {
    flex: 1;
    display: flex;
}

.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 18px 24px;
    min-height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.button-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.button-badge img {
    max-height: 56px;
    width: auto;
    max-width: 100%;
    display: block;
    filter: brightness(1.05);
    margin: auto;
}

@media (max-width: 600px) {
    .button {
        min-height: 60px;
        padding: 12px 16px;
        border-radius: 14px;
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
    
    .button-badge img {
        max-height: 40px;
    }
}

.privacyPolicy {
    text-align: center;
}

.privacyPolicy ul {
    max-width: 650px;
    margin: 24px auto;
    padding: 0 32px 0 52px;
    text-align: left;
    list-style: disc;
}

.privacyPolicy li {
    margin-bottom: 16px;
    padding-left: 8px;
    line-height: 1.7;
    color: #d0d4e4;
}

.privacyPolicy li::marker {
    color: #667eea;
}

@media (max-width: 600px) {
    .privacyPolicy ul {
        padding: 0 20px 0 40px;
    }
}

footer {
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 0;
    padding: 28px 20px 24px;
    border-radius: 24px 24px 0 0;
}

footer p {
    color: #a8b2d1;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 600px) {
    footer {
        margin: 20px 15px 0;
        padding: 20px 15px 18px;
        border-radius: 20px 20px 0 0;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-width: 52px;
    min-height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        padding: 10px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .social-links svg {
        width: 24px;
        height: 24px;
    }
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

a:visited {
    color: inherit;
}

a:hover {
    color: inherit;
}

a:active {
    color: inherit;
}

/* Mobile-specific improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .button {
        min-height: 56px;
    }
    
    .social-links a {
        min-width: 56px;
        min-height: 56px;
    }
}
