/* ── More Games Section ─────────────────────────────────────── */
.more-games-section {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
    font-family: 'Barlow', 'Courier New', sans-serif;
}

.mg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mg-title-text {
    font-family: 'Bebas Neue', 'LowerPixel', 'Courier New', monospace;
    font-size: 1.8em;
    color: #4fc3f7;
    letter-spacing: 2px;
    margin: 0;
}

.mg-see-all {
    font-size: 13px;
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.mg-see-all:hover { opacity: 1; }

.more-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.mg-card {
    background: #0d1535;
    border: 1px solid #1e3a6a;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.mg-card:hover {
    border-color: #4fc3f7;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79,195,247,0.15);
}

.mg-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a1030;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mg-thumb-placeholder {
    font-size: 36px;
    opacity: 0.3;
}

.mg-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Barlow', sans-serif;
}
.mg-free  { background: #1b5e20; color: #69f0ae; }
.mg-paid  { background: #4a3000; color: #ffd740; }

.mg-info {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mg-title {
    font-size: 13px;
    font-weight: 700;
    color: #e0f7fa;
    line-height: 1.3;
    letter-spacing: 0.3px;
}
.mg-cat {
    font-size: 10px;
    color: #546e7a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mg-empty {
    grid-column: 1/-1;
    text-align: center;
    color: #546e7a;
    font-size: 13px;
    padding: 40px 0;
    font-family: 'LowerPixel', 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ── Auth spinner (replaces old login form) ───────────────── */
.auth-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #1e3a6a;
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: ph-spin 0.8s linear infinite;
    margin: 16px auto 0;
}
@keyframes ph-spin { to { transform: rotate(360deg); } }

/* ── Body padding so topnav doesn't overlap game ─────────── */
body.ph-page {
    padding-top: 0;
}

/* ── Auth overlay (sign-in / guest choice) ─────────────────── */
.auth-overlay-wrap {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 8, 20, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.auth-overlay-wrap.hidden {
    display: none !important;
}

.auth-box {
    background: #0d1535;
    border: 2px solid #4fc3f7;
    border-radius: 14px;
    padding: 40px 44px;
    width: 360px;
    box-shadow: 0 0 60px rgba(79, 195, 247, 0.2);
    text-align: center;
}
.auth-box h2 {
    color: #4fc3f7;
    font-family: 'Bebas Neue', 'LowerPixel', monospace;
    letter-spacing: 4px;
    font-size: 2em;
    margin-bottom: 4px;
}
.auth-box p, .auth-tagline {
    color: #546e7a;
    font-size: 0.82em;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}
.auth-logo {
    font-size: 2.4em;
    margin-bottom: 8px;
}

/* Primary sign-in button */
.auth-btn-primary {
    width: 100%;
    padding: 13px 20px;
    background: var(--r, #FF4510);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.18s, transform 0.12s;
    margin-bottom: 4px;
}
.auth-btn-primary:hover { background: #C83A0A; transform: translateY(-1px); }
.auth-btn-primary i { font-size: 16px; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #1e3a6a;
    font-size: 11px;
    letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e3a6a;
}
.auth-divider span { color: #344a6a; font-weight: 600; }

/* Guest button */
.auth-btn-guest {
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    border: 1px solid #1e3a6a;
    border-radius: 8px;
    color: #546e7a;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.18s, color 0.18s;
    margin-bottom: 20px;
}
.auth-btn-guest:hover { border-color: #4fc3f7; color: #90caf9; }
.auth-btn-guest i { font-size: 15px; }

/* Guest notice box */
.auth-guest-notice {
    background: #0a1030;
    border: 1px solid #1e3a6a;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 11px;
    color: #546e7a;
    line-height: 1.6;
    text-align: left;
    display: flex;
    gap: 8px;
}
.auth-guest-notice i {
    color: #f0a030;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}
.auth-guest-notice strong { color: #90a4ae; }

/* Hidden util for the choice box */
.hidden { display: none !important; }
