/* Jolixo — Game page. */

.page-content {
    position:relative;
}

.gp-ambient {
    position:absolute;
    left:0;
    right:0;
    top:0;
    height:520px;
    overflow:hidden;
    pointer-events:none;
    z-index:0;
    -webkit-mask-image:linear-gradient(#000 0%,transparent 100%);
    mask-image:linear-gradient(#000 0%,transparent 100%);
}

.gp-ambient img {
    width:100%;
    height:100%;
    object-fit:cover;
    filter:blur(70px) saturate(1.4);
    opacity:.28;
    transform:scale(1.2);
}

[data-theme=light] .gp-ambient img {
    opacity:.18;
}

.page-content>.game-breadcrumb,.gp-head,.game-layout {
    position:relative;
    z-index:1;
}

.game-breadcrumb {
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
    font-weight:600;
    color:var(--muted);
}

.game-breadcrumb span {
    opacity:.5;
}

.game-breadcrumb b {
    color:var(--ink);
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:40ch;
}

.gp-head {
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:24px;
}

.gp-thumb {
    width:84px;
    height:84px;
    border-radius:22px;
    object-fit:cover;
    flex:none;
    box-shadow:0 14px 34px rgba(0,0,0,.35);
    border:2px solid rgba(255,255,255,.08);
}

.gp-title {
    min-width:0;
    flex:1;
}

.gp-title h1 {
    font-size:clamp(1.9rem,3vw,3rem);
    margin:0 0 10px;
    letter-spacing:-.05em;
}

.gp-chips {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.chip {
    padding:5px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    background:var(--surface);
    border:1px solid var(--border);
    color:var(--ink);
}

.chip small {
    color:var(--muted);
    font-weight:600;
}

.chip-accent {
    background:rgba(255,119,87,.14);
    border-color:rgba(255,119,87,.3);
    color:var(--coral);
}

.pill-btn {
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:44px;
    padding:0 18px;
    border-radius:999px;
    border:1px solid var(--border);
    background:var(--surface);
    color:var(--ink);
    font-weight:700;
    font-size:13px;
    transition:background .18s,border-color .18s,color .18s;
}

.pill-btn svg {
    width:18px;
    height:18px;
}

.pill-btn:hover {
    background:var(--soft);
}

.pill-btn.on {
    color:var(--coral);
    border-color:rgba(255,119,87,.4);
    background:rgba(255,119,87,.12);
}

.pill-btn.on svg {
    fill:currentColor;
}

.game-layout {
    grid-template-columns:minmax(0,1fr) 320px;
    gap:28px;
    align-items:start;
}

.player-shell {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:26px;
    padding:10px;
    box-shadow:0 30px 70px -30px rgba(0,0,0,.6);
}

.player-box {
    border-radius:18px;
    background:#090d18;
}

.poster-art {
    opacity:.6;
    filter:blur(24px) saturate(1.3);
}

.poster-overlay {
    background:radial-gradient(circle at center,rgba(9,13,24,.35),rgba(9,13,24,.85));
    gap:4px;
}

.poster-cover {
    width:clamp(110px,14vw,170px);
    aspect-ratio:1;
    object-fit:cover;
    border-radius:26px;
    box-shadow:0 24px 50px rgba(0,0,0,.55);
    border:3px solid rgba(255,255,255,.12);
    margin-bottom:8px;
}

.big-play {
    background:linear-gradient(135deg,#ff7757,#e8456b);
    border-radius:999px;
    padding:15px 34px;
    font-size:17px;
    transition:transform .18s,box-shadow .18s;
    box-shadow:0 16px 40px -8px rgba(232,69,107,.7);
}

.big-play:hover {
    transform:translateY(-2px) scale(1.02);
    box-shadow:0 22px 50px -8px rgba(232,69,107,.85);
}

.poster-overlay p {
    color:rgba(255,255,255,.7);
    font-size:12px;
    margin:0;
}

.player-toolbar {
    margin:10px 4px 2px;
}

.player-toolbar button {
    border-radius:999px;
    padding:9px 15px;
    font-size:12px;
}

.player-toolbar span {
    font-size:12px;
    font-weight:700;
    color:var(--muted);
}

.description-card {
    border-radius:22px;
    padding:24px;
    margin:22px 0;
    background:var(--surface);
}

.description-card h2 {
    font-size:20px;
    margin:0 0 12px;
    letter-spacing:-.03em;
}

.description-card p {
    font-size:14px;
    line-height:1.7;
}

.how-to {
    margin-top:18px;
    padding:16px 18px;
    border-radius:16px;
    background:var(--soft);
    border:1px solid var(--border);
}

.how-to h3 {
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 6px;
    font-size:14px;
}

.how-to h3 svg {
    width:16px;
    height:16px;
    color:var(--coral);
}

.how-to p {
    margin:0;
}

.gp-two {
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:22px;
}

.gp-two .description-card {
    margin:0;
}

.gp-two .section-header {
    margin-bottom:12px;
}

.score-big {
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:16px;
}

.score-big strong {
    font-size:44px;
    font-weight:900;
    letter-spacing:-.06em;
    line-height:1;
}

.score-big>span {
    display:grid;
    gap:2px;
}

.score-big small {
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}

.stars {
    font-size:18px;
    letter-spacing:2px;
    background:linear-gradient(90deg,#ffb84d calc(var(--r)/5*100%),var(--border) 0);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.rating-form select {
    background:var(--soft);
    color:var(--ink);
    border-color:var(--border);
    border-radius:999px;
    padding:9px 14px;
}

.count-badge {
    font-size:12px;
    font-weight:800;
    color:var(--muted);
    background:var(--soft);
    padding:3px 10px;
    border-radius:999px;
}

.comment {
    display:flex;
    gap:12px;
}

.c-avatar {
    width:34px;
    height:34px;
    border-radius:50%;
    flex:none;
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:13px;
    color:#fff;
    background:linear-gradient(135deg,#ff7757,#52cfd0);
}

.comment p {
    font-size:13px;
}

.text-accent {
    color:var(--coral);
    font-weight:800;
}

.gp-report {
    padding:0;
}

.gp-report summary {
    padding:18px 24px;
    cursor:pointer;
    font-weight:700;
    font-size:14px;
    color:var(--muted);
    list-style:none;
}

.gp-report summary::-webkit-details-marker {
    display:none;
}

.gp-report summary::after {
    content:"+";
    float:right;
    font-size:18px;
    line-height:1;
}

.gp-report[open] summary::after {
    content:"–";
}

.gp-report form {
    padding:0 24px 24px;
}

.related-column {
    position:sticky;
    top:120px;
}

.related-column .rank-list {
    max-height:calc(100vh - 220px);
    overflow-y:auto;
    scrollbar-width:thin;
}

@media(max-width:1150px) {
    .game-layout {
        grid-template-columns:1fr;
    }
    .related-column {
        position:static;
        display:block;
    }
    .related-column .rank-list {
        max-height:none;
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:760px) {
    .gp-head {
        flex-wrap:wrap;
        gap:14px;
    }
    .gp-thumb {
        width:64px;
        height:64px;
        border-radius:18px;
    }
    .gp-title {
        flex-basis:calc(100% - 80px);
    }
    .game-actions {
        width:100%;
    }
    .game-actions>* {
        flex:1;
    }
    .pill-btn {
        width:100%;
        justify-content:center;
    }
    .player-shell {
        padding:6px;
        border-radius:20px;
    }
    .gp-two {
        grid-template-columns:1fr;
    }
    .related-column .rank-list {
        grid-template-columns:1fr;
    }
}

/* Fullscreen player: edge to edge, nothing capping its size, always an Exit button */
.player-box.is-fullscreen,
.player-box:fullscreen {
    max-height: none;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: #000;
}

/* Fallback when the browser refuses real fullscreen: fill the window */
.player-box.is-pseudo-fs {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

.player-pseudo-open,
.player-pseudo-open body {
    overflow: hidden;
}

.player-box.is-fullscreen.portrait iframe {
    width: min(100%, 56.25vh); /* keep portrait games tall and centred */
}

.player-exit-fs {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.player-exit-fs:hover,
.player-exit-fs:focus-visible {
    background: rgba(0, 0, 0, .8);
    outline: 2px solid #fff;
}

.player-box.is-fullscreen .player-exit-fs {
    display: block;
}

/* The game layout is its own stacking layer (z-index 1); lift it above the side menu and header while the player fills the window. */
.player-pseudo-open .game-layout {
    z-index: 1001;
}
