﻿/* PAGE -- game_desktop | Auto-extracted */

/* ═══════════════════════════════════════════════════════════
   GAME IFRAME — Premium Black & Gold Theme
   ═══════════════════════════════════════════════════════════ */

.game-container-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(201, 168, 76, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.12);
}

/* Animated gold line at the very top */
.game-container-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #C9A84C 20%, #FFD700 50%, #C9A84C 80%, transparent 100%);
    background-size: 200% 100%;
    animation: goldLineSweep 4s ease-in-out infinite;
    z-index: 20;
}

@keyframes goldLineSweep {
    0%, 100% { background-position: 200% 50%; }
    50% { background-position: 0% 50%; }
}

/* ── Controls Bar ── */
.game-controls {
    background: linear-gradient(180deg, #111111 0%, #0d0d0d 100%);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    position: relative;
    z-index: 10;
}

/* Subtle bottom glow on controls */
.game-controls::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

/* ── Game Title ── */
.game-info h4 {
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.game-info h4 i {
    color: #C9A84C;
    font-size: 0.95rem;
}

/* Live indicator dot */
.game-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C9A84C;
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(201, 168, 76, 0.6); }
    50% { opacity: 0.4; box-shadow: 0 0 4px rgba(201, 168, 76, 0.3); }
}

/* ── Action Buttons ── */
.game-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.util-btn {
    background: rgba(201, 168, 76, 0.08);
    color: #d4b85c;
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.util-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.06), transparent);
    transition: left 0.4s ease;
}

.util-btn:hover::before {
    left: 100%;
}

.util-btn:hover {
    background: rgba(201, 168, 76, 0.16);
    border-color: rgba(201, 168, 76, 0.35);
    color: #FFD700;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.12);
}

.util-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.util-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.util-btn:hover i {
    transform: scale(1.15);
}

/* Exit button — special red accent */
.util-btn.btn-exit {
    background: rgba(220, 53, 69, 0.08);
    color: #e8636f;
    border-color: rgba(220, 53, 69, 0.15);
}

.util-btn.btn-exit:hover {
    background: rgba(220, 53, 69, 0.18);
    border-color: rgba(220, 53, 69, 0.35);
    color: #ff6b7a;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.12);
}

/* Fullscreen button — gold highlight */
.util-btn.btn-fullscreen {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(255, 215, 0, 0.06));
    border-color: rgba(201, 168, 76, 0.2);
}

.util-btn.btn-fullscreen:hover {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.22), rgba(255, 215, 0, 0.12));
    border-color: rgba(201, 168, 76, 0.45);
    color: #FFD700;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.18);
}

/* ── Iframe Container ── */
.game-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Fullscreen State ── */
.game-container-wrapper.fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    max-width: none;
    z-index: 9999;
    border-radius: 0;
    border: none;
}

.game-container-wrapper.fullscreen::before {
    display: none;
}

.game-container-wrapper.fullscreen .game-iframe-container {
    height: calc(100% - 56px);
    padding-top: 0;
}

.game-container-wrapper.fullscreen .game-controls {
    border-bottom-color: rgba(201, 168, 76, 0.15);
}

/* ── Error State ── */
.game-error-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0d0d0d, #0a0a0a);
    gap: 12px;
    padding: 40px;
    text-align: center;
}

.game-error-container i {
    color: #C9A84C;
    font-size: 2.5rem;
    margin-bottom: 6px;
}

.game-error-container h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
}

.game-error-container p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    margin: 0;
    max-width: 400px;
}

.btn-return-lobby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.06));
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: #FFD700;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.btn-return-lobby:hover {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.1));
    border-color: rgba(201, 168, 76, 0.4);
    color: #FFD700;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
}

/* ── Separator between buttons ── */
.btn-separator {
    width: 1px;
    height: 22px;
    background: rgba(201, 168, 76, 0.12);
    flex-shrink: 0;
}
