/* ==========================================================================
   Kaya918 PNG — Game List page
   Loads on top of lobby.css, which supplies the shared chrome (topbar,
   drawer, marquee, bottom nav, action modal) and the colour tokens.
   ========================================================================== */

.gp {
    padding: 0 0 46px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 122, 24, 0.13), transparent 60%),
        var(--lobby-black);
    color: #c9c9c9;
    line-height: 1.65;
}

.gp-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page header ------------------------------------------------------------ */
.gp-head {
    padding: 40px 0 26px;
    text-align: center;
}

.gp-crumb {
    margin: 0 0 14px;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: #7d7d7d;
}

.gp-crumb a { color: #a8a8a8; text-decoration: none; }
.gp-crumb a:hover { color: var(--lobby-orange-soft); }

.gp-head h1 {
    max-width: 22ch;
    margin: 0 auto 12px;
    font-family: var(--font-secondary, 'Poppins', sans-serif);
    font-size: clamp(1.5rem, 3.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.22;
    color: #fff;
    text-shadow: 0 0 22px rgba(255, 122, 24, 0.35);
}

.gp-head p {
    max-width: 66ch;
    margin: 0 auto;
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Toolbar: search + filters ---------------------------------------------- */
.gp-toolbar {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gp-search {
    position: relative;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}

.gp-search i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--lobby-orange);
    pointer-events: none;
}

.gp-search input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 1px solid var(--lobby-line);
    border-radius: 999px;
    background: var(--lobby-panel);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
}

.gp-search input::placeholder { color: #6f6f6f; }

.gp-search input:focus {
    outline: none;
    border-color: var(--lobby-orange);
    box-shadow: var(--lobby-glow-soft);
}

/* Result count ----------------------------------------------------------- */
.gp-count {
    padding: 16px 0 4px;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: #8a8a8a;
}

.gp-count b { color: #fff; }

/* Game grid -------------------------------------------------------------- */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    padding: 10px 0 0;
    list-style: none;
    margin: 0;
}

.gp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--lobby-line);
    border-radius: 14px;
    background: var(--lobby-panel);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gp-card:hover {
    transform: translateY(-5px);
    border-color: var(--lobby-orange);
    box-shadow: var(--lobby-glow);
}

.gp-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #120a04;
}

.gp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gp-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: #fff;
    z-index: 2;
}

/* Three fills that must stay distinguishable at 0.62rem: brand orange, the
   amber used for money-out elsewhere, and violet. HOT takes near-black ink
   because white on the bright orange is unreadable at this size. */
.gp-badge.is-hot { background: var(--lobby-orange); color: #1a0d03; box-shadow: var(--lobby-glow-soft); }
.gp-badge.is-new { background: var(--lobby-gold); color: #1a0d03; }
.gp-badge.is-free { background: #7b3fd4; }

/* flex:1 + margin-top:auto on the button keeps every Play Now on the same
   baseline across a row. Without it, a provider name that wraps to two lines
   ("Pragmatic Play · Slots") pushes that one card's button down and the whole
   row looks ragged — which only became obvious at 85 cards. */
.gp-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 14px 15px;
}

.gp-card-body h2,
.gp-card-body h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.gp-provider {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7f7f7f;
}

.gp-rating {
    margin-top: 2px;
    /* Guarantees a gap above the button even on the tallest card in a row,
       where margin-top:auto collapses to nothing. */
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--lobby-orange-soft);
    letter-spacing: 0.03em;
}

.gp-play {
    margin-top: auto;
    padding: 9px 12px;
    border: 2px solid var(--lobby-orange);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.gp-play:hover {
    background: linear-gradient(180deg, var(--lobby-orange) 0%, var(--lobby-orange-deep) 100%);
    box-shadow: var(--lobby-glow-soft);
    color: #1a0d03;
}

/* Empty state ------------------------------------------------------------ */
.gp-empty {
    padding: 54px 20px;
    text-align: center;
    color: #8a8a8a;
}

.gp-empty i { font-size: 2rem; color: var(--lobby-orange); margin-bottom: 12px; }
.gp-empty p { margin: 0 0 6px; }
.gp-empty b { color: #fff; }

/* Providers -------------------------------------------------------------- */
.gp-providers {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gp-providers h2 {
    margin: 0 0 8px;
    font-family: var(--font-secondary, 'Poppins', sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.gp-provider-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.gp-provider-strip li {
    padding: 10px 18px;
    border: 1px solid var(--lobby-line);
    border-radius: 10px;
    background: var(--lobby-panel);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #d0d0d0;
}

/* Prose ------------------------------------------------------------------ */
.gp-prose { margin-top: 40px; }

.gp-prose h2 {
    margin: 0 0 10px;
    font-family: var(--font-secondary, 'Poppins', sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.gp-prose h3 {
    margin: 26px 0 8px;
    font-family: var(--font-secondary, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.gp-prose p { margin: 0 0 14px; font-size: 0.93rem; }

/* Inline links in body copy. Without this they fall back to the browser's
   default blue, which is close to unreadable on black and off-brand. */
.gp-prose a:not(.gp-cta-btn),
.gp-providers p a:not(.gp-cta-btn),
.kb-note-text a:not(.gp-cta-btn) {
    color: var(--lobby-orange-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.gp-prose a:not(.gp-cta-btn):hover,
.gp-providers p a:not(.gp-cta-btn):hover,
.kb-note-text a:not(.gp-cta-btn):hover { color: #fff; }

/* A prose-level call to action, e.g. "Browse all 85 games". */
.gp-inline-cta { margin: 18px 0 0; }

.gp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding: 22px 24px;
    border: 2px solid var(--lobby-orange);
    border-radius: 16px;
    background: linear-gradient(180deg, #160d05 0%, #050505 100%);
    box-shadow: var(--lobby-glow-soft);
}

.gp-cta h2 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.gp-cta p { margin: 0; font-size: 0.86rem; color: #a8a8a8; }

.gp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 2px solid var(--lobby-orange);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--lobby-orange) 0%, var(--lobby-orange-deep) 100%);
    box-shadow: var(--lobby-glow-soft);
    color: #1a0d03;
    font-family: var(--font-secondary, 'Poppins', sans-serif);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
}

.gp-cta-btn:hover { box-shadow: var(--lobby-glow); }

/* Focus ------------------------------------------------------------------ */
.gp a:focus-visible,
.gp button:focus-visible,
.gp input:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    border-radius: 8px;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 760px) {
    .gp-inner { padding: 0 14px; }
    .gp-head { padding: 28px 0 20px; }
    .gp-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
    .gp-cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .gp-card:hover { transform: none; }
}
