.game-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-container {
    flex: 1;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.game-header .back-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.game-header .back-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.game-header .game-title-header {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.fullscreen-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.fullscreen-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.fullscreen-btn svg {
    width: 18px;
    height: 18px;
}

.game-frame-wrapper {
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    aspect-ratio: 16/9;
    max-height: 70vh;
}

.game-frame-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
}

.game-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-frame-wrapper .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 247, 251, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

body.dark .game-frame-wrapper .game-overlay {
    background: rgba(15, 15, 26, 0.97);
}

.game-frame-wrapper .game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-frame-wrapper .game-overlay .overlay-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.game-frame-wrapper .game-overlay .play-game-btn {
    background: var(--brand-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.share-buttons span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 6px;
}

.share-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.share-circle:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.share-x:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.share-facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.share-discord:hover {
    background: #5865f2;
    color: #fff;
    border-color: #5865f2;
}

.share-circle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .game-container {
        padding: 12px;
    }
    .game-frame-wrapper {
        aspect-ratio: 4/3;
    }
    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
.share-circle {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
}

.copy-link-btn:hover {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.native-share-btn:hover {
    background: #4b5563;
    color: #fff;
    border-color: #4b5563;
}
.game-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 5;
}

.game-error p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.retry-btn {
    background: var(--brand-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}