/* Game Page Specific Styles */

/* Game Hero */
.game-hero {
    padding: calc(var(--header-height) + 60px) 0 60px;
    background: linear-gradient(135deg, rgba(255, 123, 163, 0.15) 0%, rgba(156, 107, 255, 0.15) 100%);
}

.game-hero__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.game-hero__badge {
    display: inline-block;
    background: var(--gradient-candy);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.game-hero__title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
    background: var(--gradient-candy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-hero__subtitle {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.game-hero__description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(232, 232, 232, 0.8);
    margin-bottom: 32px;
}

.game-hero__meta {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(232, 232, 232, 0.9);
    font-size: 16px;
}

.meta-item svg {
    color: var(--clr-primary);
}

/* Game Section */
.game-section {
    padding: 60px 0;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
}

.game-wrapper {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 123, 163, 0.3);
}

.game-frame {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    display: block;
    background: #000;
}

/* 21+ Age Overlay Badge */
.age-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    pointer-events: none;
}

.age-overlay__badge {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.game-wrapper:hover .age-overlay__badge {
    opacity: 0.9;
}

/* Loading State */
.game-loading {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 18, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 50;
    transition: opacity 0.3s ease;
}

.game-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 123, 163, 0.2);
    border-top-color: var(--clr-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.game-loading p {
    color: rgba(232, 232, 232, 0.8);
    font-size: 18px;
}

/* Game Controls */
.game-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.control-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 123, 163, 0.2);
    align-items: flex-start;
}

.control-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.control-content h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--clr-ink);
}

.control-content p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(232, 232, 232, 0.7);
}

/* Game Description */
.game-description {
    max-width: 900px;
    margin: 0 auto;
}

.game-description__title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 32px;
    text-align: center;
    color: var(--clr-ink);
}

.game-description__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.game-description__text {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(232, 232, 232, 0.8);
}

.game-description__text strong {
    color: var(--clr-primary);
    font-weight: 600;
}

/* Mechanics Grid */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.mechanic-card {
    background: var(--bg-elevated);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 123, 163, 0.2);
}

.mechanic-card__number {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient-berry);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.mechanic-card__title {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--clr-ink);
}

.mechanic-card__desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(232, 232, 232, 0.8);
}

.mechanic-card__desc strong {
    color: var(--clr-primary);
    font-weight: 600;
}

/* Game Notice */
.game-notice {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--clr-warning);
    margin-top: 60px;
}

.game-notice__icon {
    font-size: 48px;
    flex-shrink: 0;
}

.game-notice__title {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--clr-warning);
}

.game-notice__text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(232, 232, 232, 0.8);
}

.game-notice__text strong {
    color: var(--clr-warning);
    font-weight: 600;
}

/* Features Showcase */
.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-showcase-item {
    text-align: center;
    padding: 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.feature-showcase-item:hover {
    transform: translateY(-8px);
}

.feature-showcase-item__icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-showcase-item__title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--clr-ink);
}

.feature-showcase-item__desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(232, 232, 232, 0.7);
}

/* Game CTA */
.game-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 123, 163, 0.3);
}

.game-cta__title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
    color: var(--clr-ink);
}

.game-cta__desc {
    font-size: 18px;
    color: rgba(232, 232, 232, 0.8);
    margin-bottom: 32px;
}

.game-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .game-frame {
        height: 60vh;
        min-height: 500px;
    }
    
    .age-overlay {
        top: 10px;
        right: 10px;
    }
    
    .age-overlay__badge svg {
        width: 50px;
        height: 50px;
    }
    
    .game-hero__meta {
        flex-direction: column;
        gap: 16px;
    }
    
    .game-controls {
        grid-template-columns: 1fr;
    }
    
    .mechanics-grid {
        grid-template-columns: 1fr;
    }
    
    .game-notice {
        flex-direction: column;
    }
    
    .game-cta {
        padding: 40px 24px;
    }
    
    .game-cta__buttons {
        flex-direction: column;
    }
    
    .game-cta__buttons .btn {
        width: 100%;
    }
}