:root {
    color-scheme: dark;

    /* Core Game Parliament palette */
    --pale-slate: #B1B9C4;
    --khaki-beige: #C0BAA4;
    --bone: #CFC8B5;
    --bone-bright: #F2EDE2;
    --light-bronze: #D89C5E;
    --pure-red: #FB0017;
    --regal-navy: #163F73;
    --regal-navy-deep: #0E294D;
    --charcoal: #545450;
    --saddle-brown: #753C1E;
    --dark-coffee: #3E2119;
    --metallic-gold: #D6AE45;
    --gold-rich: #B88928;
    --gold-deep: #8F651A;

    /* Typography */
    --font-brand: "Cinzel", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-editorial: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-ui);
    color: var(--bone);
    background-color: #110F12;
    background-image: linear-gradient(180deg, #101622 0%, #171211 55%, #130E0D 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    caret-color: transparent;
}

input,
textarea,
[contenteditable="true"] {
    caret-color: #FFFFFF;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Prevent browser focus ring on headings focused programmatically by Blazor's FocusOnNavigate */
h1:focus {
    outline: none;
}

/* Slow-drifting ambient background gradient (9s cycle, medium intensity) */
.gp-ambient-stage {
    position: fixed;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
}

.gp-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(95px);
    will-change: transform;
}

.gp-orb-brown {
    width: 62vw;
    height: 62vw;
    max-width: 780px;
    max-height: 780px;
    top: 12%;
    left: 6%;
    background: radial-gradient(circle, rgba(117, 60, 30, 0.72) 0%, rgba(62, 33, 25, 0.45) 45%, transparent 72%);
    animation: gp-drift-brown 9s ease-in-out infinite alternate;
}

.gp-orb-navy {
    width: 66vw;
    height: 66vw;
    max-width: 840px;
    max-height: 840px;
    top: 6%;
    right: 4%;
    background: radial-gradient(circle, rgba(22, 63, 115, 0.78) 0%, rgba(14, 41, 77, 0.48) 48%, transparent 74%);
    animation: gp-drift-navy 10.6s ease-in-out infinite alternate;
}

.gp-orb-gold {
    width: 48vw;
    height: 48vw;
    max-width: 620px;
    max-height: 620px;
    bottom: 4%;
    left: 30%;
    background: radial-gradient(circle, rgba(214, 174, 69, 0.20) 0%, rgba(117, 60, 30, 0.16) 46%, transparent 72%);
    animation: gp-drift-gold 12.15s ease-in-out infinite alternate;
}

@keyframes gp-drift-brown {
    0% {
        transform: translate3d(-6%, -4%, 0) scale(1);
    }
    50% {
        transform: translate3d(26%, 10%, 0) scale(1.12);
    }
    100% {
        transform: translate3d(44%, -6%, 0) scale(0.96);
    }
}

@keyframes gp-drift-navy {
    0% {
        transform: translate3d(6%, 4%, 0) scale(1.04);
    }
    50% {
        transform: translate3d(-24%, 14%, 0) scale(0.95);
    }
    100% {
        transform: translate3d(-42%, -4%, 0) scale(1.1);
    }
}

@keyframes gp-drift-gold {
    0% {
        transform: translate3d(-14%, 6%, 0) scale(0.95);
    }
    50% {
        transform: translate3d(12%, -10%, 0) scale(1.1);
    }
    100% {
        transform: translate3d(22%, 4%, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gp-orb {
        animation: none;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: -10px;
    z-index: 1;
    pointer-events: none;
    background-image: url("../assets/bg-mosaic.png");
    background-repeat: repeat;
    background-size: 480px auto;
    filter: blur(3px);
    opacity: 0.055;
}

/* Boot screen & LoadingBars loader */
.gp-boot-screen {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-loader-stage {
    min-height: 54vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gp-fade-in 0.2s ease-out;
}

.gp-loader-stage--compact {
    min-height: 14rem;
}

.gp-loader-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(214, 174, 69, 0.14) 0%, rgba(216, 156, 94, 0.05) 45%, transparent 72%);
}

.gp-bars-svg {
    display: block;
    filter: drop-shadow(0 0 18px rgba(214, 174, 69, 0.32));
}

.gp-bar {
    transform-box: fill-box;
    transform-origin: center;
    animation: gp-bar-wave 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gp-bar:nth-of-type(1) {
    animation-delay: 0s;
}

.gp-bar:nth-of-type(2) {
    animation-delay: 0.16s;
}

.gp-bar:nth-of-type(3) {
    animation-delay: 0.32s;
}

.gp-content-enter {
    animation: gp-fade-slide-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gp-bar-wave {
    0%, 100% {
        transform: scaleY(0.42);
        opacity: 0.45;
    }
    45% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes gp-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gp-fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shell & Layout */
.gp-layout {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

.gp-show-mobile {
    display: none;
}

.gp-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.gp-main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.gp-main:focus {
    outline: none;
}

.gp-search-submit-icon,
.gp-mobile-avatar-btn {
    display: none;
}

/* Top Navigation Bar */
.gp-navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(180deg, #194782 0%, var(--regal-navy) 55%, var(--regal-navy-deep) 100%);
    border-bottom: 2px solid var(--metallic-gold);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.gp-navbar-inner {
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.gp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.gp-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
    transition: transform 0.16s ease;
}

.gp-brand:hover .gp-brand-logo {
    transform: scale(1.06);
}

.gp-brand-text {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #FFFFFF;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Search Bar */
.gp-search-form {
    flex: 1;
    max-width: 28rem;
    display: flex;
    align-items: center;
    background: rgba(9, 20, 38, 0.72);
    border: 1px solid rgba(214, 174, 69, 0.38);
    border-radius: 0.4rem;
    padding: 0 0.25rem 0 0;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gp-search-form:focus-within {
    border-color: var(--metallic-gold);
    box-shadow: 0 0 0 2px rgba(214, 174, 69, 0.22), inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

.gp-search-input {
    flex: 1;
    min-width: 0;
    background-color: transparent;
    border: none;
    color: #FFFFFF;
    caret-color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem 0.65rem 0.95rem;
    -webkit-appearance: none;
    appearance: none;
}

.gp-search-input::-webkit-search-decoration,
.gp-search-input::-webkit-search-cancel-button,
.gp-search-input::-webkit-search-results-button,
.gp-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.gp-search-input::placeholder {
    color: rgba(177, 185, 196, 0.78);
}

.gp-search-input:focus {
    outline: none;
}

/* Prevent Chromium/Brave autofill from painting a white box over dark inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #FFFFFF !important;
    caret-color: #FFFFFF;
    -webkit-box-shadow: 0 0 0 1000px #091426 inset !important;
    box-shadow: 0 0 0 1000px #091426 inset !important;
    transition: background-color 99999s ease-in-out 0s;
}

/* Navbar Auth Controls */
.gp-navbar-auth {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gp-auth-placeholder {
    display: inline-block;
    width: 5.5rem;
    height: 2.1rem;
}

.gp-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.gp-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1.5px solid var(--metallic-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.gp-user-avatar-fallback {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(62, 33, 25, 0.85);
    border: 1.5px solid var(--metallic-gold);
}

.gp-user-name {
    max-width: 9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-signin-btn,
.gp-signout-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.76rem;
    text-transform: uppercase;
}

/* Buttons */
.gp-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.05rem;
    border-radius: 0.32rem;
    background: linear-gradient(180deg, #C79A34 0%, var(--gold-rich) 55%, var(--gold-deep) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(242, 237, 226, 0.28);
    font-family: var(--font-brand);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: filter 0.15s ease, border-color 0.15s ease;
}

.gp-btn-gold:hover {
    filter: brightness(1.09);
    border-color: rgba(255, 255, 255, 0.5);
}

.gp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.32rem;
    border: 1px solid rgba(214, 174, 69, 0.42);
    color: #FFFFFF;
    background: rgba(22, 63, 115, 0.25);
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.gp-btn-outline:hover:not(:disabled) {
    background: rgba(22, 63, 115, 0.5);
    border-color: var(--metallic-gold);
}

.gp-btn-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Chamber & Panels */
.gp-translucent-chamber {
    background:
        radial-gradient(circle at 86% 18%, rgba(22, 63, 115, 0.38), transparent 54%),
        radial-gradient(circle at 12% 85%, rgba(117, 60, 30, 0.30), transparent 52%),
        linear-gradient(135deg, rgba(39, 21, 16, 0.62) 0%, rgba(20, 18, 22, 0.56) 55%, rgba(16, 36, 66, 0.62) 100%);
    border: 1px solid rgba(214, 174, 69, 0.34);
    border-radius: 0.55rem;
    backdrop-filter: blur(10px);
}

.gp-panel {
    background: rgba(24, 20, 22, 0.82);
    border: 1px solid rgba(192, 186, 164, 0.16);
    border-radius: 0.55rem;
    backdrop-filter: blur(8px);
}

/* Home Hero */
.gp-hero {
    padding: 2rem;
    margin-bottom: 2rem;
}

.gp-hero-title {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-editorial);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 700;
    line-height: 1.15;
    color: #FFFFFF;
    max-width: 44rem;
}

.gp-hero-subtitle {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--khaki-beige);
    max-width: 44rem;
}

.gp-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(192, 186, 164, 0.16);
}

.gp-pillar {
    padding: 1rem;
    border-radius: 0.4rem;
    background: rgba(12, 15, 22, 0.48);
    border: 1px solid rgba(214, 174, 69, 0.22);
}

.gp-pillar-title {
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--metallic-gold);
    margin: 0 0 0.35rem 0;
}

.gp-pillar-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--khaki-beige);
}

/* Trending Carousel */
.gp-trending-section {
    padding: 1.15rem 1.25rem 0.95rem;
}

.gp-section-heading {
    margin: 0 0 1rem 0;
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #FFFFFF;
}

.gp-trending-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.gp-trending-head .gp-section-heading {
    margin: 0;
}

.gp-trending-swipe-hint,
.gp-marquee-fade {
    display: none;
}

.gp-marquee-shell {
    position: relative;
}

.gp-marquee-viewport {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.9) 7%, #000 14%, #000 86%, rgba(0, 0, 0, 0.9) 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.9) 7%, #000 14%, #000 86%, rgba(0, 0, 0, 0.9) 93%, transparent 100%);
}

.gp-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    will-change: transform;
    padding: 0.2rem 0;
}

.gp-marquee-item {
    width: 11.5rem;
    flex-shrink: 0;
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
    .gp-trending-section {
        padding: 1rem 1rem 0.9rem;
    }

    .gp-trending-head {
        margin-bottom: 0.6rem;
    }

    .gp-trending-swipe-hint {
        display: inline-block;
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(214, 174, 69, 0.84);
        flex-shrink: 0;
    }

    .gp-marquee-shell {
        margin: 0 -1rem;
    }

    .gp-marquee-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        mask-image: none;
        -webkit-mask-image: none;
        padding: 0.2rem 1.25rem 0.4rem;
    }

    .gp-marquee-viewport::-webkit-scrollbar {
        display: none;
    }

    .gp-marquee-track {
        will-change: auto;
        gap: 0.72rem;
        padding: 0;
    }

    .gp-marquee-item {
        width: 8.65rem;
        scroll-snap-align: center;
    }

    .gp-marquee-item--duplicate {
        display: none;
    }

    .gp-marquee-fade {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2.75rem;
        pointer-events: none;
        z-index: 4;
        display: flex;
        align-items: center;
        transition: opacity 0.2s ease;
    }

    .gp-marquee-fade--left {
        left: 0;
        justify-content: flex-start;
        padding-left: 0.25rem;
        background: linear-gradient(90deg, rgba(16, 14, 20, 0.92) 0%, rgba(16, 14, 20, 0.48) 55%, transparent 100%);
    }

    .gp-marquee-fade--right {
        right: 0;
        justify-content: flex-end;
        padding-right: 0.25rem;
        background: linear-gradient(270deg, rgba(16, 14, 20, 0.92) 0%, rgba(16, 14, 20, 0.48) 55%, transparent 100%);
    }

    .gp-marquee-fade.is-hidden {
        opacity: 0;
    }

    .gp-marquee-chevron {
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 999px;
        background: rgba(15, 22, 36, 0.84);
        border: 1px solid rgba(214, 174, 69, 0.55);
        color: var(--metallic-gold);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    }
}

.gp-marquee-viewport[data-marquee-static="true"] {
    mask-image: none;
    -webkit-mask-image: none;
}

.gp-marquee-viewport[data-marquee-static="true"] .gp-marquee-item--duplicate {
    display: none;
}

.gp-marquee-item--feed {
    width: 19rem;
}

.gp-marquee-item--feed .gp-feed-card {
    height: 100%;
}

.gp-feed-head-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
    .gp-marquee-item--feed {
        width: 15.8rem;
    }
}

/* Game Card */
.gp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0.42rem;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(36, 29, 29, 0.92) 0%, rgba(23, 18, 18, 0.95) 100%);
    border: 1px solid rgba(214, 174, 69, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gp-card:hover {
    transform: translateY(-4px);
    border-color: var(--metallic-gold);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.gp-card-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(155deg, var(--dark-coffee) 0%, #140F10 60%, var(--regal-navy-deep) 100%);
    border-bottom: 1px solid rgba(214, 174, 69, 0.25);
    overflow: hidden;
}

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

.gp-card-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.gp-cover-monogram {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    border: 2px solid var(--metallic-gold);
    background: rgba(15, 14, 18, 0.72);
}

.gp-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
}

.gp-card-title {
    margin: 0;
    font-family: var(--font-editorial);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: var(--pale-slate);
    padding-top: 0.4rem;
    border-top: 1px solid rgba(192, 186, 164, 0.12);
}

.gp-card-genre {
    color: var(--khaki-beige);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Page */
.gp-search-layout {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.gp-filters-card {
    padding: 1.15rem;
}

.gp-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.gp-filters-title {
    margin: 0;
    font-family: var(--font-brand);
    font-size: 0.92rem;
    color: var(--metallic-gold);
}

.gp-pill-soon {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    background: rgba(216, 156, 94, 0.16);
    color: var(--light-bronze);
}

.gp-filters-note {
    margin: 0 0 0.9rem 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--khaki-beige);
}

.gp-filter-placeholder-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    opacity: 0.6;
}

.gp-filter-placeholder-item {
    padding: 0.55rem 0.7rem;
    border-radius: 0.3rem;
    font-size: 0.78rem;
    color: var(--pale-slate);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(192, 186, 164, 0.18);
}

.gp-search-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(214, 174, 69, 0.22);
}

.gp-page-title {
    margin: 0;
    font-family: var(--font-editorial);
    font-size: 1.9rem;
    font-weight: 700;
    color: #FFFFFF;
}

.gp-result-count {
    font-size: 0.82rem;
    color: var(--khaki-beige);
}

.gp-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 1.1rem;
}

.gp-pagination {
    margin-top: 1.75rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(214, 174, 69, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: var(--khaki-beige);
}

.gp-pagination strong {
    color: var(--metallic-gold);
}

/* Game Detail Page */
.gp-detail-topbar {
    margin-bottom: 1.1rem;
}

.gp-detail-panel {
    padding: 2rem;
}

.gp-detail-grid {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.gp-detail-cover-box {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(214, 174, 69, 0.35);
    aspect-ratio: 3 / 4;
    background: linear-gradient(155deg, var(--dark-coffee) 0%, #140F10 60%, var(--regal-navy-deep) 100%);
}

.gp-rating-box {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border-radius: 0.4rem;
    text-align: center;
    background: rgba(12, 15, 22, 0.55);
    border: 1px solid rgba(214, 174, 69, 0.3);
}

.gp-rating-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--khaki-beige);
}

.gp-rating-value {
    margin-top: 0.2rem;
    font-family: var(--font-brand);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--metallic-gold);
}

.gp-rating-scale {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--pale-slate);
}

.gp-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--khaki-beige);
    margin-bottom: 0.6rem;
}

.gp-igdb-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 0.25rem;
    font-family: var(--font-brand);
    font-size: 0.75rem;
    background: rgba(22, 63, 115, 0.55);
    border: 1px solid rgba(214, 174, 69, 0.35);
    color: #FFFFFF;
}

.gp-detail-title {
    margin: 0 0 1rem 0;
    font-family: var(--font-editorial);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #FFFFFF;
}

.gp-detail-summary {
    margin: 0 0 1.65rem 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--bone);
}

.gp-detail-tags-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.gp-detail-label {
    font-family: var(--font-brand);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--metallic-gold);
    margin-bottom: 0.5rem;
}

.gp-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gp-badge-genre {
    padding: 0.28rem 0.65rem;
    border-radius: 0.3rem;
    font-size: 0.78rem;
    background: rgba(22, 63, 115, 0.48);
    border: 1px solid rgba(177, 185, 196, 0.28);
    color: var(--pale-slate);
}

.gp-badge-platform {
    padding: 0.28rem 0.65rem;
    border-radius: 0.3rem;
    font-size: 0.78rem;
    background: rgba(62, 33, 25, 0.78);
    border: 1px solid rgba(216, 156, 94, 0.35);
    color: var(--khaki-beige);
}

.gp-detail-companies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(214, 174, 69, 0.22);
}

.gp-company-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pale-slate);
    margin-bottom: 0.25rem;
}

.gp-company-names {
    font-family: var(--font-editorial);
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* Status / Empty / Loading states */
.gp-state-box {
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.gp-state-title {
    margin: 0 0 0.45rem 0;
    font-family: var(--font-editorial);
    font-size: 1.35rem;
    color: #FFFFFF;
}

.gp-state-message {
    margin: 0 0 1rem 0;
    font-size: 0.88rem;
    color: var(--khaki-beige);
}

.gp-state-error {
    border-color: rgba(251, 0, 23, 0.45);
}

/* Legal pages (/privacy, /terms) */
.gp-legal-panel {
    max-width: 50rem;
    margin: 0 auto;
    padding: 2rem 2.25rem;
}

.gp-legal-title {
    margin: 0 0 0.3rem 0;
    font-family: var(--font-editorial);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
}

.gp-legal-updated {
    margin: 0 0 1.75rem 0;
    font-size: 0.82rem;
    color: var(--pale-slate);
}

.gp-legal-section {
    margin-bottom: 1.4rem;
}

.gp-legal-section:last-child {
    margin-bottom: 0;
}

.gp-legal-section h2 {
    margin: 0 0 0.45rem 0;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--metallic-gold);
}

.gp-legal-section p,
.gp-legal-section li {
    font-size: 0.92rem;
    line-height: 1.68;
    color: var(--bone);
}

.gp-legal-section p {
    margin: 0 0 0.65rem 0;
}

.gp-legal-section ul {
    margin: 0.25rem 0 0.75rem 1.25rem;
    padding: 0;
}

.gp-legal-section li {
    margin-bottom: 0.35rem;
}

.gp-legal-section code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: rgba(12, 15, 22, 0.65);
    color: var(--metallic-gold);
    font-size: 0.84rem;
}

.gp-inline-link {
    color: var(--metallic-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gp-inline-link:hover {
    color: #FFFFFF;
}

/* Footer */
.gp-footer {
    border-top: 1px solid rgba(214, 174, 69, 0.22);
    background: rgba(10, 13, 20, 0.85);
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: var(--khaki-beige);
}

.gp-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gp-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--pale-slate);
}

.gp-footer-link {
    color: var(--khaki-beige);
    transition: color 0.15s ease;
}

.gp-footer-link:hover {
    color: var(--metallic-gold);
}

.gp-footer-brand {
    font-family: var(--font-brand);
    font-size: 0.9rem;
    color: #FFFFFF;
}

.gp-footer-domain {
    color: var(--metallic-gold);
}

.gp-footer-note {
    color: var(--pale-slate);
}

/* Navbar User Dropdown Menu */
.gp-user-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.gp-user-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.gp-user-profile-link:hover .gp-user-name {
    color: var(--metallic-gold);
}

.gp-caret-btn {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.28rem;
    border: 1px solid var(--metallic-gold);
    background: rgba(9, 20, 38, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gp-caret-btn:hover {
    background: rgba(214, 174, 69, 0.22);
}

.gp-caret-btn svg {
    transition: transform 0.15s ease;
}

.gp-caret-btn.open svg {
    transform: rotate(180deg);
}

.gp-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.gp-dropdown {
    position: absolute;
    z-index: 50;
    background: rgba(15, 21, 34, 0.97);
    border: 1px solid rgba(214, 174, 69, 0.52);
    border-radius: 0.42rem;
    padding: 0.4rem 0;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(12px);
}

.gp-user-dropdown {
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 13.5rem;
}

.gp-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.62rem 1rem;
    border: none;
    background: transparent;
    color: var(--bone-bright);
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.gp-dropdown-item:hover {
    background: rgba(22, 63, 115, 0.55);
    color: #FFFFFF;
}

.gp-dropdown-item--gold {
    color: var(--metallic-gold);
    text-shadow: 0 0 12px rgba(214, 174, 69, 0.28);
}

.gp-dropdown-item--gold:hover {
    background: rgba(214, 174, 69, 0.16);
    color: #F4D375;
}

.gp-dropdown-item--danger {
    color: #F7B5BC;
}

.gp-dropdown-item--danger:hover {
    background: rgba(145, 16, 28, 0.48);
    color: #FFFFFF;
}

.gp-dropdown-divider {
    margin: 0.3rem 0;
    border-top: 1px solid rgba(214, 174, 69, 0.24);
}

/* User Profile (/u/{id}) */
.gp-profile-header {
    position: relative;
    padding: 1.75rem 2rem 0 2rem;
    margin-bottom: 1.35rem;
    transition: padding 0.24s ease, margin-bottom 0.24s ease;
}

.gp-profile-header-backdrop,
.gp-profile-header-dualtone {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.gp-profile-header-backdrop {
    z-index: 0;
}

.gp-profile-header-mosaic {
    width: 100%;
    height: 100%;
    display: grid;
    opacity: 0.10;
    filter: blur(2px) saturate(1.15);
    transform: scale(1.04);
}

.gp-profile-header-slice {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
}

.gp-profile-header-dualtone {
    z-index: 1;
    background:
        radial-gradient(ellipse 58% 120% at 10% 35%, rgba(155, 58, 32, 0.20), transparent 68%),
        radial-gradient(ellipse 62% 120% at 90% 42%, rgba(28, 92, 172, 0.20), transparent 70%),
        linear-gradient(105deg, rgba(46, 22, 16, 0.72) 0%, rgba(18, 19, 27, 0.68) 48%, rgba(14, 34, 66, 0.70) 100%);
}

.gp-profile-header.collapsed {
    padding: 0.78rem 1.5rem 0 1.5rem;
    margin-bottom: 0.9rem;
}

.gp-profile-header-top {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1.35rem;
    transition: padding-bottom 0.24s ease, gap 0.24s ease;
}

.gp-profile-header.collapsed .gp-profile-header-top {
    padding-bottom: 0.65rem;
    gap: 0.75rem;
}

.gp-profile-identity {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: gap 0.24s ease;
}

.gp-profile-header.collapsed .gp-profile-identity {
    gap: 0.75rem;
}

.gp-profile-avatar {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid var(--metallic-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: width 0.24s ease, height 0.24s ease;
}

.gp-profile-avatar-fallback {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
    border: 2px solid var(--metallic-gold);
    background: linear-gradient(145deg, var(--regal-navy), var(--dark-coffee));
    transition: width 0.24s ease, height 0.24s ease, font-size 0.24s ease;
}

.gp-profile-header.collapsed .gp-profile-avatar,
.gp-profile-header.collapsed .gp-profile-avatar-fallback {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.92rem;
}

.gp-profile-name {
    margin: 0 0 0.25rem 0;
    font-family: var(--font-editorial);
    font-size: clamp(1.75rem, 2.8vw, 2.3rem);
    font-weight: 700;
    color: #FFFFFF;
    transition: font-size 0.24s ease, margin-bottom 0.24s ease;
}

.gp-profile-header.collapsed .gp-profile-name {
    font-size: 1.28rem;
    margin-bottom: 0;
}

.gp-profile-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: var(--khaki-beige);
    max-height: 3rem;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.24s ease, opacity 0.2s ease, margin 0.24s ease;
}

.gp-profile-header.collapsed .gp-profile-stats {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.gp-profile-stats strong {
    color: #FFFFFF;
}

.gp-gold-text {
    color: var(--metallic-gold) !important;
}

.gp-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.gp-code-pill {
    padding: 0.45rem 0.8rem;
    border-radius: 0.32rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--metallic-gold);
    background: rgba(10, 15, 24, 0.65);
    border: 1px solid rgba(214, 174, 69, 0.4);
}

.gp-profile-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.gp-profile-name-row.has-overflow {
    padding-right: 2.35rem;
}

.gp-friend-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: rgba(125, 211, 168, 0.1);
    border: 1px solid rgba(125, 211, 168, 0.32);
    color: #7dd3a8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
}

.gp-friend-overflow-wrap {
    position: absolute;
    top: 1.15rem;
    right: 1.35rem;
    z-index: 25;
}

.gp-friend-overflow-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(192, 186, 164, 0.24);
    background: rgba(10, 15, 24, 0.72);
    color: var(--khaki-beige);
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.gp-friend-overflow-btn:hover,
.gp-friend-overflow-btn[aria-expanded="true"] {
    color: #FFFFFF;
    border-color: rgba(214, 174, 69, 0.55);
    background: rgba(18, 26, 42, 0.92);
}

.gp-friend-overflow-backdrop {
    position: fixed;
    inset: 0;
    z-index: 24;
    background: transparent;
}

.gp-friend-overflow-popover {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 26;
    min-width: 11.75rem;
    padding: 0.38rem;
    border-radius: 0.65rem;
    background: #101726;
    border: 1px solid rgba(214, 174, 69, 0.34);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.gp-friend-overflow-danger {
    width: 100%;
    border: none;
    background: transparent;
    color: #e87a7a;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    padding: 0.48rem 0.62rem;
    border-radius: 0.45rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gp-friend-overflow-danger:hover {
    background: rgba(226, 109, 109, 0.14);
    color: #ff9c9c;
}

.gp-friend-confirm-box {
    padding: 0.35rem 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.gp-friend-confirm-text {
    font-size: 0.76rem;
    color: #f3f1e8;
    line-height: 1.35;
}

.gp-friend-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.gp-profile-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(192, 186, 164, 0.16);
    padding-top: 0.75rem;
    transition: padding-top 0.24s ease;
}

.gp-profile-header.collapsed .gp-profile-tabs {
    padding-top: 0.5rem;
}

.gp-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0 0.7rem 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--khaki-beige);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, padding-bottom 0.24s ease;
}

.gp-tab:focus {
    outline: none;
}

.gp-tab:focus-visible {
    outline: 1px solid var(--metallic-gold);
    outline-offset: -1px;
    border-radius: 0.25rem;
}

.gp-profile-header.collapsed .gp-tab {
    padding-bottom: 0.5rem;
}

.gp-tab:hover {
    color: #FFFFFF;
}

.gp-tab.active {
    color: var(--metallic-gold);
    border-bottom-color: var(--metallic-gold);
}

.gp-avatar-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gp-notif-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: var(--pure-red);
    border: 2px solid #0C121E;
    box-shadow: 0 0 8px rgba(251, 0, 23, 0.72);
    pointer-events: none;
}

.gp-tab-notif-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--pure-red);
    box-shadow: 0 0 8px rgba(251, 0, 23, 0.72);
    flex-shrink: 0;
}

.gp-tab-count {
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(214, 174, 69, 0.22);
    border: 1px solid rgba(214, 174, 69, 0.45);
    color: var(--metallic-gold);
}

/* Library Toolbar, Filters & Filtered Summary Bar */
.gp-library-control-chamber {
    border-radius: 0.55rem;
    border: 1px solid rgba(214, 174, 69, 0.30);
    background: linear-gradient(115deg, rgba(36, 20, 16, 0.62) 0%, rgba(15, 19, 29, 0.78) 52%, rgba(14, 30, 56, 0.66) 100%);
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.gp-library-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.9rem;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0;
}

.gp-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.32rem;
}

.gp-filter-label {
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--metallic-gold);
    margin-right: 0.2rem;
}

.gp-filter-pill {
    padding: 0.32rem 0.68rem;
    border-radius: 0.36rem;
    border: 1px solid transparent;
    background: rgba(9, 14, 24, 0.55);
    color: #d6d2c4;
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.gp-filter-pill:hover {
    color: #FFFFFF;
    border-color: rgba(214, 174, 69, 0.42);
}

.gp-filter-pill:focus-visible {
    outline: none;
    border-color: var(--metallic-gold);
}

.gp-filter-pill.active {
    background: linear-gradient(180deg, #e5bf5c 0%, #c89a2e 100%);
    color: #120d05;
    border-color: #f0d07a;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(214, 174, 69, 0.28);
}

.gp-filtered-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 1rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0;
    border-top: 1px solid rgba(192, 186, 164, 0.14);
    background: rgba(8, 12, 20, 0.42);
    font-size: 0.82rem;
    color: var(--khaki-beige);
}

.gp-filtered-summary-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.48rem;
}

.gp-filtered-scope {
    font-family: var(--font-brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--metallic-gold);
}

.gp-summary-dot {
    color: var(--pale-slate);
}

.gp-filtered-summary-right {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--khaki-beige);
}

.gp-filtered-avg {
    font-family: var(--font-brand);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--metallic-gold);
}

.gp-filtered-scale {
    font-size: 0.84rem;
    color: var(--pale-slate);
}

/* Dedicated Scrollable Games Container */
.gp-library-scroll-box {
    max-height: 62vh;
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 174, 69, 0.45) rgba(10, 14, 22, 0.4);
}

.gp-library-scroll-box::-webkit-scrollbar {
    width: 0.42rem;
}

.gp-library-scroll-box::-webkit-scrollbar-track {
    background: rgba(10, 14, 22, 0.4);
    border-radius: 999px;
}

.gp-library-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(214, 174, 69, 0.42);
    border-radius: 999px;
}

.gp-library-scroll-box::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 174, 69, 0.72);
}

/* Reusable LibraryGameCard Rows & Playthroughs */
.gp-library-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.55rem;
}

.gp-lib-card-wrap {
    position: relative;
}

.gp-lib-card-wrap--ranked {
    margin-top: 0.55rem;
}

.gp-goty-ribbon {
    position: absolute;
    top: -0.78rem;
    left: 1rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.72rem;
    border-radius: 999px;
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
    line-height: 1.15;
}

.gp-goty-num {
    font-family: var(--font-editorial);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0.06rem;
}

.gp-goty-ribbon--1 {
    background: linear-gradient(180deg, #F2CE6B, #B88725);
    color: #140E04;
    border: 1px solid #FFF2C2;
}

.gp-goty-ribbon--2 {
    background: linear-gradient(180deg, #E4ECF8, #9CA9BE);
    color: #0D1420;
    border: 1px solid #FFFFFF;
}

.gp-goty-ribbon--3 {
    background: linear-gradient(180deg, #E8A876, #A46233);
    color: #180B04;
    border: 1px solid #FFD8BA;
}

.gp-library-row {
    padding: 0.9rem 1.15rem;
}

.gp-library-row--rank-1 {
    padding-top: 1.15rem;
    border-color: rgba(214, 174, 69, 0.72);
    box-shadow: 0 0 22px rgba(214, 174, 69, 0.14);
}

.gp-library-row--rank-2 {
    padding-top: 1.15rem;
    border-color: rgba(206, 217, 234, 0.52);
}

.gp-library-row--rank-3 {
    padding-top: 1.15rem;
    border-color: rgba(217, 146, 93, 0.52);
}

.gp-rank-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gp-rank-picker-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pale-slate);
    margin-right: 0.15rem;
}

.gp-rank-chip {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 174, 69, 0.35);
    background: rgba(9, 16, 28, 0.82);
    color: var(--khaki-beige);
    font-family: var(--font-editorial);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.14s ease;
}

.gp-rank-chip:hover {
    border-color: var(--metallic-gold);
    color: #FFFFFF;
}

.gp-rank-chip--active-1 {
    background: #E8BE52;
    color: #140E04;
    border-color: #FFF2C2;
}

.gp-rank-chip--active-2 {
    background: #D4DFEE;
    color: #0D1420;
    border-color: #FFFFFF;
}

.gp-rank-chip--active-3 {
    background: #DC945E;
    color: #180B04;
    border-color: #FFD8BA;
}

.gp-lib-card-grid {
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.gp-lib-cover-wrap {
    display: block;
    width: 3.75rem;
    height: 5rem;
    border-radius: 0.32rem;
    overflow: hidden;
    border: 1px solid rgba(214, 174, 69, 0.32);
    background: rgba(10, 14, 22, 0.75);
    flex-shrink: 0;
}

.gp-lib-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--metallic-gold);
    background: linear-gradient(145deg, var(--regal-navy), var(--dark-coffee));
}

.gp-lib-card-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gp-lib-card-title-row {
    min-width: 0;
}

.gp-lib-card-title {
    display: block;
    font-family: var(--font-editorial);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

a.gp-lib-card-title:hover {
    color: var(--metallic-gold);
}

.gp-lib-card-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.gp-lib-owner-tag {
    font-size: 0.78rem;
    color: var(--pale-slate);
}

.gp-library-notes {
    margin: 0;
    font-size: 0.84rem;
    color: var(--khaki-beige);
}

.gp-library-notes--single {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-library-notes--empty {
    color: rgba(177, 185, 196, 0.55);
    font-style: italic;
}

.gp-lib-card-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.gp-nowrap {
    white-space: nowrap;
}

.gp-library-rating {
    text-align: right;
    min-width: 4.3rem;
}

.gp-library-rating-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pale-slate);
}

.gp-library-rating-value {
    font-family: var(--font-brand);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--metallic-gold);
}

.gp-library-rating-value small {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--pale-slate);
}

.gp-status-badge {
    font-size: 0.7rem;
    padding: 0.18rem 0.55rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.gp-status-badge--completed {
    background: rgba(214, 174, 69, 0.2);
    color: #E4BD5A;
    border: 1px solid rgba(214, 174, 69, 0.45);
}

.gp-status-badge--playing {
    background: rgba(22, 63, 115, 0.55);
    color: #DCE8FA;
    border: 1px solid rgba(177, 185, 196, 0.4);
}

.gp-status-badge--plan_to_play {
    background: rgba(84, 84, 80, 0.38);
    color: var(--bone);
    border: 1px solid rgba(192, 186, 164, 0.3);
}

.gp-status-badge--on_hold {
    background: rgba(117, 60, 30, 0.45);
    color: #E5B483;
    border: 1px solid rgba(216, 156, 94, 0.4);
}

.gp-status-badge--dropped {
    background: rgba(120, 16, 24, 0.42);
    color: #F5B5BC;
    border: 1px solid rgba(251, 0, 23, 0.4);
}

.gp-playthroughs-panel {
    margin-top: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.45rem;
    background: rgba(11, 14, 22, 0.76);
    border: 1px solid rgba(214, 174, 69, 0.22);
}

.gp-playthroughs-header {
    margin-bottom: 0.65rem;
}

.gp-playthrough-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.gp-playthrough-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.48rem 0.7rem;
    border-radius: 0.36rem;
    background: rgba(16, 20, 30, 0.82);
    border: 1px solid rgba(192, 186, 164, 0.16);
    font-size: 0.82rem;
}

.gp-pt-date {
    color: #FFFFFF;
    line-height: 1.2;
    flex-shrink: 0;
}

.gp-pt-notes {
    color: var(--khaki-beige);
    line-height: 1.35;
}

.gp-add-pt-form {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

.gp-pt-add-month {
    width: 13.5rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.gp-pt-add-notes {
    flex: 1;
    min-width: 0;
    height: 2.25rem;
    min-height: 2.25rem;
    max-height: 5.5rem;
    line-height: 1.35;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
    resize: vertical;
    overflow-y: auto;
}

.gp-pt-notes-textarea {
    min-height: 2.6rem;
    max-height: 5.5rem;
    line-height: 1.35;
    resize: vertical;
    overflow-y: auto;
}

.gp-pt-add-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gp-pt-add-btn {
    height: 2.25rem;
    white-space: nowrap;
}

/* Friends & Account Tabs */
.gp-friends-grid {
    display: grid;
    grid-template-columns: 19rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.gp-friends-lists {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gp-friends-card,
.gp-account-card {
    padding: 1.35rem 1.5rem;
}

.gp-account-card {
    max-width: 38rem;
}

.gp-card-section-title {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--metallic-gold);
}

.gp-sub-section-title {
    margin: 1.15rem 0 0.55rem 0;
    font-family: var(--font-brand);
    font-size: 0.82rem;
    color: var(--pale-slate);
}

.gp-card-section-note,
.gp-muted-note {
    margin: 0 0 1rem 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--khaki-beige);
}

.gp-add-friend-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gp-code-input {
    text-transform: lowercase;
    letter-spacing: 0.12em;
}

.gp-friend-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gp-friend-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.38rem;
    background: rgba(10, 14, 22, 0.55);
    border: 1px solid rgba(192, 186, 164, 0.14);
}

.gp-friend-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.gp-friend-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #FFFFFF;
}

.gp-friend-code {
    font-size: 0.76rem;
    color: var(--pale-slate);
}

.gp-friend-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gp-friend-actions .gp-compact-btn {
    min-width: 5.2rem;
    line-height: 1.2;
    text-decoration: none;
}

/* Game Detail Library Entry Box & Custom Status Dropdown */
.gp-library-entry-box {
    position: relative;
    z-index: 20;
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
}

.gp-gd-playthroughs-box {
    position: relative;
    z-index: 1;
}

.gp-library-entry-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.gp-library-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.75rem;
}

.gp-library-entry-grid--four {
    grid-template-columns: repeat(auto-fit, minmax(10.25rem, 1fr));
}

.gp-custom-select-wrap {
    position: relative;
}

.gp-custom-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.gp-status-dropdown {
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
}

.gp-entry-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gp-entry-notes {
    margin-top: 0.7rem;
}

/* Shared Form Controls & Helpers */
.gp-field-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pale-slate);
    margin-bottom: 0.3rem;
}

.gp-field-input {
    padding: 0.52rem 0.75rem;
    border-radius: 0.32rem;
    background: rgba(9, 20, 38, 0.78);
    border: 1px solid rgba(214, 174, 69, 0.35);
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 0.86rem;
}

.gp-field-input.gp-custom-select-btn,
select.gp-field-input,
select.gp-field-input option,
.gp-field-input.gp-rating-input,
input[type="month"].gp-field-input,
.gp-pt-date {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: 0.05em;
}

select.gp-field-input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.15rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23D6AE45' d='M2 4l4 5 4-5H2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 10px;
    cursor: pointer;
}

.gp-field-input:focus {
    outline: none;
    border-color: var(--metallic-gold);
}

.gp-field-grow {
    flex: 1;
    min-width: 12rem;
}

.gp-full-width {
    width: 100%;
}

.gp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gp-btn-gold:disabled {
    opacity: 0.38;
    filter: grayscale(0.75);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.gp-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.32rem;
    border: 1px solid rgba(251, 0, 23, 0.5);
    color: #FFD4D8;
    background: rgba(120, 12, 22, 0.34);
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.gp-btn-danger:hover:not(:disabled) {
    background: rgba(180, 12, 26, 0.52);
    border-color: var(--pure-red);
}

.gp-compact-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.gp-tiny-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
}

.gp-confirm-box {
    padding: 0.9rem 1rem;
    border-radius: 0.38rem;
    background: rgba(120, 12, 22, 0.22);
    border: 1px solid rgba(251, 0, 23, 0.45);
}

.gp-inline-error {
    margin: 0.5rem 0;
    font-size: 0.82rem;
    color: #F7B5BC;
}

.gp-inline-success {
    margin: 0.5rem 0;
    font-size: 0.82rem;
    color: var(--metallic-gold);
}

/* Parliaments Hub (/parliaments) & Integrated Parliament Detail (/parliaments/{id}) */
.gp-parl-hub-header {
    padding: 1.5rem 1.85rem;
    margin-bottom: 1.35rem;
}

.gp-parl-invites-box {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.35rem;
    border-color: rgba(214, 174, 69, 0.45);
}

.gp-parl-invites-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.gp-parl-invite-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 0.4rem;
    background: rgba(22, 63, 115, 0.28);
    border: 1px solid rgba(214, 174, 69, 0.36);
}

.gp-parl-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 1.4rem;
    align-items: start;
}

.gp-parl-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.gp-parl-summary-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1.15rem;
    padding: 1.05rem 1.2rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(214, 174, 69, 0.34);
    overflow: hidden;
    background: #12151E;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gp-parl-summary-card:hover {
    border-color: rgba(214, 174, 69, 0.78);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.56);
}

.gp-parl-card-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    opacity: 0.24;
    filter: blur(2px) saturate(1.15);
    transform: scale(1.06);
    pointer-events: none;
}

.gp-parl-card-bg-slice {
    overflow: hidden;
}

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

.gp-parl-card-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 86% 18%, rgba(22, 63, 115, 0.42), transparent 56%),
        linear-gradient(105deg, rgba(16, 18, 28, 0.88) 0%, rgba(18, 22, 34, 0.76) 55%, rgba(39, 22, 16, 0.82) 100%);
    pointer-events: none;
}

.gp-parl-card-emblem {
    position: relative;
    z-index: 2;
    width: 9.2rem;
    height: 6.1rem;
    border-radius: 0.42rem;
    border: 1.5px solid rgba(214, 174, 69, 0.72);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: #090C12;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.58);
    flex-shrink: 0;
    align-self: center;
}

.gp-parl-card-emblem-slice {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

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

.gp-parl-card-banner-fade,
.gp-parl-card-role-mobile {
    display: none;
}

.gp-parl-card-body {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
}

.gp-parl-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.gp-parl-card-name {
    margin: 0;
    font-family: var(--font-editorial);
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-parl-card-desc {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.44;
    color: var(--khaki-beige);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-parl-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(192, 186, 164, 0.14);
    font-size: 0.78rem;
    color: var(--pale-slate);
}

.gp-parl-card-stats {
    display: flex;
    align-items: center;
    gap: 0.48rem;
}

.gp-parl-card-open {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--metallic-gold);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .gp-parl-summary-card {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .gp-parl-card-emblem {
        width: 100%;
        height: 6.4rem;
        border: none;
        border-bottom: 1.5px solid rgba(214, 174, 69, 0.55);
        border-radius: 0;
        gap: 2px;
        box-shadow: none;
    }

    .gp-parl-card-banner-fade {
        display: block;
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10, 14, 22, 0.08) 0%, rgba(14, 16, 24, 0.56) 100%);
        pointer-events: none;
    }

    .gp-parl-card-role-desktop {
        display: none;
    }

    .gp-parl-card-role-mobile {
        display: inline-flex;
        position: absolute;
        top: 0.5rem;
        right: 0.55rem;
        z-index: 3;
        backdrop-filter: blur(6px);
    }

    .gp-parl-card-body {
        padding: 0.8rem 0.9rem 0.85rem;
    }

    .gp-parl-card-name {
        font-size: 1.2rem;
    }
}

.gp-parl-card-meta strong {
    color: #FFFFFF;
}

/* Parliament Mosaic Header */
.gp-parl-mosaic-header {
    position: relative;
    overflow: hidden;
    padding: 1.65rem 1.85rem 1.35rem 1.85rem;
    margin-bottom: 1.25rem;
}

.gp-mosaic-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    opacity: 0.24;
    filter: saturate(1.12) blur(2px);
    pointer-events: none;
}

.gp-mosaic-tile {
    overflow: hidden;
    position: relative;
}

.gp-mosaic-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-mosaic-tile--1 {
    background: linear-gradient(135deg, #2B4C7E, #163F73, #0F1A2E);
}

.gp-mosaic-tile--2 {
    background: linear-gradient(135deg, #7A4B1E, #3E2119, #1A1214);
}

.gp-mosaic-tile--3 {
    background: linear-gradient(135deg, #5C3D6E, #1F3558, #0D1624);
}

.gp-mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(10, 14, 24, 0.93) 0%, rgba(12, 18, 30, 0.78) 55%, rgba(10, 14, 24, 0.9) 100%);
    pointer-events: none;
}

.gp-mosaic-content {
    position: relative;
    z-index: 2;
}

.gp-parl-detail-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.15rem;
}

.gp-parl-crest-row {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-wrap: wrap;
}

.gp-parl-emblem {
    position: relative;
    width: 6.4rem;
    height: 5rem;
    border-radius: 0.45rem;
    border: 1.5px solid rgba(214, 174, 69, 0.75);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #0A0D14;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.58);
    flex-shrink: 0;
}

.gp-parl-emblem-slice {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.35rem;
    overflow: hidden;
    font-family: var(--font-brand);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.gp-parl-emblem-slice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: -0.35rem;
}

.gp-parl-emblem-avatars {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.25rem;
    display: flex;
    justify-content: center;
}

.gp-mini-av {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    object-fit: cover;
    background: linear-gradient(145deg, var(--regal-navy), var(--dark-coffee));
    border: 1.5px solid var(--metallic-gold);
    color: #FFFFFF;
    font-family: var(--font-brand);
    font-size: 0.56rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -0.38rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.gp-mini-av:first-child,
.gp-mini-av--plain {
    margin-left: 0;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.gp-parl-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.gp-parl-header-desc {
    margin: 0.3rem 0 0 0;
    font-size: 0.9rem;
    color: var(--khaki-beige);
}

.gp-parl-inline-form {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
}

.gp-parl-year-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(192, 186, 164, 0.16);
}

.gp-year-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.gp-year-state {
    font-family: var(--font-brand);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.08rem 0.36rem;
    border-radius: 0.22rem;
}

.gp-year-state--open {
    background: rgba(214, 174, 69, 0.22);
    color: #F2CE6D;
}

.gp-year-state--frozen {
    background: rgba(75, 130, 198, 0.3);
    color: #CBE4FF;
}

.gp-year-pill.active .gp-year-state--open,
.gp-year-pill.active .gp-year-state--frozen {
    background: rgba(18, 13, 5, 0.16);
    color: #120d05;
}

.gp-parl-open-year-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
}

.gp-frozen-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.78rem 1.1rem;
    border-radius: 0.4rem;
    margin-bottom: 1.1rem;
    background: rgba(26, 62, 112, 0.34);
    border: 1px solid rgba(140, 190, 245, 0.45);
    font-size: 0.88rem;
    color: #DDEEFF;
}

.gp-status-badge--frozen {
    background: rgba(65, 120, 185, 0.3);
    color: #C4E0FF;
    border: 1px solid rgba(140, 190, 245, 0.48);
}

.gp-parl-subtabs {
    border-top: none;
    border-bottom: 1px solid rgba(192, 186, 164, 0.16);
    padding-top: 0;
    margin-bottom: 1.15rem;
}

/* Official Top 3 GOTY Podium */
.gp-podium-section {
    margin-bottom: 1.35rem;
}

.gp-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.gp-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.15rem 1rem;
}

.gp-podium-card--1 {
    border-color: rgba(214, 174, 69, 0.78);
    background: linear-gradient(180deg, rgba(214, 174, 69, 0.16), rgba(14, 20, 32, 0.94));
    padding-top: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
}

.gp-podium-card--2 {
    border-color: rgba(196, 206, 222, 0.55);
    background: linear-gradient(180deg, rgba(196, 206, 222, 0.1), rgba(14, 20, 32, 0.94));
}

.gp-podium-card--3 {
    border-color: rgba(205, 138, 86, 0.55);
    background: linear-gradient(180deg, rgba(205, 138, 86, 0.1), rgba(14, 20, 32, 0.94));
}

.gp-podium-medal {
    font-family: var(--font-brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gp-podium-card--1 .gp-podium-medal { color: #F0CA63; }
.gp-podium-card--2 .gp-podium-medal { color: #D2DCEB; }
.gp-podium-card--3 .gp-podium-medal { color: #DF9E6B; }

.gp-podium-cover {
    width: 4.5rem;
    height: 6rem;
    border-radius: 0.34rem;
    overflow: hidden;
    border: 1px solid rgba(214, 174, 69, 0.38);
}

.gp-podium-cover--first {
    width: 5.4rem;
    height: 7.2rem;
    border-color: var(--metallic-gold);
}

.gp-podium-title {
    font-family: var(--font-editorial);
    font-size: 1.12rem;
    font-weight: 700;
    color: #FFFFFF;
}

a.gp-podium-title:hover {
    color: var(--metallic-gold);
}

/* Aggregated Parliament Ranking Rows */
.gp-rank-row {
    display: grid;
    grid-template-columns: 2.6rem 3.75rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.gp-rank-row--clickable {
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.15s ease, background 0.16s ease;
}

.gp-rank-row--clickable:hover {
    border-color: var(--metallic-gold);
    background: rgba(18, 26, 42, 0.94);
    transform: translateY(-1px);
}

.gp-rank-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.gp-my-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.14rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background: rgba(214, 174, 69, 0.16);
    border: 1px solid rgba(214, 174, 69, 0.42);
    color: var(--bone-bright);
}

.gp-my-rating-pill strong {
    color: var(--metallic-gold);
}

.gp-rank-num {
    font-family: var(--font-editorial);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--metallic-gold);
    text-align: center;
}

/* Game Ratings & Comments Modal */
.gp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(4, 7, 13, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gp-modal-dialog {
    width: 100%;
    max-width: 40rem;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: rgba(13, 19, 31, 0.98);
    border: 1px solid rgba(214, 174, 69, 0.55);
    border-radius: 0.55rem;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.78);
    overflow: hidden;
}

.gp-modal-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(192, 186, 164, 0.16);
}

.gp-modal-back-btn {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.34rem;
    border: 1px solid rgba(214, 174, 69, 0.45);
    background: rgba(22, 63, 115, 0.28);
    color: var(--metallic-gold);
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.gp-modal-back-btn:hover {
    background: rgba(214, 174, 69, 0.2);
    border-color: var(--metallic-gold);
}

.gp-modal-body {
    padding: 1rem 1.2rem 1.25rem 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 174, 69, 0.45) rgba(10, 14, 22, 0.4);
}

.gp-modal-member-row {
    padding: 0.8rem 0.95rem;
    border-radius: 0.38rem;
    background: rgba(10, 14, 22, 0.65);
    border: 1px solid rgba(192, 186, 164, 0.14);
}

.gp-modal-member-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gp-modal-comment {
    margin: 0.5rem 0 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--khaki-beige);
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-modal-comment.expanded {
    display: block;
    -webkit-line-clamp: unset;
    color: var(--bone-bright);
}

.gp-modal-comment-hint {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--metallic-gold);
    opacity: 0.85;
}

/* Members Grid & Scrollable 4-5 Friends Invite Picker */
.gp-parl-members-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21.5rem;
    gap: 1.4rem;
    align-items: start;
}

.gp-friends-picker-section {
    margin-top: 1.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(192, 186, 164, 0.16);
}

.gp-friends-picker-scroll {
    max-height: 15.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 174, 69, 0.45) rgba(10, 14, 22, 0.4);
}

.gp-friends-picker-scroll::-webkit-scrollbar {
    width: 0.38rem;
}

.gp-friends-picker-scroll::-webkit-scrollbar-track {
    background: rgba(10, 14, 22, 0.4);
    border-radius: 999px;
}

.gp-friends-picker-scroll::-webkit-scrollbar-thumb {
    background: rgba(214, 174, 69, 0.42);
    border-radius: 999px;
}

.gp-friend-pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.34rem;
    background: rgba(10, 14, 22, 0.58);
    border: 1px solid rgba(214, 174, 69, 0.22);
}

.gp-friend-pick-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.gp-friend-pick-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Final GOTY Ceremony (/parliaments/{id}/goty/{year}) */
.gp-ceremony-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.15rem;
}

.gp-ceremony-bar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.gp-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
    background: rgba(251, 0, 23, 0.16);
    border: 1px solid rgba(251, 0, 23, 0.45);
    color: #FFD0D5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gp-live-ceremony-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.gp-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--pure-red);
    animation: gpLivePulse 1.4s infinite ease-in-out;
}

@keyframes gpLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.gp-ceremony-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.gp-ceremony-step {
    padding: 0.26rem 0.65rem;
    border-radius: 0.28rem;
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid rgba(192, 186, 164, 0.2);
    color: var(--pale-slate);
    background: rgba(12, 18, 30, 0.62);
}

.gp-ceremony-step.active {
    border-color: var(--metallic-gold);
    color: #FFFFFF;
    background: linear-gradient(180deg, rgba(214, 174, 69, 0.28), rgba(140, 97, 21, 0.35));
}

.gp-ceremony-step.done {
    border-color: rgba(214, 174, 69, 0.45);
    color: var(--metallic-gold);
}

.gp-btn-outline--active {
    background: rgba(214, 174, 69, 0.25);
    border-color: var(--metallic-gold);
    color: var(--metallic-gold);
}

.gp-ceremony-stage,
.gp-ceremony-deck-chamber,
.gp-ceremony-reveal {
    padding: 1.35rem 1.55rem;
    margin-bottom: 1.2rem;
}

.gp-ceremony-reveal {
    text-align: center;
}

.gp-ceremony-stage-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gp-ceremony-heading {
    margin: 0.2rem 0 0 0;
    font-family: var(--font-editorial);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    color: #FFFFFF;
}

.gp-ceremony-carousel {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    gap: 0.9rem;
    align-items: center;
}

.gp-ceremony-arrow {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    border: 1.5px solid rgba(214, 174, 69, 0.55);
    background: rgba(10, 15, 26, 0.88);
    color: var(--metallic-gold);
    font-size: 1.35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.gp-ceremony-arrow:hover:not(:disabled) {
    background: rgba(214, 174, 69, 0.22);
    transform: scale(1.06);
}

.gp-ceremony-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.gp-ceremony-track {
    display: grid;
    grid-template-columns: 0.68fr 1.6fr 0.68fr;
    gap: 1rem;
    align-items: center;
}

.gp-ceremony-peek {
    opacity: 0.45;
    transform: scale(0.92);
    cursor: pointer;
    background: rgba(13, 19, 31, 0.9);
    border: 1px solid rgba(192, 186, 164, 0.16);
    border-radius: 0.48rem;
    padding: 0.8rem;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gp-ceremony-peek:hover {
    opacity: 0.78;
    transform: scale(0.96);
    border-color: rgba(214, 174, 69, 0.45);
}

.gp-ceremony-peek-cover {
    width: 4.1rem;
    height: 5.5rem;
    margin: 0 auto 0.45rem auto;
    border-radius: 0.32rem;
    overflow: hidden;
    border: 1px solid rgba(214, 174, 69, 0.3);
}

.gp-ceremony-peek-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-ceremony-focus {
    background: linear-gradient(155deg, rgba(22, 34, 56, 0.96), rgba(11, 16, 28, 0.98));
    border: 1.5px solid rgba(214, 174, 69, 0.72);
    border-radius: 0.58rem;
    padding: 1.1rem 1.25rem;
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.15rem;
    align-items: center;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gp-ceremony-focus.dragging {
    opacity: 0.55;
    transform: scale(0.97) rotate(-1deg);
}

.gp-ceremony-focus-cover {
    width: 7rem;
    height: 9.4rem;
    border-radius: 0.4rem;
    overflow: hidden;
    border: 1.5px solid rgba(214, 174, 69, 0.62);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.gp-ceremony-focus-body {
    min-width: 0;
}

.gp-ceremony-focus-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.gp-drag-hint {
    font-size: 0.72rem;
    color: var(--metallic-gold);
    font-weight: 600;
    background: rgba(214, 174, 69, 0.12);
    border: 1px dashed rgba(214, 174, 69, 0.45);
    padding: 0.16rem 0.5rem;
    border-radius: 0.25rem;
}

.gp-ceremony-focus-title {
    margin: 0;
    font-family: var(--font-editorial);
    font-size: 1.38rem;
    line-height: 1.2;
    color: #FFFFFF;
}

.gp-ceremony-quote {
    margin-top: 0.55rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.32rem;
    background: rgba(8, 12, 20, 0.68);
    border-left: 2px solid var(--metallic-gold);
    font-size: 0.82rem;
    color: var(--khaki-beige);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-ceremony-focus-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.gp-ceremony-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.95rem;
}

.gp-ceremony-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(192, 186, 164, 0.24);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.gp-ceremony-dot.picked {
    background: #52C47F;
}

.gp-ceremony-dot.current {
    background: var(--metallic-gold);
    transform: scale(1.38);
}

/* Solitaire Nominees Deck */
.gp-solitaire-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.gp-solitaire-slot {
    min-height: 7.4rem;
    border-radius: 0.48rem;
    border: 1.5px dashed rgba(214, 174, 69, 0.35);
    background: rgba(8, 12, 20, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease;
}

.gp-solitaire-slot.drag-over {
    border-color: var(--metallic-gold);
    border-style: solid;
    background: rgba(214, 174, 69, 0.16);
    transform: scale(1.04);
    box-shadow: 0 0 22px rgba(214, 174, 69, 0.35);
}

.gp-solitaire-slot.filled {
    border-style: solid;
    border-color: rgba(214, 174, 69, 0.58);
    background: linear-gradient(160deg, rgba(20, 30, 50, 0.95), rgba(11, 16, 26, 0.98));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    animation: gpCardSnap 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gpCardSnap {
    0% { transform: translateY(-14px) scale(1.06) rotate(-1.5deg); opacity: 0.75; }
    100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

.gp-slot-num {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    color: var(--pale-slate);
    letter-spacing: 0.06em;
}

.gp-slot-cover {
    width: 2.6rem;
    height: 3.5rem;
    border-radius: 0.26rem;
    overflow: hidden;
    margin-bottom: 0.35rem;
    border: 1px solid rgba(214, 174, 69, 0.38);
}

.gp-slot-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-slot-remove {
    position: absolute;
    top: 0.3rem;
    right: 0.32rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    border: none;
    background: rgba(120, 16, 24, 0.82);
    color: #FFD4D8;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gp-slot-remove:hover {
    background: var(--pure-red);
    color: #FFFFFF;
}

/* Solitaire Podium Drop Slots */
.gp-podium-slot {
    min-height: 13.5rem;
    border-radius: 0.56rem;
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.gp-podium-slot--1 {
    min-height: 16.5rem;
    border: 2px dashed rgba(214, 174, 69, 0.58);
    background: linear-gradient(180deg, rgba(214, 174, 69, 0.14), rgba(10, 14, 24, 0.88));
}

.gp-podium-slot--2 {
    border: 2px dashed rgba(196, 206, 222, 0.45);
    background: linear-gradient(180deg, rgba(196, 206, 222, 0.1), rgba(10, 14, 24, 0.88));
}

.gp-podium-slot--3 {
    border: 2px dashed rgba(205, 138, 86, 0.45);
    background: linear-gradient(180deg, rgba(205, 138, 86, 0.1), rgba(10, 14, 24, 0.88));
}

.gp-podium-slot.filled {
    border-style: solid;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
    animation: gpCardSnap 0.28s ease;
}

.gp-podium-slot.drag-over {
    transform: translateY(-6px) scale(1.03);
    border-style: solid;
    box-shadow: 0 0 28px rgba(214, 174, 69, 0.45);
}

.gp-freeze-dialog {
    max-width: 31rem;
}

/* Responsive */
@media (max-width: 900px) {
    .gp-search-layout,
    .gp-friends-grid,
    .gp-parl-hub-grid,
    .gp-parl-members-grid {
        grid-template-columns: 1fr;
    }

    .gp-ceremony-track {
        grid-template-columns: 1fr;
    }

    .gp-ceremony-peek {
        display: none;
    }

    .gp-solitaire-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gp-detail-grid {
        grid-template-columns: 1fr;
    }

    .gp-detail-cover-column {
        max-width: 16rem;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .gp-navbar-inner {
        flex-wrap: nowrap;
        gap: 0.55rem;
        min-height: 3.6rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .gp-brand {
        gap: 0;
    }

    .gp-brand-logo {
        width: 2.25rem;
        height: 2.25rem;
    }

    .gp-brand-text {
        display: none;
    }

    .gp-search-wrap {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .gp-search-form {
        max-width: 100%;
        width: 100%;
    }

    .gp-search-submit {
        padding: 0.42rem 0.55rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .gp-search-submit-label {
        display: none;
    }

    .gp-search-submit-icon {
        display: block;
    }

    .gp-navbar-auth {
        flex-shrink: 0;
    }

    .gp-user-profile-link,
    .gp-caret-btn {
        display: none;
    }

    .gp-mobile-avatar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        border-radius: 999px;
    }

    .gp-signin-btn {
        white-space: nowrap;
        padding: 0.42rem 0.65rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 720px) {
    .gp-pillars,
    .gp-detail-tags-grid,
    .gp-detail-companies,
    .gp-library-entry-grid,
    .gp-library-entry-grid--four,
    .gp-parl-inline-form,
    .gp-podium-grid,
    .gp-ceremony-focus {
        grid-template-columns: 1fr;
    }

    .gp-solitaire-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gp-lib-card-grid {
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }

    .gp-lib-card-right {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(192, 186, 164, 0.14);
    }

    .gp-hero,
    .gp-detail-panel,
    .gp-profile-header,
    .gp-parl-mosaic-header {
        padding: 1.35rem;
    }
}


/* =========================================================
   Signed-In Home 3-Card Dashboard (#60)
   ========================================================= */
.gp-home-dash-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gp-home-dash-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr 1.15fr;
    gap: 1.1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.gp-dash-card {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 16% 18%, rgba(22, 63, 115, 0.44), transparent 56%),
        radial-gradient(circle at 86% 84%, rgba(138, 72, 34, 0.34), transparent 54%),
        linear-gradient(145deg, rgba(16, 36, 66, 0.64) 0%, rgba(20, 18, 24, 0.56) 52%, rgba(44, 24, 18, 0.64) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(214, 174, 69, 0.34);
    border-radius: 0.55rem;
    padding: 1.1rem 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.gp-dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.gp-dash-card-title {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--metallic-gold);
}

.gp-dash-card-link {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--pale-slate);
    text-decoration: none;
    transition: color 0.15s ease;
}

.gp-dash-card-link:hover {
    color: var(--metallic-gold);
}

.gp-dash-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.gp-dash-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    padding: 1.25rem 0.5rem;
    color: var(--pale-slate);
    font-size: 0.84rem;
}

.gp-dash-empty p {
    margin: 0;
}

/* Card 1: 6-game cover mosaic */
.gp-recent-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    flex: 1;
}

.gp-mosaic-game {
    position: relative;
    border-radius: 0.36rem;
    overflow: hidden;
    border: 1px solid rgba(214, 174, 69, 0.28);
    min-height: 102px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.4rem;
    text-decoration: none;
    background: linear-gradient(155deg, rgba(22, 63, 115, 0.78), rgba(10, 14, 22, 0.94));
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.gp-mosaic-game:hover {
    transform: translateY(-2px);
    border-color: var(--metallic-gold);
}

.gp-mosaic-game-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.gp-mosaic-game-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.35) 0%, rgba(8, 12, 20, 0.2) 45%, rgba(8, 12, 20, 0.88) 100%);
    z-index: 1;
}

.gp-mosaic-status {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    font-family: var(--font-ui);
    font-size: 0.58rem;
    padding: 0.12rem 0.38rem;
    border-radius: 0.22rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.gp-mosaic-status.gp-status-badge--completed {
    background: linear-gradient(rgba(214, 174, 69, 0.24), rgba(214, 174, 69, 0.24)), rgba(10, 14, 22, 0.86);
}

.gp-mosaic-status.gp-status-badge--playing {
    background: linear-gradient(rgba(22, 63, 115, 0.65), rgba(22, 63, 115, 0.65)), rgba(10, 14, 22, 0.86);
}

.gp-mosaic-status.gp-status-badge--plan_to_play {
    background: linear-gradient(rgba(84, 84, 80, 0.44), rgba(84, 84, 80, 0.44)), rgba(10, 14, 22, 0.86);
}

.gp-mosaic-status.gp-status-badge--on_hold {
    background: linear-gradient(rgba(117, 60, 30, 0.52), rgba(117, 60, 30, 0.52)), rgba(10, 14, 22, 0.86);
}

.gp-mosaic-status.gp-status-badge--dropped {
    background: linear-gradient(rgba(120, 16, 24, 0.52), rgba(120, 16, 24, 0.52)), rgba(10, 14, 22, 0.86);
}

.gp-mosaic-game-title {
    position: relative;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card 2: Your Parliaments mini list */
.gp-parl-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.gp-parl-mini-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.38rem;
    background: rgba(10, 14, 22, 0.68);
    border: 1px solid rgba(192, 186, 164, 0.16);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.gp-parl-mini-row:hover {
    border-color: var(--metallic-gold);
    background: rgba(16, 24, 38, 0.82);
}

.gp-parl-mini-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.gp-parl-mini-name {
    font-weight: 700;
    font-size: 0.86rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-parl-mini-sub {
    font-size: 0.74rem;
    color: var(--pale-slate);
    margin-top: 0.12rem;
}

.gp-role-pill {
    flex-shrink: 0;
    padding: 0.15rem 0.48rem;
    border-radius: 0.24rem;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gp-role-pill--gold {
    background: rgba(214, 174, 69, 0.2);
    color: #E8C15D;
    border: 1px solid rgba(214, 174, 69, 0.45);
}

.gp-role-pill--navy {
    background: rgba(22, 63, 115, 0.52);
    color: #DCE8FA;
    border: 1px solid rgba(177, 185, 196, 0.38);
}

/* Card 2: Your Parliaments 3-slice mosaic emblem (#80) */
.gp-parl-mini-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-width: 0;
}

.gp-parl-mini-emblem {
    width: 4.5rem;
    height: 3.25rem;
    border-radius: 0.36rem;
    border: 1.5px solid rgba(214, 174, 69, 0.68);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #0A0D14;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.gp-parl-mini-emblem-slice {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font-brand);
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.gp-parl-mini-emblem-slice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card 3: Auto-Rotating Yearly Highlights */

.gp-yearly-rotator {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gp-year-hero-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.gp-year-big {
    font-family: var(--font-brand);
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.gp-year-meta {
    font-size: 0.76rem;
    color: var(--pale-slate);
}

.gp-year-games-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    animation: gpYearFadeSlide 0.35s ease;
}

@keyframes gpYearFadeSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gp-yr-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(214, 174, 69, 0.24);
    border-radius: 0.36rem;
    padding: 0.5rem 0.42rem;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.gp-yr-game:hover {
    border-color: var(--metallic-gold);
    transform: translateY(-2px);
}

.gp-yr-rank {
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--metallic-gold);
}

.gp-yr-rank--2 {
    color: #CED9EA;
}

.gp-yr-rank--3 {
    color: #D9925D;
}

.gp-yr-cover {
    width: 44px;
    height: 58px;
    margin: 0 auto 0.35rem auto;
    border-radius: 0.24rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 0.78rem;
    color: #fff;
    background: linear-gradient(155deg, rgba(22, 63, 115, 0.8), rgba(10, 14, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gp-yr-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-yr-game-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-yr-game-score {
    font-size: 0.68rem;
    color: var(--metallic-gold);
    margin-top: 0.15rem;
}

.gp-yr-dots {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.gp-yr-dot-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.gp-yr-pill {
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(192, 186, 164, 0.24);
    background: rgba(10, 14, 22, 0.65);
    color: var(--pale-slate);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.gp-yr-pill:hover {
    border-color: rgba(214, 174, 69, 0.55);
    color: #fff;
}

.gp-yr-pill.active {
    background: linear-gradient(180deg, #D6AE45, #B88725);
    color: #120D05;
    border-color: #FFF2C2;
}

@media (max-width: 980px) {
    .gp-home-dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gp-year-games-row {
        animation: none;
    }
}

/* =========================================================
   Navbar Live-Search Dropdown (#27)
   ========================================================= */
.gp-search-wrap {
    position: relative;
    flex: 1;
    max-width: 28rem;
}

.gp-search-wrap .gp-search-form {
    max-width: none;
    width: 100%;
    position: relative;
    z-index: 42;
}

.gp-live-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.gp-live-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 42;
    background: rgba(12, 18, 30, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(214, 174, 69, 0.55);
    border-radius: 0.48rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.78);
    overflow: hidden;
}

.gp-live-state {
    padding: 0.9rem 1rem;
    font-size: 0.84rem;
    color: var(--pale-slate);
    text-align: center;
}

.gp-live-result {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.58rem 0.85rem;
    border-bottom: 1px solid rgba(192, 186, 164, 0.1);
    text-decoration: none;
    transition: background 0.13s ease;
}

.gp-live-result:hover,
.gp-live-result.highlighted {
    background: rgba(22, 63, 115, 0.48);
}

.gp-live-cover {
    width: 38px;
    height: 50px;
    border-radius: 0.24rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 0.72rem;
    color: #fff;
    background: linear-gradient(155deg, rgba(22, 63, 115, 0.82), rgba(10, 14, 22, 0.94));
    border: 1px solid rgba(214, 174, 69, 0.35);
    flex-shrink: 0;
}

.gp-live-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-live-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gp-live-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-live-meta {
    font-size: 0.74rem;
    color: var(--pale-slate);
    margin-top: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-live-year {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--metallic-gold);
    padding: 0.14rem 0.42rem;
    border-radius: 0.22rem;
    background: rgba(214, 174, 69, 0.14);
    border: 1px solid rgba(214, 174, 69, 0.32);
    flex-shrink: 0;
}

.gp-live-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    background: rgba(8, 12, 20, 0.88);
    color: var(--metallic-gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.14s ease;
}

.gp-live-footer:hover {
    background: rgba(214, 174, 69, 0.16);
    color: #fff;
}

@media (max-width: 720px) {
    .gp-search-wrap {
        max-width: 100%;
        width: 100%;
    }
}


/* =========================================================
   Home Social Friends Activity Feed (#66)
   ========================================================= */
.gp-friends-feed-section {
    padding: 1.1rem 1.2rem 0.9rem;
    margin-bottom: 1.5rem;
}

.gp-feed-section-head {
    margin-bottom: 0.65rem;
}

.gp-feed-subtitle {
    margin: 0.2rem 0 0 0;
    font-size: 0.8rem;
    color: var(--pale-slate);
}

.gp-feed-empty {
    min-height: 110px;
}

.gp-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.gp-feed-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(10, 15, 25, 0.78);
    border: 1px solid rgba(192, 186, 164, 0.16);
    border-radius: 0.46rem;
    padding: 0.85rem;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.gp-feed-card:hover {
    border-color: var(--metallic-gold);
    transform: translateY(-2px);
}

.gp-feed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.gp-feed-friend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    text-decoration: none;
}

.gp-feed-friend:hover .gp-feed-friend-name {
    color: var(--metallic-gold);
}

.gp-feed-avatar,
.gp-feed-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(214, 174, 69, 0.55);
    flex-shrink: 0;
}

.gp-feed-avatar-img {
    object-fit: cover;
}

.gp-feed-avatar {
    background: linear-gradient(145deg, #2B5C9E, #162E52);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.gp-feed-friend-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.gp-feed-time {
    font-size: 0.7rem;
    color: var(--pale-slate);
    flex-shrink: 0;
}

.gp-feed-body {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    text-decoration: none;
}

.gp-feed-cover {
    width: 46px;
    height: 62px;
    border-radius: 0.28rem;
    overflow: hidden;
    border: 1px solid rgba(214, 174, 69, 0.35);
    background: linear-gradient(155deg, rgba(22, 63, 115, 0.8), rgba(10, 14, 22, 0.94));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 0.75rem;
    color: #fff;
}

.gp-feed-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-feed-game-info {
    min-width: 0;
}

.gp-feed-game-title {
    display: block;
    font-family: var(--font-brand);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-feed-body:hover .gp-feed-game-title {
    color: var(--metallic-gold);
}

.gp-feed-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.32rem;
}

.gp-feed-score {
    font-family: var(--font-brand);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--metallic-gold);
}

.gp-feed-note {
    margin: 0;
    font-size: 0.77rem;
    color: var(--khaki-beige);
    font-style: italic;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-top: 1px solid rgba(192, 186, 164, 0.12);
    padding-top: 0.5rem;
}

@media (max-width: 980px) {
    .gp-feed-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Game Detail Redesign, IGDB Trailer & Friends Modal (#67)
   ========================================================= */
.gp-gd-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 1.65rem;
    align-items: start;
}

.gp-detail-panel {
    position: relative;
    overflow: hidden;
}

.gp-gd-backdrop-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.gp-gd-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    opacity: 0.65;
    filter: blur(3px);
    transform: scale(1.03);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0) 100%);
}

.gp-gd-backdrop-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0.36) 0%, rgba(12, 16, 26, 0.68) 54%, rgba(16, 18, 26, 0.92) 100%);
}

.gp-gd-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gp-gd-meta-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
}

.gp-gd-meta-group {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.gp-trailer-card {
    display: block;
    border-radius: 0.45rem;
    overflow: hidden;
    border: 1px solid rgba(214, 174, 69, 0.38);
    background: rgba(8, 12, 20, 0.92);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.gp-trailer-card:hover {
    border-color: var(--metallic-gold);
    transform: translateY(-2px);
}

.gp-trailer-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0A0F1A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-trailer-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-trailer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.38);
}

.gp-trailer-play {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(214, 174, 69, 0.94);
    color: #140E04;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    padding-left: 3px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.gp-trailer-caption {
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: var(--bone-bright);
}

.gp-trailer-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-trailer-yt {
    color: var(--metallic-gold);
    font-weight: 700;
    flex-shrink: 0;
}

.gp-gd-right {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.gp-gd-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(214, 174, 69, 0.22);
    padding-bottom: 0.9rem;
}

.gp-gd-release {
    font-size: 0.86rem;
    color: var(--pale-slate);
    margin-top: 0.25rem;
}

.gp-gd-igdb-score {
    text-align: right;
    background: rgba(10, 16, 28, 0.75);
    border: 1px solid rgba(214, 174, 69, 0.35);
    border-radius: 0.4rem;
    padding: 0.45rem 0.8rem;
    flex-shrink: 0;
}

.gp-gd-summary-block .gp-detail-summary {
    margin: 0.35rem 0 0 0;
}

.gp-gd-entry-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.gp-gd-entry-fields--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gp-gd-entry-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.gp-gd-playthroughs-box,
.gp-gd-friends-box {
    padding: 1.15rem 1.25rem;
}

.gp-gd-pt-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gp-gd-pt-row {
    padding: 0.55rem 0.78rem;
    border-radius: 0.36rem;
    background: rgba(8, 13, 24, 0.72);
    border: 1px solid rgba(192, 186, 164, 0.14);
}

.gp-gd-pt-date {
    font-size: 0.82rem;
    color: #fff;
}

.gp-gd-pt-note {
    margin: 0.2rem 0 0 0;
    font-size: 0.8rem;
    color: var(--khaki-beige);
    line-height: 1.4;
}

.gp-gd-friends-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.gp-gd-friend-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.9rem;
    border-radius: 0.42rem;
    background: rgba(10, 15, 25, 0.82);
    border: 1px solid rgba(192, 186, 164, 0.2);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.gp-gd-friend-card:hover {
    border-color: var(--metallic-gold);
    background: rgba(22, 63, 115, 0.32);
}

.gp-gd-friend-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.gp-gd-friend-rating {
    font-family: var(--font-brand);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--metallic-gold);
    flex-shrink: 0;
}

.gp-gd-friend-modal {
    width: 100%;
    max-width: 520px;
    padding: 1.3rem 1.45rem;
    border: 1px solid rgba(214, 174, 69, 0.55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.82);
}

.gp-gd-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gp-gd-modal-name {
    margin: 0;
    font-family: var(--font-brand);
    font-size: 1.1rem;
    color: #fff;
}

.gp-gd-modal-section {
    margin-top: 0.95rem;
}

.gp-gd-comment-quote {
    margin-top: 0.35rem;
    background: rgba(8, 12, 20, 0.82);
    border-left: 3px solid var(--metallic-gold);
    padding: 0.7rem 0.9rem;
    border-radius: 0.3rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--bone-bright);
}

@media (max-width: 880px) {
    .gp-gd-grid,
    .gp-gd-entry-fields,
    .gp-gd-entry-fields--three,
    .gp-gd-friends-grid {
        grid-template-columns: 1fr;
    }
}

/* Issue #62: Regal-Navy Edit Button, Inline Library Entry Editor, Playthroughs Panel & Summary Hint */
.gp-summary-hint {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--khaki-beige);
}

.gp-btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.95rem;
    border-radius: 0.32rem;
    border: 1px solid rgba(98, 158, 232, 0.48);
    color: #EAF2FC;
    background: linear-gradient(135deg, rgba(30, 83, 150, 0.92) 0%, rgba(22, 63, 115, 0.95) 100%);
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.gp-btn-edit:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(37, 100, 179, 0.96) 0%, rgba(27, 78, 142, 0.98) 100%);
    border-color: rgba(130, 182, 245, 0.78);
}

.gp-btn-edit:disabled,
.gp-btn-danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gp-btn-edit.gp-compact-btn {
    padding: 0.42rem 0.78rem;
    font-size: 0.75rem;
}

.gp-btn-edit.gp-tiny-btn,
.gp-btn-danger.gp-tiny-btn,
.gp-btn-gold.gp-tiny-btn {
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
}

.gp-lib-inline-editor {
    margin-top: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.45rem;
    background: rgba(11, 14, 22, 0.76);
    border: 1px solid rgba(214, 174, 69, 0.22);
}

.gp-lib-inline-editor-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.gp-lib-inline-editor-title {
    font-family: var(--font-brand);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--metallic-gold);
}

.gp-lib-inline-editor-grid {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr) 6.4rem;
    gap: 0.75rem;
    align-items: stretch;
}

.gp-lib-edit-left-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gp-lib-inline-editor-comment {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gp-comment-textarea {
    flex: 1;
    min-height: 5.5rem;
    max-height: 8.5rem;
    line-height: 1.4;
    resize: vertical;
    overflow-y: auto;
}

.gp-lib-inline-editor-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.48rem;
}

.gp-lib-inline-editor-actions .gp-lib-save-btn,
.gp-lib-inline-editor-actions .gp-lib-cancel-btn {
    width: 100%;
    height: 2.2rem;
    justify-content: center;
}

.gp-lib-remove-mobile {
    display: none;
}

@media (max-width: 720px) {
    .gp-hide-mobile {
        display: none;
    }

    .gp-show-mobile {
        display: inline;
    }

    .gp-profile-tabs {
        gap: 0.95rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .gp-profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .gp-tab {
        font-size: 0.78rem;
        gap: 0.3rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .gp-lib-remove-desktop {
        display: none;
    }

    .gp-lib-remove-mobile {
        display: inline-flex;
        margin-right: auto;
    }

    .gp-rank-picker-label {
        display: none;
    }

    .gp-rank-picker {
        gap: 0.18rem;
        flex-shrink: 0;
    }

    .gp-rank-chip {
        width: 1.45rem;
        height: 1.45rem;
        font-size: 0.72rem;
    }

    .gp-lib-card-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.38rem;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .gp-lib-card-right .gp-compact-btn {
        padding: 0.34rem 0.48rem;
        font-size: 0.73rem;
    }

    .gp-lib-card-right .gp-library-rating {
        min-width: auto;
    }

    .gp-lib-card-right .gp-library-rating-label {
        font-size: 0.56rem;
    }

    .gp-lib-card-right .gp-library-rating-value {
        font-size: 0.92rem;
    }

    /* Mobile library vertical compaction (#100) */
    .gp-main {
        padding-top: 0.9rem;
        padding-bottom: 1.5rem;
    }

    .gp-profile-header {
        padding: 0.85rem 1rem 0 1rem;
        margin-bottom: 0.65rem;
    }

    .gp-profile-header-top {
        padding-bottom: 0.75rem;
        gap: 0.65rem;
    }

    .gp-profile-header.collapsed {
        padding: 0.55rem 0.9rem 0 0.9rem;
        margin-bottom: 0.5rem;
    }

    .gp-profile-header.collapsed .gp-profile-header-top {
        padding-bottom: 0.45rem;
    }

    .gp-profile-header.collapsed .gp-profile-actions {
        display: none;
    }

    .gp-friend-overflow-wrap {
        top: 0.72rem;
        right: 0.78rem;
    }

    .gp-profile-header-mosaic {
        filter: none;
    }

    .gp-library-control-chamber {
        margin-bottom: 0.65rem;
    }

    .gp-library-toolbar {
        gap: 0.45rem;
        padding: 0.55rem 0.7rem;
        margin-bottom: 0;
    }

    .gp-filter-pill {
        padding: 0.24rem 0.5rem;
        font-size: 0.66rem;
    }

    .gp-filtered-summary {
        flex-wrap: nowrap;
        padding: 0.45rem 0.7rem;
        margin-bottom: 0;
        gap: 0.5rem;
        font-size: 0.76rem;
    }

    .gp-filtered-summary-left {
        gap: 0.25rem 0.35rem;
        min-width: 0;
    }

    .gp-summary-hint,
    .gp-filtered-summary-left .gp-summary-dot:nth-of-type(2) {
        display: none;
    }

    .gp-filtered-summary-right {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .gp-filtered-avg {
        font-size: 0.94rem;
    }

    .gp-filtered-scale {
        font-size: 0.72rem;
    }

    /* Mobile GPU performance relief (#117): stop 95px orb blur storm & backdrop-filter on mobile */
    html,
    body {
        background-attachment: scroll;
    }

    .gp-orb {
        animation: none !important;
        filter: none !important;
        will-change: auto;
    }

    .gp-translucent-chamber,
    .gp-dash-card,
    .gp-panel,
    .gp-dropdown,
    .gp-live-dropdown,
    .gp-alert-modal-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .gp-translucent-chamber,
    .gp-dash-card {
        background-color: rgba(15, 20, 32, 0.88);
    }

    .gp-panel {
        background: rgba(20, 18, 22, 0.92);
    }

    /* iOS / Mobile editing fixes (#107): prevent auto-zoom, contain month input, use native page scroll */
    input,
    textarea,
    select,
    .gp-field-input,
    .gp-search-input {
        font-size: 16px;
    }

    button,
    a {
        touch-action: manipulation;
    }

    input[type="month"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
        display: block;
    }

    .gp-library-scroll-box {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .gp-lib-inline-editor,
    .gp-playthroughs-panel:not(.gp-playthroughs-panel--embedded) {
        padding: 0.65rem 0.72rem;
        margin-top: 0.5rem;
    }

    .gp-lib-inline-editor-head,
    .gp-playthroughs-header {
        margin-bottom: 0.45rem;
    }

    .gp-lib-inline-editor .gp-field-label {
        display: none;
    }

    .gp-lib-inline-editor-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .gp-lib-edit-left-stack {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 5.5rem;
        gap: 0.45rem;
    }

    .gp-comment-textarea {
        min-height: 3.8rem;
        max-height: 6.5rem;
    }

    .gp-lib-inline-editor-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.45rem;
        margin-top: 0.15rem;
    }

    .gp-lib-inline-editor-actions .gp-lib-save-btn,
    .gp-lib-inline-editor-actions .gp-lib-cancel-btn {
        width: auto;
        height: 1.95rem;
    }

    .gp-lib-inline-editor-actions .gp-lib-cancel-btn {
        order: 2;
    }

    .gp-lib-inline-editor-actions .gp-lib-save-btn {
        order: 3;
    }

    .gp-lib-inline-editor-actions .gp-lib-remove-mobile {
        order: 1;
        height: 1.95rem;
    }

    .gp-add-pt-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .gp-pt-add-month {
        width: 100%;
        height: 2.5rem;
    }

    .gp-pt-add-notes {
        width: 100%;
        min-height: 3.4rem;
    }

    .gp-pt-add-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .gp-pt-add-btn {
        height: 1.95rem;
    }
}

.gp-playthroughs-panel--embedded {
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.gp-pt-empty-note {
    margin-bottom: 0.65rem;
}

.gp-pt-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.gp-pt-notes--empty {
    font-style: italic;
    opacity: 0.65;
}

.gp-playthrough-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.gp-pt-edit-row {
    background: rgba(16, 20, 30, 0.92);
    border-color: rgba(214, 174, 69, 0.38);
}

/* Validation Alert Pop-up Modal (#109) */
.gp-alert-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(6, 9, 16, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gp-alert-modal {
    width: 100%;
    max-width: 24rem;
    background:
        radial-gradient(circle at 86% 18%, rgba(22, 63, 115, 0.34), transparent 58%),
        linear-gradient(155deg, rgba(22, 20, 26, 0.96) 0%, rgba(13, 16, 24, 0.98) 100%);
    border: 1px solid rgba(214, 174, 69, 0.45);
    border-radius: 0.55rem;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
}

.gp-alert-modal-title {
    margin: 0 0 0.45rem 0;
    font-family: var(--font-brand);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--metallic-gold);
}

.gp-alert-modal-text {
    margin: 0 0 1rem 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--bone);
}

.gp-alert-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

