/* Single game page base: header, player and content. */

/* Single Game */

.single-game-header{
    margin-bottom: 18px;
}

.single-game-title{
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1e2a44;
}

.single-game-header-main{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.single-game-header-main > .single-game-title{
    min-width: 0;
}

.single-game-meta-strip{
    margin-top: 14px;
}

.single-game-meta-chips{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-game-meta-chip{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(180deg, #fffdf7 0%, #fff4cf 100%);
    border: 1px solid rgba(239, 191, 26, 0.35);
transition: 0.2s ease;
}

.single-game-meta-chip:hover{
    transform: translateY(-1px);
    border-color: rgba(239, 191, 26, 0.6);
    background: linear-gradient(180deg, #fff9e8 0%, #ffefb8 100%);
}

.single-game-player{
    margin-bottom: 24px;
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.single-game-player-shell{
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        linear-gradient(135deg, #ffffff 0%, #faf7ff 48%, #f3edff 100%);
    border: 1px solid rgba(255,255,255,0.10);
position: relative;
    margin: 0 auto;
}

.single-game-player-shell::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: none;
    z-index: 2;
}

.single-game-player-shell:fullscreen,
.single-game-player-shell:-webkit-full-screen,
.single-game-player-shell:-ms-fullscreen{
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}


.single-game-rating-box{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    border: 2px solid var(--mustard-line);
}

.single-game-rating-stars{
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.single-game-rating-star{
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0 1px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    transition: transform 0.18s ease, opacity 0.18s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.single-game-rating-star-glyph{
    position: relative;
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.single-game-rating-star-svg{
    display: block;
    width: 1em;
    height: 1em;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.single-game-rating-star-base,
.single-game-rating-star-fill{
    pointer-events: none;
}

.single-game-rating-star-base{
    fill: rgba(255,255,255,0.24);
}

.single-game-rating-star-fill{
    fill: #ffd54f;
    clip-path: inset(0 var(--star-empty, 100%) 0 0);
}

.single-game-rating-star:hover{
    transform: scale(1.08);
}

.single-game-rating-box.is-rated .single-game-rating-star{
    cursor: default;
}

.single-game-rating-box.is-rated .single-game-rating-star:hover{
    transform: none;
}

.single-game-rating-box.is-loading{
    opacity: 0.72;
}

.single-game-rating-text{
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.single-game-rating-text strong{
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}


.game-warning{
    margin: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
}


.single-game-share-wrap{
    position: relative;
    display: inline-flex;
}

.single-game-share-menu{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: none;
    min-width: 228px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf7fe 100%);
    border: 1px solid rgba(142, 43, 178, 0.10);
    border-top: 3px solid var(--mustard-line);
display: none;
    z-index: 40;
}

.single-game-share-wrap.is-open .single-game-share-menu,
.single-game-share-menu.is-open{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-game-share-menu a,
.single-game-share-copy{
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 15px;
    border: 1px solid rgba(142, 43, 178, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8f0fb 100%);
    color: var(--purple-2);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
}

.single-game-share-menu a:hover,
.single-game-share-copy:hover{
    transform: translateY(-1px);
    border-color: rgba(244, 190, 0, 0.34);
    background: linear-gradient(180deg, #fffdf7 0%, #fff7dc 100%);
    color: #7a2da0;
}

.single-game-description-box,
.single-game-description-box:hover{
    padding-bottom: 0;
    margin-bottom: 16px;
    border-bottom: 0;
}

.single-game-content{
    font-size: 16px;
    line-height: 1.9;
    color: #1f2937;
    font-weight: 400;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.single-game-content p{
    margin: 0 0 16px;
    color: #1f2937;
    font-weight: 400;
}

.single-game-content p:last-child{
    margin-bottom: 0;
}

.single-game-content h1,
.single-game-content h2,
.single-game-content h3,
.single-game-content h4,
.single-game-content h5,
.single-game-content h6{
    margin: 22px 0 10px;
    line-height: 1.35;
    color: var(--purple-2);
}

.single-game-content ul,
.single-game-content ol{
    margin: 0 0 16px 20px;
    padding: 0;
}

.single-game-content li{
    margin-bottom: 8px;
}

/* Single game toolbar and action cluster. */

/* Single game toolbar refresh: isolate action icons and rating in description area */
.single-game-description-toolbar{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.single-game-description-toolbar .single-game-rating-box{
    min-height: 40px;
    padding: 0 14px;
    gap: 10px;
    flex-shrink: 0;
    margin: 0;
}

.single-game-description-toolbar .single-game-rating-stars{
    gap: 3px;
}

.single-game-description-toolbar .single-game-rating-star{
    font-size: 18px;
    padding: 0;
}

.single-game-description-toolbar .single-game-rating-text{
    gap: 3px;
}

.single-game-header-tools{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 28px;
    align-items: center;
    justify-content: end;
    row-gap: 14px;
    column-gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.single-game-header-tools > .single-game-inline-action,
.single-game-header-tools > .single-game-share-wrap{
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-game-header-tools > .single-game-share-wrap{
    position: relative;
    min-width: 28px;
}

.single-game-inline-action--report svg{
    transform: translateX(3px);
}

.single-game-header-tools .single-game-inline-action{
    width: 28px;
    height: 28px;
}

.single-game-inline-action{
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: none;
outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--purple-2);
    cursor: pointer;
    opacity: 1;
    filter: none;
    transform: none;
    transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
    text-decoration: none;
}

.single-game-inline-action:hover,
.single-game-inline-action:focus-visible,
.single-game-share-wrap.is-open .single-game-inline-action--share,
.single-game-inline-action--share.is-active,
.single-game-inline-action.is-active{
    color: var(--purple-1);
    transform: translateY(-1px);
}

.single-game-inline-action:focus-visible{
    outline: 2px solid rgba(244, 190, 0, 0.55);
    outline-offset: 4px;
    border-radius: 8px;
}

.single-game-inline-action svg{
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
    filter: none;
}

.single-game-inline-action--favorite svg{
    fill: transparent;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-game-inline-action--favorite.is-favorite{
    color: #f4be00;
}

.single-game-inline-action--favorite.is-favorite svg{
    fill: currentColor;
    stroke: currentColor;
}

.single-game-inline-action--share svg{
    fill: currentColor;
    stroke: none;
}

.single-game-inline-action--report svg,
.single-game-inline-action--fullscreen svg{
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-game-inline-action.is-loading{
    opacity: 0.55;
    pointer-events: none;
}

.single-game-description-box{
    padding-top: 20px;
}

.single-game-inline-toast{
    position: fixed;
    left: 50%;
    top: var(--gsc-message-stack-top, 92px);
    z-index: 2147483000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: min(calc(100vw - 28px), 420px);
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(244, 190, 0, 0.22);
    background: linear-gradient(180deg, rgba(56, 24, 78, 0.98) 0%, rgba(40, 18, 58, 0.98) 100%);
    color: #fffaf1;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.single-game-inline-toast.is-visible{
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.single-game-inline-toast[data-state="error"]{
    border-color: rgba(255, 126, 126, 0.28);
    background: linear-gradient(180deg, rgba(87, 22, 34, 0.98) 0%, rgba(60, 15, 26, 0.98) 100%);
    color: #fff4f4;
}

.single-game-inline-toast[data-state="success"]{
    border-color: rgba(244, 190, 0, 0.22);
}

@media (max-width: 768px) {
    .single-game-description-toolbar{
        gap: 12px;
        align-items: center;
    }

    .single-game-description-toolbar .single-game-rating-box{
        min-height: 38px;
        padding: 0 12px;
        gap: 8px;
    }

    .single-game-description-toolbar .single-game-rating-star{
        font-size: 17px;
    }

    .single-game-header-tools > .single-game-inline-action,
.single-game-header-tools > .single-game-share-wrap,
.single-game-inline-action{
        width: 28px;
        height: 28px;
    }

    .single-game-inline-action svg{
        width: 24px;
        height: 24px;
    }
}

/* Game runtime stage and iframe interaction layer. */
.single-game-player-shell--runtime{
    contain: layout paint;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.game-runtime-stage{
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 460px;
    max-height: 640px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #74208e 0%, #451567 58%, #621a7a 100%);
    contain: layout paint style;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
    touch-action: pan-y;
}

.game-runtime-stage.is-runtime-launching,
.game-runtime-stage.is-runtime-loaded{
    will-change: transform;
}

.game-runtime-stage::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 36%, rgba(255,255,255,0.16), rgba(255,255,255,0) 34%),
        linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.32));
    pointer-events: none;
}

.game-runtime-cover{
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #451567;
}

.game-runtime-cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) brightness(0.72) saturate(1.08);
    transform: scale(1.08);
}

.game-runtime-panel{
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    color: #fff;
}


.game-runtime-card.game-tile{
    width: clamp(118px, 18vw, 174px);
    max-width: 42%;
    flex: 0 0 auto;
    border-radius: 18px;
    border-color: rgba(255,255,255,0.24);
    box-shadow: 0 22px 46px rgba(0,0,0,.28);
    transform: none;
}

.game-runtime-card.game-tile:hover{
    transform: none;
    border-color: rgba(244, 190, 0, 0.26);
}

.game-runtime-card.game-tile::after{
    background: linear-gradient(180deg, rgba(18,12,28,0) 0%, rgba(18,12,28,.08) 64%, rgba(18,12,28,.34) 100%);
}

.game-runtime-card .game-tile-thumb{
    background: linear-gradient(135deg, #f6eef8, #efdef4);
}

.game-runtime-card .game-tile-thumb img{
    transition: none;
}

.game-runtime-title{
    max-width: min(640px, 92%);
    margin: 0;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.035em;
    text-shadow: 0 12px 34px rgba(0,0,0,.34);
}

.game-runtime-start{
    min-width: 214px;
    min-height: 54px;
    border: 2px solid rgba(180,126,0,.24);
    border-radius: 16px;
    padding: 0 25px;
    background: linear-gradient(135deg,#f4be00 0%,#e0a800 100%);
    color: #4b1a66;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.game-runtime-start:hover,
.game-runtime-start:focus-visible{
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 38px rgba(0,0,0,.26);
}

.game-runtime-status{
    min-height: 20px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 800;
}

.game-runtime-mount,
.game-runtime-frame{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.game-runtime-mount{
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    contain: layout paint style;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.game-runtime-frame{
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    contain: layout paint;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.game-runtime-stage.is-runtime-launching .game-runtime-start{
    pointer-events: none;
    opacity: .74;
}

.game-runtime-stage.is-runtime-launching .game-runtime-mount,
.game-runtime-stage.is-runtime-loaded .game-runtime-mount{
    opacity: 1;
    visibility: visible;
}

.game-runtime-stage.is-runtime-loaded .game-runtime-panel,
.game-runtime-stage.is-runtime-loaded .game-runtime-cover{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.gsc-user-is-scrolling .game-runtime-stage,
html.gsc-user-is-scrolling .game-runtime-stage *{
    transition: none !important;
    animation: none !important;
}

html.gsc-user-is-scrolling .game-runtime-mount,
html.gsc-user-is-scrolling .game-runtime-frame{
    pointer-events: none;
}

.single-game-player-shell:fullscreen .game-runtime-stage,
.single-game-player-shell:-webkit-full-screen .game-runtime-stage,
.single-game-player-shell:-ms-fullscreen .game-runtime-stage{
    flex: 1 1 auto;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
}

.single-game-player-shell:fullscreen .game-runtime-frame,
.single-game-player-shell:-webkit-full-screen .game-runtime-frame,
.single-game-player-shell:-ms-fullscreen .game-runtime-frame,
.single-game-player-shell:fullscreen .game-runtime-mount,
.single-game-player-shell:-webkit-full-screen .game-runtime-mount,
.single-game-player-shell:-ms-fullscreen .game-runtime-mount{
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.single-game-player-shell:fullscreen .game-runtime-frame,
.single-game-player-shell:-webkit-full-screen .game-runtime-frame,
.single-game-player-shell:-ms-fullscreen .game-runtime-frame{
    pointer-events: auto !important;
}

@media (max-width: 1200px) {
    .game-runtime-stage{
        min-height: 430px;
        max-height: 580px;
    }
}

@media (max-width: 992px) {
    .game-runtime-stage{
        aspect-ratio: 16 / 10;
        min-height: 380px;
        max-height: 520px;
    }
}

@media (max-width: 768px) {
    .single-game-player-shell--runtime{
        border-radius: 18px;
    }

    .game-runtime-stage{
        aspect-ratio: auto;
        height: clamp(520px, 74vh, 700px);
        min-height: clamp(520px, 74vh, 700px);
        max-height: none;
    }

    .game-runtime-panel{
        padding: 20px;
    }

    .game-runtime-card.game-tile{
        width: clamp(108px, 34vw, 150px);
        max-width: 48%;
    }

    .game-runtime-start{
        min-width: 190px;
        min-height: 50px;
    }
}

@supports (height: 1svh) {
    @media (max-width: 768px) {
        .game-runtime-stage{
            height: clamp(520px, 74svh, 700px);
            min-height: clamp(520px, 74svh, 700px);
        }
    }
}

@media (max-width: 420px) {
    .game-runtime-stage{
        height: clamp(540px, 76vh, 720px);
        min-height: clamp(540px, 76vh, 720px);
    }
}

@supports (height: 1svh) {
    @media (max-width: 420px) {
        .game-runtime-stage{
            height: clamp(540px, 76svh, 720px);
            min-height: clamp(540px, 76svh, 720px);
        }
    }
}
