/* ================================================================
   UTD Games — Game Picker Modal Styles
   ================================================================ */

[x-cloak] { display: none !important; }

.gp-fade-enter { transition: opacity .2s ease; }
.gp-fade-from  { opacity: 0; }
.gp-fade-to    { opacity: 1; }

.gp-scale-enter { transition: opacity .2s ease, transform .2s ease; }
.gp-scale-from  { opacity: 0; transform: translate(-50%, -48%) scale(.95); }
.gp-scale-to    { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gp-box {
    background: linear-gradient(135deg, rgba(14,17,28,0.99), rgba(8,11,20,0.99));
    border: 1px solid rgba(99,102,241,0.28);
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.75), 0 0 0 1px rgba(99,102,241,0.08);
    overflow: hidden;
}
.gp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gp-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #eef2ff;
    letter-spacing: .04em;
}
.gp-sub {
    font-size: .78rem;
    color: #4b5a70;
    margin-top: .18rem;
}
.gp-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #6b7a99;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, color .18s;
    flex-shrink: 0;
}
.gp-close:hover { background: rgba(255,255,255,0.12); color: #eef2ff; }

.gp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .7rem;
    padding: 1.25rem;
}
.gp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.1rem .75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .18s;
    text-align: center;
}
.gp-card:hover:not(:disabled) {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-2px);
}
.gp-card:active:not(:disabled) { transform: translateY(0); }
.gp-card-disabled { opacity: 0.4; cursor: not-allowed !important; }
.gp-card-img {
    width: 54px; height: 54px;
    object-fit: contain;
    border-radius: 10px;
}
.gp-card-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    color: #c8d3e8;
    line-height: 1.2;
}
.gp-card-soon {
    font-size: .63rem;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 2rem;
    padding: .08rem .5rem;
}

/* ── Back to Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(99,102,241,0.45);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    z-index: 500;
    pointer-events: none;
}

/* ── Game Picker Modal Backdrop ── */
.gp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(5px);
}

/* ── Game Picker Modal Box ── */
.gp-modal {
    position: fixed;
    z-index: 8001;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(540px, 92vw);
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .gp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
        padding: 1rem;
    }
    .gp-card { padding: .875rem .5rem; }
    .gp-card-img { width: 44px; height: 44px; }
    .gp-header { padding: 1rem 1.25rem .75rem; }
    .gp-title { font-size: 1rem; }
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
